diff --git a/cpp-httplib.spec b/cpp-httplib.spec index 164be47adbef5f83ed833cdc2145ab5eb35f840b..f90f8a3d4af4002bbaa3bffe6b5f94651d91f65c 100644 --- a/cpp-httplib.spec +++ b/cpp-httplib.spec @@ -1,12 +1,12 @@ Name: cpp-httplib -Version: 0.18.1 +Version: 0.18.3 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/cpp-httplib/archive/refs/tags/v%{version}.tar.gz BuildRequires: gcc-c++ -BuildRequires: meson >= 0.62.0 +BuildRequires: cmake BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(gtest) BuildRequires: pkgconfig(libbrotlicommon) @@ -37,16 +37,16 @@ Development files only. %autosetup -p1 -n %{name}-%{version} %build -%meson -Dcpp-httplib_compile=true -Dcpp-httplib_test=true \ - --buildtype=release -%meson_build +%cmake -DBUILD_SHARED_LIBS=ON -DHTTPLIB_COMPILE=ON -DHTTPLIB_TEST=ON +%cmake_build %install -%meson_install +%cmake_install +rm -r $RPM_BUILD_ROOT%{_docdir}/httplib +rm -r $RPM_BUILD_ROOT%{_licensedir}/httplib %check -export GTEST_FILTER='_Online$' -%meson_test +%ctest --parallel 1 --exclude-regex '_Online$' %files %license LICENSE @@ -56,9 +56,19 @@ export GTEST_FILTER='_Online$' %doc README.md example %{_includedir}/httplib.h %{_libdir}/lib%{name}.so -%{_libdir}/pkgconfig/%{name}.pc +%{_libdir}/cmake/httplib %changelog +* Thu Jan 16 2025 yaoxin <1024769339@qq.com> - 0.18.3-1 +- Update to 0.18.3: + * Regression: Client keep-alive subsequent requests very slow #1997 + * 304 Not Modified response stalls until timeout #1998 + * Fix the problem that CreateFile2 in mmap::open fails to … #1973 + * Default Accept-Encoding header for the client #1975 + * SSLClientReconnection fails on Windows #1980 + * delay in keep_alive due to sleep #1969 + * missing query pararm in httplib::Client::send #1985 + * Sun Nov 17 2024 Funda Wang - 0.18.1-1 - update to 0.18.1 diff --git a/v0.18.1.tar.gz b/v0.18.1.tar.gz deleted file mode 100644 index d58b628b7c0c08143a06014d9ffb9ee26f565907..0000000000000000000000000000000000000000 Binary files a/v0.18.1.tar.gz and /dev/null differ diff --git a/v0.18.3.tar.gz b/v0.18.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..8834be4ba100e794bdf5297428712817f24b2688 Binary files /dev/null and b/v0.18.3.tar.gz differ