diff --git a/kernel-tools.spec b/kernel-tools.spec index a52ed8c..0301bf1 100644 --- a/kernel-tools.spec +++ b/kernel-tools.spec @@ -34,7 +34,7 @@ %global upstream_sublevel %(echo $((%{base_sublevel} + 1))) # The rc snapshot level -%global rcrev 4 +%global rcrev 5 # Set rpm version accordingly %global rpmversion 5.%{upstream_sublevel}.0 %endif @@ -512,6 +512,9 @@ popd %license linux-%{kversion}/COPYING %changelog +* Mon May 11 2020 Justin M. Forbes - 5.7.0-0.rc5.git0.1 +- Linux v5.7-rc5 + * Wed May 06 2020 Justin M. Forbes - 5.7.0-rc4 - Linux v5.7-rc4 diff --git a/scripts/rawhide-rc.sh b/scripts/rawhide-rc.sh new file mode 100755 index 0000000..aacd28b --- /dev/null +++ b/scripts/rawhide-rc.sh @@ -0,0 +1,41 @@ +#!/bin/sh +# Generate a commit for a rawhide RC release + +klist -s +if [ ! $? -eq 0 ]; then + echo "klist couldn't read the credential cache." + echo "Do you need to fix your kerberos tokens?" + exit 1 +fi + +# Figure out what is our RC +RC=`grep "%global rcrev" kernel-tools.spec| cut -d ' ' -f 3` +RC=$(($RC+1)) +BASE=`grep "%global base_sublevel" kernel-tools.spec| cut -d ' ' -f 3` +OLDBASE=$BASE +# See comment in kernel-tools.spec about the base numbering +BASE=$(($BASE+1)) +MAJORVER=5 + +# Kill all patches +awk '!/patch/ { print $0 }' < sources > sources.tmp +mv sources.tmp sources + +# Grab the tarball +if [ ! -f patch-$MAJORVER.$BASE-rc$RC.xz ]; then + wget -O patch-$MAJORVER.$BASE-rc$RC https://git.kernel.org/torvalds/p/v$MAJORVER.$BASE-rc$RC/v$MAJORVER.$OLDBASE + if [ ! $? -eq 0 ]; then + exit 1 + fi + xz -9 patch-$MAJORVER.$BASE-rc$RC + fedpkg upload patch-$MAJORVER.$BASE-rc$RC.xz +fi + +# bump rcrev in the spec and set git snapshot to 0 +RC=$RC perl -p -i -e 's|%global rcrev.*|%global rcrev $ENV{'RC'}|' kernel-tools.spec + +perl -p -i -e 's|%define gitrev.*|%define gitrev 0|' kernel-tools.spec + +perl -p -i -e 's|%global baserelease.*|%global baserelease 0|' kernel-tools.spec + +rpmdev-bumpspec -c "Linux v$MAJORVER.$BASE-rc$RC" kernel-tools.spec diff --git a/sources b/sources index 9dee283..30a464f 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (linux-5.6.tar.xz) = 80846fe2b4e4a7ff471d2dde28a8216ae807a3209f959e93d39ea4fc9a189ea28ec3db9d303b3fe15a28c2cb90e7446876678e93e23353c2d6f262e364a06bc9 -SHA512 (patch-5.7-rc4.xz) = d26fca3798dfaf4a1894b5edec73055b92aa0fba430d8aa6f2f79cd579b94a1c3d126655f9dfe1d827c81b14a1ba41f022c38f662a178d87e818ea3996f5a2e4 +SHA512 (patch-5.7-rc5.xz) = bacaa4192a74fa8e8b75228fa9a448195a3b6497dcd4d7408f0c091d5fe6b379b85539ef04092ac14c0bbb76391b41bc37793e53b35b8b6a72b35b3b6cf6e433