From: Prarit Bhargava <prarit(a)redhat.com>
redhat/genspec: Rename BUILDID_DEFINE to SPECBUILDID
Change BUILDID_DEFINE to SPECBUILDID so that readers understand it is passed
into the spec file.
Rename BUILDID_DEFINE to SPECBUILDID.
Signed-off-by: Prarit Bhargava <prarit(a)redhat.com>
diff --git a/redhat/genspec.sh b/redhat/genspec.sh
index blahblah..blahblah 100755
--- a/redhat/genspec.sh
+++ b/redhat/genspec.sh
@@ -23,9 +23,9 @@ else
fi
if [ -n "$BUILDID" ]; then
- BUILDID_DEFINE=$(printf "%%define buildid %s" "$BUILDID")
+ SPECBUILDID=$(printf "%%define buildid %s" "$BUILDID")
else
- BUILDID_DEFINE="# define buildid .local"
+ SPECBUILDID="# define buildid .local"
fi
EXCLUDE_FILES=":(exclude,top).get_maintainer.conf \
@@ -57,7 +57,7 @@ fi
test -f "$SOURCES/$SPECFILE" &&
sed -i -e "
- s/%%BUILDID%%/$BUILDID_DEFINE/
+ s/%%SPECBUILDID%%/$SPECBUILDID/
s/%%SPECKVERSION%%/$SPECKVERSION/
s/%%SPECKPATCHLEVEL%%/$SPECKPATCHLEVEL/
s/%%PKGRELEASE%%/$PKGRELEASE/
diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index blahblah..blahblah 100755
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -115,7 +115,7 @@ Summary: The Linux kernel
# for parallel xz processes, replace with 1 to go back to single process
%endif
-%%BUILDID%%
+%%SPECBUILDID%%
%if 0%{?fedora}
--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1727