RPM: Explicitly set the required min/max kernel version for the DKMS package

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Armin Wehrfritz <dkxls23@gmail.com>
Closes #12124
This commit is contained in:
Armin Wehrfritz 2021-05-28 16:06:45 +10:00 committed by Brian Behlendorf
parent 9e06df8ab0
commit 0a01f36b69
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ BuildArch: noarch
Requires: dkms >= 2.2.0.3 Requires: dkms >= 2.2.0.3
Requires: gcc, make, perl, diffutils Requires: gcc, make, perl, diffutils
%if 0%{?rhel}%{?fedora}%{?mageia}%{?suse_version} %if 0%{?rhel}%{?fedora}%{?mageia}%{?suse_version}
Requires: kernel-devel Requires: kernel-devel >= @ZFS_META_KVER_MIN@, kernel-devel <= @ZFS_META_KVER_MAX@.999
Obsoletes: spl-dkms Obsoletes: spl-dkms
%endif %endif
Provides: %{module}-kmod = %{version} Provides: %{module}-kmod = %{version}