|
|
|
@@ -1,3 +1,4 @@
|
|
|
|
|
%define _default_patch_fuzz 2 \n\n
|
|
|
|
|
# -*- rpm-spec -*-
|
|
|
|
|
|
|
|
|
|
# A client only build will create a libvirt.so only containing
|
|
|
|
@@ -53,12 +54,14 @@
|
|
|
|
|
%define with_storage_mpath 0%{!?_without_storage_mpath:%{server_drivers}}
|
|
|
|
|
%define with_numactl 0%{!?_without_numactl:%{server_drivers}}
|
|
|
|
|
%define with_selinux 0%{!?_without_selinux:%{server_drivers}}
|
|
|
|
|
%define with_hal 0%{!?_without_hal:%{server_drivers}}
|
|
|
|
|
|
|
|
|
|
# A few optional bits off by default, we enable later
|
|
|
|
|
%define with_polkit 0%{!?_without_polkit:0}
|
|
|
|
|
%define with_capng 0%{!?_without_capng:0}
|
|
|
|
|
%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}
|
|
|
|
@@ -72,6 +75,10 @@
|
|
|
|
|
%define with_xen 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Numactl is not available on s390[x]
|
|
|
|
|
%ifarch s390 s390x
|
|
|
|
|
%define with_numactl 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# RHEL doesn't ship OpenVZ, VBox, UML, OpenNebula, PowerHypervisor or ESX
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
@@ -129,6 +136,18 @@
|
|
|
|
|
%define with_netcf 0%{!?_without_netcf:%{server_drivers}}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# udev is used to manage host devices in Fedora 12 / RHEL-6 or newer
|
|
|
|
|
%if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
|
|
|
|
|
%define with_udev 0%{!?_without_udev:%{server_drivers}}
|
|
|
|
|
%else
|
|
|
|
|
%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
|
|
|
|
@@ -150,8 +169,8 @@
|
|
|
|
|
|
|
|
|
|
Summary: Library providing a simple API virtualization
|
|
|
|
|
Name: libvirt
|
|
|
|
|
Version: 0.7.2
|
|
|
|
|
Release: 1%{?dist}%{?extra_release}
|
|
|
|
|
Version: 0.7.6
|
|
|
|
|
Release: 2%{?dist}%{?extra_release}
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Source: http://libvirt.org/sources/libvirt-%{version}.tar.gz
|
|
|
|
@@ -175,6 +194,9 @@ Requires: iptables
|
|
|
|
|
%if %{with_hal}
|
|
|
|
|
Requires: hal
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_udev}
|
|
|
|
|
Requires: udev >= 145
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_polkit}
|
|
|
|
|
%if 0%{?fedora} >= 12 || 0%{?rhel} >=6
|
|
|
|
|
Requires: polkit >= 0.93
|
|
|
|
@@ -227,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
|
|
|
|
@@ -238,6 +260,13 @@ BuildRequires: gnutls-devel
|
|
|
|
|
%if %{with_hal}
|
|
|
|
|
BuildRequires: hal-devel
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_udev}
|
|
|
|
|
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
|
|
|
|
@@ -308,12 +337,16 @@ BuildRequires: libcap-ng-devel >= 0.5.0
|
|
|
|
|
BuildRequires: libssh2-devel
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_netcf}
|
|
|
|
|
BuildRequires: netcf-devel
|
|
|
|
|
BuildRequires: netcf-devel >= 0.1.4
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
@@ -341,7 +374,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
|
|
|
|
@@ -366,6 +399,7 @@ of recent versions of Linux (and other OSes).
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%patch0 -p1 -b .add-needed
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%if ! %{with_xen}
|
|
|
|
@@ -472,6 +506,15 @@ of recent versions of Linux (and other OSes).
|
|
|
|
|
%define _without_hal --without-hal
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if ! %{with_udev}
|
|
|
|
|
%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} \
|
|
|
|
@@ -498,6 +541,8 @@ of recent versions of Linux (and other OSes).
|
|
|
|
|
%{?_without_netcf} \
|
|
|
|
|
%{?_without_selinux} \
|
|
|
|
|
%{?_without_hal} \
|
|
|
|
|
%{?_without_udev} \
|
|
|
|
|
%{?_without_yajl} \
|
|
|
|
|
--with-qemu-user=%{qemu_user} \
|
|
|
|
|
--with-qemu-group=%{qemu_group} \
|
|
|
|
|
--with-init-script=redhat \
|
|
|
|
@@ -672,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}
|
|
|
|
@@ -739,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
|
|
|
|
@@ -778,6 +822,56 @@ fi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Feb 16 2010 Adam Jackson <ajax@redhat.com> 0.7.6-2
|
|
|
|
|
- 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
|
|
|
|
|
- API to check object properties
|
|
|
|
|
- better QEmu monitor processing
|
|
|
|
|
- MAC address based port filtering for qemu
|
|
|
|
|
- support IPv6 and multiple addresses per interfaces
|
|
|
|
|
- a lot of fixes
|
|
|
|
|
|
|
|
|
|
* Thu Nov 19 2009 Daniel P. Berrange <berrange@redhat.com> - 0.7.2-6
|
|
|
|
|
- Really fix restore file labelling this time
|
|
|
|
|
|
|
|
|
|
* Wed Nov 11 2009 Daniel P. Berrange <berrange@redhat.com> - 0.7.2-5
|
|
|
|
|
- Disable numactl on s390[x]. Again.
|
|
|
|
|
|
|
|
|
|
* Wed Nov 11 2009 Daniel P. Berrange <berrange@redhat.com> - 0.7.2-4
|
|
|
|
|
- Fix QEMU save/restore permissions / labelling
|
|
|
|
|
|
|
|
|
|
* Thu Oct 29 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.2-3
|
|
|
|
|
- Avoid compressing small log files (#531030)
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|