SPECS: glib2.spec - added bcond_without static_libs

witekfl witekfl at pld-linux.org
Tue Jun 14 18:00:03 CEST 2005


Author: witekfl                      Date: Tue Jun 14 16:00:03 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added bcond_without static_libs

---- Files affected:
SPECS:
   glib2.spec (1.103 -> 1.104) 

---- Diffs:

================================================================
Index: SPECS/glib2.spec
diff -u SPECS/glib2.spec:1.103 SPECS/glib2.spec:1.104
--- SPECS/glib2.spec:1.103	Sat Jun 11 20:55:37 2005
+++ SPECS/glib2.spec	Tue Jun 14 17:59:58 2005
@@ -1,4 +1,5 @@
 # $Revision$, $Date$
+%bcond_without	static_libs	# don't build static library
 Summary:	Useful routines for 'C' programming
 Summary(cs):	Šikovná knihovna s funkcemi pro pomocné programy
 Summary(da):	Nyttige biblioteksfunktioner
@@ -152,7 +153,8 @@
 	--with-html-dir=%{_gtkdocdir} \
 	--enable-static \
 	--enable-debug=%{?debug:yes} \
-	--enable-man
+	--enable-man \
+	%{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -195,9 +197,11 @@
 %{_aclocaldir}/*
 %{_mandir}/man?/*
 
+%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
@@ -205,6 +209,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.104  2005/06/14 15:59:58  witekfl
+- added bcond_without static_libs
+
 Revision 1.103  2005/06/11 18:55:37  freetz
 - 2.6.5
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/glib2.spec?r1=1.103&r2=1.104&f=u




More information about the pld-cvs-commit mailing list