dist,sepc: supprot kernel-debug in core and modules and devel rpm

When CONFIG="generic-release", %{rpm_name} is kernel, when
CONFIG="generic-debug", %{rpm_name} is kernel-debug.

Provides: kernel-debug-core in kernel-debug-core rpm
Provides: kernel-debug-modules in kernel-debug-modules rpm
Provides: kernel-debug-devel in kernel-debug-devel rpm

Signed-off-by: Jianping Liu <frankjpliu@tencent.com>
Reviewed-by: Yongliang Gao <leonylgao@tencent.com>
This commit is contained in:
Jianping Liu 2024-09-27 11:03:34 +08:00
parent 57c24f79d0
commit 23fc10f227
1 changed files with 11 additions and 12 deletions

View File

@ -266,10 +266,9 @@ This is the meta package of %{?rpm_vendor:%{rpm_vendor} }Linux kernel, the core
Summary: %{rpm_vendor} Linux Kernel
Provides: installonlypkg(kernel)
Provides: kernel = %{version}-%{release}
Provides: kernel-core = %{version}-%{release}
# TK4-UNAME-R: Due to historical reason we don't want to touch TK4's uname style yet,
# so the uname-r providing below looks different from TKS.
Provides: kernel-uname-r = %{version}-%{release}
Provides: %{rpm_name}-core = %{version}-%{release}
Provides: %{rpm_name}-core-uname-r = %{kernel_unamer}
Provides: kernel-uname-r = %{kernel_unamer}
Requires(pre): coreutils
Requires(post): coreutils kmod dracut
Requires(preun): coreutils kmod
@ -294,7 +293,9 @@ input and output, etc.
%package modules
Summary: %{rpm_vendor} Kernel modules to match the %{rpm_name}-core kernel
Provides: installonlypkg(kernel-module)
Provides: kernel-modules = %{version}-%{release}
Provides: %{rpm_name}-modules = %{version}-%{release}
Provides: %{rpm_name}-modules-uname-r = %{kernel_unamer}
Provides: kernel-modules = %{kernel_unamer}
Provides: kernel-modules-extra = %{version}-%{release}
Requires: %{rpm_name}-core = %{version}-%{release}
AutoReq: no
@ -335,11 +336,9 @@ for %{name} of version %{version}-%{release}.
Summary: Development package for building kernel modules to match the %{version}-%{release} kernel
Release: %{release}
Provides: installonlypkg(kernel)
Provides: kernel-devel = %{version}-%{release}
Provides: kernel-devel-%{_target_cpu} = %{version}-%{release}
# TK4-UNAME-R: Due to historical reason we don't want to touch TK4's uname style yet,
# so the uname-r providing below looks different from TKS.
Provides: kernel-devel-uname-r = %{version}-%{release}
Provides: %{rpm_name}-devel = %{version}-%{release}
Provides: %{rpm_name}-devel-%{_target_cpu} = %{version}-%{release}
Provides: kernel-devel-uname-r = %{kernel_unamer}
AutoReqprov: no
%description devel
This package provides kernel headers and makefiles sufficient to build modules
@ -367,7 +366,7 @@ Summary: Debug information for package %{rpm_name}
# repo, and causes trouble for uses)
# Requires: %%{rpm_name}-debuginfo-common = %%{version}-%%{release}
Provides: installonlypkg(kernel)
Provides: kernel-debuginfo = %{version}-%{release}
Provides: %{rpm_name}-debuginfo = %{version}-%{release}
AutoReqProv: no
%description debuginfo
This package provides debug information including
@ -392,7 +391,7 @@ This is required to use SystemTap with %{rpm_name}.
%package debuginfo-common
Summary: Kernel source files used by %{rpm_name}-debuginfo packages
Provides: installonlypkg(kernel)
Provides: kernel-debuginfo-common = %{version}-%{release}
Provides: %{rpm_name}-debuginfo-common = %{version}-%{release}
%description debuginfo-common
This package is required by %{rpm_name}-debuginfo subpackages.
It provides the kernel source files common to all builds.