mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 01:51:00 +03:00
Standardize RHEL version check in packages
This is a follow up to 3c35662299
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
This commit is contained in:
parent
3bbc26097e
commit
61ef68727b
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user