diff --git a/cpp-httplib-0.15.3.tar.gz b/cpp-httplib-0.15.3.tar.gz deleted file mode 100644 index e8bbb7a2207c028df74f0b7ff7e74c46f46024ef..0000000000000000000000000000000000000000 Binary files a/cpp-httplib-0.15.3.tar.gz and /dev/null differ diff --git a/cpp-httplib.spec b/cpp-httplib.spec index b098fd1fdf0297e386fa8b72a1477eca3fd92561..0641f9360b8b0828e85a1a342bf1103ac8ff11c2 100644 --- a/cpp-httplib.spec +++ b/cpp-httplib.spec @@ -1,18 +1,38 @@ Name: cpp-httplib -Version: 0.15.3 +Version: 0.18.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/cpp-httplib/archive/v%{version}/cpp-httplib-%{version}.tar.gz - -BuildRequires: gcc-c++ meson >= 0.47.0 openssl openssl-devel brotli-devel gtest-devel zlib-devel -Requires: openssl-devel, glibc-devel, zlib-devel +Source0: https://github.com/yhirose/cpp-httplib/archive/refs/tags/v%{version}.tar.gz +BuildRequires: gcc-c++ +BuildRequires: meson >= 0.62.0 +BuildRequires: pkgconfig(libcurl) +BuildRequires: pkgconfig(gtest) +BuildRequires: pkgconfig(libbrotlicommon) +BuildRequires: pkgconfig(libbrotlidec) +BuildRequires: pkgconfig(libbrotlienc) +BuildRequires: pkgconfig(openssl) >= 3.0.0 +BuildRequires: pkgconfig(zlib) +BuildRequires: /usr/bin/openssl +BuildRequires: /usr/bin/python3 %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! +%package devel +Summary: A C++11 single-file header-only cross platform HTTP/HTTPS library +Requires: %{name}%{?_isa} = %{version}-%{release} +Conflicts: %{name} < 0.18.0 + +%description devel +A C++11 single-file header-only cross platform HTTP/HTTPS library. +It's extremely easy to setup. Just include the httplib.h file in your code! +NOTE: This is a multi-threaded 'blocking' HTTP library. +If you are looking for a 'non-blocking' library, this is not the one that you want. +Development files only. + %prep %autosetup -p1 -n %{name}-%{version} @@ -24,24 +44,24 @@ It's extremely easy to setup. Just include httplib.h file in your code! %install %meson_install -%pre -%preun -%post -%postun - %check export GTEST_FILTER='_Online$' %meson_test %files -%license LICENSE +%license LICENSE +%{_libdir}/lib%{name}.so.* + +%files devel %doc README.md example %{_includedir}/httplib.h %{_libdir}/lib%{name}.so -%{_libdir}/lib%{name}.so.* %{_libdir}/pkgconfig/%{name}.pc %changelog +* Thu Sep 19 2024 Funda Wang - 0.18.0-1 +- update to 0.18.0 + * Mon Mar 11 2024 xu_ping <707078654@qq.com> - 0.15.3-1 - Upgrade version to 0.15.3 diff --git a/cpp-httplib.yaml b/cpp-httplib.yaml index cac53c93736752aaf5e96b406cb839bd4ec0432f..dff61b4bae0de05c747c54e46bb6c4f7474323d2 100644 --- a/cpp-httplib.yaml +++ b/cpp-httplib.yaml @@ -1,4 +1,4 @@ version_control: github src_repo: yhirose/cpp-httplib tag_prefix: ^v -seperator: . +separator: . diff --git a/v0.18.0.tar.gz b/v0.18.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7af8462846f215742746fff99bc2350a68f77633 Binary files /dev/null and b/v0.18.0.tar.gz differ