commit de10e0fffa06a13632a45ccdd96bf0b2d7993853
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Tue Aug 16 13:38:19 2022 +0200
Restore with_kmod_nvidia_open support
nvidia-kmod.spec | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/nvidia-kmod.spec b/nvidia-kmod.spec
index 437b327..2c60d5b 100644
--- a/nvidia-kmod.spec
+++ b/nvidia-kmod.spec
@@ -40,6 +40,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
for kernel_version in %{?kernel_versions} ; do
Show replies by date