[packages/nftables] add static_libs bcond
atler
atler at pld-linux.org
Thu Jul 18 14:18:21 CEST 2024
commit df22cc276c8d69f339cdc6c4af02524eba76b5f1
Author: Jan Palus <atler at pld-linux.org>
Date: Thu Jul 18 13:28:53 2024 +0200
add static_libs bcond
nftables.spec | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/nftables.spec b/nftables.spec
index ccc1bc3..9987344 100644
--- a/nftables.spec
+++ b/nftables.spec
@@ -1,5 +1,6 @@
#
# Conditional build:
+%bcond_without static_libs # static library
%bcond_without systemd # without systemd unit
Summary: Administration tool for packet filtering and classification
@@ -107,7 +108,7 @@ Wiązania Pythona do biblioteki libnftables.
%{__automake}
%configure \
--disable-silent-rules \
- --enable-static \
+ %{__enable_disable static_libs static} \
--with-cli=readline \
--with-json \
--with-xtables
@@ -197,9 +198,11 @@ rm -rf $RPM_BUILD_ROOT
%{_pkgconfigdir}/libnftables.pc
%{_mandir}/man3/libnftables.3*
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libnftables.a
+%endif
%files -n python-nftables
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nftables.git/commitdiff/df22cc276c8d69f339cdc6c4af02524eba76b5f1
More information about the pld-cvs-commit
mailing list