SPECS: libgdamm.spec - added bcond_without static_libs

twittner twittner at pld-linux.org
Sat Jul 9 21:58:31 CEST 2005


Author: twittner                     Date: Sat Jul  9 19:58:31 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added bcond_without static_libs

---- Files affected:
SPECS:
   libgdamm.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: SPECS/libgdamm.spec
diff -u SPECS/libgdamm.spec:1.7 SPECS/libgdamm.spec:1.8
--- SPECS/libgdamm.spec:1.7	Sun Apr 24 11:52:20 2005
+++ SPECS/libgdamm.spec	Sat Jul  9 21:58:26 2005
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	static_libs # don't build static library
+#
 Summary:	C++ wrappers for libgda
 Summary(pl):	Interfejsy C++ dla libgda
 Name:		libgdamm
@@ -50,7 +54,7 @@
 
 %build
 %configure \
-	--enable-static
+	%{?with_static_libs:--enable-static=no}
 
 %{__make}
 
@@ -79,9 +83,11 @@
 %{_includedir}/*
 %{_pkgconfigdir}/*.pc
 
+%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
@@ -89,6 +95,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2005/07/09 19:58:26  twittner
+- added bcond_without static_libs
+
 Revision 1.7  2005/04/24 09:52:20  freetz
 - 1.3.6, gpm friendly url
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/libgdamm.spec?r1=1.7&r2=1.8&f=u




More information about the pld-cvs-commit mailing list