From: Yafang Shao Date: Tue, 26 May 2026 06:27:32 +0000 (+0800) Subject: kbuild: rpm-pkg: append %{?dist} macro to Release tag X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=159921d63da16ff1d4764e73ddf9e1556b54dfc8;p=thirdparty%2Fkernel%2Flinux.git kbuild: rpm-pkg: append %{?dist} macro to Release tag Add support for the %{?dist} macro in the kernel.spec file. This enables building and releasing kernel RPMs with a custom distribution suffix (e.g., via rpmbuild's --define option) to better match production environment tracking. Signed-off-by: Yafang Shao Link: https://patch.msgid.link/20260526062732.84006-1-laoar.shao@gmail.com Signed-off-by: Nathan Chancellor --- diff --git a/scripts/package/kernel.spec b/scripts/package/kernel.spec index b3c956205af00..c732415662ef2 100644 --- a/scripts/package/kernel.spec +++ b/scripts/package/kernel.spec @@ -6,7 +6,7 @@ Name: kernel Summary: The Linux Kernel Version: %(echo %{KERNELRELEASE} | sed -e 's/-/_/g') -Release: %{pkg_release} +Release: %{pkg_release}%{?dist} License: GPL Group: System Environment/Kernel Vendor: The Linux Community