SPECS: libapreq2.spec - added bcond_without static

witekfl witekfl at pld-linux.org
Tue Jun 14 21:44:58 CEST 2005


Author: witekfl                      Date: Tue Jun 14 19:44:58 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added bcond_without static

---- Files affected:
SPECS:
   libapreq2.spec (1.17 -> 1.18) 

---- Diffs:

================================================================
Index: SPECS/libapreq2.spec
diff -u SPECS/libapreq2.spec:1.17 SPECS/libapreq2.spec:1.18
--- SPECS/libapreq2.spec:1.17	Tue May 31 20:17:22 2005
+++ SPECS/libapreq2.spec	Tue Jun 14 21:44:53 2005
@@ -1,4 +1,5 @@
 # $Revision$, $Date$
+%bcond_without	static	# don't build static library
 %include	/usr/lib/rpm/macros.perl
 %define	apxs	/usr/sbin/apxs
 Summary:	Apache Request Library
@@ -87,7 +88,8 @@
 %{__automake}
 %configure \
 	--enable-perl-glue \
-	--with-apache2-apxs=%{apxs}
+	--with-apache2-apxs=%{apxs} \
+	%{!?with_static:--disable-static}
 
 %{__make}
 
@@ -127,9 +129,11 @@
 #%{_mandir}/man3/libapreq.3*
 #%{_examplesdir}/%{name}-%{version}
 
+%if %{with static}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/*.a
+%endif
 
 %files -n perl-%{name}
 %defattr(644,root,root,755)
@@ -151,6 +155,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.18  2005/06/14 19:44:53  witekfl
+- added bcond_without static
+
 Revision 1.17  2005/05/31 18:17:22  migo
 - up to 2.05. Probably some work still needed
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/libapreq2.spec?r1=1.17&r2=1.18&f=u




More information about the pld-cvs-commit mailing list