From 9d9f5b82743e35ee7dff478730efa64889e2ef24 Mon Sep 17 00:00:00 2001 From: Nicholas Lim Date: Sat, 21 Dec 2024 20:03:19 +0800 Subject: [PATCH] rpm: dkms: Include other kernel-devel packages for spec requirements Signed-off-by: Nicholas Lim --- rpm/generic/zfs-dkms.spec.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpm/generic/zfs-dkms.spec.in b/rpm/generic/zfs-dkms.spec.in index 6735c4a67ec5..4ed26b3605a7 100644 --- a/rpm/generic/zfs-dkms.spec.in +++ b/rpm/generic/zfs-dkms.spec.in @@ -30,9 +30,9 @@ Requires(preun): dkms >= 2.2.0.3 Requires: gcc, make, perl, diffutils Requires(post): gcc, make, perl, diffutils %if 0%{?rhel}%{?fedora}%{?mageia}%{?suse_version}%{?openEuler} -Requires: kernel-devel >= @ZFS_META_KVER_MIN@, kernel-devel <= @ZFS_META_KVER_MAX@.999 -Requires(post): kernel-devel >= @ZFS_META_KVER_MIN@, kernel-devel <= @ZFS_META_KVER_MAX@.999 -Conflicts: kernel-devel < @ZFS_META_KVER_MIN@, kernel-devel > @ZFS_META_KVER_MAX@.999 +Requires: (kernel-devel >= @ZFS_META_KVER_MIN@ or kernel-longterm-devel >= @ZFS_META_KVER_MIN@ or kernel-16k-devel >= @ZFS_META_KVER_MIN@) and (kernel-devel <= @ZFS_META_KVER_MAX@.999 or kernel-longterm-devel <= @ZFS_META_KVER_MAX@.999 or kernel-16k-devel <= @ZFS_META_KVER_MAX@.999) +Requires(post): (kernel-devel >= @ZFS_META_KVER_MIN@ or kernel-longterm-devel >= @ZFS_META_KVER_MIN@ or kernel-16k-devel >= @ZFS_META_KVER_MIN@) and (kernel-devel <= @ZFS_META_KVER_MAX@.999 or kernel-longterm-devel <= @ZFS_META_KVER_MAX@.999 or kernel-16k-devel <= @ZFS_META_KVER_MAX@.999) +Conflicts: (kernel-devel >= @ZFS_META_KVER_MIN@ or kernel-longterm-devel >= @ZFS_META_KVER_MIN@ or kernel-16k-devel >= @ZFS_META_KVER_MIN@) and (kernel-devel <= @ZFS_META_KVER_MAX@.999 or kernel-longterm-devel <= @ZFS_META_KVER_MAX@.999 or kernel-16k-devel <= @ZFS_META_KVER_MAX@.999) Obsoletes: spl-dkms <= %{version} %endif Provides: %{module}-kmod = %{version}