[qemu] Only build against libssh2 on F20+ to fix virt-preview
Cole Robinson
crobinso at fedoraproject.org
Wed Aug 28 12:36:54 UTC 2013
commit 89d8790801629f652b6426bfdfff67006bf57a62
Author: Cole Robinson <crobinso at redhat.com>
Date: Wed Aug 28 08:36:13 2013 -0400
Only build against libssh2 on F20+ to fix virt-preview
qemu.spec | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
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
More information about the scm-commits
mailing list