SPECS: mISDN.spec - introduce alt_kernel macro - fix path (missing...

adamg adamg at pld-linux.org
Wed Dec 12 11:47:59 CET 2007


Author: adamg                        Date: Wed Dec 12 10:47:59 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- introduce alt_kernel macro
- fix path (missing kernel/ component)
- use %install_kernel_modules

---- Files affected:
SPECS:
   mISDN.spec (1.33 -> 1.34) 

---- Diffs:

================================================================
Index: SPECS/mISDN.spec
diff -u SPECS/mISDN.spec:1.33 SPECS/mISDN.spec:1.34
--- SPECS/mISDN.spec:1.33	Thu Nov 29 09:04:59 2007
+++ SPECS/mISDN.spec	Wed Dec 12 11:47:54 2007
@@ -30,7 +30,7 @@
 mISDN (modularny ISDN) to nowy stos ISDN dla jądra Linuksa w wersji
 2.6.
 
-%package -n kernel-isdn-mISDN
+%package -n kernel%{_alt_kernel}-isdn-mISDN
 Summary:	Linux driver for mISDN
 Summary(pl.UTF-8):	Sterownik dla Linuksa do mISDN
 Release:	%{_rel}@%{_kernel_ver_str}
@@ -42,12 +42,12 @@
 %endif
 Provides:	kernel(mISDN)
 
-%description -n kernel-isdn-mISDN
+%description -n kernel%{_alt_kernel}-isdn-mISDN
 This is driver for mISDN for Linux.
 
 This package contains Linux module.
 
-%description -n kernel-isdn-mISDN -l pl.UTF-8
+%description -n kernel%{_alt_kernel}-isdn-mISDN -l pl.UTF-8
 Sterownik dla Linuksa do mISDN.
 
 Ten pakiet zawiera moduł jądra Linuksa.
@@ -94,27 +94,25 @@
 install include/linux/*.h $RPM_BUILD_ROOT%{_includedir}/linux
 
 cd drivers/isdn/hardware/mISDN
-install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/drivers/isdn/hardware/mISDN
+install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/kernel/drivers/isdn/hardware/mISDN
 
 sep="%{?with_dist_kernel:dist}%{!?with_dist_kernel:nondist}"
-for mod in *-${sep}.ko; do
-	m=$(echo "$mod" | sed -e "s#-${sep}.ko##g")
-	install "$mod" $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/drivers/isdn/hardware/mISDN/${m}.ko
-done
+mods=$(echo *-${sep}.ko | sed -e "s#-${sep}.ko##g" -e 's# #,#g')
+%install_kernel_modules -m $mods -d kernel/drivers/isdn/hardware/mISDN
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post	-n kernel-isdn-mISDN
+%post	-n kernel%{_alt_kernel}-isdn-mISDN
 %depmod %{_kernel_ver}
 
-%postun	-n kernel-isdn-mISDN
+%postun	-n kernel%{_alt_kernel}-isdn-mISDN
 %depmod %{_kernel_ver}
 
-%files -n kernel-isdn-mISDN
+%files -n kernel%{_alt_kernel}-isdn-mISDN
 %defattr(644,root,root,755)
-%dir /lib/modules/%{_kernel_ver}/drivers/isdn/hardware/mISDN
-/lib/modules/%{_kernel_ver}/drivers/isdn/hardware/mISDN/*.ko*
+%dir /lib/modules/%{_kernel_ver}/kernel/drivers/isdn/hardware/mISDN
+/lib/modules/%{_kernel_ver}/kernel/drivers/isdn/hardware/mISDN/*.ko*
 
 %files devel
 %defattr(644,root,root,755)
@@ -126,6 +124,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.34  2007-12-12 10:47:54  adamg
+- introduce alt_kernel macro
+- fix path (missing kernel/ component)
+- use %install_kernel_modules
+
 Revision 1.33  2007-11-29 08:04:59  arekm
 - rel 2
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/mISDN.spec?r1=1.33&r2=1.34&f=u



More information about the pld-cvs-commit mailing list