dist: provide kernel version info in kernel*core*.rpm

Other software, such as anaconda, need kernel*core*.rpm provide kernel
version info.

Signed-off-by: Jianping Liu <frankjpliu@tencent.com>
Reviewed-by: Yongliang Gao <leonylgao@tencent.com>
This commit is contained in:
Jianping Liu 2024-03-12 16:43:31 +08:00
parent 3b43ce4dd8
commit fa9ab28741
1 changed files with 1 additions and 0 deletions

View File

@ -216,6 +216,7 @@ This is the meta package of %{?rpm_vendor:%{rpm_vendor} }Linux kernel, the core
%package core %package core
Summary: %{rpm_vendor} Linux Kernel Summary: %{rpm_vendor} Linux Kernel
Provides: installonlypkg(kernel) Provides: installonlypkg(kernel)
Provides: kernel = %{version}-%{release}
Provides: kernel-core = %{version}-%{release} Provides: kernel-core = %{version}-%{release}
Provides: kernel-uname-r = %{kernel_unamer} Provides: kernel-uname-r = %{kernel_unamer}
Requires(pre): coreutils Requires(pre): coreutils