SPECS: aalib.spec, libogg.spec, libgpg-error.spec -added bcond_wit...

witekfl witekfl at pld-linux.org
Sat Jul 21 21:03:30 CEST 2007


Author: witekfl                      Date: Sat Jul 21 19:03:30 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
-added bcond_without static_libs

---- Files affected:
SPECS:
   aalib.spec (1.79 -> 1.80) , libogg.spec (1.41 -> 1.42) , libgpg-error.spec (1.26 -> 1.27) 

---- Diffs:

================================================================
Index: SPECS/aalib.spec
diff -u SPECS/aalib.spec:1.79 SPECS/aalib.spec:1.80
--- SPECS/aalib.spec:1.79	Fri May  4 02:07:07 2007
+++ SPECS/aalib.spec	Sat Jul 21 21:03:24 2007
@@ -1,4 +1,7 @@
 # $Revision$, $Date$
+# Conditional build:
+%bcond_without	static_libs	# don't build static library
+#
 Summary:	An ASCII art GFX library
 Summary(fr.UTF-8):	Bibliothèque AA (Ascii Art)
 Summary(es.UTF-8):	Biblioteca ASCII art
@@ -147,7 +150,8 @@
 %{__aclocal}
 %{__autoconf}
 %{__automake}
-%configure
+%configure \
+	%{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -186,9 +190,11 @@
 %{_mandir}/man3/*
 %{_aclocaldir}/*.m4
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
 
 %files progs
 %defattr(644,root,root,755)
@@ -204,6 +210,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.80  2007/07/21 19:03:24  witekfl
+-added bcond_without static_libs
+
 Revision 1.79  2007/05/04 00:07:07  shadzik
 - URL
 

================================================================
Index: SPECS/libogg.spec
diff -u SPECS/libogg.spec:1.41 SPECS/libogg.spec:1.42
--- SPECS/libogg.spec:1.41	Tue Feb 13 07:46:51 2007
+++ SPECS/libogg.spec	Sat Jul 21 21:03:24 2007
@@ -1,4 +1,7 @@
 # $Revision$, $Date$
+# Conditional build:
+%bcond_without	static_libs	# don't build static library
+#
 Summary:	Ogg Bitstream Library
 Summary(pl.UTF-8):	Biblioteka obsługi strumieni bitowych Ogg
 Summary(pt_BR.UTF-8):	Biblioteca libogg
@@ -77,7 +80,8 @@
 %{__aclocal}
 %{__autoconf}
 %{__automake}
-%configure
+%configure \
+	%{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -109,9 +113,11 @@
 %{_aclocaldir}/ogg.m4
 %{_pkgconfigdir}/ogg.pc
 
+%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
@@ -119,6 +125,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.42  2007/07/21 19:03:24  witekfl
+-added bcond_without static_libs
+
 Revision 1.41  2007/02/13 06:46:51  glen
 - tabs in preamble
 

================================================================
Index: SPECS/libgpg-error.spec
diff -u SPECS/libgpg-error.spec:1.26 SPECS/libgpg-error.spec:1.27
--- SPECS/libgpg-error.spec:1.26	Tue Feb 13 13:35:59 2007
+++ SPECS/libgpg-error.spec	Sat Jul 21 21:03:24 2007
@@ -1,5 +1,8 @@
 # $Revision$, $Date$
 # TODO: package lisp files?
+# Conditional build:
+%bcond_without	static_libs	# don't build static library
+#
 Summary:	Library libgpg-error
 Summary(pl.UTF-8):	Biblioteka libgpg-error
 Name:		libgpg-error
@@ -83,8 +86,8 @@
 %{__aclocal}
 %{__autoconf}
 %{__automake}
-%configure
-
+%configure \
+	%{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -120,9 +123,11 @@
 %{_includedir}/*.h
 %{_aclocaldir}/*.m4
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libgpg-error.a
+%endif
 
 #%files... lisp or -n lisp-%{name} ???
 #%defattr(644,root,root,755)
@@ -134,6 +139,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.27  2007/07/21 19:03:24  witekfl
+-added bcond_without static_libs
+
 Revision 1.26  2007/02/13 12:35:59  tommat
 - added gpg-error-config patch to get rid of -L passing to linker
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/aalib.spec?r1=1.79&r2=1.80&f=u
    http://cvs.pld-linux.org/SPECS/libogg.spec?r1=1.41&r2=1.42&f=u
    http://cvs.pld-linux.org/SPECS/libgpg-error.spec?r1=1.26&r2=1.27&f=u



More information about the pld-cvs-commit mailing list