cpp-httplib/cpp-httplib.spec

74 lines
1.8 KiB
RPMSpec
Raw Permalink Normal View History

2020-05-14 23:46:07 +08:00
Name: cpp-httplib
2023-09-14 11:27:38 +08:00
Version: 0.14.0
Release: 4
2020-05-14 23:46:07 +08:00
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
Patch0: CVE-2025-0825.patch
Patch1: CVE-2025-46728.patch
2020-05-14 23:46:07 +08:00
BuildRequires: gcc-c++ meson >= 0.47.0 openssl openssl-devel brotli-devel gtest-devel zlib-devel
Requires: openssl-devel, glibc-devel, zlib-devel
2020-05-14 23:46:07 +08:00
%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
%autosetup -p1 -n %{name}-%{version}
2020-05-14 23:46:07 +08:00
%build
%meson -Dcpp-httplib_compile=true -Dcpp-httplib_test=true \
--buildtype=release
%meson_build
2020-05-14 23:46:07 +08:00
%install
%meson_install
2020-05-14 23:46:07 +08:00
%pre
%preun
%post
%postun
%check
export GTEST_FILTER='_Online$'
%meson_test
2020-05-14 23:46:07 +08:00
%files
%license LICENSE
%doc README.md example
%{_includedir}/httplib.h
%{_libdir}/lib%{name}.so
%{_libdir}/lib%{name}.so.*
%{_libdir}/pkgconfig/%{name}.pc
2020-05-14 23:46:07 +08:00
%changelog
* Wed May 07 2025 yaoxin <1024769339@qq.com> - 0.14.0-4
- Fix CVE-2025-46728
* Fri Feb 07 2025 yaoxin <1024769339@qq.com> - 0.14.0-3
- Fix CVE-2025-0825
* Wed Sep 27 2023 Chenxi Mao <chenxi.mao@suse.com> - 0.14.0-2
- Add openssl to build require list to fix build error
2023-09-14 11:27:38 +08:00
* Thu Sep 14 2023 liyanan <thistleslyn@163.com> - 0.14.0-1
- update to 0.14.0
* Tue Jun 13 2023 yaoxin <yao_xin001@hoperun.com> - 0.12.4-1
- Update to 0.12.4 for fix CVE-2023-26130
2022-08-16 14:42:00 +08:00
* Tue Aug 16 2022 jinzhiguang <jinzhiguang@kylinos.cn> - 0.11.1-1
- update to 0.11.1
* Wed Mar 03 2021 Liu Gang <liuganga@uniontech.com>
- cp httplib.h to doc dir for make example
2020-10-12 22:01:07 +08:00
* Mon Oct 12 2020 liqingqing_1229 <liqingqing3@huawei.com>
- update source0's url
2020-05-14 23:46:07 +08:00
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com>
- Package init