SPECS: libxslt.spec - added bcond_without static_libs

witekfl witekfl at pld-linux.org
Wed Jun 22 16:23:33 CEST 2005


Author: witekfl                      Date: Wed Jun 22 14:23:33 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added bcond_without static_libs

---- Files affected:
SPECS:
   libxslt.spec (1.116 -> 1.117) 

---- Diffs:

================================================================
Index: SPECS/libxslt.spec
diff -u SPECS/libxslt.spec:1.116 SPECS/libxslt.spec:1.117
--- SPECS/libxslt.spec:1.116	Sat Apr  2 16:18:08 2005
+++ SPECS/libxslt.spec	Wed Jun 22 16:23:28 2005
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	static_libs	# don't build static library
+#
 %define		libxml2ver	1:2.6.19
 
 Summary:	XSLT processor
@@ -115,7 +119,8 @@
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+	%{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -159,9 +164,11 @@
 %{_pkgconfigdir}/*.pc
 %{_aclocaldir}/*.m4
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
 
 %files progs
 %defattr(644,root,root,755)
@@ -180,6 +187,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.117  2005/06/22 14:23:28  witekfl
+- added bcond_without static_libs
+
 Revision 1.116  2005/04/02 14:18:08  freetz
 - 1.1.14, libxml2 requirement bumped to 2.6.19
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/libxslt.spec?r1=1.116&r2=1.117&f=u




More information about the pld-cvs-commit mailing list