correct the idenfication of kernel-devel and remove libiptc.a from iptables-devel
authorMarc Fiuczynski <mef@cs.princeton.edu>
Tue, 27 Nov 2007 19:58:44 +0000 (19:58 +0000)
committerMarc Fiuczynski <mef@cs.princeton.edu>
Tue, 27 Nov 2007 19:58:44 +0000 (19:58 +0000)
iptables.spec

index 4ef5d2d..e45573e 100644 (file)
@@ -72,7 +72,7 @@ find . -type f -exec perl -pi -e "s,/usr,%{prefix},g" {} \;
 TOPDIR=`pwd`
 OPT="$RPM_OPT_FLAGS -I$TOPDIR/include"
 
-%define KERNEL %(rpm -q kernel-devel | tail -n 1 | sed 's,kernel-devel-,,')
+%define KERNEL %(rpm -q --qf '%%{VERSION}-%%{RELEASE}-%%{ARCH}\n' kernel-devel | tail -n 1 )
 count=$(rpm -q kernel-devel| wc -l)
 if [ $count -gt 1 ] ; then
        echo "WARNING: choosing kernel-devel-%{KERNEL}"
@@ -147,7 +147,7 @@ fi
 %defattr(-,root,root,0755)
 %{_includedir}/libipq.h
 %{_libdir}/libipq.a
-%{_libdir}/libiptc.a
+#%{_libdir}/libiptc.a
 %{_mandir}/man3/*
 %endif