SPECS: CapOver.spec - _alt_kernel support

zbyniu zbyniu at pld-linux.org
Thu Dec 28 12:13:03 CET 2006


Author: zbyniu                       Date: Thu Dec 28 11:13:03 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- _alt_kernel support

---- Files affected:
SPECS:
   CapOver.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: SPECS/CapOver.spec
diff -u SPECS/CapOver.spec:1.6 SPECS/CapOver.spec:1.7
--- SPECS/CapOver.spec:1.6	Wed Sep  6 15:48:33 2006
+++ SPECS/CapOver.spec	Thu Dec 28 12:12:58 2006
@@ -35,7 +35,7 @@
 jest modułem zezwalającym, a nie restrykcyjnym (co jest bardziej
 typowe dla LSM).
 
-%package -n kernel-misc-cap_over
+%package -n kernel%{_alt_kernel}-misc-cap_over
 Summary:	cap_over kernel module
 Summary(pl):	Moduł jądra cap_over
 Release:	%{rel}@%{_kernel_ver_str}
@@ -44,13 +44,13 @@
 Requires(post,postun):	/sbin/depmod
 Requires:	CapOver
 
-%description -n kernel-misc-cap_over
+%description -n kernel%{_alt_kernel}-misc-cap_over
 cap_over kernel module.
 
-%description -n kernel-misc-cap_over -l pl
+%description -n kernel%{_alt_kernel}-misc-cap_over -l pl
 Moduł jądra cap_over.
 
-%package -n kernel-smp-misc-cap_over
+%package -n kernel%{_alt_kernel}-smp-misc-cap_over
 Summary:	cap_over SMP kernel module
 Summary(pl):	Moduł SMP jądra cap_over
 Release:	%{rel}@%{_kernel_ver_str}
@@ -59,10 +59,10 @@
 Requires(post,postun):	/sbin/depmod
 Requires:	CapOver
 
-%description -n kernel-smp-misc-cap_over
+%description -n kernel%{_alt_kernel}-smp-misc-cap_over
 cap_over SMP kernel module.
 
-%description -n kernel-smp-misc-cap_over -l pl
+%description -n kernel%{_alt_kernel}-smp-misc-cap_over -l pl
 Moduł SMP jądra cap_over.
 
 %prep
@@ -70,7 +70,9 @@
 
 %build
 %if %{with kernel}
-%configure
+%configure \
+	--with-linux="%{_kernelsrcdir}"
+
 for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}; do
 	if [ ! -r "%{_kernelsrcdir}/config-$cfg" ]; then
 		exit 1
@@ -124,16 +126,16 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post	-n kernel-misc-cap_over
+%post	-n kernel%{_alt_kernel}-misc-cap_over
 %depmod %{_kernel_ver}
 
-%postun	-n kernel-misc-cap_over
+%postun	-n kernel%{_alt_kernel}-misc-cap_over
 %depmod %{_kernel_ver}
 
-%post	-n kernel-smp-misc-cap_over
+%post	-n kernel%{_alt_kernel}-smp-misc-cap_over
 %depmod %{_kernel_ver}smp
 
-%postun	-n kernel-smp-misc-cap_over
+%postun	-n kernel%{_alt_kernel}-smp-misc-cap_over
 %depmod %{_kernel_ver}smp
 
 %if %{with userspace}
@@ -144,12 +146,12 @@
 %endif
 
 %if %{with kernel}
-%files -n kernel-misc-cap_over
+%files -n kernel%{_alt_kernel}-misc-cap_over
 %defattr(644,root,root,755)
 /lib/modules/%{_kernel_ver}/misc/*
 
 %if %{with smp} && %{with dist_kernel}
-%files -n kernel-smp-misc-cap_over
+%files -n kernel%{_alt_kernel}-smp-misc-cap_over
 %defattr(644,root,root,755)
 /lib/modules/%{_kernel_ver}smp/misc/*
 %endif
@@ -161,6 +163,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2006/12/28 11:12:58  zbyniu
+- _alt_kernel support
+
 Revision 1.6  2006/09/06 13:48:33  sparky
 - mass atack: -j1 for make scripts
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/CapOver.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list