Exclude 10 specific subpackages < 10

This commit is contained in:
Koichiro Iwao 2025-06-24 16:19:01 +09:00
parent 0278a09fdf
commit 3500ea08fc

View File

@ -99,6 +99,7 @@ Requires: perl-interpreter
This package provides kernel headers and makefiles sufficient to build modules
against the kernel package.
%if 0%{?rhel} >= 10
%package kernel%{?ksuffix}-modules
Summary: Pseudo package for kernel modules
Group: System Environment/Kernel
@ -140,6 +141,7 @@ AutoProv: yes
%description kernel%{?ksuffix}-modules-extra
This package provides pseudo dependency for the packages that depends on regular
kernel-modules-extra packages.
%endif
%if %{with_tools}
%package kernel%{?ksuffix}-tools
@ -447,6 +449,7 @@ cp $(ls -1 /boot/config-kernel-*-*|sort -V|tail -1) /boot/config-kernel.inc
%defattr(-,root,root)
/usr/src/kernels/%{version}-%{release}
%if 0%{?rhel} >= 10
%files kernel%{?ksuffix}-modules
# empty package
%defattr(-,root,root)
@ -459,6 +462,7 @@ cp $(ls -1 /boot/config-kernel-*-*|sort -V|tail -1) /boot/config-kernel.inc
# empty package
%defattr(-,root,root)
%endif
%endif
%if %{with_tools}
%files kernel%{?ksuffix}-tools -f cpupower.lang