2007-01-04 01:56:28 +01:00
|
|
|
#
|
2010-03-07 10:56:32 +01:00
|
|
|
# spec file for package iptables (Version 1.4.7)
|
2007-01-04 01:56:28 +01:00
|
|
|
#
|
2010-01-03 12:32:20 +01:00
|
|
|
# Copyright (c) 2010 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
|
2010-03-07 10:56:32 +01:00
|
|
|
Version: 1.4.7
|
2010-04-24 17:23:49 +02:00
|
|
|
Release: 2
|
2007-01-04 01:56:28 +01:00
|
|
|
Summary: IP Packet Filter Administration
|
2010-03-07 10:56:32 +01:00
|
|
|
|
|
|
|
#Git-Web: http://git.netfilter.org/
|
|
|
|
#Git-Clone: git://git.netfilter.org/iptables
|
|
|
|
Source: http://netfilter.org/projects/iptables/files/iptables-1.4.7.tar.bz2
|
2008-09-13 02:35:11 +02:00
|
|
|
Patch0: %{name}-batch.patch
|
2009-12-26 12:14:57 +01:00
|
|
|
Url: http://netfilter.org/
|
2007-01-04 01:56:28 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-04-24 17:23:49 +02:00
|
|
|
BuildRequires: pkg-config sgmltool
|
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++
|
2008-01-10 01:54:33 +01:00
|
|
|
AutoReqProv: on
|
2007-01-04 01:56:28 +01:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
These libraries are needed to compile programs against libipq.
|
|
|
|
|
|
|
|
%prep
|
2009-11-16 14:26:24 +01:00
|
|
|
%setup -q
|
2010-03-07 10:56:32 +01:00
|
|
|
%patch -P 0 -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
|
|
|
|
rm -rf 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
|
2008-09-13 02:35:11 +02:00
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
2009-06-18 01:36:03 +02:00
|
|
|
# iptables-apply is not installed by upstream Makefile
|
|
|
|
install -m0755 iptables-apply $RPM_BUILD_ROOT%{_sbindir}/
|
|
|
|
install -m0644 iptables-apply.8 $RPM_BUILD_ROOT%{_mandir}/man8/
|
2010-02-23 01:18:57 +01:00
|
|
|
find "$RPM_BUILD_ROOT" -iname "*.la" -delete
|
2007-01-04 01:56:28 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
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
|
2007-01-04 01:56:28 +01:00
|
|
|
%doc %{_mandir}/man8/*
|
2008-09-13 02:35:11 +02:00
|
|
|
%{_bindir}/iptables*
|
2008-01-10 01:54:33 +01:00
|
|
|
%{_sbindir}/iptables*
|
|
|
|
%{_sbindir}/ip6tables*
|
2010-03-07 10:56:32 +01:00
|
|
|
%dir %{_libexecdir}/xtables
|
|
|
|
%{_libexecdir}/xtables/*
|
2009-01-19 02:02:09 +01:00
|
|
|
%{_libdir}/*.so.*
|
2007-01-04 01:56:28 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{_mandir}/man3/*
|
2008-01-10 01:54:33 +01:00
|
|
|
%{_includedir}/*
|
2009-01-19 02:02:09 +01:00
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/xtables.pc
|
2009-04-24 02:24:04 +02:00
|
|
|
%{_libdir}/pkgconfig/libiptc.pc
|
2007-01-04 01:56:28 +01:00
|
|
|
|
2007-03-15 01:40:35 +01:00
|
|
|
%changelog
|