rpm: disable glusterfs on RHEL-9

Support for glusterfs with KVM is being dropped in RHEL-9 in the
virtualization stack.

Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2021-05-14 12:56:23 +01:00
parent ffeab3eb4a
commit f772c1fd2a

View File

@ -65,10 +65,15 @@
%endif %endif
%define with_storage_gluster 0%{!?_without_storage_gluster:1} %define with_storage_gluster 0%{!?_without_storage_gluster:1}
%ifnarch %{arches_qemu_kvm} %if 0%{?rhel}
# gluster is only built where qemu driver is enabled on RHEL # Glusterfs has been dropped in RHEL-9, and before that
%if 0%{?rhel} # was only enabled on arches where KVM exists
%if 0%{?rhel} > 8
%define with_storage_gluster 0 %define with_storage_gluster 0
%else
%ifnarch %{arches_qemu_kvm}
%define with_storage_gluster 0
%endif
%endif %endif
%endif %endif