commit cd865523a2c65c2307d5a8437845839536eae211
Author: Leigh Scott <leigh123linux(a)googlemail.com>
Date: Mon May 20 12:00:48 2019 +0100
Build kernel kmod package for el8
nvidia-kmod.spec | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/nvidia-kmod.spec b/nvidia-kmod.spec
index eebeaf4..6cf8056 100644
--- a/nvidia-kmod.spec
+++ b/nvidia-kmod.spec
@@ -3,7 +3,11 @@
# "buildforkernels newest" macro for just that build; immediately after
# queuing that build enable the macro again for subsequent builds; that way
# a new akmod package will only get build when a new one is actually needed
+%if 0%{?fedora} || 0%{?rhel} < 8
%global buildforkernels akmod
+%else
+%global buildforkernels current
+%endif
%global debug_package %{nil}
Name: nvidia-kmod