From 3500ea08fc39061f33dc9ac12706aeee42ef380f Mon Sep 17 00:00:00 2001 From: Koichiro Iwao Date: Tue, 24 Jun 2025 16:19:01 +0900 Subject: [PATCH] Exclude 10 specific subpackages < 10 --- SPECS/raspberrypi2.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SPECS/raspberrypi2.spec b/SPECS/raspberrypi2.spec index 7b851c9..5e538b2 100644 --- a/SPECS/raspberrypi2.spec +++ b/SPECS/raspberrypi2.spec @@ -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