packages: libnetdude/libnetdude.spec, libpcapnav/libpcapnav.spec - added wi...

lisu lisu at pld-linux.org
Tue Sep 15 16:45:33 CEST 2009


Author: lisu                         Date: Tue Sep 15 14:45:33 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- added without static_libs bcond

---- Files affected:
packages/libnetdude:
   libnetdude.spec (1.3 -> 1.4) 
packages/libpcapnav:
   libpcapnav.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: packages/libnetdude/libnetdude.spec
diff -u packages/libnetdude/libnetdude.spec:1.3 packages/libnetdude/libnetdude.spec:1.4
--- packages/libnetdude/libnetdude.spec:1.3	Tue Sep 15 16:21:40 2009
+++ packages/libnetdude/libnetdude.spec	Tue Sep 15 16:45:28 2009
@@ -2,6 +2,9 @@
 #
 # TODO: pl desc
 #
+# Conditional build
+%bcond_without	static_libs	# don't build static library
+#
 Summary:	Packet manipulation backend of the Netdude trace file editing framework
 #Summary(p7l.UTF-8):
 Name:		libnetdude
@@ -74,7 +77,8 @@
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+	%{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -108,10 +112,12 @@
 %{_libdir}/%{name}/*/libnd*.la
 %{_includedir}/%{name}
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libnetdude.a
 %{_libdir}/%{name}/*/libnd*.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -119,6 +125,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2009/09/15 14:45:28  lisu
+- added without static_libs bcond
+
 Revision 1.3  2009/09/15 14:21:40  lisu
 - removed version numbers from paths
 - rel 1

================================================================
Index: packages/libpcapnav/libpcapnav.spec
diff -u packages/libpcapnav/libpcapnav.spec:1.5 packages/libpcapnav/libpcapnav.spec:1.6
--- packages/libpcapnav/libpcapnav.spec:1.5	Tue Sep 15 15:01:54 2009
+++ packages/libpcapnav/libpcapnav.spec	Tue Sep 15 16:45:28 2009
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build
+%bcond_without	static_libs	# don't build static library
+#
 Summary:	A libpcap wrapper library
 Summary(pl.UTF-8):	Wrapper dla biblioteki libpcap
 Name:		libpcapnav
@@ -72,7 +76,8 @@
 %{__automake}
 %configure \
 	--enable-gtk-doc \
-	--with-html-dir="%{_gtkdocdir}"
+	--with-html-dir="%{_gtkdocdir}" \
+	%{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
@@ -101,9 +106,11 @@
 %{_libdir}/libpcapnav.la
 %{_includedir}/pcapnav.h
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libpcapnav.a
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -111,6 +118,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2009/09/15 14:45:28  lisu
+- added without static_libs bcond
+
 Revision 1.5  2009/09/15 13:01:54  lisu
 - BR: gtk+-devel for gtk docs
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/libnetdude/libnetdude.spec?r1=1.3&r2=1.4&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/libpcapnav/libpcapnav.spec?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list