aboutsummaryrefslogtreecommitdiffstats
path: root/rpm/generic/zfs-dkms.spec.in
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2022-05-25 09:20:17 -0700
committerGitHub <[email protected]>2022-05-25 09:20:17 -0700
commit61ef68727b0b3c53e27d6e503947f6c5efd1318c (patch)
tree23cccddc5cff573ead2d2b2e9afcbec706a65d40 /rpm/generic/zfs-dkms.spec.in
parent3bbc26097e53c472084d978dd37343b07ed17e3c (diff)
Standardize RHEL version check in packages
This is a follow up to 3c356622994 which standardizes how the RHEL version check is done. This simpler "0%{?rhel}" check is used elsewhere in the packages so we do the same here. Reviewed-by: Neal Gompa <[email protected]> Reviewed-by: Rich Ercolani <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #13501
Diffstat (limited to 'rpm/generic/zfs-dkms.spec.in')
-rw-r--r--rpm/generic/zfs-dkms.spec.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpm/generic/zfs-dkms.spec.in b/rpm/generic/zfs-dkms.spec.in
index d0cf38caa..f23347380 100644
--- a/rpm/generic/zfs-dkms.spec.in
+++ b/rpm/generic/zfs-dkms.spec.in
@@ -36,7 +36,7 @@ Obsoletes: spl-dkms
Provides: %{module}-kmod = %{version}
AutoReqProv: no
-%if (0%{?fedora}%{?suse_version}) || (0 < 0%{?rhel} && 0%{?rhel} < 9)
+%if (0%{?fedora}%{?suse_version}) || (0%{?rhel} && 0%{?rhel} < 9)
# We don't directly use it, but if this isn't installed, rpmbuild as root can
# crash+corrupt rpmdb
# See issue #12071