forked from pool/cpp-httplib
- Move LICENSE file to the library package
- Drop cmake BuildRequires and linker additional "-s" flag OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=6
This commit is contained in:
@@ -23,7 +23,6 @@ Release: 0
|
||||
Summary: A C++11 HTTP/HTTPS library
|
||||
License: MIT
|
||||
URL: https://github.com/yhirose/cpp-httplib
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++ >= 11
|
||||
BuildRequires: meson >= 0.47.0
|
||||
BuildRequires: pkgconfig(libbrotlienc)
|
||||
@@ -58,7 +57,6 @@ interfaces and any available port.
|
||||
%setup -q -n %_sourcedir/%name-%version -T -D
|
||||
|
||||
%build
|
||||
LDFLAGS="-s"
|
||||
%meson -Dcpp-httplib_compile=true
|
||||
%meson_build
|
||||
|
||||
@@ -71,12 +69,12 @@ LDFLAGS="-s"
|
||||
%files -n lib%{name}%{libver}
|
||||
%{_libdir}/lib%{name}.so.%{sover}
|
||||
%{_libdir}/lib%{name}.so.%{version}
|
||||
%license LICENSE
|
||||
|
||||
%files devel
|
||||
%{_libdir}/lib%{name}.so
|
||||
%{_includedir}/httplib.h
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user