SPECS: bzip2.spec, libxml.spec, liboil.spec, libnjb.spec - added b...

witekfl witekfl at pld-linux.org
Mon Aug 20 21:31:18 CEST 2007


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

---- Files affected:
SPECS:
   bzip2.spec (1.112 -> 1.113) , libxml.spec (1.88 -> 1.89) , liboil.spec (1.28 -> 1.29) , libnjb.spec (1.22 -> 1.23) 

---- Diffs:

================================================================
Index: SPECS/bzip2.spec
diff -u SPECS/bzip2.spec:1.112 SPECS/bzip2.spec:1.113
--- SPECS/bzip2.spec:1.112	Mon Feb 12 22:23:50 2007
+++ SPECS/bzip2.spec	Mon Aug 20 21:31:12 2007
@@ -3,6 +3,7 @@
 # Conditional build:
 %bcond_with	progress	# with progressbar patch
 %bcond_without	doc		# don't build tex documentation
+%bcond_without	static_libs	# don't build static libraries
 #
 Summary:	Extremely powerful file compression utility
 Summary(es.UTF-8):	Un compresor de archivos con un nuevo algoritmo
@@ -178,7 +179,8 @@
 %{__automake}
 %{__autoconf}
 %configure \
-	CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64"
+	CFLAGS="%{rpmcflags} -D_FILE_OFFSET_BITS=64" \
+	%{!?with_static_libs:--disable-static}
 %{__make}
 
 %if %{with doc}
@@ -239,9 +241,11 @@
 %{_libdir}/lib*.la
 %{_includedir}/*.h
 
+%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
@@ -249,6 +253,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.113  2007/08/20 19:31:12  witekfl
+- added bcond_without static_libs
+
 Revision 1.112  2007/02/12 21:23:50  glen
 - tabs in preamble
 

================================================================
Index: SPECS/libxml.spec
diff -u SPECS/libxml.spec:1.88 SPECS/libxml.spec:1.89
--- SPECS/libxml.spec:1.88	Tue Mar  6 14:48:15 2007
+++ SPECS/libxml.spec	Mon Aug 20 21:31:12 2007
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	static_libs	# don't build static library
+#
 Summary:	libXML library
 Summary(es.UTF-8):	Biblioteca libXML
 Summary(pl.UTF-8):	Biblioteka libxml
@@ -123,7 +127,8 @@
 %{__autoconf}
 %{__automake}
 %configure \
-	--with-html-dir=%{_gtkdocdir}
+	--with-html-dir=%{_gtkdocdir} \
+	%{!?with_static_libs:--disable-static}
 
 %{__make}
 
@@ -160,9 +165,11 @@
 %{_gtkdocdir}/gnome-xml
 %{_mandir}/man1/xml-config.1*
 
+%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
@@ -170,6 +177,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.89  2007/08/20 19:31:12  witekfl
+- added bcond_without static_libs
+
 Revision 1.88  2007/03/06 13:48:15  spider
 - rel++
 - STBR

================================================================
Index: SPECS/liboil.spec
diff -u SPECS/liboil.spec:1.28 SPECS/liboil.spec:1.29
--- SPECS/liboil.spec:1.28	Tue Jun 12 08:37:42 2007
+++ SPECS/liboil.spec	Mon Aug 20 21:31:12 2007
@@ -1,8 +1,9 @@
 # $Revision$, $Date$
 #
 # Conditional build:
-%bcond_without	altivec	# without Altivec support (on ppc)
-%bcond_without	tests	# don't perform "make check"
+%bcond_without	altivec		# without Altivec support (on ppc)
+%bcond_without	static_libs	# don't build static libraries
+%bcond_without	tests		# don't perform "make check"
 #
 Summary:	Library of Optimized Inner Loops
 Summary(pl.UTF-8):	Biblioteka zoptymalizowanych wewnętrznych pętli
@@ -95,7 +96,8 @@
 %{__automake}
 
 %configure \
-	--with-html-dir=%{_gtkdocdir}
+	--with-html-dir=%{_gtkdocdir} \
+	%{!?with_static_libs:--disable-static}
 
 %{__make} -j1
 
@@ -133,9 +135,11 @@
 %{_gtkdocdir}/liboil
 %{_examplesdir}/%{name}-%{version}
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/liboil-*.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -143,6 +147,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.29  2007/08/20 19:31:12  witekfl
+- added bcond_without static_libs
+
 Revision 1.28  2007/06/12 06:37:42  arekm
 - up to 0.3.12
 

================================================================
Index: SPECS/libnjb.spec
diff -u SPECS/libnjb.spec:1.22 SPECS/libnjb.spec:1.23
--- SPECS/libnjb.spec:1.22	Tue Feb 13 07:46:51 2007
+++ SPECS/libnjb.spec	Mon Aug 20 21:31:12 2007
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	static_libs	# don't build static library
+#
 Summary:	API interface to talk to Zen Creative devices
 Summary(pl.UTF-8):	Interfejs API do komunikacji z urządzeniami Zen Creative
 Name:		libnjb
@@ -70,7 +74,8 @@
 %setup -q
 
 %build
-%configure
+%configure \
+	%{!?with_static_libs:--disable-static}
 %{__make} \
 	CC="%{__cc}" \
 	CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
@@ -104,9 +109,11 @@
 %{_includedir}/%{name}
 %{_pkgconfigdir}/*.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libnjb.a
+%endif
 
 %files utils
 %defattr(644,root,root,755)
@@ -118,6 +125,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.23  2007/08/20 19:31:12  witekfl
+- added bcond_without static_libs
+
 Revision 1.22  2007/02/13 06:46:51  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/bzip2.spec?r1=1.112&r2=1.113&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/libxml.spec?r1=1.88&r2=1.89&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/liboil.spec?r1=1.28&r2=1.29&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/libnjb.spec?r1=1.22&r2=1.23&f=u



More information about the pld-cvs-commit mailing list