|
|
|
@@ -1,3 +1,4 @@
|
|
|
|
|
%define _default_patch_fuzz 2 \n\n
|
|
|
|
|
# -*- rpm-spec -*-
|
|
|
|
|
|
|
|
|
|
# A client only build will create a libvirt.so only containing
|
|
|
|
@@ -60,6 +61,7 @@
|
|
|
|
|
%define with_netcf 0%{!?_without_netcf:0}
|
|
|
|
|
%define with_udev 0%{!?_without_udev:0}
|
|
|
|
|
%define with_hal 0%{!?_without_hal:0}
|
|
|
|
|
%define with_yajl 0%{!?_without_yajl:0}
|
|
|
|
|
|
|
|
|
|
# Non-server/HV driver defaults which are always enabled
|
|
|
|
|
%define with_python 0%{!?_without_python:1}
|
|
|
|
@@ -141,6 +143,11 @@
|
|
|
|
|
%define with_hal 0%{!?_without_hal:%{server_drivers}}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Enable yajl library for JSON mode with QEMU
|
|
|
|
|
%if 0%{?fedora} >= 13 || 0%{?rhel} >= 6
|
|
|
|
|
%define with_yajl 0%{!?_without_yajl:%{server_drivers}}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Force QEMU to run as non-root
|
|
|
|
|
%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
|
|
|
|
|
%define qemu_user qemu
|
|
|
|
@@ -162,8 +169,8 @@
|
|
|
|
|
|
|
|
|
|
Summary: Library providing a simple API virtualization
|
|
|
|
|
Name: libvirt
|
|
|
|
|
Version: 0.7.4
|
|
|
|
|
Release: 1%{?dist}%{?extra_release}
|
|
|
|
|
Version: 0.7.6
|
|
|
|
|
Release: 3%{?dist}%{?extra_release}
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Source: http://libvirt.org/sources/libvirt-%{version}.tar.gz
|
|
|
|
@@ -242,7 +249,7 @@ Requires: device-mapper
|
|
|
|
|
BuildRequires: xen-devel
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_one}
|
|
|
|
|
BuildRequires: xmlrpc-c-devel >= 1.14.0
|
|
|
|
|
BuildRequires: xmlrpc-c-devel >= 1.14.0 xmlrpc-c-client
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
|
BuildRequires: xhtml1-dtds
|
|
|
|
@@ -257,6 +264,9 @@ BuildRequires: hal-devel
|
|
|
|
|
BuildRequires: libudev-devel >= 145
|
|
|
|
|
BuildRequires: libpciaccess-devel >= 0.10.9
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_yajl}
|
|
|
|
|
BuildRequires: yajl-devel
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_avahi}
|
|
|
|
|
BuildRequires: avahi-devel
|
|
|
|
|
%endif
|
|
|
|
@@ -333,6 +343,10 @@ BuildRequires: netcf-devel >= 0.1.4
|
|
|
|
|
# Fedora build root suckage
|
|
|
|
|
BuildRequires: gawk
|
|
|
|
|
|
|
|
|
|
# --no-add-needed changes
|
|
|
|
|
BuildRequires: autoconf automake libtool
|
|
|
|
|
Patch0: libvirt-0.7.6-add-needed.patch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Libvirt is a C toolkit to interact with the virtualization capabilities
|
|
|
|
|
of recent versions of Linux (and other OSes). The main package includes
|
|
|
|
@@ -385,6 +399,7 @@ of recent versions of Linux (and other OSes).
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%patch0 -p1 -b .jx
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%if ! %{with_xen}
|
|
|
|
@@ -495,6 +510,11 @@ of recent versions of Linux (and other OSes).
|
|
|
|
|
%define _without_udev --without-udev
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if ! %{with_yajl}
|
|
|
|
|
%define _without_yajl --without-yajl
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
autoreconf -v --install
|
|
|
|
|
%configure %{?_without_xen} \
|
|
|
|
|
%{?_without_qemu} \
|
|
|
|
|
%{?_without_openvz} \
|
|
|
|
@@ -522,6 +542,7 @@ of recent versions of Linux (and other OSes).
|
|
|
|
|
%{?_without_selinux} \
|
|
|
|
|
%{?_without_hal} \
|
|
|
|
|
%{?_without_udev} \
|
|
|
|
|
%{?_without_yajl} \
|
|
|
|
|
--with-qemu-user=%{qemu_user} \
|
|
|
|
|
--with-qemu-group=%{qemu_group} \
|
|
|
|
|
--with-init-script=redhat \
|
|
|
|
@@ -696,9 +717,6 @@ fi
|
|
|
|
|
%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/
|
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/iptables/filter/
|
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/iptables/nat/
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with_qemu}
|
|
|
|
@@ -763,6 +781,8 @@ fi
|
|
|
|
|
%{_datadir}/libvirt/schemas/secret.rng
|
|
|
|
|
%{_datadir}/libvirt/schemas/storageencryption.rng
|
|
|
|
|
|
|
|
|
|
%{_datadir}/libvirt/cpu_map.xml
|
|
|
|
|
|
|
|
|
|
%if %{with_sasl}
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/sasl2/libvirt.conf
|
|
|
|
|
%endif
|
|
|
|
@@ -802,6 +822,31 @@ fi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Feb 16 2010 Adam Jackson <ajax@redhat.com> 0.7.6-3
|
|
|
|
|
- libvirt-0.7.6-add-needed.patch: Fix FTBFS from --no-add-needed
|
|
|
|
|
- Add BuildRequires: xmlrpc-c-client for libxmlrpc_client.so
|
|
|
|
|
|
|
|
|
|
* Wed Feb 3 2010 Daniel Veillard <veillard@redhat.com> - 0.7.6-1
|
|
|
|
|
- upstream release of 0.7.6
|
|
|
|
|
- Use QEmu new device adressing when possible
|
|
|
|
|
- Implement CPU topology support for QEMU driver
|
|
|
|
|
- Implement SCSI controller hotplug/unplug for QEMU
|
|
|
|
|
- Implement support for multi IQN
|
|
|
|
|
- a lot of fixes and improvements
|
|
|
|
|
|
|
|
|
|
* Thu Jan 14 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.7.5-3
|
|
|
|
|
- bump for libssh2 rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 12 2010 Daniel P. Berrange <berrange@redhat.com> - 0.7.5-2
|
|
|
|
|
- Rebuild for libparted soname change
|
|
|
|
|
|
|
|
|
|
* Wed Dec 23 2009 Daniel Veillard <veillard@redhat.com> - 0.7.5-1
|
|
|
|
|
- Add new API virDomainMemoryStats
|
|
|
|
|
- Public API and domain extension for CPU flags
|
|
|
|
|
- vbox: Add support for version 3.1
|
|
|
|
|
- Support QEMU's virtual FAT block device driver
|
|
|
|
|
- a lot of fixes
|
|
|
|
|
|
|
|
|
|
* Fri Nov 20 2009 Daniel Veillard <veillard@redhat.com> - 0.7.4-1
|
|
|
|
|
- upstream release of 0.7.4
|
|
|
|
|
- udev node device backend
|
|
|
|
|