From bb0729d7dbd697693c13794567f36a28993e05b0 Mon Sep 17 00:00:00 2001 From: caelli Date: Wed, 31 Jul 2024 14:39:15 +0800 Subject: [PATCH] dist: fix uname version Currently, uname -r outputs 5.4.241-24-0017.xx, rpm package is kernel-5.4.241-24.0017.xx, which is not match, fix this by changing uname outputs to 5.4.241-24.0017.xx. Signed-off-by: caelli Reviewed-by: yuehongwu Signed-off-by: Jianping Liu --- dist/scripts/gen-spec.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/scripts/gen-spec.sh b/dist/scripts/gen-spec.sh index 179c0c286e67..81cf03987c44 100755 --- a/dist/scripts/gen-spec.sh +++ b/dist/scripts/gen-spec.sh @@ -108,7 +108,7 @@ _gen_kerver_spec() { %define kernel_relver $KERNEL_RELVER %define kernel_variant ${LOCALVERSION:-"%{nil}"} %define kernel_unamer_base $KERNEL_UNAMER_BASE -%define kernel_unamer_force ${KERNEL_UNAMER_FORCE:-"%{nil}"} +%define kernel_unamer_force $KERNEL_UNAMER_BASE %define rpm_name $KERNEL_NAME %define rpm_vendor $VENDOR_CAPITALIZED %define rpm_url $URL