cpp-httplib/cpp-httplib.spec
Liu Gang 6507fa1fef fix: 增加编译测试用例所需要的依赖。
Signed-off-by: Liu Gang <“liuganga@uniontech.com”>
2021-03-03 13:53:20 +08:00

55 lines
1.2 KiB
RPMSpec

#%global debug_package %{nil}
Name: cpp-httplib
Version: 0.5.12
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.
It's extremely easy to setup. Just include httplib.h file in your code!
%prep
%setup -q -n %{name}-%{version}/
%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}
%pre
%preun
%post
%postun
%check
%files
%license LICENSE
%doc README.md appveyor.yml split.py
%{_includedir}/*
%{_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
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com>
- Package init