SOURCES: rpm.macros - added %alt_kernel macro and changed _kerelsr...

sparky sparky at pld-linux.org
Mon May 1 19:42:07 CEST 2006


Author: sparky                       Date: Mon May  1 17:42:07 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- added %alt_kernel macro and changed _kerelsrcdir to be able to build modules
  for different kernels without reinstalling headers or changing symlink manually

---- Files affected:
SOURCES:
   rpm.macros (1.290 -> 1.291) 

---- Diffs:

================================================================
Index: SOURCES/rpm.macros
diff -u SOURCES/rpm.macros:1.290 SOURCES/rpm.macros:1.291
--- SOURCES/rpm.macros:1.290	Thu Apr 27 09:57:26 2006
+++ SOURCES/rpm.macros	Mon May  1 19:42:01 2006
@@ -182,8 +182,11 @@
 # Example files, programs, scripts...
 %_examplesdir	/usr/src/examples
 
+# Alternative kernel type/version
+%alt_kernel	%{nil}%{?_alt_kernel:-%{?_alt_kernel}}
+
 # The directory holding Linux kernel sources
-%_kernelsrcdir	/usr/src/linux
+%_kernelsrcdir	/usr/src/linux%{alt_kernel}
 
 # If non-empty "debug" macro defined, add "dbg" suffix to release number
 %_rpmfilename		%%{NAME}-%%{VERSION}-%%{RELEASE}%{?debug:dbg}.%%{ARCH}.rpm
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/rpm.macros?r1=1.290&r2=1.291&f=u



More information about the pld-cvs-commit mailing list