dist,spec: provide kernel-debug-debuginfo in debug version

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

So, using %{rpm_name}-debuginfo instead of kernel-debuginfo,
using %{rpm_name}-debuginfo-common instead of kernel-debuginfo-common.

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:41:06 +08:00
parent 9990e4b552
commit 3910ca8de7
1 changed files with 2 additions and 2 deletions

View File

@ -306,7 +306,7 @@ Summary: Debug information for package %{rpm_name}
# More info, pls run "git blame dist/templates/kernel.template.spec" (or "git log -p dist/templates/kernel.template.spec")
# to find and read the relevant commit.
Provides: installonlypkg(kernel)
Provides: kernel-debuginfo = %{version}-%{release}
Provides: %{rpm_name}-debuginfo = %{version}-%{release}
AutoReqProv: no
%description debuginfo
This package provides debug information including
@ -331,7 +331,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.