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