8
0
forked from pool/cpp-httplib

- For an explicit choice when buildtime dependencies resolving

added an unique pkgconfig files aliases for both shipped library
  flavors: cpp-httplib-headers.pc and cpp-httplib-shared.pc
- Enable tests performing for compiled flavor

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cpp-httplib?expand=0&rev=11
This commit is contained in:
2023-02-07 15:29:28 +00:00
committed by Git OBS Bridge
parent eb312d10a5
commit 0bd43622be
3 changed files with 22 additions and 0 deletions

View File

@@ -64,6 +64,16 @@ interfaces and any available port.
%install
%meson_install
cd %{buildroot}%{_libdir}/pkgconfig
ln -s %{name}.pc %{name}-shared.pc
%check
pushd test
%make_build test CXX=g++
# Mock and OBS does not provide internet connectivity,
# skip online tests to avoid failures
./test --gtest_filter='-*.*_Online'
popd
%post -n lib%{name}%{libver} -p /sbin/ldconfig
%postun -n lib%{name}%{libver} -p /sbin/ldconfig
@@ -77,6 +87,7 @@ interfaces and any available port.
%{_libdir}/lib%{name}.so
%{_includedir}/httplib.h
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/pkgconfig/%{name}-shared.pc
%doc README.md
%changelog