[packages/nettle] add static_libs bcond
atler
atler at pld-linux.org
Sun Jun 16 22:55:29 CEST 2024
commit a46f00cc3351d4c3a67833a58b79e6462af956dd
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Jun 16 22:54:47 2024 +0200
add static_libs bcond
nettle.spec | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/nettle.spec b/nettle.spec
index 2254fc2..f38ac62 100644
--- a/nettle.spec
+++ b/nettle.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without static_libs # static libraries
+
Summary: Nettle - a cryptographic library
Summary(pl.UTF-8): Nettle - biblioteka kryptograficzna
Name: nettle
@@ -12,6 +16,7 @@ URL: http://www.lysator.liu.se/~nisse/nettle/
BuildRequires: ghostscript
BuildRequires: gmp-devel >= 6.1
BuildRequires: m4
+BuildRequires: rpmbuild(macros) >= 1.527
BuildRequires: tetex-dvips
BuildRequires: texinfo-texi2dvi
Requires: gmp >= 6.1
@@ -80,7 +85,8 @@ nettle.
%build
%configure \
- --enable-shared
+ --enable-shared \
+ %{__enable_disable static_libs static}
%{__make}
@@ -121,10 +127,12 @@ rm -rf $RPM_BUILD_ROOT
%{_pkgconfigdir}/nettle.pc
%{_infodir}/nettle.info*
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libhogweed.a
%{_libdir}/libnettle.a
+%endif
%files progs
%defattr(644,root,root,755)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nettle.git/commitdiff/a46f00cc3351d4c3a67833a58b79e6462af956dd
More information about the pld-cvs-commit
mailing list