summaryrefslogtreecommitdiff
path: root/libvirt.spec.in
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2021-05-14 12:56:23 +0100
committerDaniel P. Berrangé <berrange@redhat.com>2021-05-25 12:07:36 +0100
commitf772c1fd2ae9387096ad8a36f56adf32ae3070d1 (patch)
treeaebaf4121c35365df5388384edcee3644a1a004e /libvirt.spec.in
parentffeab3eb4aafddd2066c78c07a42fc5e327c667c (diff)
downloadlibvirt-f772c1fd2ae9387096ad8a36f56adf32ae3070d1.tar.gz
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>
Diffstat (limited to 'libvirt.spec.in')
-rw-r--r--libvirt.spec.in11
1 files changed, 8 insertions, 3 deletions
diff --git a/libvirt.spec.in b/libvirt.spec.in
index 8ac324be0a..cdca7d8db6 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -65,10 +65,15 @@
%endif
%define with_storage_gluster 0%{!?_without_storage_gluster:1}
-%ifnarch %{arches_qemu_kvm}
- # gluster is only built where qemu driver is enabled on RHEL
- %if 0%{?rhel}
+%if 0%{?rhel}
+ # Glusterfs has been dropped in RHEL-9, and before that
+ # was only enabled on arches where KVM exists
+ %if 0%{?rhel} > 8
%define with_storage_gluster 0
+ %else
+ %ifnarch %{arches_qemu_kvm}
+ %define with_storage_gluster 0
+ %endif
%endif
%endif