SPECS: ldns.spec - added bcond_without static_libs

twittner twittner at pld-linux.org
Sat Aug 13 21:36:29 CEST 2005


Author: twittner                     Date: Sat Aug 13 19:36:29 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added bcond_without static_libs

---- Files affected:
SPECS:
   ldns.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/ldns.spec
diff -u SPECS/ldns.spec:1.1 SPECS/ldns.spec:1.2
--- SPECS/ldns.spec:1.1	Sat Aug 13 20:45:13 2005
+++ SPECS/ldns.spec	Sat Aug 13 21:36:22 2005
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	static_libs # don't build static libraries
+#
 Summary:	ldns is a library with the aim to simplify DNS programing in C
 Summary(pl):	ldns jest biblioteką mającą na celu uproszczenie programowania DNS w C
 Name:		ldns
@@ -55,7 +59,8 @@
 %{__aclocal}
 %{__autoconf}
 %{__autoheader}
-%configure
+%configure \
+	%{!?with_static_libs:--enable-static=no}
 %{__make}
 %{__make} doc
 
@@ -84,9 +89,11 @@
 # don't remove `.gz' (because you'll get plenty of dead symlinks)
 %{_mandir}/man3/*.gz
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -94,6 +101,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2005/08/13 19:36:22  twittner
+- added bcond_without static_libs
+
 Revision 1.1  2005/08/13 18:45:13  twittner
 - new, added
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/ldns.spec?r1=1.1&r2=1.2&f=u




More information about the pld-cvs-commit mailing list