summaryrefslogtreecommitdiffstats
path: root/zfs-modules.spec.in
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-08-14 10:09:22 -0700
committerBrian Behlendorf <[email protected]>2009-08-14 10:09:22 -0700
commit96bf80c3ed8fca53934b430d55a2e0968a181db3 (patch)
tree8b060a01fc2777637b8bdf4717330f7c33851c00 /zfs-modules.spec.in
parentd80e2a5a1a0f088f2a30e527df93499479a5d6e3 (diff)
Explicit check for requires_* rpm defines
Due to different distros and/or versions of rpm mishandling the shorthand syntax simply use the longer version which get interpreted correctly.
Diffstat (limited to 'zfs-modules.spec.in')
-rw-r--r--zfs-modules.spec.in28
1 files changed, 22 insertions, 6 deletions
diff --git a/zfs-modules.spec.in b/zfs-modules.spec.in
index fc67b5309..0af1a01bd 100644
--- a/zfs-modules.spec.in
+++ b/zfs-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
@@ -14,9 +22,17 @@
# kdevpkg: Kernel devel package name
# kverpkg: Kernel package version
-%{?require_splver: %define splver %{require_splver}}
-%{?require_spldir: %define spldir %{require_spldir}}
-%{?require_splobj: %define splobj %{require_splobj}}
+%if %{defined require_splver}
+%define splver %{require_splver}
+%endif
+
+%if %{defined require_spldir}
+%define spldir %{require_spldir}
+%endif
+
+%if %{defined require_splobj}
+%define splobj %{require_splobj}
+%endif
# spldir: Full path to the spl source headers
# splobj: Full path to the spl build objects