Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
921b8247b5
!13 在buildrequires中openssl
From: @chenxi-mao 
Reviewed-by: @overweight 
Signed-off-by: @overweight
2023-10-08 01:30:03 +00:00
Chenxi Mao
a6e3ce5e59 Add openssl to buildrequires
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>
2023-09-27 16:47:53 +08:00
openeuler-ci-bot
0d64ed947d
!12 update to 0.14.0
From: @lyn1001 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-09-15 03:18:18 +00:00
lyn1001
a47a2bf875 update to 0.14.0 2023-09-14 11:27:38 +08:00
openeuler-ci-bot
5614c42f1c
!7 Update to 0.12.4 for fix CVE-2023-26130
From: @starlet-dx 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-06-14 03:12:48 +00:00
starlet-dx
b84078d02e Update to 0.12.4 for fix CVE-2023-26130 2023-06-13 19:42:35 +08:00
openeuler-ci-bot
f00b01cbae
!5 update to 0.11.1
From: @jinzig 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2022-08-22 09:16:12 +00:00
jinzhiguang
b8ce12ee63 update to 0.11.1 2022-08-22 16:34:33 +08:00
openeuler-ci-bot
d3c83ea9d9 !4 增加源码包中编译example测试用例所需的依赖
Merge pull request !4 from 刘刚/master
2021-12-16 06:32:32 +00:00
Liu Gang
34d2b86c07 fix: 解决卸载包后不删除example目录问题
Signed-off-by: Liu Gang <“liuganga@uniontech.com”>
2021-03-03 15:34:09 +08:00
3 changed files with 28 additions and 17 deletions

BIN
cpp-httplib-0.14.0.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,14 +1,12 @@
#%global debug_package %{nil}
Name: cpp-httplib
Version: 0.5.12
Release: 3
Version: 0.14.0
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}.tar.gz#/%{name}-%{version}.tar.gz
Source0: https://github.com/yhirose/cpp-httplib/archive/v%{version}/cpp-httplib-%{version}.tar.gz
BuildArch: noarch
BuildRequires: gcc-c++ meson >= 0.47.0 openssl openssl-devel brotli-devel gtest-devel zlib-devel
Requires: openssl-devel, glibc-devel, zlib-devel
%description
@ -16,17 +14,15 @@ 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}
cp %{buildroot}/%{_includedir}/httplib.h %{buildroot}/%{_docdir}/%{name}
%meson_install
%pre
%preun
@ -34,15 +30,30 @@ cp %{buildroot}/%{_includedir}/httplib.h %{buildroot}/%{_docdir}/%{name}
%postun
%check
export GTEST_FILTER='_Online$'
%meson_test
%files
%license LICENSE
%doc README.md appveyor.yml split.py
%{_includedir}/*
%{_docdir}/%{name}/httplib.h
%{_docdir}/%{name}/example/*
%doc README.md example
%{_includedir}/httplib.h
%{_libdir}/lib%{name}.so
%{_libdir}/lib%{name}.so.*
%{_libdir}/pkgconfig/%{name}.pc
%changelog
* Wed Sep 27 2023 Chenxi Mao <chenxi.mao@suse.com> - 0.14.0-2
- Add openssl to build require list to fix build error
* 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
* 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