From ce44d171b1b8dac5f37f7f80846b0f3d6b1d46769300ddd30c4da538aa82de16 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 2 Sep 2011 10:34:59 +0000 Subject: [PATCH] Separate package for libxtables7 OBS-URL: https://build.opensuse.org/package/show/security:netfilter/iptables?expand=0&rev=31 --- iptables.changes | 2 ++ iptables.spec | 19 ++++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/iptables.changes b/iptables.changes index 4ee6d73..63f4515 100644 --- a/iptables.changes +++ b/iptables.changes @@ -4,6 +4,8 @@ Thu Sep 1 17:09:05 UTC 2011 - jengelh@medozas.de - Update to new upstream release 1.4.12.1 * regression fixes for the new (stricter) command-line parser - restore --includedir= in spec file +- Put libxtables into its own subpackage so that one does not need + a lockstep update of iproute2 on a new iptables package ------------------------------------------------------------------- Sat Aug 13 01:39:38 CEST 2011 - draht@suse.de diff --git a/iptables.spec b/iptables.spec index d6e24ca..e8b8075 100644 --- a/iptables.spec +++ b/iptables.spec @@ -23,6 +23,7 @@ License: GPLv2+ Group: Productivity/Networking/Security Version: 1.4.12.1 Release: 1 +%define xt_sover 7 Summary: IP Packet Filter Administration #DL-URL: ftp://ftp.netfilter.org/pub/iptables/ @@ -59,6 +60,14 @@ These libraries are needed to compile - additional third-party extensions - programs using libipq +%package -n libxtables%xt_sover +Summary: Library for functions shared between iptables +Group: System/Libraries + +%description -n libxtables%xt_sover +This package contains shared functions exposed for integration with +iproute2's m_xt. + %prep %if 0%{?__xz:1} %setup -q @@ -93,6 +102,10 @@ find "%buildroot" -iname "*.la" -delete %postun -p /sbin/ldconfig +%post -n libxtables%xt_sover -p /sbin/ldconfig + +%postun -n libxtables%xt_sover -p /sbin/ldconfig + %files %defattr(-,root,root) %doc COPYING INCOMPATIBILITIES @@ -104,7 +117,7 @@ find "%buildroot" -iname "*.la" -delete %_sbindir/xtables* %_sbindir/nfnl_osf %_libdir/xtables -%_libdir/*.so.* +%_libdir/libip*.so.* %_datadir/xtables %files devel @@ -114,4 +127,8 @@ find "%buildroot" -iname "*.la" -delete %_libdir/*.so %_libdir/pkgconfig/*.pc +%files -n libxtables%xt_sover +%defattr(-,root,root) +%_libdir/libxtables.so.* + %changelog