SPECS: p2p.spec - added iptables version detection

andree andree at pld-linux.org
Sat Dec 31 11:50:42 CET 2005


Author: andree                       Date: Sat Dec 31 10:50:42 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added iptables version detection

---- Files affected:
SPECS:
   p2p.spec (1.14 -> 1.15) 

---- Diffs:

================================================================
Index: SPECS/p2p.spec
diff -u SPECS/p2p.spec:1.14 SPECS/p2p.spec:1.15
--- SPECS/p2p.spec:1.14	Sat Dec 31 11:26:47 2005
+++ SPECS/p2p.spec	Sat Dec 31 11:50:36 2005
@@ -100,10 +100,11 @@
 %build
 %if %{with userspace}
 # iptables module
+IPTABLES_VERSION=`rpm -q --queryformat '%{V}' iptables`
 cd iptables
 cat << EOF > Makefile
 CC		= %{__cc}
-CFLAGS		= %{rpmcflags} -fPIC -DIPTABLES_VERSION=\\"1.3.3\\"
+CFLAGS		= %{rpmcflags} -fPIC -DIPTABLES_VERSION=\\"$IPTABLES_VERSION\\"
 INCPATH		= -I../common
 LD		= %{__ld}
 .SUFFIXES:	.c .o .so
@@ -201,6 +202,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.15  2005/12/31 10:50:36  andree
+- added iptables version detection
+
 Revision 1.14  2005/12/31 10:26:47  andree
 - change iptables version to 1.3.3
 - rel 5
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/p2p.spec?r1=1.14&r2=1.15&f=u



More information about the pld-cvs-commit mailing list