commit 0e1b502a3bfbf2f58d9d315a87fe5823107a8602
Author: Nicolas Viéville <nicolas.vieville(a)uphf.fr>
Date: Thu Aug 22 00:22:36 2024 +0200
SPEC file: add bcond to build for current kernel and akmod
Signed-off-by: Nicolas Viéville <nicolas.vieville(a)uphf.fr>
wl-kmod.spec | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/wl-kmod.spec b/wl-kmod.spec
index 77ba9a1..d8c21c0 100644
--- a/wl-kmod.spec
+++ b/wl-kmod.spec
@@ -4,9 +4,15 @@
# 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} >= 9
+%bcond_with kmod
+
+%if %{with kmod}
+%global buildforkernels current
+%else
%global buildforkernels akmod
-%global debug_package %{nil}
%endif
+%endif
+%global debug_package %{nil}
Name: wl-kmod
Version: 6.30.223.271
Show replies by date