packages: kernel/kernel.spec - create dirs kernel/arch and kernel/mm so ifa...

sparky sparky at pld-linux.org
Sun Dec 6 03:00:52 CET 2009


Author: sparky                       Date: Sun Dec  6 02:00:52 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- create dirs kernel/arch and kernel/mm so ifarch's won't polute %files section

---- Files affected:
packages/kernel:
   kernel.spec (1.734 -> 1.735) 

---- Diffs:

================================================================
Index: packages/kernel/kernel.spec
diff -u packages/kernel/kernel.spec:1.734 packages/kernel/kernel.spec:1.735
--- packages/kernel/kernel.spec:1.734	Sat Dec  5 21:25:12 2009
+++ packages/kernel/kernel.spec	Sun Dec  6 03:00:47 2009
@@ -705,9 +705,7 @@
 cd linux-%{basever}
 
 # hack against warning in pax/grsec
-%ifarch alpha
 sed -i 's/-Werror//' arch/alpha/kernel/Makefile
-%endif
 
 %ifarch ppc
 install %{SOURCE5} Makefile.ppclibs
@@ -1138,10 +1136,8 @@
 
 install -d $RPM_BUILD_ROOT/lib/modules/%{kernel_release}/misc
 
-%if %{with myown}
 # create directories which may be missing, to simplyfy %files
-install -d $RPM_BUILD_ROOT/lib/modules/%{kernel_release}/kernel/sound
-%endif
+install -d $RPM_BUILD_ROOT/lib/modules/%{kernel_release}/kernel/{arch,sound,mm}
 
 # rpm obeys filelinkto checks for ghosted symlinks, convert to files
 rm -f $RPM_BUILD_ROOT/lib/modules/%{kernel_release}/{build,source}
@@ -1329,9 +1325,7 @@
 
 %dir /lib/modules/%{kernel_release}
 %dir /lib/modules/%{kernel_release}/kernel
-%ifnarch sparc
 /lib/modules/%{kernel_release}/kernel/arch
-%endif
 /lib/modules/%{kernel_release}/kernel/crypto
 /lib/modules/%{kernel_release}/kernel/drivers
 %if %{have_drm}
@@ -1341,9 +1335,7 @@
 /lib/modules/%{kernel_release}/kernel/kernel
 /lib/modules/%{kernel_release}/kernel/lib
 /lib/modules/%{kernel_release}/kernel/net
-%ifarch %{x8664}
 /lib/modules/%{kernel_release}/kernel/mm
-%endif
 %if %{have_sound}
 %dir /lib/modules/%{kernel_release}/kernel/sound
 /lib/modules/%{kernel_release}/kernel/sound/ac97_bus.ko*
@@ -1591,6 +1583,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.735  2009/12/06 02:00:47  sparky
+- create dirs kernel/arch and kernel/mm so ifarch's won't polute %files section
+
 Revision 1.734  2009/12/05 20:25:12  arekm
 - hwpoison supported only on x86_64 (or x86 but with sparsemem disabled)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/kernel/kernel.spec?r1=1.734&r2=1.735&f=u



More information about the pld-cvs-commit mailing list