forked from pool/cpp-httplib
- Move examples to devel subpackage
- Drop headers-only flavor and remove aliases for pkg-config files (gh#yhirose/cpp-httplib#1491) OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=15
This commit is contained in:
@@ -58,6 +58,7 @@ interfaces and any available port.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
chmod -x example/uploader.sh
|
||||
|
||||
%build
|
||||
%meson -Dcpp-httplib_compile=true -Dcpp-httplib_test=true \
|
||||
@@ -66,9 +67,6 @@ interfaces and any available port.
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
# Create a pkgconfig alias
|
||||
cd %{buildroot}%{_libdir}/pkgconfig
|
||||
ln -s %{name}.pc %{name}-shared.pc
|
||||
|
||||
%check
|
||||
# OBS and chroot build environments does not provide internet
|
||||
@@ -87,7 +85,7 @@ export GTEST_FILTER='-*.*_Online'
|
||||
%files devel
|
||||
%{_libdir}/lib%{name}.so
|
||||
%{_includedir}/httplib.h
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
%doc README.md
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
%doc README.md example
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user