|
|
|
|
@@ -14,7 +14,7 @@
|
|
|
|
|
%define with_network 0%{!?_without_network:1}
|
|
|
|
|
|
|
|
|
|
# Xen is available only on i386 x86_64 ia64
|
|
|
|
|
%ifnarch i386 i586 i686 x86_64 ia64
|
|
|
|
|
%ifnarch i386 i686 x86_64 ia64
|
|
|
|
|
%define with_xen 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
@@ -46,14 +46,20 @@
|
|
|
|
|
|
|
|
|
|
Summary: Library providing a simple API virtualization
|
|
|
|
|
Name: libvirt
|
|
|
|
|
Version: 0.6.1
|
|
|
|
|
Release: 1%{?dist}%{?extra_release}
|
|
|
|
|
Version: 0.6.0
|
|
|
|
|
Release: 3%{?dist}%{?extra_release}
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Source: libvirt-%{version}.tar.gz
|
|
|
|
|
Patch1: %{name}-%{version}-timeout.patch
|
|
|
|
|
Patch2: %{name}-%{version}-rpccall2.patch
|
|
|
|
|
Patch3: %{name}-%{version}-qemu-startup.patch
|
|
|
|
|
Patch4: %{name}-%{version}-dbus-threads.patch
|
|
|
|
|
Patch5: %{name}-%{version}-autostart-timeout.patch
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
URL: http://libvirt.org/
|
|
|
|
|
BuildRequires: python python-devel
|
|
|
|
|
Requires: libxml2
|
|
|
|
|
Requires: readline
|
|
|
|
|
Requires: ncurses
|
|
|
|
|
Requires: dnsmasq
|
|
|
|
|
@@ -137,8 +143,7 @@ BuildRequires: iscsi-initiator-utils
|
|
|
|
|
BuildRequires: parted-devel
|
|
|
|
|
# For QEMU/LXC numa info
|
|
|
|
|
BuildRequires: numactl-devel
|
|
|
|
|
Obsoletes: libvir <= 0.2
|
|
|
|
|
Provides: libvir = %{version}-%{release}
|
|
|
|
|
Obsoletes: libvir
|
|
|
|
|
|
|
|
|
|
# Fedora build root suckage
|
|
|
|
|
BuildRequires: gawk
|
|
|
|
|
@@ -150,13 +155,12 @@ 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 = %{version}
|
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
%if %{with_xen}
|
|
|
|
|
Requires: xen-devel
|
|
|
|
|
%endif
|
|
|
|
|
Obsoletes: libvir-devel <= 0.2
|
|
|
|
|
Provides: libvir-devel = %{version}-%{release}
|
|
|
|
|
Obsoletes: libvir-devel
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Includes and documentations for the C library providing an API to use
|
|
|
|
|
@@ -166,9 +170,8 @@ 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}
|
|
|
|
|
Obsoletes: libvir-python <= 0.2
|
|
|
|
|
Provides: libvir-python = %{version}-%{release}
|
|
|
|
|
Requires: libvirt = %{version}
|
|
|
|
|
Obsoletes: libvir-python
|
|
|
|
|
|
|
|
|
|
%description python
|
|
|
|
|
The libvirt-python package contains a module that permits applications
|
|
|
|
|
@@ -179,9 +182,11 @@ of recent versions of Linux (and other OSes).
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
mv NEWS NEWS.old
|
|
|
|
|
iconv -f ISO-8859-1 -t UTF-8 < NEWS.old > NEWS
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
%patch3 -p1
|
|
|
|
|
%patch4 -p1
|
|
|
|
|
%patch5 -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%if ! %{with_xen}
|
|
|
|
|
@@ -250,14 +255,11 @@ iconv -f ISO-8859-1 -t UTF-8 < NEWS.old > NEWS
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
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)
|
|
|
|
|
|
|
|
|
|
(cd docs/examples/python ; rm -f Makefile Makefile.in)
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la
|
|
|
|
|
@@ -295,10 +297,6 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libvirt-python-%{version}
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu.conf
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with_libvirtd}
|
|
|
|
|
chmod 0644 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/libvirtd
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -fr %{buildroot}
|
|
|
|
|
|
|
|
|
|
@@ -332,7 +330,8 @@ if [ $1 = 0 ]; then
|
|
|
|
|
fi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
%postun
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
|
%defattr(-, root, root)
|
|
|
|
|
@@ -455,7 +454,6 @@ fi
|
|
|
|
|
%doc docs/*.html docs/html docs/*.gif
|
|
|
|
|
%doc docs/examples
|
|
|
|
|
%doc docs/libvirt-api.xml
|
|
|
|
|
%doc examples
|
|
|
|
|
|
|
|
|
|
%if %{with_python}
|
|
|
|
|
%files python
|
|
|
|
|
@@ -471,32 +469,17 @@ fi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Wed Mar 4 2009 Daniel Veillard <veillard@redhat.com> - 0.6.1-1.fc11
|
|
|
|
|
- upstream release 0.6.1
|
|
|
|
|
- support for node device detach reattach and reset
|
|
|
|
|
- sVirt mandatory access control support
|
|
|
|
|
- many bug fixes and small improvements
|
|
|
|
|
|
|
|
|
|
* Mon Mar 2 2009 Daniel Veillard <veillard@redhat.com> - 0.6.0-6.fc11
|
|
|
|
|
- make sure Xen is handled in i586 new default 32bits x86 packages
|
|
|
|
|
|
|
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-5.fc11
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Feb 18 2009 Daniel P. Berrange <berrange@redhat.com> - 0.6.0-4.fc11
|
|
|
|
|
* Wed Feb 18 2009 Daniel P. Berrange <berrange@redhat.com> - 0.6.0-3.fc10
|
|
|
|
|
- Fix QEMU startup timeout/race (rhbz #484649)
|
|
|
|
|
- Setup DBus threading. Don't allow dbus to call _exit / change SIGPIPE (rhbz #484553)
|
|
|
|
|
- Fix timeout when autostarting session daemon
|
|
|
|
|
|
|
|
|
|
* Wed Feb 11 2009 Richard W.M. Jones <rjones@redhat.com> - 0.6.0-3.fc11
|
|
|
|
|
- Multiple fixes to remove rpmlint warnings/errors (rhbz #226055)
|
|
|
|
|
|
|
|
|
|
* Fri Feb 6 2009 Daniel P. Berrange <berrange@redhat.com> - 0.6.0-2.fc11
|
|
|
|
|
* Fri Feb 6 2009 Daniel P. Berrange <berrange@redhat.com> - 0.6.0-2.fc10
|
|
|
|
|
- Fix libvirtd --timeout usage
|
|
|
|
|
- Fix RPC call problems and QEMU startup handling (rhbz #484414)
|
|
|
|
|
- Fix unowned directories (rhbz #483442)
|
|
|
|
|
|
|
|
|
|
* Sat Jan 31 2009 Daniel Veillard <veillard@redhat.com> - 0.6.0-1.fc11
|
|
|
|
|
* Sat Jan 31 2009 Daniel Veillard <veillard@redhat.com> - 0.6.0-1.fc10
|
|
|
|
|
- upstream release 0.6.0
|
|
|
|
|
- thread safety of API
|
|
|
|
|
- allow QEmu/KVM domains to survive daemon restart
|
|
|
|
|
@@ -505,18 +488,15 @@ fi
|
|
|
|
|
- support of storage cache control options for QEmu/KVM
|
|
|
|
|
- a lot of bug fixes
|
|
|
|
|
|
|
|
|
|
* Wed Dec 17 2008 Daniel Veillard <veillard@redhat.com> - 0.5.1-2.fc11
|
|
|
|
|
* Wed Dec 17 2008 Daniel Veillard <veillard@redhat.com> - 0.5.1-2.fc10
|
|
|
|
|
- fix missing read-only access checks, fixes CVE-2008-5086
|
|
|
|
|
|
|
|
|
|
* Fri Dec 5 2008 Daniel Veillard <veillard@redhat.com> - 0.5.1-1.fc11
|
|
|
|
|
* Fri Dec 5 2008 Daniel Veillard <veillard@redhat.com> - 0.5.1-1.fc10
|
|
|
|
|
- upstream release 0.5.1
|
|
|
|
|
- mostly bugfixes e.g #473071
|
|
|
|
|
- some driver improvments
|
|
|
|
|
|
|
|
|
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.5.0-2
|
|
|
|
|
- Rebuild for Python 2.6
|
|
|
|
|
|
|
|
|
|
* Wed Nov 26 2008 Daniel Veillard <veillard@redhat.com> - 0.5.0-1.fc11
|
|
|
|
|
* Wed Nov 26 2008 Daniel Veillard <veillard@redhat.com> - 0.5.0-1.fc10
|
|
|
|
|
- upstream release 0.5.0
|
|
|
|
|
- domain lifecycle event support
|
|
|
|
|
- node device enumeration
|
|
|
|
|
@@ -559,7 +539,7 @@ fi
|
|
|
|
|
|
|
|
|
|
* Wed Jun 4 2008 Mark McLoughlin <markmc@redhat.com> - 0.4.2-6.fc10
|
|
|
|
|
- Disable lokkit support again (#449996, #447633)
|
|
|
|
|
- Ensure %-fedora is evaluated correctly
|
|
|
|
|
- Ensure %{fedora} is evaluated correctly
|
|
|
|
|
|
|
|
|
|
* Thu May 15 2008 Daniel P. Berrange <berrange@redhat.com> - 0.4.2-5.fc10
|
|
|
|
|
- Rebuild with policy enabled (rhbz #446616)
|
|
|
|
|
@@ -744,7 +724,7 @@ fi
|
|
|
|
|
- it's pkgconfig not pgkconfig !
|
|
|
|
|
|
|
|
|
|
* Mon Nov 6 2006 Daniel Veillard <veillard@redhat.com> 0.1.8-2
|
|
|
|
|
- fixing spec file, added %-dist, -devel requires pkgconfig and xen-devel
|
|
|
|
|
- fixing spec file, added %dist, -devel requires pkgconfig and xen-devel
|
|
|
|
|
- Resolves: rhbz#202320
|
|
|
|
|
|
|
|
|
|
* Mon Oct 16 2006 Daniel Veillard <veillard@redhat.com> 0.1.8-1
|
|
|
|
|
|