SPECS (LINUX_2_6): kernel.spec - cleanup backups in %prep stage

glen glen at pld-linux.org
Fri May 19 18:41:16 CEST 2006


Author: glen                         Date: Fri May 19 16:41:16 2006 GMT
Module: SPECS                         Tag: LINUX_2_6
---- Log message:
- cleanup backups in %prep stage

---- Files affected:
SPECS:
   kernel.spec (1.441.2.1545 -> 1.441.2.1546) 

---- Diffs:

================================================================
Index: SPECS/kernel.spec
diff -u SPECS/kernel.spec:1.441.2.1545 SPECS/kernel.spec:1.441.2.1546
--- SPECS/kernel.spec:1.441.2.1545	Tue May 16 21:10:34 2006
+++ SPECS/kernel.spec	Fri May 19 18:41:10 2006
@@ -776,6 +776,9 @@
 # on sparc this line causes CONFIG_INPUT=m (instead of =y), thus breaking build
 sed -i -e '/select INPUT/d' net/bluetooth/hidp/Kconfig
 
+# cleanup backups after patching
+find . '(' -name '*~' -o -name '*.orig' -o -name '.gitignore' ')' -print0 | xargs -0 -r -l512 rm -f
+
 %build
 TuneUpConfigForIX86 () {
 %ifarch %{ix86}
@@ -1038,7 +1041,6 @@
 PreInstallKernel smp
 %endif
 
-find . -type f -name '*.orig' -o -name '.gitignore' | xargs rm
 find . -type f -name 'Kconfig*' -o -name 'Makefile*' | grep -v Documentation | grep -v scripts > tmp_aux
 sed -i 's:^./::g' tmp_aux
 perl %{SOURCE7} tmp_aux %{_prefix}/src/linux-%{version} | sort | uniq > aux_files && rm tmp_aux
@@ -1091,8 +1093,6 @@
 %{__make} $CrossOpts mrproper \
 	RCS_FIND_IGNORE='-name build-done -prune -o'
 
-find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
-
 if [ -e $KERNEL_BUILD_DIR/build-done/kernel-UP/usr/src/linux-%{version}/include/linux/autoconf-up.h ]; then
 install $KERNEL_BUILD_DIR/build-done/kernel-UP/usr/src/linux-%{version}/include/linux/autoconf-up.h \
 	$RPM_BUILD_ROOT/usr/src/linux-%{version}/include/linux
@@ -1597,6 +1597,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.441.2.1546  2006/05/19 16:41:10  glen
+- cleanup backups in %prep stage
+
 Revision 1.441.2.1545  2006/05/16 19:10:34  pluto
 - adjust sourceX.
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/kernel.spec?r1=1.441.2.1545&r2=1.441.2.1546&f=u



More information about the pld-cvs-commit mailing list