cpp-httplib/cpp-httplib.spec

56 lines
1.3 KiB
RPMSpec
Raw Normal View History

2020-05-14 23:46:07 +08:00
Name: cpp-httplib
2022-08-16 14:42:00 +08:00
Version: 0.11.1
Release: 1
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
2022-08-16 14:42:00 +08:00
Source0: https://github.com/yhirose/%{name}/archive/refs/tags/v%{version}.tar.gz
2020-05-14 23:46:07 +08:00
BuildArch: noarch
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
%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}
2020-05-14 23:46:07 +08:00
%pre
%preun
%post
%postun
%check
%files
%license LICENSE
2022-08-16 14:42:00 +08:00
%doc README.md split.py
2020-05-14 23:46:07 +08:00
%{_includedir}/*
%{_docdir}/%{name}/httplib.h
%{_docdir}/%{name}/example
2020-05-14 23:46:07 +08:00
%changelog
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