mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
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 <laoar.shao@gmail.com>
Link: https://patch.msgid.link/20260526062732.84006-1-laoar.shao@gmail.com
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
This commit is contained in:
parent
c10ba5c9c6
commit
159921d63d
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user