SPECS: iptables.spec - builds but batch needs update; add libs and static s...

arekm arekm at pld-linux.org
Wed Mar 25 10:47:28 CET 2009


Author: arekm                        Date: Wed Mar 25 09:47:28 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- builds but batch needs update; add libs and static subpackages

---- Files affected:
SPECS:
   iptables.spec (1.261 -> 1.262) 

---- Diffs:

================================================================
Index: SPECS/iptables.spec
diff -u SPECS/iptables.spec:1.261 SPECS/iptables.spec:1.262
--- SPECS/iptables.spec:1.261	Mon Mar 23 22:08:23 2009
+++ SPECS/iptables.spec	Wed Mar 25 10:47:23 2009
@@ -11,6 +11,7 @@
 %bcond_without	doc		# without documentation (HOWTOS) which needed TeX
 %bcond_without	dist_kernel	# without distribution kernel
 %bcond_without  vserver         # kernel build without vserver
+%bcond_with	batch
 #
 %define		netfilter_snap		20070806
 %define		llh_version		7:2.6.22.1
@@ -103,10 +104,22 @@
 дозволяють вам встановлювати міжмережеві екрани (firewalls) та IP
 маскарадинг, тощо.
 
+%package libs
+Summary:	iptables libraries
+Summary(pl.UTF-8):	Biblioteki iptables
+Group:		Development/Libraries
+
+%description libs
+iptables libraries.
+
+%description libs -l pl.UTF-8
+Biblioteki iptables.
+
 %package devel
 Summary:	Libraries and headers for developing iptables extensions
 Summary(pl.UTF-8):	Biblioteki i nagłówki do tworzenia rozszerzeń iptables
 Group:		Development/Libraries
+Requires:	%{name}-libs = %{epoch}:%{version}-%{release}
 Obsoletes:	iptables24-devel
 
 %description devel
@@ -116,6 +129,18 @@
 Biblioteki i pliki nagłówkowe niezbędne do tworzenia rozszerzeń dla
 iptables.
 
+%package static
+Summary:	Static iptables libraries
+Summary(pl.UTF-8):	Biblioteki statyczne iptables
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{epoch}:%{version}-%{release}
+
+%description static
+Static iptables libraries.
+
+%description devel -l pl.UTF-8
+Biblioteki statyczne iptables.
+
 %package init
 Summary:	Iptables init (RedHat style)
 Summary(pl.UTF-8):	Iptables init (w stylu RedHata)
@@ -151,7 +176,9 @@
 #patch8 -p1
 %patch11 -p1
 %endif
+%if %{with batch}
 %patch9 -p1
+%endif
 #%patch10 -p1
 
 #patch999 -p1
@@ -205,6 +232,9 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
+
 %post init
 /sbin/chkconfig --add %{name}
 /sbin/chkconfig --add %{name6}
@@ -220,15 +250,17 @@
 %{?with_doc:%doc iptables-howtos/{NAT,networking-concepts,packet-filtering}-HOWTO*}
 %attr(755,root,root) %{_bindir}/iptables-xml
 %attr(755,root,root) %{_sbindir}/iptables
-%attr(755,root,root) %{_sbindir}/iptables-batch
 %attr(755,root,root) %{_sbindir}/iptables-multi
 %attr(755,root,root) %{_sbindir}/iptables-restore
 %attr(755,root,root) %{_sbindir}/iptables-save
 %attr(755,root,root) %{_sbindir}/ip6tables
-%attr(755,root,root) %{_sbindir}/ip6tables-batch
 %attr(755,root,root) %{_sbindir}/ip6tables-multi
 %attr(755,root,root) %{_sbindir}/ip6tables-restore
 %attr(755,root,root) %{_sbindir}/ip6tables-save
+%if %{with batch}
+%attr(755,root,root) %{_sbindir}/iptables-batch
+%attr(755,root,root) %{_sbindir}/ip6tables-batch
+%endif
 %dir %{_libdir}/xtables
 %if %{with dist_kernel}
 %attr(755,root,root) %{_libdir}/xtables/libip6t_ah.so
@@ -333,15 +365,27 @@
 %endif
 %{_mandir}/man8/*
 
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %ghost %attr(755,root,root) %{_libdir}/libiptc.so.0
+%attr(755,root,root) %{_libdir}/libiptc.so.*.*
+%attr(755,root,root) %ghost %attr(755,root,root) %{_libdir}/libxtables.so.1
+%attr(755,root,root) %{_libdir}/libxtables.so.*.*
+
 %files devel
 %defattr(644,root,root,755)
 %{?with_doc:%doc iptables-howtos/netfilter-hacking-HOWTO*}
-%{_libdir}/lib*.a
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_libdir}/lib*.la
 %{_includedir}/*.h
-%dir %{_includedir}/libiptc
-%{_includedir}/libiptc/*.h
+%{_includedir}/libiptc
+%{_pkgconfigdir}/*.pc
 %{_mandir}/man3/*
 
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
+
 %files init
 %defattr(644,root,root,755)
 %attr(754,root,root) /etc/rc.d/init.d/iptables
@@ -353,6 +397,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.262  2009/03/25 09:47:23  arekm
+- builds but batch needs update; add libs and static subpackages
+
 Revision 1.261  2009/03/23 21:08:23  areq
 - start update to 1.4.3
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/iptables.spec?r1=1.261&r2=1.262&f=u



More information about the pld-cvs-commit mailing list