SPECS: libapreq.spec, libast.spec, libasyncns.spec - added bcond_w...

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


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

---- Files affected:
SPECS:
   libapreq.spec (1.21 -> 1.22) , libast.spec (1.30 -> 1.31) , libasyncns.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SPECS/libapreq.spec
diff -u SPECS/libapreq.spec:1.21 SPECS/libapreq.spec:1.22
--- SPECS/libapreq.spec:1.21	Tue Feb 13 07:46:50 2007
+++ SPECS/libapreq.spec	Mon Aug 20 15:34:36 2007
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	static_libs	# don't build static library
+#
 Summary:	Generic Apache Request Library
 Summary(pl.UTF-8):	Standardowa biblioteka zapytań Apache
 Summary(pt_BR.UTF-8):	Biblioteca de requisiçoes do Apache
@@ -65,7 +69,8 @@
 %{__autoconf}
 %{__automake}
 %configure \
-	--with-apache-includes=%{_includedir}/apache1
+	--with-apache-includes=%{_includedir}/apache1 \
+	%{!?with_static_libs:--disable-static}
 
 %{__make}
 
@@ -101,9 +106,11 @@
 %{_mandir}/man3/libapreq.3*
 %{_examplesdir}/%{name}-%{version}
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libapreq.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -111,6 +118,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.22  2007/08/20 13:34:36  witekfl
+- added bcond_without static_libs
+
 Revision 1.21  2007/02/13 06:46:50  glen
 - tabs in preamble
 

================================================================
Index: SPECS/libast.spec
diff -u SPECS/libast.spec:1.30 SPECS/libast.spec:1.31
--- SPECS/libast.spec:1.30	Tue Feb 13 07:46:50 2007
+++ SPECS/libast.spec	Mon Aug 20 15:34:36 2007
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	static_libs	# don't build static library
+#
 Summary:	Library of Assorted Spiffy Things
 Summary(pl.UTF-8):	Biblioteka AST (Assorted Spiffy Things)
 Name:		libast
@@ -59,7 +63,8 @@
 
 %build
 cp -f /usr/share/automake/config.sub .
-%configure
+%configure \
+	%{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -88,9 +93,11 @@
 %{_includedir}/libast*
 %{_aclocaldir}/libast.m4
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libast.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -98,6 +105,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.31  2007/08/20 13:34:36  witekfl
+- added bcond_without static_libs
+
 Revision 1.30  2007/02/13 06:46:50  glen
 - tabs in preamble
 

================================================================
Index: SPECS/libasyncns.spec
diff -u SPECS/libasyncns.spec:1.6 SPECS/libasyncns.spec:1.7
--- SPECS/libasyncns.spec:1.6	Sat Jun 30 22:39:54 2007
+++ SPECS/libasyncns.spec	Mon Aug 20 15:34:36 2007
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	static_libs	# don't build static library
+#
 Summary:	C library for executing name service queries asynchronously
 Summary(pl.UTF-8):	Biblioteka C do asynchronicznego wykonywania zapytań o nazwy
 Name:		libasyncns
@@ -72,7 +76,8 @@
 %{__automake}
 # no need to generate doc/README from doc/README.html, there is README anyway
 %configure \
-	--disable-lynx
+	--disable-lynx \
+	%{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -99,9 +104,11 @@
 %{_includedir}/asyncns.h
 %{_pkgconfigdir}/libasyncns.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libasyncns.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -109,6 +116,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2007/08/20 13:34:36  witekfl
+- added bcond_without static_libs
+
 Revision 1.6  2007/06/30 20:39:54  arekm
 - up to 0.3
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/libapreq.spec?r1=1.21&r2=1.22&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/libast.spec?r1=1.30&r2=1.31&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/libasyncns.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list