Adding a pointrelease option to the spec

Chuck Ebbert cebbert at redhat.com
Tue Nov 13 17:08:01 UTC 2007


This might be useful for people building their own kernels:

--- kernel.spec 12 Nov 2007 22:05:50 -0000      1.237
+++ kernel.spec 13 Nov 2007 17:05:39 -0000
@@ -12,7 +12,16 @@
 # that the kernel isn't the stock distribution kernel, for example,
 # by setting the define to ".local" or ".bz123456"
 #
+# You may also add a "pointrelease" with or without the "buildid"
+# so that your locally built kernel gets a version number that
+# is higher than the kernel it is based on and lower than the
+# next offical Fedora release.
+#
 #% define buildid .local
+#% define pointrelease .1
+%if 0{?pointrelease}
+%define buildid {pointrelease}{?buildid}
+%endif

 # fedora_build defines which build revision of this kernel version we're
 # building. Rather than incrementing forever, as with the prior versioning




More information about the Fedora-kernel-list mailing list