SPECS (DEVEL): umlinux.spec - pass correct kernel version string to depmod ...

pawelz pawelz at pld-linux.org
Sun Nov 23 16:00:14 CET 2008


Author: pawelz                       Date: Sun Nov 23 15:00:14 2008 GMT
Module: SPECS                         Tag: DEVEL
---- Log message:
- pass correct kernel version string to depmod
- do not depmod after uninstallation of all modules
- fixed '%%files modules' section
- -modules subpackage builds and installs now

---- Files affected:
SPECS:
   umlinux.spec (1.23.2.16 -> 1.23.2.17) 

---- Diffs:

================================================================
Index: SPECS/umlinux.spec
diff -u SPECS/umlinux.spec:1.23.2.16 SPECS/umlinux.spec:1.23.2.17
--- SPECS/umlinux.spec:1.23.2.16	Sun Nov 23 15:15:10 2008
+++ SPECS/umlinux.spec	Sun Nov 23 16:00:09 2008
@@ -168,10 +168,7 @@
 cd %{topdir}/linux-%{basever}
 
 %post modules
-%depmod %{version}
-
-%postun modules
-%depmod %{version}
+%depmod %{kernel_release}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -182,7 +179,15 @@
 
 %files modules
 %defattr(644,root,root,755)
-/lib/modules/%{kernel_release}
+%dir /lib/modules/%{kernel_release}
+/lib/modules/%{kernel_release}/kernel
+/lib/modules/%{kernel_release}/misc
+%ghost /lib/modules/%{kernel_release}/modules.*
+%if 0
+# symlinks pointing to kernelsrcdir
+%ghost /lib/modules/%{kernel_release}/build
+%ghost /lib/modules/%{kernel_release}/source
+%endif
 
 %if 0
 %files init
@@ -203,6 +208,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.23.2.17  2008/11/23 15:00:09  pawelz
+- pass correct kernel version string to depmod
+- do not depmod after uninstallation of all modules
+- fixed '%%files modules' section
+- -modules subpackage builds and installs now
+
 Revision 1.23.2.16  2008/11/23 14:15:10  pawelz
 - up to 2.6.26.7
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/umlinux.spec?r1=1.23.2.16&r2=1.23.2.17&f=u



More information about the pld-cvs-commit mailing list