SPECS: pxlib.spec - added bcond_without static_libs

twittner twittner at pld-linux.org
Thu Nov 3 19:02:30 CET 2005


Author: twittner                     Date: Thu Nov  3 18:02:30 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added bcond_without static_libs

---- Files affected:
SPECS:
   pxlib.spec (1.9 -> 1.10) 

---- Diffs:

================================================================
Index: SPECS/pxlib.spec
diff -u SPECS/pxlib.spec:1.9 SPECS/pxlib.spec:1.10
--- SPECS/pxlib.spec:1.9	Sat Oct 22 14:45:57 2005
+++ SPECS/pxlib.spec	Thu Nov  3 19:02:25 2005
@@ -1,4 +1,7 @@
 # $Revision$, $Date$
+#
+%bcond_without	static_libs # don't build static libraries
+#
 Summary:	A library to read Paradox DB files
 Summary(pl):	Biblioteka do odczytu plików baz danych Paradox DB
 Name:		pxlib
@@ -66,7 +69,8 @@
 done
 CPPFLAGS="$(pkg-config glib-2.0 --cflags)"
 %configure \
-	--with-gsf
+	--with-gsf \
+	--enable-static=%{?with_static_libs:yes}%{!?with_static_libs:no}
 %{__make}
 
 %install
@@ -96,9 +100,11 @@
 %{_pkgconfigdir}/*.pc
 %{_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
@@ -106,6 +112,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.10  2005/11/03 18:02:25  twittner
+- added bcond_without static_libs
+
 Revision 1.9  2005/10/22 12:45:57  qboosh
 - BR: pkgconfig
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/pxlib.spec?r1=1.9&r2=1.10&f=u




More information about the pld-cvs-commit mailing list