Skip to content

Commit

Permalink
Explicit check for requires_* rpm defines
Browse files Browse the repository at this point in the history
Due to different distros and/or versions of rpm mishandling the shorthand
syntax simply use the longer version which get interpreted correctly.
  • Loading branch information
behlendorf committed Aug 13, 2009
1 parent 68ada11 commit 26d77c4
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions spl-modules.spec.in
Expand Up @@ -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
Expand Down

0 comments on commit 26d77c4

Please sign in to comment.