rawhide-rc fixes

- rcrev is a %global, not a %define
- base_sublevel needs to be +1 (see comments in kernel.spec)
This commit is contained in:
Laura Abbott 2016-10-24 09:02:35 -07:00
parent ae409faa50
commit 4894ff88ff
1 changed files with 4 additions and 2 deletions

View File

@ -9,9 +9,11 @@ scripts/fixup-bumpspec.sh
fedpkg commit -c
# Figure out what is our RC
RC=`grep "%define rcrev" kernel.spec| cut -d ' ' -f 3`
RC=`grep "%global rcrev" kernel.spec| cut -d ' ' -f 3`
RC=$(($RC+1))
BASE=`grep "%define base_sublevel" kernel.spec| cut -d ' ' -f 3`
# See comment in kernel.spec about the base numbering
BASE=$(($BASE+1))
# Kill all patches
awk '!/patch/ { print $0 }' < sources > sources.tmp
@ -27,7 +29,7 @@ if [ ! -f patch-4.$BASE-rc$RC.xz ]; then
fi
# bump rcrev in the spec and set git snapshot to 0
RC=$RC perl -p -i -e 's|%define rcrev.*|%global rcrev $ENV{'RC'}|' kernel.spec
RC=$RC perl -p -i -e 's|%global rcrev.*|%global rcrev $ENV{'RC'}|' kernel.spec
perl -p -i -e 's|%define gitrev.*|%define gitrev 0|' kernel.spec