]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Standardize RHEL version check in packages
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 25 May 2022 16:20:17 +0000 (09:20 -0700)
committerGitHub <noreply@github.com>
Wed, 25 May 2022 16:20:17 +0000 (09:20 -0700)
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 <ngompa@datto.com>
Reviewed-by: Rich Ercolani <rincebrain@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #13501

rpm/generic/zfs-dkms.spec.in
rpm/generic/zfs-kmod.spec.in
rpm/generic/zfs.spec.in

index d0cf38caa19327b30564214cfd5c69d31ab9d603..f23347380d05d2caa95bf031013cc83b1d568eff 100644 (file)
@@ -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
index c25d968d1c9467de317e39ac8bf0bd7c50705159..ae07954278680676c61f7485368f3db96ab3247f 100644 (file)
@@ -57,7 +57,7 @@ BuildRequires:  gcc, make
 BuildRequires:  elfutils-libelf-devel
 %endif
 
-%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
index c9eae765a614d2a218f46c1024a7b6c6282617dd..493e93c1f3e6f78dd9ebf550d1655943a6cbc3a3 100644 (file)
@@ -114,7 +114,7 @@ BuildRequires:  openssl-devel
 BuildRequires:  libtirpc-devel
 %endif
 
-%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