diff --git a/cpp-httplib-0.12.4.tar.gz b/cpp-httplib-0.12.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..7b97ce8dadcebbf541ced14e21aefc0ef35cc756 Binary files /dev/null and b/cpp-httplib-0.12.4.tar.gz differ diff --git a/cpp-httplib-0.5.12.tar.gz b/cpp-httplib-0.5.12.tar.gz deleted file mode 100644 index 077ec092cfba0e985ae5ee0f80ea534d4a76bf9b..0000000000000000000000000000000000000000 Binary files a/cpp-httplib-0.5.12.tar.gz and /dev/null differ diff --git a/cpp-httplib.spec b/cpp-httplib.spec index 72e2d957ab9f2c433801ac9b20ddb8c8888343fb..efa43defa2a6ad9f0fecccd0823887da64e9ad9c 100644 --- a/cpp-httplib.spec +++ b/cpp-httplib.spec @@ -1,30 +1,29 @@ #%global debug_package %{nil} Name: cpp-httplib -Version: 0.5.12 -Release: 2 +Version: 0.12.4 +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}.tar.gz#/%{name}-%{version}.tar.gz +Source0: https://github.com/yhirose/cpp-httplib/archive/v%{version}/%{name}-%{version}.tar.gz -BuildArch: noarch +BuildRequires: gcc-c++ meson >= 0.47.0 openssl-devel brotli-devel gtest-devel zlib-devel %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 -n %{name}-%{version} %build +%meson -Dcpp-httplib_compile=true -Dcpp-httplib_test=true \ + --buildtype=release +%meson_build %install -install -d %{buildroot}/%{_includedir} -install -m0644 httplib.h %{buildroot}/%{_includedir} -install -d %{buildroot}/%{_docdir}/%{name} -cp -r example %{buildroot}/%{_docdir}/%{name} - +%meson_install %pre %preun @@ -32,14 +31,21 @@ cp -r example %{buildroot}/%{_docdir}/%{name} %postun %check +export GTEST_FILTER='_Online$' +%meson_test %files %license LICENSE -%doc README.md appveyor.yml split.py -%{_includedir}/* -%{_docdir}/%{name}/example/* +%doc README.md example +%{_libdir}/lib%{name}.so +%{_libdir}/lib%{name}.so.* +%{_includedir}/httplib.h +%{_libdir}/pkgconfig/%{name}.pc %changelog +* Tue Jun 13 2023 yaoxin - 0.12.4-1 +- Update to 0.12.4 for fix CVE-2023-26130 + * Mon Oct 12 2020 liqingqing_1229 - update source0's url