From 188256aae318d857d52be85201c9fe6e6b2513e7 Mon Sep 17 00:00:00 2001 From: Eduardo Habkost Date: May 07 2012 17:21:41 +0000 Subject: add ceph dependency only if %{with rbd} is set We can't depend on ceph if we aren't building with ceph-devel on the buildroot. Signed-off-by: Eduardo Habkost --- diff --git a/qemu.spec b/qemu.spec index 909e2ce..dcbae41 100644 --- a/qemu.spec +++ b/qemu.spec @@ -295,11 +295,13 @@ will install qemu-system-x86 %package img Summary: QEMU command line tool for manipulating disk images Group: Development/Tools +%if %{with rbd} # librbd (from ceph) added new symbol rbd_flush recently. If you # update qemu-img without updating librdb you get: # qemu-img: undefined symbol: rbd_flush # ** NB ** This can be removed after Fedora 17 is released. Requires: ceph >= 0.37-2 +%endif %description img This package provides a command line tool for manipulating disk images