commit 92972f1afe98c10bd5064236d89b483fb03e1e1d
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Sun May 15 17:28:13 2022 +0200
Add --with kmod-nvidia-open conditional
nvidia-kmod.spec | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/nvidia-kmod.spec b/nvidia-kmod.spec
index ccf0328..1000714 100644
--- a/nvidia-kmod.spec
+++ b/nvidia-kmod.spec
@@ -42,6 +42,11 @@ The nvidia %{version} display driver kernel module for kernel
%{kversion}.
kmodtool --target %{_target_cpu} --repo rpmfusion --kmodname %{name} --filterfile
%{SOURCE11} --obsolete-name nvidia-newest --obsolete-version
"%{?epoch}:%{version}-%{release}" %{?buildforkernels:--%{buildforkernels}}
%{?kernels:--for-kernels "%{?kernels}"} 2>/dev/null
%setup -T -c
tar --use-compress-program xz -xf
%{_datadir}/%{name}-%{version}/%{name}-%{version}-%{_target_cpu}.tar.xz
+# Switch to kernel or kernel-open
+%if 0%{?_with_kmod_nvidia_open:1}
+mv kernel kernel-closed
+mv kernel-open kernel
+%endif
# patch loop
%if 0%{!?_without_nvidia_kmod_patches:1}
%patch0 -p0
Show replies by date