From: Brian Behlendorf Date: Thu, 13 Aug 2009 22:02:34 +0000 (-0700) Subject: Explicit check for requires_* rpm defines X-Git-Tag: zfs-0.8.0-rc1~152^2~666 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26d77c4493b631b7faa26da50be120c9dabb3a60;p=zfs 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. --- 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