diff --git a/cpp-httplib-0.12-gtest-reuse.patch b/cpp-httplib-0.12-gtest-reuse.patch new file mode 100644 index 0000000000000000000000000000000000000000..4824ad954aa5864eed00f11d2f1d47ad6d5ea070 --- /dev/null +++ b/cpp-httplib-0.12-gtest-reuse.patch @@ -0,0 +1,25 @@ +From 647b3126b994fc7de1d0634dcdd32153df93e55e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= +Date: Tue, 14 Feb 2023 00:49:09 +0100 +Subject: [PATCH] Reuse gtest on system + +Try to use gtest on the system if found. +--- + test/CMakeLists.txt | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt +index 8b25601..54eb744 100644 +--- a/test/CMakeLists.txt ++++ b/test/CMakeLists.txt +@@ -11,6 +11,7 @@ set(HTTPLIB_TEST_FILTER "" CACHE STRING "Filter to select tests") + FetchContent_Declare( + gtest + URL https://github.com/google/googletest/archive/main.tar.gz ++ FIND_PACKAGE_ARGS NAMES gtest GTest + ) + FetchContent_MakeAvailable(gtest) + +-- +2.39.1 + diff --git a/cpp-httplib-0.12.0.tar.gz b/cpp-httplib-0.12.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..096b2171b8880eb6ec81ad4ad4c72c867e5af2c8 Binary files /dev/null and b/cpp-httplib-0.12.0.tar.gz differ diff --git a/cpp-httplib.spec b/cpp-httplib.spec index e1099a0673ff2cd2fc8a1ef7b08265aeb841ee7d..23124f933adf2617816e81481664bd9a932a3654 100644 --- a/cpp-httplib.spec +++ b/cpp-httplib.spec @@ -1,21 +1,22 @@ -Name: cpp-httplib -Version: 0.11.1 -Release: 1 -Summary: A C++ header-only HTTP/HTTPS server and client library -License: MIT -URL: https://github.com/yhirose/cpp-httplib -Source0: https://github.com/yhirose/%{name}/archive/refs/tags/v%{version}.tar.gz +Name: cpp-httplib +Version: 0.12.0 +Release: 1 +Summary: A C++ header-only HTTP/HTTPS server and client library +License: MIT +URL: https://github.com/yhirose/cpp-httplib +Source0: https://github.com/yhirose/%{name}/tar.gz/refs/tags/cpp-httplib-%{version}.tar.gz +Patch1: cpp-httplib-0.12-gtest-reuse.patch BuildArch: noarch -Requires: openssl-devel, glibc-devel, zlib-devel +BuildRequires: openssl-devel, glibc-devel, zlib-devel brotli-devel +BuildRequires: gtest-devel cmake %description A C++11 single-file header-only cross platform HTTP/HTTPS library. It's extremely easy to setup. Just include httplib.h file in your code! %prep -%setup -q -n %{name}-%{version}/ - +%autosetup -p1 %build %install @@ -41,6 +42,9 @@ cp %{buildroot}/%{_includedir}/httplib.h %{buildroot}/%{_docdir}/%{name} %{_docdir}/%{name}/example %changelog +* Thu Mar 16 2023 lilong - 0.12.0-1 +- Upgrade to 0.12.0 + * Tue Aug 16 2022 jinzhiguang - 0.11.1-1 - update to 0.11.1 diff --git a/cpp-httplib.yaml b/cpp-httplib.yaml new file mode 100644 index 0000000000000000000000000000000000000000..185258d1099f584660babedd5679446e624fe4bf --- /dev/null +++ b/cpp-httplib.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: yhirose/cpp-httplib/ +tag_prefix: ^ +separator: "." diff --git a/v0.11.1.tar.gz b/v0.11.1.tar.gz deleted file mode 100644 index f719982b66b7dd962a7784fb1074efe36dc8ca34..0000000000000000000000000000000000000000 Binary files a/v0.11.1.tar.gz and /dev/null differ