diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2023-07-22 06:47:57 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2023-07-24 17:59:32 +0200 |
commit | d5d2d4cc60888f02dd4a6b2bfb03ff2fd7be4fc2 (patch) | |
tree | 68c6067c4b491fbfd22a63b2df0a1f0903cf2a3b /scripts | |
parent | kbuild: refactor kernel-devel RPM package and linux-headers Deb package (diff) | |
download | linux-d5d2d4cc60888f02dd4a6b2bfb03ff2fd7be4fc2.tar.xz linux-d5d2d4cc60888f02dd4a6b2bfb03ff2fd7be4fc2.zip |
kbuild: rpm-pkg: derive the Version from %{KERNELRELEASE}
Avoid hard-coding the Version field in the generated spec file.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/package/mkspec | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/package/mkspec b/scripts/package/mkspec index 22e290d23d8a..783e1997d94a 100755 --- a/scripts/package/mkspec +++ b/scripts/package/mkspec @@ -27,8 +27,6 @@ else M=DEL fi -__KERNELRELEASE=$(echo $KERNELRELEASE | sed -e "s/-/_/g") - # We can label the here-doc lines for conditional output to the spec file # # Labels: @@ -43,7 +41,7 @@ sed -e '/^DEL/d' -e 's/^\t*//' <<EOF Name: kernel Summary: The Linux Kernel - Version: $__KERNELRELEASE + Version: %(echo %{KERNELRELEASE} | sed -e 's/-/_/g') Release: $(cat .version 2>/dev/null || echo 1) License: GPL Group: System Environment/Kernel |