From 0a01f36b694eac55f4a43c2bd509e4e547489ee5 Mon Sep 17 00:00:00 2001 From: Armin Wehrfritz Date: Fri, 28 May 2021 16:06:45 +1000 Subject: [PATCH] RPM: Explicitly set the required min/max kernel version for the DKMS package Reviewed-by: Brian Behlendorf Signed-off-by: Armin Wehrfritz Closes #12124 --- rpm/generic/zfs-dkms.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpm/generic/zfs-dkms.spec.in b/rpm/generic/zfs-dkms.spec.in index 6cdc224fcd..0a6935516c 100644 --- a/rpm/generic/zfs-dkms.spec.in +++ b/rpm/generic/zfs-dkms.spec.in @@ -26,7 +26,7 @@ BuildArch: noarch Requires: dkms >= 2.2.0.3 Requires: gcc, make, perl, diffutils %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 %endif Provides: %{module}-kmod = %{version}