|
|
|
|
@@ -8,22 +8,22 @@
|
|
|
|
|
%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:1}
|
|
|
|
|
%define with_python 0%{!?_without_python:1}
|
|
|
|
|
%define with_libvirtd 0%{!?_without_libvirtd:1}
|
|
|
|
|
%define with_uml 0%{!?_without_uml:1}
|
|
|
|
|
%define with_one 0%{!?_without_one:1}
|
|
|
|
|
# default to off
|
|
|
|
|
%define with_phyp 0%{!?_without_phyp:0}
|
|
|
|
|
%define with_phyp 0%{!?_without_phyp:1}
|
|
|
|
|
%define with_network 0%{!?_without_network:1}
|
|
|
|
|
%define with_storage_fs 0%{!?_without_storage_fs:1}
|
|
|
|
|
%define with_storage_lvm 0%{!?_without_storage_lvm:1}
|
|
|
|
|
%define with_storage_iscsi 0%{!?_without_storage_iscsi:1}
|
|
|
|
|
%define with_storage_disk 0%{!?_without_storage_disk:1}
|
|
|
|
|
%define with_numactl 0%{!?_without_numactl:1}
|
|
|
|
|
# default to off
|
|
|
|
|
|
|
|
|
|
# default to off - selectively enabled below
|
|
|
|
|
%define with_polkit 0%{!?_without_polkit:0}
|
|
|
|
|
%define with_capng 0%{!?_without_capng:0}
|
|
|
|
|
%define with_netcf 0%{!?_without_netcf:1}
|
|
|
|
|
%define with_netcf 0%{!?_without_netcf:0}
|
|
|
|
|
|
|
|
|
|
# Xen is available only on i386 x86_64 ia64
|
|
|
|
|
%ifnarch i386 i586 i686 x86_64 ia64
|
|
|
|
|
@@ -72,22 +72,23 @@
|
|
|
|
|
%define with_one 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%define git_snapshot git3ef2e05
|
|
|
|
|
|
|
|
|
|
Summary: Library providing a simple API virtualization
|
|
|
|
|
Name: libvirt
|
|
|
|
|
Version: 0.7.0
|
|
|
|
|
Release: 0.3.gitf055724%{?dist}%{?extra_release}
|
|
|
|
|
Version: 0.7.1
|
|
|
|
|
Release: 0.1.%{git_snapshot}%{?dist}%{?extra_release}
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Source: libvirt-0.7.0-0.1.gitf055724.tar.gz
|
|
|
|
|
Source: http://libvirt.org/sources/libvirt-%{version}-%{git_snapshot}.tar.gz
|
|
|
|
|
|
|
|
|
|
# Temporary hack till PulseAudio autostart problems are sorted
|
|
|
|
|
# out when SELinux enforcing (bz 486112)
|
|
|
|
|
Patch200: libvirt-0.6.4-svirt-sound.patch
|
|
|
|
|
Patch00: libvirt-0.6.4-svirt-sound.patch
|
|
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
URL: http://libvirt.org/
|
|
|
|
|
BuildRequires: python python-devel
|
|
|
|
|
BuildRequires: python-devel
|
|
|
|
|
|
|
|
|
|
# The client side, i.e. shared libs and virsh are in a subpackage
|
|
|
|
|
Requires: libvirt-client = %{version}-%{release}
|
|
|
|
|
@@ -98,8 +99,12 @@ Requires: iptables
|
|
|
|
|
# needed for device enumeration
|
|
|
|
|
Requires: hal
|
|
|
|
|
%if %{with_polkit}
|
|
|
|
|
%if 0%{?fedora} >= 12
|
|
|
|
|
Requires: polkit >= 0.93
|
|
|
|
|
%else
|
|
|
|
|
Requires: PolicyKit >= 0.6
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_storage_fs}
|
|
|
|
|
# For mount/umount in FS driver
|
|
|
|
|
BuildRequires: util-linux
|
|
|
|
|
@@ -107,8 +112,10 @@ BuildRequires: util-linux
|
|
|
|
|
BuildRequires: nfs-utils
|
|
|
|
|
Requires: nfs-utils
|
|
|
|
|
# For glusterfs
|
|
|
|
|
%if 0%{?fedora} >= 11
|
|
|
|
|
Requires: glusterfs-client >= 2.0.1
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_qemu}
|
|
|
|
|
# From QEMU RPMs
|
|
|
|
|
Requires: /usr/bin/qemu-img
|
|
|
|
|
@@ -130,8 +137,6 @@ Requires: iscsi-initiator-utils
|
|
|
|
|
# For disk driver
|
|
|
|
|
Requires: parted
|
|
|
|
|
%endif
|
|
|
|
|
# For svirt support
|
|
|
|
|
Requires: libselinux
|
|
|
|
|
%if %{with_xen}
|
|
|
|
|
BuildRequires: xen-devel
|
|
|
|
|
%endif
|
|
|
|
|
@@ -155,8 +160,13 @@ BuildRequires: bridge-utils
|
|
|
|
|
BuildRequires: cyrus-sasl-devel
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_polkit}
|
|
|
|
|
%if 0%{?fedora} >= 12
|
|
|
|
|
# Only need the binary, not -devel
|
|
|
|
|
BuildRequires: polkit >= 0.93
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: PolicyKit-devel >= 0.6
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_storage_fs}
|
|
|
|
|
# For mount/umount in FS driver
|
|
|
|
|
BuildRequires: util-linux
|
|
|
|
|
@@ -190,7 +200,7 @@ BuildRequires: numactl-devel
|
|
|
|
|
BuildRequires: libcap-ng-devel >= 0.5.0
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_phyp}
|
|
|
|
|
BuildRequires: libssh-devel >= 0.3.1
|
|
|
|
|
BuildRequires: libssh2-devel
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_netcf}
|
|
|
|
|
BuildRequires: netcf-devel
|
|
|
|
|
@@ -205,7 +215,7 @@ of recent versions of Linux (and other OSes). The main package includes
|
|
|
|
|
the libvirtd server exporting the virtualization support.
|
|
|
|
|
|
|
|
|
|
%package client
|
|
|
|
|
Summary: client side library and utilities of the libvirt library
|
|
|
|
|
Summary: Client side library and utilities of the libvirt library
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: readline
|
|
|
|
|
Requires: ncurses
|
|
|
|
|
@@ -252,10 +262,7 @@ of recent versions of Linux (and other OSes).
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%patch200 -p0
|
|
|
|
|
|
|
|
|
|
mv NEWS NEWS.old
|
|
|
|
|
iconv -f ISO-8859-1 -t UTF-8 < NEWS.old > NEWS
|
|
|
|
|
%patch00 -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%if ! %{with_xen}
|
|
|
|
|
@@ -383,8 +390,6 @@ rm -fr %{buildroot}
|
|
|
|
|
(cd docs/examples/python ; rm -rf .deps Makefile Makefile.in)
|
|
|
|
|
(cd examples/hellolibvirt ; make clean ; rm -rf .deps .libs Makefile Makefile.in)
|
|
|
|
|
(cd examples/domain-events/events-c ; make clean ;rm -rf .deps .libs Makefile Makefile.in)
|
|
|
|
|
(cd python/tests ; rm -f *.py?)
|
|
|
|
|
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la
|
|
|
|
|
@@ -424,8 +429,19 @@ chmod 0644 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/libvirtd
|
|
|
|
|
%clean
|
|
|
|
|
rm -fr %{buildroot}
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
%if 0%{?fedora} >= 12
|
|
|
|
|
# Normally 'setup' adds this in /etc/passwd, but this is
|
|
|
|
|
# here for case of upgrades from earlier Fedora. This
|
|
|
|
|
# UID/GID pair is reserved for qemu:qemu
|
|
|
|
|
getent group kvm >/dev/null || groupadd -g 36 -r kvm
|
|
|
|
|
getent group qemu >/dev/null || groupadd -g 107 -r qemu
|
|
|
|
|
getent passwd qemu >/dev/null || \
|
|
|
|
|
useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \
|
|
|
|
|
-c "qemu user" qemu
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%if %{with_libvirtd}
|
|
|
|
|
%if %{with_qemu}
|
|
|
|
|
@@ -454,7 +470,9 @@ if [ $1 = 0 ]; then
|
|
|
|
|
fi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
%post client -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun client -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-, root, root)
|
|
|
|
|
@@ -488,12 +506,12 @@ fi
|
|
|
|
|
%dir %{_localstatedir}/run/libvirt/
|
|
|
|
|
|
|
|
|
|
%dir %{_localstatedir}/lib/libvirt/
|
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/images/
|
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/boot/
|
|
|
|
|
%dir %attr(0711, root, root) %{_localstatedir}/lib/libvirt/images/
|
|
|
|
|
%dir %attr(0711, root, root) %{_localstatedir}/lib/libvirt/boot/
|
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/cache/libvirt/
|
|
|
|
|
|
|
|
|
|
%if %{with_qemu}
|
|
|
|
|
%dir %attr(0700, %{qemu_user}, %{qemu_group}) %{_localstatedir}/run/libvirt/qemu/
|
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/run/libvirt/qemu/
|
|
|
|
|
%dir %attr(0700, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/
|
|
|
|
|
%dir %attr(0700, %{qemu_user}, %{qemu_group}) %{_localstatedir}/cache/libvirt/qemu/
|
|
|
|
|
%endif
|
|
|
|
|
@@ -524,8 +542,12 @@ fi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with_polkit}
|
|
|
|
|
%if 0%{?fedora} >= 12
|
|
|
|
|
%{_datadir}/polkit-1/actions/org.libvirt.unix.policy
|
|
|
|
|
%else
|
|
|
|
|
%{_datadir}/PolicyKit/policy/org.libvirt.unix.policy
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/
|
|
|
|
|
%if %{with_qemu}
|
|
|
|
|
@@ -567,6 +589,8 @@ fi
|
|
|
|
|
%{_datadir}/libvirt/schemas/nodedev.rng
|
|
|
|
|
%{_datadir}/libvirt/schemas/capability.rng
|
|
|
|
|
%{_datadir}/libvirt/schemas/interface.rng
|
|
|
|
|
%{_datadir}/libvirt/schemas/secret.rng
|
|
|
|
|
%{_datadir}/libvirt/schemas/storageencryption.rng
|
|
|
|
|
|
|
|
|
|
%if %{with_sasl}
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/sasl2/libvirt.conf
|
|
|
|
|
@@ -604,6 +628,67 @@ fi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Sep 6 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-0.1.gitg3ef2e05
|
|
|
|
|
- Update to pre-release git snapshot of 0.7.1
|
|
|
|
|
- Drop upstreamed patches
|
|
|
|
|
|
|
|
|
|
* Wed Aug 19 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.0-6
|
|
|
|
|
- Fix migration completion with newer versions of qemu (#516187)
|
|
|
|
|
|
|
|
|
|
* Wed Aug 19 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.0-5
|
|
|
|
|
- Add PCI host device hotplug support
|
|
|
|
|
- Allow PCI bus reset to reset other devices (#499678)
|
|
|
|
|
- Fix stupid PCI reset error message (bug #499678)
|
|
|
|
|
- Allow PM reset on multi-function PCI devices (bug #515689)
|
|
|
|
|
- Re-attach PCI host devices after guest shuts down (bug #499561)
|
|
|
|
|
- Fix list corruption after disk hot-unplug
|
|
|
|
|
- Fix minor 'virsh nodedev-list --tree' annoyance
|
|
|
|
|
|
|
|
|
|
* Thu Aug 13 2009 Daniel P. Berrange <berrange@redhat.com> - 0.7.0-4
|
|
|
|
|
- Rewrite policykit support (rhbz #499970)
|
|
|
|
|
- Log and ignore NUMA topology problems (rhbz #506590)
|
|
|
|
|
|
|
|
|
|
* Mon Aug 10 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.0-3
|
|
|
|
|
- Don't fail to start network if ipv6 modules is not loaded (#516497)
|
|
|
|
|
|
|
|
|
|
* Thu Aug 6 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.0-2
|
|
|
|
|
- Make sure qemu can access kernel/initrd (bug #516034)
|
|
|
|
|
- Set perms on /var/lib/libvirt/boot to 0711 (bug #516034)
|
|
|
|
|
|
|
|
|
|
* Wed Aug 5 2009 Daniel Veillard <veillard@redhat.com> - 0.7.0-1
|
|
|
|
|
- Upstream release of 0.7.0
|
|
|
|
|
- ESX, VBox3, Power Hypervisor drivers
|
|
|
|
|
- new net filesystem glusterfs
|
|
|
|
|
- Storage cloning for LVM and Disk backends
|
|
|
|
|
- interface implementation based on netcf
|
|
|
|
|
- Support cgroups in QEMU driver
|
|
|
|
|
- QEmu hotplug NIC support
|
|
|
|
|
- a lot of fixes
|
|
|
|
|
|
|
|
|
|
* Fri Jul 31 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.0-0.9.gite195b43
|
|
|
|
|
- Set perms on /var/lib/libvirt/images to 0711
|
|
|
|
|
|
|
|
|
|
* Thu Jul 30 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.0-0.8.gite195b43
|
|
|
|
|
- Add patch from upstream to fix qemu pidfile perms problem
|
|
|
|
|
|
|
|
|
|
* Thu Jul 30 2009 Daniel P. Berrange <berrange@redhat.com> - 0.7.0-0.7.gite195b43
|
|
|
|
|
- Create qemu/kvm user & group to fix upgrades
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2009 Daniel Veillard <veillard@redhat.com> - 0.7.0-0.6.gite195b43
|
|
|
|
|
- another prerelease with qemu, uml and remote patches
|
|
|
|
|
- drop the news patch as it's now UTF8 upstream
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.0-0.5.gitf055724
|
|
|
|
|
- Move ldconfig call to libvirt-client %post/%postun
|
|
|
|
|
- Fix rpmlint warning about libvirt-client summary
|
|
|
|
|
- Fix disabling polkit and netcf on older fedoras
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.0-0.4.gitf055724
|
|
|
|
|
- Drop explicit libselinux requires, it is autorequired
|
|
|
|
|
- Drop cleanup of python/tests, apparently not needed
|
|
|
|
|
- Cherry-pick upstream patch to convert NEWS to UTF-8, drop iconv
|
|
|
|
|
- Drop python BR; python-devel requires it
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.0-0.3.gitf055724
|
|
|
|
|
- Enable netcf support
|
|
|
|
|
- Pass --with-qemu-user=qemu etc. to configure
|
|
|
|
|
|