summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spl-modules.spec.in14
1 files changed, 11 insertions, 3 deletions
diff --git a/spl-modules.spec.in b/spl-modules.spec.in
index 61ad41ba3..e18a3bfbc 100644
--- a/spl-modules.spec.in
+++ b/spl-modules.spec.in
@@ -3,9 +3,17 @@
# require_kver, require_kdir, require_obj constants for us, but if it does not
# not we attempt to determine the correct values based on your distro.
-%{?require_kver: %define kver %{require_kver}}
-%{?require_kdir: %define kdir %{require_kdir}}
-%{?require_kobj: %define kobj %{require_kobj}}
+%if %{defined require_kver}
+%define kver %{require_kver}
+%endif
+
+%if %{defined require_kdir}
+%define kdir %{require_kdir}
+%endif
+
+%if %{defined require_kobj}
+%define kobj %{require_kobj}
+%endif
# kdir: Full path to the kernel source headers
# kobj: Full path to the kernel build objects