[libvirt] [PATCH v3 5/6] spec: enable libssh transport on Fedora

Pino Toscano ptoscano at redhat.com
Wed Oct 19 12:40:38 UTC 2016


---
 libvirt.spec.in | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/libvirt.spec.in b/libvirt.spec.in
index 00b95b8..99e23a4 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -79,6 +79,7 @@
 %define with_firewalld     0%{!?_without_firewalld:0}
 %define with_libssh2       0%{!?_without_libssh2:0}
 %define with_wireshark     0%{!?_without_wireshark:0}
+%define with_libssh        0%{!?_without_libssh:0}
 %define with_pm_utils      1
 
 # Finally set the OS / architecture specific special cases
@@ -171,6 +172,11 @@
     %define with_wireshark 0%{!?_without_wireshark:1}
 %endif
 
+# Enable libssh transport for new enough distros
+%if 0%{?fedora}
+    %define with_libssh 0%{!?_without_libssh:1}
+%endif
+
 
 %if %{with_qemu} || %{with_lxc} || %{with_uml}
 # numad is used to manage the CPU and memory placement dynamically,
@@ -417,6 +423,10 @@ BuildRequires: wireshark-devel >= 1.12.1
     %endif
 %endif
 
+%if %{with_libssh}
+BuildRequires: libssh-devel >= 0.7.0
+%endif
+
 Provides: bundled(gnulib)
 
 %description
-- 
2.7.4




More information about the libvir-list mailing list