From 89d8790801629f652b6426bfdfff67006bf57a62 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Aug 28 2013 12:36:13 +0000 Subject: Only build against libssh2 on F20+ to fix virt-preview --- diff --git a/qemu.spec b/qemu.spec index d311b11..375a813 100644 --- a/qemu.spec +++ b/qemu.spec @@ -254,7 +254,9 @@ BuildRequires: glusterfs-api-devel >= 3.4.0 # Needed for usb passthrough for qemu >= 1.5 BuildRequires: libusbx-devel # SSH block driver +%if 0%{?fedora} >= 20 BuildRequires: libssh2-devel +%endif %if %{with gtk} # GTK frontend BuildRequires: gtk3-devel @@ -377,7 +379,9 @@ Requires: ceph-libs >= 0.61 # New symbol libssh2_sftp_fsync. # Can probably be dropped after Fedora 20 beta. +%if 0%{?fedora} >= 20 Requires: libssh2 >= 1.4.3-5 +%endif %description common QEMU is a generic and open source processor emulator which achieves a good