diff options
author | Brian Behlendorf <[email protected]> | 2009-08-13 15:02:34 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2009-08-13 15:02:34 -0700 |
commit | 26d77c4493b631b7faa26da50be120c9dabb3a60 (patch) | |
tree | db4c515b074dca41e2b6ad30e35a59238e20c3d8 /spl-modules.spec.in | |
parent | 68ada11e5ccd5aab3485d77953b446937d12852b (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 'spl-modules.spec.in')
-rw-r--r-- | spl-modules.spec.in | 14 |
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 |