SPECS: libcfg+.spec - added bcond_without static_libs

twittner twittner at pld-linux.org
Sat Jun 18 11:17:27 CEST 2005


Author: twittner                     Date: Sat Jun 18 09:17:27 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added bcond_without static_libs

---- Files affected:
SPECS:
   libcfg+.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/libcfg+.spec
diff -u SPECS/libcfg+.spec:1.2 SPECS/libcfg+.spec:1.3
--- SPECS/libcfg+.spec:1.2	Sat Apr 24 19:45:48 2004
+++ SPECS/libcfg+.spec	Sat Jun 18 11:17:22 2005
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	static_libs # don't build static libraries
+#
 Summary:	Command line and configuration file parsing library
 Summary(pl):	Biblioteka do analizy linii poleceń i plików konfiguracyjnych
 Name:		libcfg+
@@ -66,7 +70,9 @@
 %{__autoconf}
 %{__autoheader}
 CFLAGS="%{rpmcflags} -fPIC"
-%configure
+%configure \
+	%{!?with_static_libs:--enable-static=no}
+
 %{__make}
 
 %install
@@ -94,9 +100,11 @@
 %{_includedir}/cfg*.h
 %{_mandir}/man3/*
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -104,6 +112,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2005/06/18 09:17:22  twittner
+- added bcond_without static_libs
+
 Revision 1.2  2004/04/24 17:45:48  qboosh
 - use PIC, release 2
 
================================================================

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




More information about the pld-cvs-commit mailing list