diff --git a/cpp-httplib-0.5.12.tar.gz b/cpp-httplib-0.5.12.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..077ec092cfba0e985ae5ee0f80ea534d4a76bf9b Binary files /dev/null and b/cpp-httplib-0.5.12.tar.gz differ diff --git a/cpp-httplib.spec b/cpp-httplib.spec new file mode 100644 index 0000000000000000000000000000000000000000..a756e0f8d72325df68562c9641c2ffab12812068 --- /dev/null +++ b/cpp-httplib.spec @@ -0,0 +1,45 @@ +#%global debug_package %{nil} + +Name: cpp-httplib +Version: 0.5.12 +Release: 1 +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/%{name}-%{version}.tar.gz + +BuildArch: noarch + +%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} + + +%pre +%preun +%post +%postun + +%check + +%files +%license LICENSE +%doc README.md appveyor.yml split.py +%{_includedir}/* +%{_docdir}/%{name}/example/* + +%changelog +* Sun Mar 29 2020 Wei Xiong +- Package init +