SPECS: libshout.spec - added bcond_without static_libs

witekfl witekfl at pld-linux.org
Tue Aug 28 19:55:56 CEST 2007


Author: witekfl                      Date: Tue Aug 28 17:55:56 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added bcond_without static_libs

---- Files affected:
SPECS:
   libshout.spec (1.26 -> 1.27) 

---- Diffs:

================================================================
Index: SPECS/libshout.spec
diff -u SPECS/libshout.spec:1.26 SPECS/libshout.spec:1.27
--- SPECS/libshout.spec:1.26	Tue Feb 13 07:46:52 2007
+++ SPECS/libshout.spec	Tue Aug 28 19:55:51 2007
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	static_libs	# don't build static libraries
+#
 Summary:	libshout - icecast source streaming library
 Summary(pl.UTF-8):	Biblioteka źródeł strumieni icecast
 Name:		libshout
@@ -71,7 +75,8 @@
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+	%{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -104,9 +109,11 @@
 %{_aclocaldir}/shout.m4
 %{_examplesdir}/%{name}-%{version}
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
- %{_libdir}/lib*.a
+%{_libdir}/lib*.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -114,6 +121,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.27  2007/08/28 17:55:51  witekfl
+- added bcond_without static_libs
+
 Revision 1.26  2007/02/13 06:46:52  glen
 - tabs in preamble
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/libshout.spec?r1=1.26&r2=1.27&f=u



More information about the pld-cvs-commit mailing list