2007-01-04 01:56:28 +01:00
|
|
|
#
|
2011-05-31 13:02:21 +02:00
|
|
|
# spec file for package iptables
|
2007-01-04 01:56:28 +01:00
|
|
|
#
|
2011-05-31 13:02:21 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-04 01:56:28 +01:00
|
|
|
#
|
2008-09-13 02:35:11 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-04 01:56:28 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-09-13 02:35:11 +02:00
|
|
|
|
2007-01-04 01:56:28 +01:00
|
|
|
Name: iptables
|
2009-12-26 12:14:57 +01:00
|
|
|
License: GPLv2+
|
2007-01-04 01:56:28 +01:00
|
|
|
Group: Productivity/Networking/Security
|
2011-07-22 15:17:36 +02:00
|
|
|
Version: 1.4.12
|
2010-08-04 12:01:15 +02:00
|
|
|
Release: 1
|
2007-01-04 01:56:28 +01:00
|
|
|
Summary: IP Packet Filter Administration
|
2010-03-07 10:56:32 +01:00
|
|
|
|
2011-07-22 15:17:36 +02:00
|
|
|
#DL-URL: ftp://ftp.netfilter.org/pub/iptables/
|
2010-03-07 10:56:32 +01:00
|
|
|
#Git-Web: http://git.netfilter.org/
|
|
|
|
#Git-Clone: git://git.netfilter.org/iptables
|
2011-05-31 13:02:21 +02:00
|
|
|
Source: %name-%version.tar.xz
|
2011-05-30 01:59:50 +02:00
|
|
|
Patch1: iptables-batch.patch
|
2011-07-26 08:58:08 +02:00
|
|
|
Url: http://netfilter.org/
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-08-01 20:28:45 +02:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: sgmltool
|
|
|
|
%endif
|
|
|
|
%if 0%{?fedora_version}
|
|
|
|
BuildRequires: sgml-common
|
|
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig, xz
|
2007-01-04 01:56:28 +01:00
|
|
|
|
|
|
|
%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
|
|
|
|
2.4.0 or newer.
|
|
|
|
|
|
|
|
%package devel
|
2009-12-26 12:14:57 +01:00
|
|
|
License: GPLv2+
|
|
|
|
Summary: Libraries, Headers and Development Man Pages for iptables
|
2007-01-04 01:56:28 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2011-05-31 13:02:21 +02:00
|
|
|
AutoReqProv: on
|
2011-05-30 02:02:46 +02:00
|
|
|
Requires: %name = %version
|
2007-01-04 01:56:28 +01:00
|
|
|
|
|
|
|
%description devel
|
2011-05-30 01:59:50 +02:00
|
|
|
These libraries are needed to compile
|
|
|
|
- additional third-party extensions
|
|
|
|
- programs using libipq
|
2007-01-04 01:56:28 +01:00
|
|
|
|
|
|
|
%prep
|
2011-07-22 15:17:36 +02:00
|
|
|
%setup -q
|
2011-06-08 13:07:59 +02:00
|
|
|
%patch -P 1 -p1
|
2007-01-04 01:56:28 +01:00
|
|
|
|
|
|
|
%build
|
2010-02-23 01:18:57 +01:00
|
|
|
if [ ! -e configure ]; then
|
|
|
|
./autogen.sh;
|
|
|
|
fi
|
2010-01-03 12:32:20 +01:00
|
|
|
# bnc#561793 - do not include unclean module in iptables manpage
|
2010-10-29 19:58:43 +02:00
|
|
|
rm -f extensions/libipt_unclean.man
|
2008-09-13 02:35:11 +02:00
|
|
|
%configure \
|
2010-03-07 10:56:32 +01:00
|
|
|
--enable-libipq
|
2010-02-23 01:18:57 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-04 01:56:28 +01:00
|
|
|
|
|
|
|
%install
|
2011-05-30 02:02:46 +02:00
|
|
|
make DESTDIR=%buildroot install
|
2009-06-18 01:36:03 +02:00
|
|
|
# iptables-apply is not installed by upstream Makefile
|
2011-06-08 13:07:59 +02:00
|
|
|
install -m0755 iptables/iptables-apply %buildroot%_sbindir/
|
|
|
|
install -m0644 iptables/iptables-apply.8 %buildroot%_mandir/man8/
|
2011-05-30 02:02:46 +02:00
|
|
|
find "%buildroot" -iname "*.la" -delete
|
2007-01-04 01:56:28 +01:00
|
|
|
|
2009-01-19 02:02:09 +01:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
2007-01-04 01:56:28 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2009-11-16 14:26:24 +01:00
|
|
|
%doc COPYING INCOMPATIBILITIES
|
2011-06-08 13:07:59 +02:00
|
|
|
%doc %_mandir/man1/*
|
2011-05-30 02:02:46 +02:00
|
|
|
%doc %_mandir/man8/*
|
|
|
|
%_bindir/iptables*
|
|
|
|
%_sbindir/iptables*
|
|
|
|
%_sbindir/ip6tables*
|
|
|
|
%_sbindir/xtables*
|
2011-07-22 15:17:36 +02:00
|
|
|
%_libdir/xtables
|
2011-05-30 02:02:46 +02:00
|
|
|
%_libdir/*.so.*
|
2007-01-04 01:56:28 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2011-05-30 02:02:46 +02:00
|
|
|
%doc %_mandir/man3/*
|
|
|
|
%_includedir/*
|
|
|
|
%_libdir/*.so
|
|
|
|
%_libdir/pkgconfig/xtables.pc
|
|
|
|
%_libdir/pkgconfig/libiptc.pc
|
2007-01-04 01:56:28 +01:00
|
|
|
|
2007-03-15 01:40:35 +01:00
|
|
|
%changelog
|