SPECS: ipset.spec - complete alt_kernel support (src.rpm to include alt ker...

glen glen at pld-linux.org
Mon Oct 27 14:15:26 CET 2008


Author: glen                         Date: Mon Oct 27 13:15:26 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- complete alt_kernel support (src.rpm to include alt kernel brand)

---- Files affected:
SPECS:
   ipset.spec (1.17 -> 1.18) 

---- Diffs:

================================================================
Index: SPECS/ipset.spec
diff -u SPECS/ipset.spec:1.17 SPECS/ipset.spec:1.18
--- SPECS/ipset.spec:1.17	Mon Oct 27 14:13:30 2008
+++ SPECS/ipset.spec	Mon Oct 27 14:15:21 2008
@@ -18,6 +18,7 @@
 %endif
 
 %define		rel	1
+%define		pname	ipset
 Summary:	IP sets utility
 Summary(pl.UTF-8):	Narzędzie do zarządzania zbiorami IP
 Name:		ipset
@@ -25,9 +26,9 @@
 Release:	%{rel}
 License:	GPL
 Group:		Networking/Admin
-Source0:	http://ipset.netfilter.org/%{name}-%{version}.tar.bz2
+Source0:	http://ipset.netfilter.org/%{pname}-%{version}.tar.bz2
 # Source0-md5:	3c97324d04562a8bc25b0177100673ee
-Source1:	%{name}.init
+Source1:	%{pname}.init
 URL:		http://ipset.netfilter.org/
 %{?with_dist_kernel:BuildRequires:	kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
 %{?with_userspace:BuildRequires:	linux-libc-headers >= 7:2.6.22.1-2}
@@ -65,7 +66,7 @@
 Summary:	IPset init (RedHat style)
 Group:		Networking/Admin
 Requires(post,preun):	/sbin/chkconfig
-Requires:	%{name}
+Requires:	%{pname}
 Requires:	rc-scripts
 
 %description init
@@ -99,7 +100,7 @@
 Ten pakiet zawiera moduły jądra oferujące wsparcie dla zbiorów IP.
 
 %prep
-%setup -q
+%setup -q -n %{pname}-%{version}
 mv kernel/{Kbuild,Makefile}
 
 # maximum number of ipsets.
@@ -138,7 +139,7 @@
 	BINDIR="%{_sbindir}"
 
 install *.h $RPM_BUILD_ROOT%{_includedir}
-install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{pname}
 %endif
 
 %if %{with kernel}
@@ -153,11 +154,11 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post init
-/sbin/chkconfig --add %{name}
+/sbin/chkconfig --add %{pname}
 
 %preun init
 if [ "$1" = "0" ]; then
-	/sbin/chkconfig --del %{name}
+	/sbin/chkconfig --del %{pname}
 fi
 
 %post	-n kernel%{_alt_kernel}-net-ipset
@@ -196,6 +197,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.18  2008/10/27 13:15:21  glen
+- complete alt_kernel support (src.rpm to include alt kernel brand)
+
 Revision 1.17  2008/10/27 13:13:30  glen
 - unify (from template-kernel-module.spec)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/ipset.spec?r1=1.17&r2=1.18&f=u



More information about the pld-cvs-commit mailing list