diff options
author | Brian Behlendorf <[email protected]> | 2013-07-11 15:33:10 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2013-07-11 15:39:25 -0700 |
commit | e34f17a8dfc0ef7650ba489f9772c2c20dc8bec4 (patch) | |
tree | 8edeb35920cd83ba3592ea78ce91e2094185ed71 /rpm/generic | |
parent | 556011dbec2d10579819078559a77630fc559112 (diff) |
Add dkms_version conditional
By adding a dkms_version conditional it's now possible to specify
an exact version of dkms. This is used by the Fedora and EPEL
yum repositories to ensure the patched version of dkms provided
by the repository is installed. The patched version of dkms
ensures that the spl modules are built before the zfs modules.
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #1466
Diffstat (limited to 'rpm/generic')
-rw-r--r-- | rpm/generic/zfs-dkms.spec.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rpm/generic/zfs-dkms.spec.in b/rpm/generic/zfs-dkms.spec.in index 97c811e24..c758baaad 100644 --- a/rpm/generic/zfs-dkms.spec.in +++ b/rpm/generic/zfs-dkms.spec.in @@ -14,7 +14,11 @@ Source0: %{module}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch +%if 0%{?dkms_version:1} +Requires: dkms = %{dkms_version} +%else Requires: dkms >= 2.2.0.2 +%endif Requires: spl-dkms = %{version} Requires: gcc, make, perl Requires: kernel-devel |