!4 增加源码包中编译example测试用例所需的依赖

Merge pull request !4 from 刘刚/master
This commit is contained in:
openeuler-ci-bot 2021-12-16 06:32:32 +00:00 committed by Gitee
commit d3c83ea9d9

View File

@ -2,13 +2,14 @@
Name: cpp-httplib
Version: 0.5.12
Release: 2
Release: 3
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
BuildArch: noarch
Requires: openssl-devel, glibc-devel, zlib-devel
%description
A C++11 single-file header-only cross platform HTTP/HTTPS library.
@ -24,6 +25,7 @@ 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}
%pre
@ -37,9 +39,13 @@ cp -r example %{buildroot}/%{_docdir}/%{name}
%license LICENSE
%doc README.md appveyor.yml split.py
%{_includedir}/*
%{_docdir}/%{name}/example/*
%{_docdir}/%{name}/httplib.h
%{_docdir}/%{name}/example
%changelog
* Wed Mar 03 2021 Liu Gang <liuganga@uniontech.com>
- cp httplib.h to doc dir for make example
* Mon Oct 12 2020 liqingqing_1229 <liqingqing3@huawei.com>
- update source0's url