diff options
author | Roland McGrath <roland@redhat.com> | 2010-07-29 18:35:15 -0700 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2010-07-29 18:35:15 -0700 |
commit | 377da6d08cf79d30c46d74a7f0f4a0b7e7c456c7 (patch) | |
tree | 2cb98afe3df4f3179c14aff4e641b500724ce1b0 /kernel.spec | |
parent | 7a32965a104c3363e8505fe566531fcf071cced7 (diff) | |
download | kernel-377da6d08cf79d30c46d74a7f0f4a0b7e7c456c7.tar.gz kernel-377da6d08cf79d30c46d74a7f0f4a0b7e7c456c7.tar.xz kernel-377da6d08cf79d30c46d74a7f0f4a0b7e7c456c7.zip |
First crack at adaptation to dist-git.
Diffstat (limited to 'kernel.spec')
-rw-r--r-- | kernel.spec | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/kernel.spec b/kernel.spec index 2f7fe1f9e..21f34bc10 100644 --- a/kernel.spec +++ b/kernel.spec @@ -38,19 +38,18 @@ Summary: The Linux kernel %endif %endif -# fedora_build defines which build revision of this kernel version we're -# building. Rather than incrementing forever, as with the prior versioning -# setup, we set fedora_cvs_origin to the current cvs revision s/1.// of the -# kernel spec when the kernel is rebased, so fedora_build automatically -# works out to the offset from the rebase, so it doesn't get too ginormous. +# baserelease defines which build revision of this kernel version we're +# building. We used to call this fedora_build, but the magical name +# baserelease is matched by the rpmdev-bumpspec tool, which you should use. # -# If you're building on a branch, the RCS revision will be something like -# 1.1205.1.1. In this case we drop the initial 1, subtract fedora_cvs_origin -# from the second number, and then append the rest of the RCS string as is. -# Don't stare at the awk too long, you'll go blind. -%define fedora_cvs_origin 2037 -%define fedora_cvs_revision() %2 -%global fedora_build %(echo %{fedora_cvs_origin}.%{fedora_cvs_revision $Revision: 1.2094 $} | awk -F . '{ OFS = "."; ORS = ""; print $3 - $1 ; i = 4 ; OFS = ""; while (i <= NF) { print ".", $i ; i++} }') +# We used to have some extra magic weirdness to bump this automatically, +# but now we don't. Just use: rpmdev-bumpspec -c 'comment for changelog' +# When changing base_sublevel below or going from rc to a final kernel, +# reset this by hand to 1 (or to 0 and then use rpmdev-bumpspec). +# scripts/rebase.sh should be made to do that for you, actually. +# +%global baserelease 57 +%global fedora_build %{baserelease} # base_sublevel is the kernel version we're starting with and patching # on top of -- for example, 2.6.22-rc7-git1 starts with a 2.6.21 base, |