File iptables.spec of Package iptables

# spec file for package iptables (Version 1.4.4)
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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.

# Please submit bugfixes or comments via

# norootforbuild

Name:           iptables
License:        GPL v2 or later
Group:          Productivity/Networking/Security
Version:        1.4.4
Release:        4.<RELEASE3>
Summary:        IP Packet Filter Administration
Source0:        %{name}-%{version}.tar.bz2
Source1:        %{name}-1.4.3-howtos.tar.bz2
Patch0:         %{name}-batch.patch
Patch1:         iptables-apply-mktemp-fix.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  linux-kernel-headers sgmltool

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.

    Netfilter Core Team <>

%package devel
License:        GPL v2 or later
Summary:        Libraries, Headers and Development Man Pages for libipq
Group:          Development/Libraries/C and C++
AutoReqProv:    on
Requires:       %{name} = %{version}

%description devel
These libraries are needed to compile programs against libipq.

    Netfilter Core Team <>

%setup -q -a 1

autoreconf -f -i
%configure \
    --enable-libipq \
make %{?jobs:-j%jobs}
# build howtos
cd howtos

# 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/
rm -f $RPM_BUILD_ROOT%{_libdir}/
rm -f $RPM_BUILD_ROOT%{_libdir}/


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%doc %{_mandir}/man8/*
%dir %{_libdir}/xtables

%files devel
%doc %{_mandir}/man3/*

openSUSE Build Service is sponsored by