|
|
|
@@ -10,6 +10,8 @@
|
|
|
|
%define with_polkit 0%{!?_without_polkit:0}
|
|
|
|
%define with_polkit 0%{!?_without_polkit:0}
|
|
|
|
%define with_python 0%{!?_without_python:1}
|
|
|
|
%define with_python 0%{!?_without_python:1}
|
|
|
|
%define with_libvirtd 0%{!?_without_libvirtd:1}
|
|
|
|
%define with_libvirtd 0%{!?_without_libvirtd:1}
|
|
|
|
|
|
|
|
%define with_uml 0%{!?_without_uml:1}
|
|
|
|
|
|
|
|
%define with_network 0%{!?_without_network:1}
|
|
|
|
|
|
|
|
|
|
|
|
# Xen is available only on i386 x86_64 ia64
|
|
|
|
# Xen is available only on i386 x86_64 ia64
|
|
|
|
%ifnarch i386 i686 x86_64 ia64
|
|
|
|
%ifnarch i386 i686 x86_64 ia64
|
|
|
|
@@ -20,7 +22,7 @@
|
|
|
|
%define with_xen_proxy 0
|
|
|
|
%define with_xen_proxy 0
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if "%{fedora}"
|
|
|
|
%if 0%{?fedora}
|
|
|
|
%ifarch ppc64
|
|
|
|
%ifarch ppc64
|
|
|
|
%define with_qemu 0
|
|
|
|
%define with_qemu 0
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
@@ -31,14 +33,24 @@
|
|
|
|
%define with_xen_proxy 0
|
|
|
|
%define with_xen_proxy 0
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# If building on RHEL switch on the specific support
|
|
|
|
|
|
|
|
# for the specific Xen version
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
|
|
|
%define with_rhel5 0
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%define with_rhel5 1
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Summary: Library providing a simple API virtualization
|
|
|
|
Summary: Library providing a simple API virtualization
|
|
|
|
Name: libvirt
|
|
|
|
Name: libvirt
|
|
|
|
Version: 0.4.6
|
|
|
|
Version: 0.6.0
|
|
|
|
Release: 3%{?dist}%{?extra_release}
|
|
|
|
Release: 1%{?dist}%{?extra_release}
|
|
|
|
License: LGPLv2+
|
|
|
|
License: LGPLv2+
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/Libraries
|
|
|
|
Source: libvirt-%{version}.tar.gz
|
|
|
|
Source: libvirt-%{version}.tar.gz
|
|
|
|
Patch0: python_make.patch
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
URL: http://libvirt.org/
|
|
|
|
URL: http://libvirt.org/
|
|
|
|
BuildRequires: python python-devel
|
|
|
|
BuildRequires: python python-devel
|
|
|
|
@@ -48,6 +60,8 @@ Requires: ncurses
|
|
|
|
Requires: dnsmasq
|
|
|
|
Requires: dnsmasq
|
|
|
|
Requires: bridge-utils
|
|
|
|
Requires: bridge-utils
|
|
|
|
Requires: iptables
|
|
|
|
Requires: iptables
|
|
|
|
|
|
|
|
# needed for device enumeration
|
|
|
|
|
|
|
|
Requires: hal
|
|
|
|
# So remote clients can access libvirt over SSH tunnel
|
|
|
|
# So remote clients can access libvirt over SSH tunnel
|
|
|
|
# (client invokes 'nc' against the UNIX socket on the server)
|
|
|
|
# (client invokes 'nc' against the UNIX socket on the server)
|
|
|
|
Requires: nc
|
|
|
|
Requires: nc
|
|
|
|
@@ -89,6 +103,7 @@ BuildRequires: readline-devel
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: gnutls-devel
|
|
|
|
BuildRequires: gnutls-devel
|
|
|
|
|
|
|
|
BuildRequires: hal-devel
|
|
|
|
%if %{with_avahi}
|
|
|
|
%if %{with_avahi}
|
|
|
|
BuildRequires: avahi-devel
|
|
|
|
BuildRequires: avahi-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
@@ -121,6 +136,8 @@ BuildRequires: lvm2
|
|
|
|
BuildRequires: iscsi-initiator-utils
|
|
|
|
BuildRequires: iscsi-initiator-utils
|
|
|
|
# For disk driver
|
|
|
|
# For disk driver
|
|
|
|
BuildRequires: parted-devel
|
|
|
|
BuildRequires: parted-devel
|
|
|
|
|
|
|
|
# For QEMU/LXC numa info
|
|
|
|
|
|
|
|
BuildRequires: numactl-devel
|
|
|
|
Obsoletes: libvir
|
|
|
|
Obsoletes: libvir
|
|
|
|
|
|
|
|
|
|
|
|
# Fedora build root suckage
|
|
|
|
# Fedora build root suckage
|
|
|
|
@@ -160,7 +177,6 @@ of recent versions of Linux (and other OSes).
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%if ! %{with_xen}
|
|
|
|
%if ! %{with_xen}
|
|
|
|
@@ -199,6 +215,18 @@ of recent versions of Linux (and other OSes).
|
|
|
|
%define _without_libvirtd --without-libvirtd
|
|
|
|
%define _without_libvirtd --without-libvirtd
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if ! %{with_uml}
|
|
|
|
|
|
|
|
%define _without_uml --without-uml
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with_rhel5}
|
|
|
|
|
|
|
|
%define _with_rhel5_api --with-rhel5-api
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if ! %{with_network}
|
|
|
|
|
|
|
|
%define _without_network --without-network
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%configure %{?_without_xen} \
|
|
|
|
%configure %{?_without_xen} \
|
|
|
|
%{?_without_qemu} \
|
|
|
|
%{?_without_qemu} \
|
|
|
|
%{?_without_openvz} \
|
|
|
|
%{?_without_openvz} \
|
|
|
|
@@ -208,6 +236,9 @@ of recent versions of Linux (and other OSes).
|
|
|
|
%{?_without_polkit} \
|
|
|
|
%{?_without_polkit} \
|
|
|
|
%{?_without_python} \
|
|
|
|
%{?_without_python} \
|
|
|
|
%{?_without_libvirtd} \
|
|
|
|
%{?_without_libvirtd} \
|
|
|
|
|
|
|
|
%{?_without_uml} \
|
|
|
|
|
|
|
|
%{?_without_network} \
|
|
|
|
|
|
|
|
%{?_with_rhel5_api} \
|
|
|
|
--with-init-script=redhat \
|
|
|
|
--with-init-script=redhat \
|
|
|
|
--with-qemud-pid-file=%{_localstatedir}/run/libvirt_qemud.pid \
|
|
|
|
--with-qemud-pid-file=%{_localstatedir}/run/libvirt_qemud.pid \
|
|
|
|
--with-remote-file=%{_localstatedir}/run/libvirtd.pid
|
|
|
|
--with-remote-file=%{_localstatedir}/run/libvirtd.pid
|
|
|
|
@@ -268,7 +299,7 @@ rm -fr %{buildroot}
|
|
|
|
# or on the first upgrade from a non-network aware libvirt only.
|
|
|
|
# or on the first upgrade from a non-network aware libvirt only.
|
|
|
|
# We check this by looking to see if the daemon is already installed
|
|
|
|
# We check this by looking to see if the daemon is already installed
|
|
|
|
/sbin/chkconfig --list libvirtd 1>/dev/null 2>&1
|
|
|
|
/sbin/chkconfig --list libvirtd 1>/dev/null 2>&1
|
|
|
|
if [ $? != 0 ]
|
|
|
|
if [ $? != 0 -a ! -f %{_sysconfdir}/libvirt/qemu/networks/default.xml ]
|
|
|
|
then
|
|
|
|
then
|
|
|
|
UUID=`/usr/bin/uuidgen`
|
|
|
|
UUID=`/usr/bin/uuidgen`
|
|
|
|
sed -e "s,</name>,</name>\n <uuid>$UUID</uuid>," \
|
|
|
|
sed -e "s,</name>,</name>\n <uuid>$UUID</uuid>," \
|
|
|
|
@@ -311,6 +342,7 @@ fi
|
|
|
|
%{_sysconfdir}/rc.d/init.d/libvirtd
|
|
|
|
%{_sysconfdir}/rc.d/init.d/libvirtd
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/libvirtd
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/libvirtd
|
|
|
|
%config(noreplace) %{_sysconfdir}/libvirt/libvirtd.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/libvirt/libvirtd.conf
|
|
|
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with_qemu}
|
|
|
|
%if %{with_qemu}
|
|
|
|
@@ -327,11 +359,41 @@ fi
|
|
|
|
%{_datadir}/libvirt/networks/default.xml
|
|
|
|
%{_datadir}/libvirt/networks/default.xml
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%dir %{_datadir}/libvirt/
|
|
|
|
|
|
|
|
%dir %{_datadir}/libvirt/schemas/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{_datadir}/libvirt/schemas/domain.rng
|
|
|
|
|
|
|
|
%{_datadir}/libvirt/schemas/network.rng
|
|
|
|
|
|
|
|
%{_datadir}/libvirt/schemas/storagepool.rng
|
|
|
|
|
|
|
|
%{_datadir}/libvirt/schemas/storagevol.rng
|
|
|
|
|
|
|
|
%{_datadir}/libvirt/schemas/nodedev.rng
|
|
|
|
|
|
|
|
%{_datadir}/libvirt/schemas/capability.rng
|
|
|
|
|
|
|
|
|
|
|
|
%dir %{_localstatedir}/run/libvirt/
|
|
|
|
%dir %{_localstatedir}/run/libvirt/
|
|
|
|
|
|
|
|
|
|
|
|
%dir %{_localstatedir}/lib/libvirt/
|
|
|
|
%dir %{_localstatedir}/lib/libvirt/
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/images/
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/images/
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/boot/
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/boot/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with_qemu}
|
|
|
|
|
|
|
|
%dir %{_localstatedir}/run/libvirt/qemu/
|
|
|
|
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/qemu/
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with_lxc}
|
|
|
|
|
|
|
|
%dir %{_localstatedir}/run/libvirt/lxc/
|
|
|
|
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/lxc/
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with_uml}
|
|
|
|
|
|
|
|
%dir %{_localstatedir}/run/libvirt/uml/
|
|
|
|
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/uml/
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with_network}
|
|
|
|
|
|
|
|
%dir %{_localstatedir}/run/libvirt/network/
|
|
|
|
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/network/
|
|
|
|
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/iptables/filter/
|
|
|
|
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/iptables/nat/
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with_qemu}
|
|
|
|
%if %{with_qemu}
|
|
|
|
%{_datadir}/augeas/lenses/libvirtd_qemu.aug
|
|
|
|
%{_datadir}/augeas/lenses/libvirtd_qemu.aug
|
|
|
|
%{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
|
|
|
|
%{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
|
|
|
|
@@ -363,7 +425,6 @@ fi
|
|
|
|
%attr(0755, root, root) %{_sbindir}/libvirtd
|
|
|
|
%attr(0755, root, root) %{_sbindir}/libvirtd
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%doc docs/*.rng
|
|
|
|
|
|
|
|
%doc docs/*.xml
|
|
|
|
%doc docs/*.xml
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
@@ -396,52 +457,69 @@ fi
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Wed Sep 24 2008 Daniel Veillard <veillard@redhat.com> - 0.4.6-3.fc10
|
|
|
|
* Sat Jan 31 2009 Daniel Veillard <veillard@redhat.com> - 0.6.0-1.fc9
|
|
|
|
- apply the python makefile patch for #463733
|
|
|
|
- upstream release 0.6.0
|
|
|
|
|
|
|
|
- thread safety of API
|
|
|
|
|
|
|
|
- allow QEmu/KVM domains to survive daemon restart
|
|
|
|
|
|
|
|
- extended logging capabilities
|
|
|
|
|
|
|
|
- support copy on write storage volumes for QEmu/KVM
|
|
|
|
|
|
|
|
- support of storage cache control options for QEmu/KVM
|
|
|
|
|
|
|
|
- a lot of bug fixes
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Sep 24 2008 Daniel Veillard <veillard@redhat.com> - 0.4.6-2.fc10
|
|
|
|
* Wed Dec 17 2008 Daniel Veillard <veillard@redhat.com> - 0.5.1-2.fc9
|
|
|
|
|
|
|
|
- fix missing read-only access checks, fixes CVE-2008-5086
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Dec 5 2008 Daniel Veillard <veillard@redhat.com> - 0.5.1-1.fc9
|
|
|
|
|
|
|
|
- upstream release 0.5.1
|
|
|
|
|
|
|
|
- mostly bugfixes e.g #473071
|
|
|
|
|
|
|
|
- some driver improvments
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Nov 26 2008 Daniel Veillard <veillard@redhat.com> - 0.5.0-1.fc9
|
|
|
|
|
|
|
|
- upstream release 0.5.0
|
|
|
|
|
|
|
|
- domain lifecycle event support
|
|
|
|
|
|
|
|
- node device enumeration
|
|
|
|
|
|
|
|
- KVM/QEmu migration support
|
|
|
|
|
|
|
|
- improved LXC support
|
|
|
|
|
|
|
|
- SDL display configuration
|
|
|
|
|
|
|
|
- User Mode Linux driver
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Sep 24 2008 Daniel Veillard <veillard@redhat.com> - 0.4.6-2.fc9
|
|
|
|
|
|
|
|
- a subtle bug in python submakefile broke the 0.4.6-1.fc9 build #463733
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Sep 24 2008 Daniel Veillard <veillard@redhat.com> - 0.4.6-1.fc9
|
|
|
|
- upstream release 0.4.6
|
|
|
|
- upstream release 0.4.6
|
|
|
|
- fixes some problems with 0.4.5
|
|
|
|
- fixes a couple of serious bugs in the previous release
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Sep 9 2008 Daniel Veillard <veillard@redhat.com> - 0.4.5-2.fc10
|
|
|
|
* Tue Sep 9 2008 Daniel Veillard <veillard@redhat.com> - 0.4.5-2.fc9
|
|
|
|
- fix a crash if a QEmu/KVM domain is defined without an emulator path
|
|
|
|
- fix a crash if a QEmu/KVM domain is defined without an emulator path
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Sep 8 2008 Daniel Veillard <veillard@redhat.com> - 0.4.5-1.fc10
|
|
|
|
* Mon Sep 8 2008 Daniel Veillard <veillard@redhat.com> - 0.4.5-1.fc9
|
|
|
|
- upstream release 0.4.5
|
|
|
|
- upstream release 0.4.5
|
|
|
|
- a lot of bug fixes
|
|
|
|
- a lot of bug fixes
|
|
|
|
- major updates to QEmu/KVM and Linux containers drivers
|
|
|
|
- major updates to QEmu/KVM and Linux containers drivers
|
|
|
|
- support for OpenVZ if installed
|
|
|
|
- support for OpenVZ if installed
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Aug 7 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.4.4-3.fc10
|
|
|
|
* Tue Jul 8 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.4-2.fc9
|
|
|
|
- fix license tag
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 8 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.4-2.fc10
|
|
|
|
|
|
|
|
- Fix booting of CDROM images with KVM (rhbz #452355)
|
|
|
|
- Fix booting of CDROM images with KVM (rhbz #452355)
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 25 2008 Daniel Veillard <veillard@redhat.com> - 0.4.4-1.fc10
|
|
|
|
* Thu Jun 25 2008 Daniel Veillard <veillard@redhat.com> - 0.4.4-1.fc9
|
|
|
|
- upstream release 0.4.4
|
|
|
|
- upstream release of 0.4.4
|
|
|
|
- fix a few bugs in previous release
|
|
|
|
- fixes a few bug in previous release
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jun 12 2008 Daniel Veillard <veillard@redhat.com> - 0.4.3-1.fc10
|
|
|
|
* Thu Jun 12 2008 Daniel Veillard <veillard@redhat.com> - 0.4.3-1.fc9
|
|
|
|
- upstream release 0.4.3
|
|
|
|
- upstream release 0.4.3
|
|
|
|
- many bug fixes
|
|
|
|
- many bug fixes
|
|
|
|
- many small improvements
|
|
|
|
- many small improvements
|
|
|
|
- serious xenner fixes
|
|
|
|
- serious xenner fixes
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jun 4 2008 Mark McLoughlin <markmc@redhat.com> - 0.4.2-6.fc10
|
|
|
|
* Wed Jun 4 2008 Mark McLoughlin <markmc@redhat.com> - 0.4.2-4.fc9
|
|
|
|
- Disable lokkit support again (#449996, #447633)
|
|
|
|
- Disable lokkit support again (#449996, #447633)
|
|
|
|
- Ensure %{fedora} is evaluated correctly
|
|
|
|
- Ensure PolicyKit is enabled (#446616)
|
|
|
|
|
|
|
|
|
|
|
|
* Thu May 15 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.2-5.fc10
|
|
|
|
* Fri May 9 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.2-3.fc9
|
|
|
|
- Rebuild with policy enabled (rhbz #446616)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri May 9 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.2-4.fc10
|
|
|
|
|
|
|
|
- Added directory for initrd/kernel images for SELinux policy
|
|
|
|
- Added directory for initrd/kernel images for SELinux policy
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Apr 28 2008 Mark McLoughlin <markmc@redhat.com> - 0.4.2-3.fc10
|
|
|
|
* Mon Apr 28 2008 Mark McLoughlin <markmc@redhat.com> - 0.4.2-2.fc9
|
|
|
|
- Simplify the way arch conditionals are handled
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Apr 28 2008 Mark McLoughlin <markmc@redhat.com> - 0.4.2-2.fc10
|
|
|
|
|
|
|
|
- Enable lokkit support (#443796)
|
|
|
|
- Enable lokkit support (#443796)
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Apr 8 2008 Daniel Veillard <veillard@redhat.com> - 0.4.2-1.fc9
|
|
|
|
* Tue Apr 8 2008 Daniel Veillard <veillard@redhat.com> - 0.4.2-1.fc9
|
|
|
|
|