commit 654315a26f0e8943d777bd4dc00b01c35871c81a
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Sun May 15 17:40:53 2022 +0200
Switch simpledrm to fedora-only
nvidia-kmod.spec | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/nvidia-kmod.spec b/nvidia-kmod.spec
index adb6d93..c1f3420 100644
--- a/nvidia-kmod.spec
+++ b/nvidia-kmod.spec
@@ -44,9 +44,11 @@ kmodtool --target %{_target_cpu} --repo rpmfusion --kmodname %{name}
--filterf
tar --use-compress-program xz -xf
%{_datadir}/%{name}-%{version}/%{name}-%{version}-%{_target_cpu}.tar.xz
# patch loop
%if 0%{!?_without_nvidia_kmod_patches:1}
+%if 0%{?fedora}
%patch0 -p0
%patch1 -p1
%endif
+%endif
for kernel_version in %{?kernel_versions} ; do
cp -a kernel _kmod_build_${kernel_version%%___*}