|
|
|
@@ -22,14 +22,14 @@
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Now set the defaults for all the important features, independant
|
|
|
|
|
# Now set the defaults for all the important features, independent
|
|
|
|
|
# of any particular OS
|
|
|
|
|
|
|
|
|
|
# First the daemon itself
|
|
|
|
|
%define with_libvirtd 0%{!?_without_libvirtd:%{server_drivers}}
|
|
|
|
|
%define with_avahi 0%{!?_without_avahi:%{server_drivers}}
|
|
|
|
|
|
|
|
|
|
# Then the hypervisor drivers
|
|
|
|
|
# Then the hypervisor drivers that run on local host
|
|
|
|
|
%define with_xen 0%{!?_without_xen:%{server_drivers}}
|
|
|
|
|
%define with_xen_proxy 0%{!?_without_xen_proxy:%{server_drivers}}
|
|
|
|
|
%define with_qemu 0%{!?_without_qemu:%{server_drivers}}
|
|
|
|
@@ -37,9 +37,12 @@
|
|
|
|
|
%define with_lxc 0%{!?_without_lxc:%{server_drivers}}
|
|
|
|
|
%define with_vbox 0%{!?_without_vbox:%{server_drivers}}
|
|
|
|
|
%define with_uml 0%{!?_without_uml:%{server_drivers}}
|
|
|
|
|
# XXX this shouldn't be here, but it mistakenly links into libvirtd
|
|
|
|
|
%define with_one 0%{!?_without_one:%{server_drivers}}
|
|
|
|
|
%define with_phyp 0%{!?_without_phyp:%{server_drivers}}
|
|
|
|
|
%define with_esx 0%{!?_without_esx:%{server_drivers}}
|
|
|
|
|
|
|
|
|
|
# Then the hypervisor drivers that talk a native remote protocol
|
|
|
|
|
%define with_phyp 0%{!?_without_phyp:1}
|
|
|
|
|
%define with_esx 0%{!?_without_esx:1}
|
|
|
|
|
|
|
|
|
|
# Then the secondary host drivers
|
|
|
|
|
%define with_network 0%{!?_without_network:%{server_drivers}}
|
|
|
|
@@ -96,6 +99,7 @@
|
|
|
|
|
%endif
|
|
|
|
|
%define with_xen 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# If Xen isn't turned on, we shouldn't build the xen proxy either
|
|
|
|
|
%if ! %{with_xen}
|
|
|
|
|
%define with_xen_proxy 0
|
|
|
|
@@ -146,15 +150,14 @@
|
|
|
|
|
|
|
|
|
|
Summary: Library providing a simple API virtualization
|
|
|
|
|
Name: libvirt
|
|
|
|
|
Version: 0.7.1
|
|
|
|
|
Version: 0.7.2
|
|
|
|
|
Release: 2%{?dist}%{?extra_release}
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Source: http://libvirt.org/sources/libvirt-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
# Temporary hack till PulseAudio autostart problems are sorted
|
|
|
|
|
# out when SELinux enforcing (bz 486112)
|
|
|
|
|
Patch00: libvirt-0.6.4-svirt-sound.patch
|
|
|
|
|
# Fix qemu machine types handling
|
|
|
|
|
Patch01: libvirt-qemu-machine-type-fixes2.patch
|
|
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
URL: http://libvirt.org/
|
|
|
|
@@ -342,7 +345,7 @@ virtualization capabilities of recent versions of Linux (and other OSes).
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Libraries, includes, etc. to compile with the libvirt library
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: libvirt = %{version}-%{release}
|
|
|
|
|
Requires: libvirt-client = %{version}-%{release}
|
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
%if %{with_xen}
|
|
|
|
|
Requires: xen-devel
|
|
|
|
@@ -356,7 +359,7 @@ the virtualization capabilities of recent versions of Linux (and other OSes).
|
|
|
|
|
%package python
|
|
|
|
|
Summary: Python bindings for the libvirt library
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: libvirt = %{version}-%{release}
|
|
|
|
|
Requires: libvirt-client = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description python
|
|
|
|
|
The libvirt-python package contains a module that permits applications
|
|
|
|
@@ -368,7 +371,7 @@ of recent versions of Linux (and other OSes).
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%patch00 -p1
|
|
|
|
|
%patch01 -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%if ! %{with_xen}
|
|
|
|
@@ -512,10 +515,10 @@ gzip -9 ChangeLog
|
|
|
|
|
rm -fr %{buildroot}
|
|
|
|
|
|
|
|
|
|
%makeinstall
|
|
|
|
|
(cd docs/examples ; make clean ; rm -rf .deps Makefile Makefile.in)
|
|
|
|
|
(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)
|
|
|
|
|
for i in domain-events/events-c dominfo domsuspend hellolibvirt python
|
|
|
|
|
do
|
|
|
|
|
(cd examples/$i ; make clean ; rm -rf .deps .libs Makefile Makefile.in)
|
|
|
|
|
done
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la
|
|
|
|
@@ -542,6 +545,11 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
|
|
|
|
|
%endif
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
%if ! %{with_lxc}
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_lxc.aug
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if ! %{with_python}
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libvirt-python-%{version}
|
|
|
|
|
%endif
|
|
|
|
@@ -553,6 +561,9 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libvirt-%{version}
|
|
|
|
|
%if ! %{with_qemu}
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu.conf
|
|
|
|
|
%endif
|
|
|
|
|
%if ! %{with_lxc}
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/lxc.conf
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with_libvirtd}
|
|
|
|
|
chmod 0644 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/libvirtd
|
|
|
|
@@ -593,7 +604,7 @@ fi
|
|
|
|
|
|
|
|
|
|
/sbin/chkconfig --add libvirtd
|
|
|
|
|
if [ "$1" -ge "1" ]; then
|
|
|
|
|
/sbin/service libvirtd condrestart > /dev/null 2>&1
|
|
|
|
|
/sbin/service libvirtd condrestart > /dev/null 2>&1
|
|
|
|
|
fi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@@ -626,10 +637,16 @@ fi
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/libvirtd
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/libvirt/libvirtd.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd
|
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/qemu/
|
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/lxc/
|
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/uml/
|
|
|
|
|
|
|
|
|
|
%if %{with_qemu}
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/libvirt/qemu.conf
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_lxc}
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/libvirt/lxc.conf
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%dir %{_datadir}/libvirt/
|
|
|
|
|
|
|
|
|
@@ -671,6 +688,11 @@ fi
|
|
|
|
|
%{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with_lxc}
|
|
|
|
|
%{_datadir}/augeas/lenses/libvirtd_lxc.aug
|
|
|
|
|
%{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%{_datadir}/augeas/lenses/libvirtd.aug
|
|
|
|
|
%{_datadir}/augeas/lenses/tests/test_libvirtd.aug
|
|
|
|
|
|
|
|
|
@@ -683,13 +705,11 @@ fi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/
|
|
|
|
|
%if %{with_qemu}
|
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/qemu/
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with_xen_proxy}
|
|
|
|
|
%attr(4755, root, root) %{_libexecdir}/libvirt_proxy
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with_lxc}
|
|
|
|
|
%attr(0755, root, root) %{_libexecdir}/libvirt_lxc
|
|
|
|
|
%endif
|
|
|
|
@@ -706,8 +726,10 @@ fi
|
|
|
|
|
|
|
|
|
|
%{_mandir}/man1/virsh.1*
|
|
|
|
|
%{_mandir}/man1/virt-xml-validate.1*
|
|
|
|
|
%{_mandir}/man1/virt-pki-validate.1*
|
|
|
|
|
%{_bindir}/virsh
|
|
|
|
|
%{_bindir}/virt-xml-validate
|
|
|
|
|
%{_bindir}/virt-pki-validate
|
|
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
|
|
|
|
|
%dir %{_datadir}/libvirt/
|
|
|
|
@@ -741,9 +763,12 @@ fi
|
|
|
|
|
%doc %{_datadir}/gtk-doc/html/libvirt/*.css
|
|
|
|
|
|
|
|
|
|
%doc docs/*.html docs/html docs/*.gif
|
|
|
|
|
%doc docs/examples
|
|
|
|
|
%doc docs/libvirt-api.xml
|
|
|
|
|
%doc examples
|
|
|
|
|
%doc examples/hellolibvirt
|
|
|
|
|
%doc examples/domain-events/events-c
|
|
|
|
|
%doc examples/dominfo
|
|
|
|
|
%doc examples/domsuspend
|
|
|
|
|
%doc examples/xml
|
|
|
|
|
|
|
|
|
|
%if %{with_python}
|
|
|
|
|
%files python
|
|
|
|
@@ -754,11 +779,57 @@ fi
|
|
|
|
|
%{_libdir}/python*/site-packages/libvirtmod*
|
|
|
|
|
%doc python/tests/*.py
|
|
|
|
|
%doc python/TODO
|
|
|
|
|
%doc python/libvirtclass.txt
|
|
|
|
|
%doc docs/examples/python
|
|
|
|
|
%doc examples/python
|
|
|
|
|
%doc examples/domain-events/events-python
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Oct 29 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.2-2
|
|
|
|
|
- Make libvirt-devel require libvirt-client, not libvirt
|
|
|
|
|
- Fix qemu machine types handling
|
|
|
|
|
|
|
|
|
|
* Wed Oct 14 2009 Daniel Veillard <veillard@redhat.com> - 0.7.2-1
|
|
|
|
|
- Upstream release of 0.7.2
|
|
|
|
|
- Allow to define ESX domains
|
|
|
|
|
- Allows suspend and resulme of LXC domains
|
|
|
|
|
- API for data streams
|
|
|
|
|
- many bug fixes
|
|
|
|
|
|
|
|
|
|
* Tue Oct 13 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-12
|
|
|
|
|
- Fix restore of qemu guest using raw save format (#523158)
|
|
|
|
|
|
|
|
|
|
* Fri Oct 9 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-11
|
|
|
|
|
- Fix libvirtd memory leak during error reply sending (#528162)
|
|
|
|
|
- Add several PCI hot-unplug typo fixes from upstream
|
|
|
|
|
|
|
|
|
|
* Tue Oct 6 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-10
|
|
|
|
|
- Create /var/log/libvirt/{lxc,uml} dirs for logrotate
|
|
|
|
|
- Make libvirt-python dependon on libvirt-client
|
|
|
|
|
- Sync misc minor changes from upstream spec
|
|
|
|
|
|
|
|
|
|
* Tue Oct 6 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-9
|
|
|
|
|
- Change logrotate config to weekly (#526769)
|
|
|
|
|
|
|
|
|
|
* Thu Oct 1 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-8
|
|
|
|
|
- Disable sound backend, even when selinux is disabled (#524499)
|
|
|
|
|
- Re-label qcow2 backing files (#497131)
|
|
|
|
|
|
|
|
|
|
* Wed Sep 30 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-7
|
|
|
|
|
- Fix USB device passthrough (#522683)
|
|
|
|
|
|
|
|
|
|
* Mon Sep 21 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.7.1-6
|
|
|
|
|
- rebuild for libssh2 1.2
|
|
|
|
|
|
|
|
|
|
* Mon Sep 21 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-5
|
|
|
|
|
- Don't set a bogus error in virDrvSupportsFeature()
|
|
|
|
|
- Fix raw save format
|
|
|
|
|
|
|
|
|
|
* Thu Sep 17 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-4
|
|
|
|
|
- A couple of hot-unplug memory handling fixes (#523953)
|
|
|
|
|
|
|
|
|
|
* Thu Sep 17 2009 Daniel Veillard <veillard@redhat.com> - 0.7.1-3
|
|
|
|
|
- disable numactl on s390[x]
|
|
|
|
|
|
|
|
|
|
* Thu Sep 17 2009 Daniel Veillard <veillard@redhat.com> - 0.7.1-2
|
|
|
|
|
- revamp of spec file for modularity and RHELs
|
|
|
|
|
|
|
|
|
|