SPECS: socket++.spec - added bcond_without static_libs - don't bui...

twittner twittner at pld-linux.org
Thu Jun 23 17:36:48 CEST 2005


Author: twittner                     Date: Thu Jun 23 15:36:48 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added bcond_without static_libs - don't build static library

---- Files affected:
SPECS:
   socket++.spec (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: SPECS/socket++.spec
diff -u SPECS/socket++.spec:1.12 SPECS/socket++.spec:1.13
--- SPECS/socket++.spec:1.12	Sun Feb 20 23:20:07 2005
+++ SPECS/socket++.spec	Thu Jun 23 17:36:42 2005
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	static_libs # don't build static libraries
+#
 Summary:	A C++ interface for sockets
 Summary(pl):	Interfejs C++ do gniazd
 Name:		socket++
@@ -85,7 +89,8 @@
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+	%{!?with_static_libs:--enable-static=no}
 %{__make}
 
 %install
@@ -117,9 +122,11 @@
 %{_libdir}/lib*.la
 %{_includedir}/%{name}
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
 
 %files doc-info
 %defattr(644,root,root,755)
@@ -131,6 +138,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.13  2005/06/23 15:36:42  twittner
+- added bcond_without static_libs - don't build static library
+
 Revision 1.12  2005/02/20 22:20:07  ankry
 - formatting
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/socket++.spec?r1=1.12&r2=1.13&f=u




More information about the pld-cvs-commit mailing list