]> git.pld-linux.org Git - packages/popt.git/commitdiff
- added bcond_without static_libs
authortwittner <twittner@pld-linux.org>
Fri, 17 Jun 2005 19:19:20 +0000 (19:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    popt.spec -> 1.74

popt.spec

index c4b8f123791442ff0454ff9b4646b4cf2de2cf9f..b6d0f24c56466548148c0e7243005769be9046f7 100644 (file)
--- a/popt.spec
+++ b/popt.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without static_libs     # don't build static libraries
+#
 Summary:       C library for parsing command line parameters
 Summary(de):   C-Library zum Parsen von Befehlszeilenparametern
 Summary(fr):   Bibliothèque C pour analyser les paramètres de la ligne de commande
@@ -155,7 +159,8 @@ cd popt
 %{__aclocal}
 %{__autoconf}
 %{__automake} -i
-%configure
+%configure \
+       %{!?with_static_libs:--disable-static}
 
 %{__make}
 
@@ -191,6 +196,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/*
 %{_includedir}/popt.h
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libpopt.a
+%endif
This page took 0.033257 seconds and 4 git commands to generate.