diff --git a/libvirt.changes b/libvirt.changes index 5790f88..726b450 100644 --- a/libvirt.changes +++ b/libvirt.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Wed Jul 4 15:27:05 UTC 2018 - jfehlig@suse.com + +- spec: enable gluster storage backend for openSUSE + +------------------------------------------------------------------- +Mon Jun 25 14:17:03 UTC 2018 - jfehlig@suse.com + +- spec: BuildRequires glusterfs-devel when gluster support is + enabled + ------------------------------------------------------------------- Tue Jun 5 22:56:28 UTC 2018 - jfehlig@suse.com diff --git a/libvirt.spec b/libvirt.spec index 9bf768c..8f65c39 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -38,7 +38,7 @@ # Then the secondary host drivers, which run inside libvirtd %define with_storage_rbd 0%{!?_without_storage_rbd:0} %define with_storage_sheepdog 0 -%define with_storage_gluster 0 +%define with_storage_gluster 0%{!?_without_storage_gluster:1} %define with_apparmor 0%{!?_without_apparmor:1} # Optional bits on by default @@ -142,6 +142,11 @@ %endif %endif +# gluster storage backend is not supported in SLE +%if ! 0%{?is_opensuse} + %define with_storage_gluster 0 +%endif + # numad is used to manage the CPU and memory placement dynamically for # qemu, lxc, and uml drivers %if %{with_qemu} || %{with_lxc} || %{with_uml} @@ -285,6 +290,9 @@ BuildRequires: device-mapper-devel %if %{with_storage_rbd} BuildRequires: %{with_rbd_lib} %endif +%if %{with_storage_gluster} +BuildRequires: glusterfs-devel >= 3.4.1 +%endif %if %{with_numactl} # For QEMU/LXC numa info BuildRequires: libnuma-devel