]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Add dkms_version conditional
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 11 Jul 2013 22:33:10 +0000 (15:33 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 11 Jul 2013 22:39:25 +0000 (15:39 -0700)
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 <behlendorf1@llnl.gov>
Closes #1466

rpm/generic/zfs-dkms.spec.in

index 97c811e247cbcffe8b0d6f9a06eef1fccad2148a..c758baaad498d86b1659c5ab1a0584a1ff28bda3 100644 (file)
@@ -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