commit 90bb13f1348fca75767e1c45af2f0ab7d7685a65
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Fri Feb 12 20:26:01 2021 +0100
Add debug_package %nil only when using akmod only
VirtualBox-kmod.spec | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/VirtualBox-kmod.spec b/VirtualBox-kmod.spec
index 72009ea..4389053 100644
--- a/VirtualBox-kmod.spec
+++ b/VirtualBox-kmod.spec
@@ -17,6 +17,7 @@
# a new akmod package will only get build when a new one is actually needed
%if 0%{?fedora}
%global buildforkernels akmod
+%global debug_package %{nil}
%endif
#akmods still generate debuginfo but have the wrong name:
#/var/cache/akmods/VirtualBox/VirtualBox-kmod-debuginfo-5.0.4-1.fc21.x86_64.rpm
@@ -52,13 +53,7 @@ BuildRequires: %{AkmodsBuildRequires}
ExclusiveArch: x86_64
-%if "%{buildforkernels}" != "akmod"
-# get the proper build-sysbuild package from the repo, which
-# tracks in all the kernel-devel packages
%{!?kernels:BuildRequires:
buildsys-build-rpmfusion-kerneldevpkgs-%{?buildforkernels:%{buildforkernels}}%{!?buildforkernels:current}-%{_target_cpu}
}
-%else
-%global debug_package %{nil}
-%endif
# kmodtool does its magic here
%{expand:%(kmodtool --target %{_target_cpu} --repo rpmfusion --kmodname %{name}
%{?buildforkernels:--%{buildforkernels}} %{?kernels:--for-kernels "%{?kernels}"}
--filterfile %{SOURCE1} 2>/dev/null) }