redhat/Makefile: Fix dist-git

dist-git is failing to construct an SRPM on ark-latest with

error: Bad file:
/data/src/redhat/kernel-ark/redhat/rpm/SOURCES/kernel-kabi-dw-5.18.0-0.rc0.20220322git519129040766.4.tar.bz2:
No such file or directory
error: Bad file:
/data/src/redhat/kernel-ark/redhat/rpm/SOURCES/kernel-abi-stablelists-5.18.0-0.rc0.20220322git519129040766.4.tar.bz2:
No such file or directory

This occurs because dist-git increments the value of RPMKPATCHLEVEL by
one, which affects KVERSION.

Move the calclulation of KVERSION after the increment of RPMKPATCHLEVEL,
and fix the dist-git target.

Tested-by: Justin M. Forbes jforbes@fedoraproject.org
Signed-off-by: Prarit Bhargava prarit@redhat.com

Edited by Prarit Bhargava

Merge request reports

Loading