openssl should be added to buildrequires directly to avoid below build error. [ 10s] Run-time dependency GTest found: YES 1.8.1 [ 10s] Program openssl found: NO [ 10s] [ 10s] test/meson.build:6:0: ERROR: Program 'openssl' not found Signed-off-by: Chenxi Mao <chenxi.mao@suse.com>
58 lines
1.3 KiB
RPMSpec
58 lines
1.3 KiB
RPMSpec
#%global debug_package %{nil}
|
|
|
|
Name: cpp-httplib
|
|
Version: 0.12.4
|
|
Release: 2
|
|
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}/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: gcc-c++ meson >= 0.47.0 openssl 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
|
|
%autosetup -p1 -n %{name}-%{version}
|
|
|
|
%build
|
|
%meson -Dcpp-httplib_compile=true -Dcpp-httplib_test=true \
|
|
--buildtype=release
|
|
%meson_build
|
|
|
|
%install
|
|
%meson_install
|
|
|
|
%pre
|
|
%preun
|
|
%post
|
|
%postun
|
|
|
|
%check
|
|
export GTEST_FILTER='_Online$'
|
|
%meson_test
|
|
|
|
%files
|
|
%license LICENSE
|
|
%doc README.md example
|
|
%{_libdir}/lib%{name}.so
|
|
%{_libdir}/lib%{name}.so.*
|
|
%{_includedir}/httplib.h
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%changelog
|
|
* Wed Sep 27 2023 Chenxi Mao <chenxi.mao@suse.com> - 0.12.4-2
|
|
- Add openssl to build require list to fix build error
|
|
|
|
* Tue Jun 13 2023 yaoxin <yao_xin001@hoperun.com> - 0.12.4-1
|
|
- Update to 0.12.4 for fix CVE-2023-26130
|
|
|
|
* Mon Oct 12 2020 liqingqing_1229 <liqingqing3@huawei.com>
|
|
- update source0's url
|
|
|
|
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com>
|
|
- Package init
|
|
|