SPECS: libilbc.spec - static_libs bcond

charles charles at pld-linux.org
Mon Jul 10 17:57:29 CEST 2006


Author: charles                      Date: Mon Jul 10 15:57:29 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- static_libs bcond

---- Files affected:
SPECS:
   libilbc.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SPECS/libilbc.spec
diff -u SPECS/libilbc.spec:1.3 SPECS/libilbc.spec:1.4
--- SPECS/libilbc.spec:1.3	Fri May 26 13:09:17 2006
+++ SPECS/libilbc.spec	Mon Jul 10 17:57:24 2006
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	static_libs	# don't build static library
+#
 Summary:	iLBC Speech Coder
 Summary(pl):	Koder mowy iLBC
 Name:		libilbc
@@ -67,7 +71,8 @@
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+	%{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -93,9 +98,11 @@
 %{_libdir}/libilbc.la
 %{_includedir}/ilbc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libilbc.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -103,6 +110,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2006/07/10 15:57:24  charles
+- static_libs bcond
+
 Revision 1.3  2006/05/26 11:09:17  qboosh
 - separated devel,static
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/libilbc.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list