[packages/libcap-ng] add static_libs bcond

atler atler at pld-linux.org
Wed Dec 20 22:49:45 CET 2023


commit 7cd914f60f8d2e4ec880d49c3ea1e441d4f4d971
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Dec 20 22:42:14 2023 +0100

    add static_libs bcond

 libcap-ng.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/libcap-ng.spec b/libcap-ng.spec
index f446b21..5961a9b 100644
--- a/libcap-ng.spec
+++ b/libcap-ng.spec
@@ -3,6 +3,7 @@
 %bcond_without	python		# (any) Python bindings
 %bcond_without	python2		# CPython 2 bindings
 %bcond_without	python3		# CPython 3 bindings
+%bcond_without	static_libs	# static libraries
 #
 %if %{without python}
 %undefine	with_python2
@@ -29,7 +30,7 @@ BuildRequires:	linux-libc-headers >= 7:2.6.33.1
 %{?with_python3:BuildRequires:	python3-devel >= 1:3.2}
 %{?with_python3:BuildRequires:	python3-modules >= 1:3.2}
 BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.219
+BuildRequires:	rpmbuild(macros) >= 1.527
 %{?with_python:BuildRequires:	swig-python}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -124,6 +125,7 @@ Interfejs Pythona 3 do biblioteki libcap-ng.
 %{__autoconf}
 %{__automake}
 %configure \
+	%{__enable_disable static_libs static} \
 	%{!?with_python2:--without-python} \
 	%{!?with_python3:--without-python3}
 %{__make}
@@ -174,10 +176,12 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/capng_*.3*
 %{_mandir}/man7/libdrop_ambient.7*
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libcap-ng.a
 %{_libdir}/libdrop_ambient.a
+%endif
 
 %files utils
 %defattr(644,root,root,755)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libcap-ng.git/commitdiff/be6f39b5b6ff46c1d3adaa91837f3a186a2c1219



More information about the pld-cvs-commit mailing list