|
|
|
@@ -1,26 +1,14 @@
|
|
|
|
|
# -*- rpm-spec -*-
|
|
|
|
|
|
|
|
|
|
%define with_xen 0%{!?_without_xen:1}
|
|
|
|
|
%define with_xen_proxy 0%{!?_without_xen_proxy:1}
|
|
|
|
|
%define with_qemu 0%{!?_without_qemu:1}
|
|
|
|
|
%define with_openvz 0%{!?_without_openvz:1}
|
|
|
|
|
%define with_lxc 0%{!?_without_lxc:1}
|
|
|
|
|
%define with_sasl 0%{!?_without_sasl:1}
|
|
|
|
|
%define with_avahi 0%{!?_without_avahi:1}
|
|
|
|
|
%define with_polkit 0%{!?_without_polkit:0}
|
|
|
|
|
%define with_python 0%{!?_without_python:1}
|
|
|
|
|
%define with_libvirtd 0%{!?_without_libvirtd:1}
|
|
|
|
|
%define with_uml 0%{!?_without_uml:1}
|
|
|
|
|
%define with_network 0%{!?_without_network:1}
|
|
|
|
|
|
|
|
|
|
%define with_xen 0%{!?_without_xen:1}
|
|
|
|
|
%define with_xen_proxy 0%{!?_without_xen_proxy:1}
|
|
|
|
|
%define with_qemu 0%{!?_without_qemu:1}
|
|
|
|
|
%define with_openvz 0%{!?_without_openvz:1}
|
|
|
|
|
%define with_lxc 0%{!?_without_lxc:1}
|
|
|
|
|
%define with_vbox 0%{!?_without_vbox:1}
|
|
|
|
|
%define with_sasl 0%{!?_without_sasl:1}
|
|
|
|
|
%define with_avahi 0%{!?_without_avahi:1}
|
|
|
|
|
%define with_polkit 0%{!?_without_polkit:0}
|
|
|
|
|
%define with_polkit 0%{!?_without_polkit:1}
|
|
|
|
|
%define with_python 0%{!?_without_python:1}
|
|
|
|
|
%define with_libvirtd 0%{!?_without_libvirtd:1}
|
|
|
|
|
%define with_uml 0%{!?_without_uml:1}
|
|
|
|
@@ -60,27 +48,25 @@
|
|
|
|
|
%define with_rhel5 0
|
|
|
|
|
%else
|
|
|
|
|
%define with_rhel5 1
|
|
|
|
|
%define with_polkit 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Summary: Library providing a simple API virtualization
|
|
|
|
|
Name: libvirt
|
|
|
|
|
Version: 0.6.2
|
|
|
|
|
Version: 0.6.3
|
|
|
|
|
Release: 5%{?dist}%{?extra_release}
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Source: libvirt-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
# Patches cherry-picked from upstream
|
|
|
|
|
Patch0: libvirt-0.6.2-qemu-drive-format.patch
|
|
|
|
|
# Fix shared/readonly disk labelling
|
|
|
|
|
Patch1: libvirt-0.6.2-shared-readonly-label.patch
|
|
|
|
|
# Fix <hostdev managed='yes'>
|
|
|
|
|
Patch1: libvirt-0.6.3-shared-readonly-label.patch
|
|
|
|
|
Patch2: libvirt-0.6.3-hostdev-managed.patch
|
|
|
|
|
|
|
|
|
|
# Not for upstream. Temporary hack till PulseAudio autostart
|
|
|
|
|
# problems are sorted out when SELinux enforcing
|
|
|
|
|
Patch200: libvirt-0.6.2-svirt-sound.patch
|
|
|
|
|
Patch200: libvirt-0.6.3-svirt-sound.patch
|
|
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
URL: http://libvirt.org/
|
|
|
|
@@ -230,8 +216,6 @@ of recent versions of Linux (and other OSes).
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
|
|
|
|
@@ -257,6 +241,10 @@ iconv -f ISO-8859-1 -t UTF-8 < NEWS.old > NEWS
|
|
|
|
|
%define _without_lxc --without-lxc
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if ! %{with_vbox}
|
|
|
|
|
%define _without_vbox --without-vbox
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if ! %{with_sasl}
|
|
|
|
|
%define _without_sasl --without-sasl
|
|
|
|
|
%endif
|
|
|
|
@@ -313,6 +301,7 @@ iconv -f ISO-8859-1 -t UTF-8 < NEWS.old > NEWS
|
|
|
|
|
%{?_without_qemu} \
|
|
|
|
|
%{?_without_openvz} \
|
|
|
|
|
%{?_without_lxc} \
|
|
|
|
|
%{?_without_vbox} \
|
|
|
|
|
%{?_without_sasl} \
|
|
|
|
|
%{?_without_avahi} \
|
|
|
|
|
%{?_without_polkit} \
|
|
|
|
@@ -347,7 +336,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.a
|
|
|
|
|
install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/run/libvirt/
|
|
|
|
|
# Default dir for disk images defined in SELinux policy
|
|
|
|
|
install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/lib/libvirt/images/
|
|
|
|
|
# Default dir for kernel+initrd images defnied in SELinux policy
|
|
|
|
|
# Default dir for kernel+initrd images defined in SELinux policy
|
|
|
|
|
install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/lib/libvirt/boot/
|
|
|
|
|
# used for virDomainMemoryPeek
|
|
|
|
|
install -d -m 0700 $RPM_BUILD_ROOT%{_localstatedir}/cache/libvirt/
|
|
|
|
@@ -422,8 +411,10 @@ fi
|
|
|
|
|
%defattr(-, root, root)
|
|
|
|
|
|
|
|
|
|
%doc AUTHORS ChangeLog NEWS README COPYING.LIB TODO
|
|
|
|
|
%doc %{_mandir}/man1/virsh.1*
|
|
|
|
|
%{_mandir}/man1/virsh.1*
|
|
|
|
|
%{_mandir}/man1/virt-xml-validate.1*
|
|
|
|
|
%{_bindir}/virsh
|
|
|
|
|
%{_bindir}/virt-xml-validate
|
|
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
%dir %attr(0700, root, root) %{_sysconfdir}/libvirt/
|
|
|
|
|
|
|
|
|
@@ -557,16 +548,25 @@ fi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed May 6 2009 Mark McLoughlin <markmc@redhat.com> - 0.6.2-5.fc11
|
|
|
|
|
* Wed May 6 2009 Mark McLoughlin <markmc@redhat.com> - 0.6.3-5.fc12
|
|
|
|
|
- Fix handling of <hostdev managed='yes'> (bug #499386)
|
|
|
|
|
|
|
|
|
|
* Tue May 5 2009 Daniel P. Berrange <berrange@redhat.com> - 0.6.2-4.fc11
|
|
|
|
|
- Fix labelling of shared/readonly disks (rhbz #493692)
|
|
|
|
|
* Tue May 5 2009 Daniel Berrange <berrange@redhat.com> - 0.6.3-4.fc12
|
|
|
|
|
- Fix readonly/shared disk image labelling (rhbz #493692)
|
|
|
|
|
|
|
|
|
|
* Tue Apr 28 2009 Daniel Veillard <veillard@redhat.com> - 0.6.2-3.fc11
|
|
|
|
|
- Fix missing directories in spec (#496945 and gtk-doc)
|
|
|
|
|
* Tue Apr 28 2009 Daniel Veillard <veillard@redhat.com> - 0.6.3-3.fc12
|
|
|
|
|
- was also missing /usr/share/gtk-doc/html/libvirt in -devel
|
|
|
|
|
|
|
|
|
|
* Thu Apr 16 2009 Mark McLoughlin <markmc@redhat.com> - 0.6.2-2.fc11
|
|
|
|
|
* Tue Apr 28 2009 Daniel Veillard <veillard@redhat.com> - 0.6.3-2.fc12
|
|
|
|
|
- fix packaging bug #496945 libvirt should own /var/cache/libvirt
|
|
|
|
|
|
|
|
|
|
* Fri Apr 24 2009 Daniel Veillard <veillard@redhat.com> - 0.6.3-1.fc12
|
|
|
|
|
- release of 0.6.3
|
|
|
|
|
- VirtualBox driver
|
|
|
|
|
- new virt-xml-validate command
|
|
|
|
|
- assorted bug fixes
|
|
|
|
|
|
|
|
|
|
* Thu Apr 16 2009 Mark McLoughlin <markmc@redhat.com> - 0.6.2-2.fc12
|
|
|
|
|
- Fix qemu drive format specification (#496092)
|
|
|
|
|
|
|
|
|
|
* Fri Apr 3 2009 Daniel Veillard <veillard@redhat.com> - 0.6.2-1.fc11
|
|
|
|
|