rpms/iptables/devel iptables.spec,1.62,1.63

Thomas Woerner (twoerner) fedora-extras-commits at redhat.com
Mon Mar 3 10:20:09 UTC 2008


Author: twoerner

Update of /cvs/pkgs/rpms/iptables/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv2483

Modified Files:
	iptables.spec 
Log Message:
- also require kernel-devel



Index: iptables.spec
===================================================================
RCS file: /cvs/pkgs/rpms/iptables/devel/iptables.spec,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- iptables.spec	3 Mar 2008 09:42:41 -0000	1.62
+++ iptables.spec	3 Mar 2008 10:19:26 -0000	1.63
@@ -1,4 +1,5 @@
 %define build_devel 1
+%uname $(rpm -q --qf "%{VERSION}-%{RELEASE}\n" kernel)
 
 Name: iptables
 Summary: Tools for managing Linux kernel packet filtering capabilities
@@ -15,7 +16,7 @@
 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 License: GPLv2
 BuildRequires: libselinux-devel
-BuildRequires: kernel
+BuildRequires: kernel, kernel-devel
 Conflicts: kernel < 2.4.20
 Requires(post): chkconfig
 Requires(preun): chkconfig
@@ -73,6 +74,10 @@
 OPT="$RPM_OPT_FLAGS -I$TOPDIR/include -fPIC"
 #export KERNEL_DIR=/usr
 #export KBUILD_OUTPUT=/usr
+export KERNEL_DIR="/lib/modules/%{uname}/source"
+export KBUILD_OUTPUT="/lib/modules/%{uname}/build"
+
+
 export DO_SELINUX=1
 make COPT_FLAGS="$OPT" LIBDIR=/%{_lib} 
 make COPT_FLAGS="$OPT" LIBDIR=/%{_lib} iptables-save iptables-restore




More information about the fedora-extras-commits mailing list