diff --git a/iptables.spec b/iptables.spec index 5c898ed..dbbbad4 100644 --- a/iptables.spec +++ b/iptables.spec @@ -3,7 +3,7 @@ Name: iptables Summary: Tools for managing Linux kernel packet filtering capabilities Version: 1.4.0 -Release: 2%{?dist} +Release: 3%{?dist} Source: http://www.netfilter.org/projects/iptables/files/%{name}-%{version}.tar.bz2 Source1: iptables.init Source2: iptables-config @@ -15,6 +15,7 @@ URL: http://www.netfilter.org/ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) License: GPLv2 BuildRequires: libselinux-devel +BuildRequires: kernel Conflicts: kernel < 2.4.20 Requires(post): chkconfig Requires(preun): chkconfig @@ -71,7 +72,7 @@ perl -pi -e "s/^_init\(/__attribute\(\(constructor\)\) nf_ext_init\(/g" extensio TOPDIR=`pwd` OPT="$RPM_OPT_FLAGS -I$TOPDIR/include -fPIC" export KERNEL_DIR=/usr -export KBUILD_OUTPUT=/usr +#export KBUILD_OUTPUT=/usr export DO_SELINUX=1 make COPT_FLAGS="$OPT" LIBDIR=/%{_lib} make COPT_FLAGS="$OPT" LIBDIR=/%{_lib} iptables-save iptables-restore @@ -80,7 +81,7 @@ make COPT_FLAGS="$OPT" LIBDIR=/%{_lib} ip6tables-save ip6tables-restore %install rm -rf %{buildroot} export KERNEL_DIR=/usr -export KBUILD_OUTPUT=/usr +#export KBUILD_OUTPUT=/usr export DO_SELINUX=1 make install DESTDIR=%{buildroot} BINDIR=/sbin LIBDIR=/%{_lib} MANDIR=%{_mandir} %if %{build_devel} @@ -154,6 +155,10 @@ fi %endif %changelog +* Mon Mar 3 2008 Thomas Woerner 1.4.0-3 +- use the kernel headers from the build tree for iptables for now to be able to + compile this package, but this makes the package more kernel dependant + * Wed Feb 20 2008 Fedora Release Engineering - 1.4.0-2 - Autorebuild for GCC 4.3