SPECS: libspectrum.spec - added bcond_without static_libs

witekfl witekfl at pld-linux.org
Sat Jul 21 17:26:24 CEST 2007


Author: witekfl                      Date: Sat Jul 21 15:26:24 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added bcond_without static_libs

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

---- Diffs:

================================================================
Index: SPECS/libspectrum.spec
diff -u SPECS/libspectrum.spec:1.17 SPECS/libspectrum.spec:1.18
--- SPECS/libspectrum.spec:1.17	Wed May 16 23:58:59 2007
+++ SPECS/libspectrum.spec	Sat Jul 21 17:26:19 2007
@@ -1,4 +1,7 @@
 # $Revision$, $Date$
+# Conditional build:
+%bcond_without	static_libs	# don't build static library
+#
 Summary:	ZX Spectrum emulator file format library
 Summary(pl.UTF-8):	Biblioteka do obsługi formatów plików emulatorów ZX Spectrum
 Name:		libspectrum
@@ -71,7 +74,8 @@
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+	%{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -99,9 +103,11 @@
 %{_includedir}/libspectrum.h
 %{_mandir}/man3/libspectrum.3*
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libspectrum.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -109,6 +115,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.18  2007/07/21 15:26:19  witekfl
+- added bcond_without static_libs
+
 Revision 1.17  2007/05/16 21:58:59  qboosh
 - updated to 0.3.0.1 (crash fix)
 
================================================================

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



More information about the pld-cvs-commit mailing list