commit 565281f49962b446e025fe7c4bf0c49646411987
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Wed Mar 1 20:57:31 2023 +0000
fix akmod buildrequires
nvidia-open-kmod.spec | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/nvidia-open-kmod.spec b/nvidia-open-kmod.spec
index acd95b8..580a64a 100644
--- a/nvidia-open-kmod.spec
+++ b/nvidia-open-kmod.spec
@@ -23,10 +23,10 @@ Source11: nvidia-open-kmodtool-excludekernel-filterfile
ExclusiveArch: x86_64 aarch64
# get the needed BuildRequires (in parts depending on what we build for)
-%global AkmodsBuildRequires %{_bindir}/kmodtool
+%global AkmodsBuildRequires %{_bindir}/kmodtool, gcc-c++, elfutils-libelf-devel
BuildRequires: %{AkmodsBuildRequires}
-%{!?kernels:BuildRequires: gcc-c++, elfutils-libelf-devel,
buildsys-build-rpmfusion-kerneldevpkgs-%{?buildforkernels:%{buildforkernels}}%{!?buildforkernels:current}-%{_target_cpu}
}
+%{!?kernels:BuildRequires:
buildsys-build-rpmfusion-kerneldevpkgs-%{?buildforkernels:%{buildforkernels}}%{!?buildforkernels:current}-%{_target_cpu}
}
# kmodtool does its magic here
%{expand:%(kmodtool --target %{_target_cpu} --repo rpmfusion --kmodname %{name}
--filterfile %{SOURCE11} %{?buildforkernels:--%{buildforkernels}} %{?kernels:--for-kernels
"%{?kernels}"} 2>/dev/null) }
Show replies by date