2007-01-04 01:56:28 +01:00
|
|
|
#
|
2009-06-17 15:43:33 +02:00
|
|
|
# spec file for package iptables (Version 1.4.4)
|
2007-01-04 01:56:28 +01:00
|
|
|
#
|
2009-01-19 02:02:09 +01:00
|
|
|
# Copyright (c) 2009 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
|
2007-07-27 01:45:14 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-04 01:56:28 +01:00
|
|
|
Group: Productivity/Networking/Security
|
2009-06-17 15:43:33 +02:00
|
|
|
Version: 1.4.4
|
2009-11-16 14:26:24 +01:00
|
|
|
Release: 4
|
2007-01-04 01:56:28 +01:00
|
|
|
Summary: IP Packet Filter Administration
|
2009-01-19 02:02:09 +01:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
2008-09-13 02:35:11 +02:00
|
|
|
Patch0: %{name}-batch.patch
|
2008-01-10 01:54:33 +01:00
|
|
|
Url: http://www.iptables.org
|
2007-01-04 01:56:28 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-09-13 02:35:11 +02:00
|
|
|
BuildRequires: linux-kernel-headers 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Netfilter Core Team <netfilter-core@linuxcare.com.au>
|
|
|
|
|
|
|
|
%package devel
|
2008-09-13 02:35:11 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-04 01:56:28 +01:00
|
|
|
Summary: Libraries, Headers and Development Man Pages for libipq
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Netfilter Core Team <netfilter-core@linuxcare.com.au>
|
|
|
|
|
|
|
|
%prep
|
2009-11-16 14:26:24 +01:00
|
|
|
%setup -q
|
2007-05-09 15:14:51 +02:00
|
|
|
%patch0
|
2007-01-04 01:56:28 +01:00
|
|
|
|
|
|
|
%build
|
2008-09-13 02:35:11 +02:00
|
|
|
autoreconf -f -i
|
|
|
|
%configure \
|
2009-07-17 17:36:22 +02:00
|
|
|
--enable-libipq \
|
|
|
|
--libexecdir=%{_libdir}
|
2008-09-13 02:35:11 +02:00
|
|
|
make %{?jobs:-j%jobs}
|
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/
|
2009-01-19 02:02:09 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libxtables.la
|
2009-04-24 02:24:04 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/libiptc.la
|
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*
|
2008-09-13 02:35:11 +02:00
|
|
|
%dir %{_libdir}/xtables
|
|
|
|
%{_libdir}/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}/*.a
|
|
|
|
%{_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
|