- also require kernel-devel

This commit is contained in:
Thomas Woerner 2008-03-03 10:19:26 +00:00
parent d8ccf9fe1d
commit c06d2805b1

View File

@ -1,4 +1,5 @@
%define build_devel 1 %define build_devel 1
%uname $(rpm -q --qf "%{VERSION}-%{RELEASE}\n" kernel)
Name: iptables Name: iptables
Summary: Tools for managing Linux kernel packet filtering capabilities Summary: Tools for managing Linux kernel packet filtering capabilities
@ -15,7 +16,7 @@ URL: http://www.netfilter.org/
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
License: GPLv2 License: GPLv2
BuildRequires: libselinux-devel BuildRequires: libselinux-devel
BuildRequires: kernel BuildRequires: kernel, kernel-devel
Conflicts: kernel < 2.4.20 Conflicts: kernel < 2.4.20
Requires(post): chkconfig Requires(post): chkconfig
Requires(preun): chkconfig Requires(preun): chkconfig
@ -73,6 +74,10 @@ TOPDIR=`pwd`
OPT="$RPM_OPT_FLAGS -I$TOPDIR/include -fPIC" OPT="$RPM_OPT_FLAGS -I$TOPDIR/include -fPIC"
#export KERNEL_DIR=/usr #export KERNEL_DIR=/usr
#export KBUILD_OUTPUT=/usr #export KBUILD_OUTPUT=/usr
export KERNEL_DIR="/lib/modules/%{uname}/source"
export KBUILD_OUTPUT="/lib/modules/%{uname}/build"
export DO_SELINUX=1 export DO_SELINUX=1
make COPT_FLAGS="$OPT" LIBDIR=/%{_lib} make COPT_FLAGS="$OPT" LIBDIR=/%{_lib}
make COPT_FLAGS="$OPT" LIBDIR=/%{_lib} iptables-save iptables-restore make COPT_FLAGS="$OPT" LIBDIR=/%{_lib} iptables-save iptables-restore