From c27ca0ddd7f381ac045c3c14cd00cd2e391c156413a654b098c44bb45b463897 Mon Sep 17 00:00:00 2001 From: James Fehlig Date: Fri, 18 Oct 2013 22:13:52 +0000 Subject: [PATCH] fix build for distros that don't have libxl OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=314 --- libvirt.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/libvirt.spec b/libvirt.spec index bd2e970..765fa17 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -1216,6 +1216,12 @@ Any empty package encapsulating requirements for a libvirtd capable of managing VirtualBox. EOF %endif +%if %{with_xen} || %{with_libxl} +cat > $RPM_BUILD_ROOT%{_docdir}/libvirt/libvirt-daemon-xen.README << 'EOF' +Any empty package encapsulating requirements for a libvirtd capable +of managing Xen. +EOF +%endif %if ! %{with_sanlock} rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirt_sanlock.aug rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug @@ -1504,6 +1510,8 @@ fi %defattr(-, root, root) %dir %{_libdir}/%{name}/connection-driver %{_libdir}/%{name}/connection-driver/libvirt_driver_libxl.so +%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/libxl/ +%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/libxl/ %endif %if %{with_vbox} @@ -1556,8 +1564,7 @@ fi %files daemon-xen %defattr(-, root, root) -%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/libxl/ -%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/libxl/ +%doc %{_docdir}/%{name}/libvirt-daemon-xen.README %endif %if %{with_vbox}