Require libnbd-devel when building the qemu driver, recommend nbdkit
packages.
Signed-off-by: Jonathon Jongsma <jjongsma(a)redhat.com>
Reviewed-by: Peter Krempa <pkrempa(a)redhat.com>
---
libvirt.spec.in | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/libvirt.spec.in b/libvirt.spec.in
index 7157cfe3b4..94cae34496 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
@@ -768,6 +769,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
@@ -1069,8 +1073,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}
@@ -1259,6 +1265,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 \
@@ -1322,6 +1329,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