fix build for distros that don't have libxl
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libvirt?expand=0&rev=314
This commit is contained in:
parent
4b629b33b6
commit
c27ca0ddd7
11
libvirt.spec
11
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}
|
||||
|
Loading…
Reference in New Issue
Block a user