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

@@ -54,10 +54,13 @@ sed -i "7s/.*/version: '%{version}',/" meson.build
%install
%meson_install
cd %{buildroot}%{_datadir}/pkgconfig
ln -s cpp-httplib.pc %{name}.pc
%files devel
%{_includedir}/httplib.h
%{_datadir}/pkgconfig/cpp-httplib.pc
%{_datadir}/pkgconfig/%{name}.pc
%doc README.md
%license LICENSE

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Feb 6 14:55:29 UTC 2023 - Alexey Svistunov <svalx@svalx.net>
- 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
-------------------------------------------------------------------
Tue Jan 24 20:14:49 UTC 2023 - Alexey Svistunov <svalx@svalx.net>

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