Require libnbd-devel when building the qemu driver, recommend nbdkit
packages.
Signed-off-by: Jonathon Jongsma <jjongsma(a)redhat.com>
---
libvirt.spec.in | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/libvirt.spec.in b/libvirt.spec.in
index 1f77cd90b7..616087e849 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -312,6 +312,7 @@ BuildRequires: util-linux
BuildRequires: libacl-devel
# From QEMU RPMs, used by virstoragetest
BuildRequires: /usr/bin/qemu-img
+BuildRequires: libnbd-devel
%endif
# For LVM drivers
BuildRequires: lvm2
@@ -767,6 +768,9 @@ Requires: numad
Recommends: passt
Recommends: passt-selinux
%endif
+Recommends: nbdkit
+Recommends: nbdkit-curl-plugin
+Recommends: nbdkit-ssh-plugin
%description daemon-driver-qemu
The qemu driver plugin for the libvirtd daemon, providing
@@ -1068,8 +1072,10 @@ exit 1
%if %{with_qemu}
%define arg_qemu -Ddriver_qemu=enabled
+ %define arg_libnbd -Dlibndb=enabled
%else
%define arg_qemu -Ddriver_qemu=disabled
+ %define arg_libnbd -Dlibndb=disabled
%endif
%if %{with_openvz}
@@ -1258,6 +1264,7 @@ export SOURCE_DATE_EPOCH=$(stat --printf='%Y'
%{_specdir}/libvirt.spec)
-Dyajl=enabled \
%{?arg_sanlock} \
-Dlibpcap=enabled \
+ %{?arg_libnbd} \
-Dlibnl=enabled \
-Daudit=enabled \
-Ddtrace=enabled \
@@ -1321,6 +1328,7 @@ export SOURCE_DATE_EPOCH=$(stat --printf='%Y'
%{_specdir}/libvirt.spec)
-Dglusterfs=disabled \
-Dhost_validate=disabled \
-Dlibiscsi=disabled \
+ -Dlibnbd=disabled \
-Dlibnl=disabled \
-Dlibpcap=disabled \
-Dlibssh2=disabled \
--
2.41.0