]> xenbits.xensource.com Git - people/dariof/libvirt.git/commitdiff
spec: require xen-devel for libxl driver
authorEric Blake <eblake@redhat.com>
Sat, 29 Jun 2013 20:50:14 +0000 (14:50 -0600)
committerEric Blake <eblake@redhat.com>
Sat, 29 Jun 2013 20:56:05 +0000 (14:56 -0600)
When using 'rpmbuild --define "_without_xen 1"', but on a new enough
Fedora where %{with_libxl} still gets set to 1 by default, the
build dependencies were incomplete, which could result in 'make rpm'
failing because ./configure failed to build the libxl driver.

* libvirt.spec.in (BuildRequires): Fix xen-devel condition.

Signed-off-by: Eric Blake <eblake@redhat.com>
libvirt.spec.in

index 395ac250d50e14e3fc2dc2256b720c3495a8c853..ce5582c069fc80705c0e5bf425ea5d3aa8e43d2e 100644 (file)
@@ -412,7 +412,7 @@ BuildRequires: python-devel
 %if %{with_systemd}
 BuildRequires: systemd-units
 %endif
-%if %{with_xen}
+%if %{with_xen} || %{with_libxl}
 BuildRequires: xen-devel
 %endif
 BuildRequires: libxml2-devel