diff --git a/rpm/generic/zfs-dkms.spec.in b/rpm/generic/zfs-dkms.spec.in index 97c811e247..c758baaad4 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