1
0
forked from jengelh/iptables
iptables/iptables.spec

108 lines
2.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package iptables (Version 1.4.6)
#
# Copyright (c) 2010 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 http://bugs.opensuse.org/
#
# norootforbuild
Name: iptables
License: GPLv2+
Group: Productivity/Networking/Security
Version: 1.4.6
Release: 2
Summary: IP Packet Filter Administration
Source0: %{name}-%{version}.tar.bz2
Patch0: %{name}-batch.patch
Url: http://netfilter.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: linux-kernel-headers sgmltool
%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 developer team <netfilter-devel@vger.kernel.org>
%package devel
License: GPLv2+
Summary: Libraries, Headers and Development Man Pages for iptables
Group: Development/Libraries/C and C++
AutoReqProv: on
Requires: %{name} = %{version}
%description devel
These libraries are needed to compile programs against libipq.
Authors:
--------
Netfilter developer team <netfilter-devel@vger.kernel.org>
%prep
%setup -q
%patch0
%build
autoreconf -f -i
# bnc#561793 - do not include unclean module in iptables manpage
rm -rf extensions/libipt_unclean.man
%configure \
--enable-libipq \
--libexecdir=%{_libdir}
make %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
# 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/
find "$RPM_BUILD_ROOT" -iname "*.la" -print0 | xargs -0 rm -f;
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING INCOMPATIBILITIES
%doc %{_mandir}/man8/*
%{_bindir}/iptables*
%{_sbindir}/iptables*
%{_sbindir}/ip6tables*
%dir %{_libdir}/xtables
%{_libdir}/xtables/*
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%doc %{_mandir}/man3/*
%{_includedir}/*
%{_libdir}/*.a
%{_libdir}/*.so
%{_libdir}/pkgconfig/xtables.pc
%{_libdir}/pkgconfig/libiptc.pc
%changelog