SPECS: expat.spec - added bcond_without static_libs

witekfl witekfl at pld-linux.org
Mon Aug 20 20:45:34 CEST 2007


Author: witekfl                      Date: Mon Aug 20 18:45:34 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added bcond_without static_libs

---- Files affected:
SPECS:
   expat.spec (1.56 -> 1.57) 

---- Diffs:

================================================================
Index: SPECS/expat.spec
diff -u SPECS/expat.spec:1.56 SPECS/expat.spec:1.57
--- SPECS/expat.spec:1.56	Thu Jun 14 18:10:53 2007
+++ SPECS/expat.spec	Mon Aug 20 20:45:28 2007
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	static_libs	# don't build static library
+#
 Summary:	XML 1.0 parser
 Summary(es.UTF-8):	Parser de XML 1.0
 Summary(pl.UTF-8):	Analizator składni XML-a 1.0
@@ -128,7 +132,8 @@
 %{__aclocal}
 %{__autoheader}
 %{__autoconf}
-%configure
+%configure \
+	%{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -166,9 +171,11 @@
 %{_includedir}/expat*.h
 %{_aclocaldir}/expat.m4
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libexpat.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -176,6 +183,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.57  2007/08/20 18:45:28  witekfl
+- added bcond_without static_libs
+
 Revision 1.56  2007/06/14 16:10:53  qboosh
 - updated to 2.0.1
 - updated URL
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/expat.spec?r1=1.56&r2=1.57&f=u



More information about the pld-cvs-commit mailing list