commit 259c9549f4535daa56d7e5e2600eb2b1b1078090
Author: Henrik Nordström <henrik(a)hno.se>
Date: Wed Oct 6 11:46:41 2021 +0200
Add --with-kmod bcond for mockbuild tests of the module
rfpkg --release f36 mockbuild --with kmod
nvidia-390xx-kmod.spec | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/nvidia-390xx-kmod.spec b/nvidia-390xx-kmod.spec
index 09351de..8bec6a8 100644
--- a/nvidia-390xx-kmod.spec
+++ b/nvidia-390xx-kmod.spec
@@ -4,6 +4,12 @@
# 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}
+%bcond_with kmod
+%endif
+
+%if %{with kmod}
+%global buildforkernels current
+%else
%global buildforkernels akmod
%global debug_package %{nil}
%endif