SHA256
1
0
forked from pool/iptables

- Update to new snapshot v1.4.21-367-g9763347 [1.6.0~]

OBS-URL: https://build.opensuse.org/package/show/security:netfilter/iptables?expand=0&rev=87
This commit is contained in:
2015-11-23 12:07:42 +00:00
committed by Git OBS Bridge
parent c71e4496a7
commit 4f18a580d5
6 changed files with 95 additions and 68 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package iptables
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,10 +17,7 @@
Name: iptables
%define lname_ipq libipq0
%define lname_iptc libiptc0
%define lname_xt libxtables10
Version: 1.4.21
Version: 1.6.0~
Release: 0
Summary: IP Packet Filter Administration utilities
License: GPL-2.0 and Artistic-2.0
@@ -30,8 +27,9 @@ Url: http://netfilter.org/projects/iptables/
#Git-Web: http://git.netfilter.org/
#Git-Clone: git://git.netfilter.org/iptables
#DL-URL: http://netfilter.org/projects/iptables/files/
Source: http://netfilter.org/projects/iptables/files/%name-%version.tar.bz2
Source2: http://netfilter.org/projects/iptables/files/%name-%version.tar.bz2.sig
#Source: http://netfilter.org/projects/iptables/files/%name-%version.tar.bz2
#Source2: http://netfilter.org/projects/iptables/files/%name-%version.tar.bz2.sig
Source: iptables-1.4.21.g367.9763347.tar.xz
Source3: %name.keyring
Patch3: iptables-batch.patch
Patch4: iptables-apply-mktemp-fix.patch
@@ -40,26 +38,37 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?fedora_version} || 0%{?centos_version}
BuildRequires: sgml-common
%endif
#git#BuildRequires: autoconf, automake >= 1.10
BuildRequires: libtool
BuildRequires: pkgconfig >= 0.21
%if 0%{?suse_version}
BuildRequires: fdupes
%endif
%if 0%{?suse_version} >= 1140 || 0%{?fedora_version}
#git#BuildRequires: autoconf, automake >= 1.10
BuildRequires: bison
BuildRequires: flex >= 2.5.33
BuildRequires: libtool
BuildRequires: pkg-config >= 0.21
BuildRequires: xz
BuildRequires: pkgconfig(libmnl) >= 1.0
BuildRequires: pkgconfig(libnetfilter_conntrack) >= 1.0.4
BuildRequires: pkgconfig(libnfnetlink) >= 1.0.0
%endif
%if (0%{?suse_version} && 0%{?suse_version} <= 1110) || 0%{?centos_version} || 0%{?redhat_version}
BuildRequires: libnetfilter_conntrack-devel >= 1.0.4
BuildRequires: libnfnetlink-devel >= 1.0.0
%endif
Requires: xtables-plugins = %version
BuildRequires: pkgconfig(libnftnl) >= 1.0.5
Requires: xtables-plugins = %version-%release
%description
iptables is used to set up, maintain, and inspect the tables of IP
packet filter rules in the Linux kernel. This version requires kernel
3.0 or newer.
iptables is used to set up, maintain, and inspect the rule tables of
the classic "ip6_tables" and "ip_tables" packet filters in the Linux
kernel.
%package nft
Summary: NFT Packet Filter Administration utilties in the style of Xtables
Group: Productivity/Networking/Security
Requires: xtables-plugins = %version-%release
Conflicts: ebtables
%description nft
The programs shipped in this subpackage behave like iptables on the
command line, but instead edit the rules of the NFT packet filter in
the Linux kernel. Linux kernel 4.2 or newer is recommended to exploit
all features.
%package -n xtables-plugins
Summary: Match and Target Extension plugins for iptables
@@ -69,11 +78,11 @@ Conflicts: iptables < 1.4.18
%description -n xtables-plugins
Match and Target Extension plugins for iptables.
%package -n %lname_ipq
%package -n libipq0
Summary: Library to interface with the (old) ip_queue kernel mechanism
Group: System/Libraries
%description -n %lname_ipq
%description -n libipq0
The Netfilter project provides a mechanism (ip_queue) for passing
packets out of the stack for queueing to userspace, then receiving
these packets back into the kernel with a verdict specifying what to
@@ -85,7 +94,7 @@ ip_queue/libipq is obsoleted by nf_queue/libnetfilter_queue!
%package -n libipq-devel
Summary: Development files for the ip_queue kernel mechanism
Group: Development/Libraries/C and C++
Requires: %lname_ipq = %version
Requires: libipq0 = %version
%description -n libipq-devel
The Netfilter project provides a mechanism (ip_queue) for passing
@@ -96,28 +105,28 @@ be modified in userspace prior to reinjection back into the kernel.
ip_queue/libipq is obsoleted by nf_queue/libnetfilter_queue!
%package -n %lname_iptc
%package -n libiptc0
Summary: Library for low-level ruleset generation and parsing
Group: System/Libraries
%description -n %lname_iptc
%description -n libiptc0
libiptc ("iptables cache") is used to retrieve from the kernel, parse,
construct, and load new rulesets into the kernel.
%package -n libiptc-devel
Summary: Development files for libiptc, a packet filter ruleset library
Group: Development/Libraries/C and C++
Requires: %lname_iptc = %version
Requires: libiptc0 = %version
%description -n libiptc-devel
libiptc ("iptables cache") is used to retrieve from the kernel, parse,
construct, and load new rulesets into the kernel.
%package -n %lname_xt
%package -n libxtables11
Summary: iptables extension interface
Group: System/Libraries
%description -n %lname_xt
%description -n libxtables11
This library contains all the iptables code shared between iptables,
ip6tables, their extensions, and for external integration for e.g.
iproute2's m_xt.
@@ -125,7 +134,7 @@ iproute2's m_xt.
%package -n libxtables-devel
Summary: Libraries, Headers and Development Man Pages for iptables
Group: Development/Libraries/C and C++
Requires: %lname_xt = %version
Requires: libxtables11 = %version
%description -n libxtables-devel
This library contains all the iptables code shared between iptables,
@@ -136,7 +145,7 @@ Link your extension (iptables plugins) with $(pkg-config xtables
xtables --variable=xtlibdir).
%prep
%setup -q
%setup -qn iptables
%patch -P 3 -P 4 -p1
%build
@@ -148,7 +157,7 @@ fi
rm -f extensions/libipt_unclean.man
# includedir is overriden on purpose to detect projects that
# fail to include libxtables_CFLAGS
%configure --includedir="%_includedir/pkg/%name" --enable-libipq
%configure --includedir="%_includedir/%name" --enable-libipq
make %{?_smp_mflags}
%install
@@ -161,12 +170,12 @@ rm -f "%buildroot/%_libdir"/*.la;
%fdupes %buildroot/%_prefix
%endif
%post -n %lname_ipq -p /sbin/ldconfig
%postun -n %lname_ipq -p /sbin/ldconfig
%post -n %lname_iptc -p /sbin/ldconfig
%postun -n %lname_iptc -p /sbin/ldconfig
%post -n %lname_xt -p /sbin/ldconfig
%postun -n %lname_xt -p /sbin/ldconfig
%post -n libipq0 -p /sbin/ldconfig
%postun -n libipq0 -p /sbin/ldconfig
%post -n libiptc0 -p /sbin/ldconfig
%postun -n libiptc0 -p /sbin/ldconfig
%post -n libxtables11 -p /sbin/ldconfig
%postun -n libxtables11 -p /sbin/ldconfig
%files
%defattr(-,root,root)
@@ -185,13 +194,18 @@ rm -f "%buildroot/%_libdir"/*.la;
%_sbindir/ip6tables-save
%_sbindir/xtables-multi
%files nft
%defattr(-,root,root)
%_sysconfdir/ethertypes
%_sbindir/*-compat*
%files -n xtables-plugins
%defattr(-,root,root)
%_libdir/xtables/
%_sbindir/nfnl_osf
%_datadir/xtables/
%files -n %lname_ipq
%files -n libipq0
%defattr(-,root,root)
%_libdir/libipq.so.0*
@@ -199,12 +213,12 @@ rm -f "%buildroot/%_libdir"/*.la;
%defattr(-,root,root)
%doc %_mandir/man3/libipq*
%doc %_mandir/man3/ipq*
%dir %_includedir/pkg/%name/
%_includedir/pkg/%name/libipq*
%dir %_includedir/%name/
%_includedir/%name/libipq*
%_libdir/libipq.so
%_libdir/pkgconfig/libipq.pc
%files -n %lname_iptc
%files -n libiptc0
%defattr(-,root,root)
%_libdir/libiptc.so.0*
%_libdir/libip4tc.so.0*
@@ -212,22 +226,20 @@ rm -f "%buildroot/%_libdir"/*.la;
%files -n libiptc-devel
%defattr(-,root,root)
%dir %_includedir/pkg/
%dir %_includedir/pkg/%name/
%_includedir/pkg/%name/libiptc*
%dir %_includedir/%name/
%_includedir/%name/libiptc*
%_libdir/libip*tc.so
%_libdir/pkgconfig/libip*tc.pc
%files -n %lname_xt
%files -n libxtables11
%defattr(-,root,root)
%_libdir/libxtables.so.10*
%_libdir/libxtables.so.11*
%files -n libxtables-devel
%defattr(-,root,root)
%dir %_includedir/pkg/
%dir %_includedir/pkg/%name/
%_includedir/pkg/%name/xtables.h
%_includedir/pkg/%name/xtables-version.h
%dir %_includedir/%name/
%_includedir/%name/xtables.h
%_includedir/%name/xtables-version.h
%_libdir/libxtables.so
%_libdir/pkgconfig/xtables.pc