]> xenbits.xensource.com Git - libvirt.git/commitdiff
spec: enable libssh transport on Fedora
authorPino Toscano <ptoscano@redhat.com>
Wed, 9 Nov 2016 14:28:37 +0000 (15:28 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 15 Nov 2016 14:50:51 +0000 (15:50 +0100)
libvirt.spec.in

index 533aaa12b97a5a553e09a2c85e2e2caf0ee156f6..5e4a3b7ac653565f78a7b6e1e98f40802bd19fad 100644 (file)
@@ -80,6 +80,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
     %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,
@@ -418,6 +424,10 @@ BuildRequires: wireshark-devel >= 1.12.1
     %endif
 %endif
 
+%if %{with_libssh}
+BuildRequires: libssh-devel >= 0.7.0
+%endif
+
 Provides: bundled(gnulib)
 
 %description