|
|
|
|
@@ -1,36 +1,30 @@
|
|
|
|
|
# -*- rpm-spec -*-
|
|
|
|
|
|
|
|
|
|
%define with_xen 0%{!?_without_xen:1}
|
|
|
|
|
%define with_xen_proxy 0%{!?_without_xen_proxy:1}
|
|
|
|
|
%define with_qemu 0%{!?_without_qemu:1}
|
|
|
|
|
%define with_openvz 0%{!?_without_openvz:1}
|
|
|
|
|
%define with_lxc 0%{!?_without_lxc:1}
|
|
|
|
|
%define with_sasl 0%{!?_without_sasl:1}
|
|
|
|
|
%define with_avahi 0%{!?_without_avahi:1}
|
|
|
|
|
%define with_polkit 0%{!?_without_polkit:0}
|
|
|
|
|
%define with_python 0%{!?_without_python:1}
|
|
|
|
|
%define with_libvirtd 0%{!?_without_libvirtd:1}
|
|
|
|
|
%define with_uml 0%{!?_without_uml:1}
|
|
|
|
|
%define with_network 0%{!?_without_network:1}
|
|
|
|
|
|
|
|
|
|
%define with_xen 0%{!?_without_xen:1}
|
|
|
|
|
%define with_xen_proxy 0%{!?_without_xen_proxy:1}
|
|
|
|
|
%define with_qemu 0%{!?_without_qemu:1}
|
|
|
|
|
%define with_openvz 0%{!?_without_openvz:1}
|
|
|
|
|
%define with_lxc 0%{!?_without_lxc:1}
|
|
|
|
|
%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:0}
|
|
|
|
|
%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}
|
|
|
|
|
%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_storage_mpath 0%{!?_without_storage_mpath:1}
|
|
|
|
|
%define with_numactl 0%{!?_without_numactl:1}
|
|
|
|
|
|
|
|
|
|
# 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:0}
|
|
|
|
|
|
|
|
|
|
# Xen is available only on i386 x86_64 ia64
|
|
|
|
|
%ifnarch i386 i586 i686 x86_64 ia64
|
|
|
|
|
@@ -52,64 +46,84 @@
|
|
|
|
|
%define with_xen_proxy 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 12
|
|
|
|
|
%define with_capng 0%{!?_without_capng:1}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 12
|
|
|
|
|
%define with_netcf 0%{!?_without_netcf:1}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 12
|
|
|
|
|
%define qemu_user qemu
|
|
|
|
|
%define qemu_group qemu
|
|
|
|
|
%else
|
|
|
|
|
%define qemu_user root
|
|
|
|
|
%define qemu_group root
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# If building on RHEL switch on the specific support
|
|
|
|
|
# for the specific Xen version
|
|
|
|
|
#
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
%define with_rhel5 0
|
|
|
|
|
%define with_rhel5 0
|
|
|
|
|
%else
|
|
|
|
|
%define with_rhel5 1
|
|
|
|
|
%define with_rhel5 1
|
|
|
|
|
%define with_polkit 0
|
|
|
|
|
%define with_one 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Summary: Library providing a simple API virtualization
|
|
|
|
|
Name: libvirt
|
|
|
|
|
Version: 0.6.2
|
|
|
|
|
Release: 2%{?dist}%{?extra_release}
|
|
|
|
|
Version: 0.7.1
|
|
|
|
|
Release: 1%{?dist}%{?extra_release}
|
|
|
|
|
License: LGPLv2+
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Source: libvirt-%{version}.tar.gz
|
|
|
|
|
Source: http://libvirt.org/sources/libvirt-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
# Patches cherry-picked from upstream
|
|
|
|
|
Patch0: libvirt-0.6.2-qemu-drive-format.patch
|
|
|
|
|
|
|
|
|
|
# Not for upstream. Temporary hack till PulseAudio autostart
|
|
|
|
|
# problems are sorted out when SELinux enforcing
|
|
|
|
|
Patch200: libvirt-0.6.2-svirt-sound.patch
|
|
|
|
|
# Temporary hack till PulseAudio autostart problems are sorted
|
|
|
|
|
# out when SELinux enforcing (bz 486112)
|
|
|
|
|
Patch00: libvirt-0.6.4-svirt-sound.patch
|
|
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
URL: http://libvirt.org/
|
|
|
|
|
BuildRequires: python python-devel
|
|
|
|
|
Requires: readline
|
|
|
|
|
Requires: ncurses
|
|
|
|
|
BuildRequires: python-devel
|
|
|
|
|
|
|
|
|
|
# The client side, i.e. shared libs and virsh are in a subpackage
|
|
|
|
|
Requires: libvirt-client = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
Requires: dnsmasq
|
|
|
|
|
Requires: bridge-utils
|
|
|
|
|
Requires: iptables
|
|
|
|
|
# needed for device enumeration
|
|
|
|
|
Requires: hal
|
|
|
|
|
# So remote clients can access libvirt over SSH tunnel
|
|
|
|
|
# (client invokes 'nc' against the UNIX socket on the server)
|
|
|
|
|
Requires: nc
|
|
|
|
|
%if %{with_sasl}
|
|
|
|
|
Requires: cyrus-sasl
|
|
|
|
|
# Not technically required, but makes 'out-of-box' config
|
|
|
|
|
# work correctly & doesn't have onerous dependencies
|
|
|
|
|
Requires: cyrus-sasl-md5
|
|
|
|
|
%endif
|
|
|
|
|
%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
|
|
|
|
|
# For showmount in FS driver (netfs discovery)
|
|
|
|
|
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
|
|
|
|
|
# For image compression
|
|
|
|
|
Requires: gzip
|
|
|
|
|
Requires: bzip2
|
|
|
|
|
Requires: lzop
|
|
|
|
|
Requires: xz
|
|
|
|
|
%else
|
|
|
|
|
%if %{with_xen}
|
|
|
|
|
# From Xen RPMs
|
|
|
|
|
@@ -128,11 +142,16 @@ Requires: iscsi-initiator-utils
|
|
|
|
|
# For disk driver
|
|
|
|
|
Requires: parted
|
|
|
|
|
%endif
|
|
|
|
|
# For svirt support
|
|
|
|
|
Requires: libselinux
|
|
|
|
|
%if %{with_storage_mpath}
|
|
|
|
|
# For multipath support
|
|
|
|
|
Requires: device-mapper
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_xen}
|
|
|
|
|
BuildRequires: xen-devel
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_one}
|
|
|
|
|
BuildRequires: xmlrpc-c-devel >= 1.14.0
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
|
BuildRequires: xhtml1-dtds
|
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
|
@@ -146,15 +165,17 @@ BuildRequires: avahi-devel
|
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
|
BuildRequires: dnsmasq
|
|
|
|
|
BuildRequires: bridge-utils
|
|
|
|
|
%if %{with_qemu}
|
|
|
|
|
BuildRequires: qemu
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_sasl}
|
|
|
|
|
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
|
|
|
|
|
@@ -180,19 +201,50 @@ BuildRequires: iscsi-initiator-utils
|
|
|
|
|
# For disk driver
|
|
|
|
|
BuildRequires: parted-devel
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_storage_mpath}
|
|
|
|
|
# For Multipath support
|
|
|
|
|
BuildRequires: device-mapper-devel
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_numactl}
|
|
|
|
|
# For QEMU/LXC numa info
|
|
|
|
|
BuildRequires: numactl-devel
|
|
|
|
|
%endif
|
|
|
|
|
Obsoletes: libvir <= 0.2
|
|
|
|
|
Provides: libvir = %{version}-%{release}
|
|
|
|
|
%if %{with_capng}
|
|
|
|
|
BuildRequires: libcap-ng-devel >= 0.5.0
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_phyp}
|
|
|
|
|
BuildRequires: libssh2-devel
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with_netcf}
|
|
|
|
|
BuildRequires: netcf-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Fedora build root suckage
|
|
|
|
|
BuildRequires: gawk
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Libvirt is a C toolkit to interact with the virtualization capabilities
|
|
|
|
|
of recent versions of Linux (and other OSes).
|
|
|
|
|
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
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: readline
|
|
|
|
|
Requires: ncurses
|
|
|
|
|
# So remote clients can access libvirt over SSH tunnel
|
|
|
|
|
# (client invokes 'nc' against the UNIX socket on the server)
|
|
|
|
|
Requires: nc
|
|
|
|
|
%if %{with_sasl}
|
|
|
|
|
Requires: cyrus-sasl
|
|
|
|
|
# Not technically required, but makes 'out-of-box' config
|
|
|
|
|
# work correctly & doesn't have onerous dependencies
|
|
|
|
|
Requires: cyrus-sasl-md5
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description client
|
|
|
|
|
Shared libraries and client binaries needed to access to the
|
|
|
|
|
virtualization capabilities of recent versions of Linux (and other OSes).
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Libraries, includes, etc. to compile with the libvirt library
|
|
|
|
|
@@ -202,8 +254,6 @@ Requires: pkgconfig
|
|
|
|
|
%if %{with_xen}
|
|
|
|
|
Requires: xen-devel
|
|
|
|
|
%endif
|
|
|
|
|
Obsoletes: libvir-devel <= 0.2
|
|
|
|
|
Provides: libvir-devel = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Includes and documentations for the C library providing an API to use
|
|
|
|
|
@@ -214,8 +264,6 @@ the virtualization capabilities of recent versions of Linux (and other OSes).
|
|
|
|
|
Summary: Python bindings for the libvirt library
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
Requires: libvirt = %{version}-%{release}
|
|
|
|
|
Obsoletes: libvir-python <= 0.2
|
|
|
|
|
Provides: libvir-python = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description python
|
|
|
|
|
The libvirt-python package contains a module that permits applications
|
|
|
|
|
@@ -227,12 +275,7 @@ of recent versions of Linux (and other OSes).
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
|
%patch200 -p0
|
|
|
|
|
|
|
|
|
|
mv NEWS NEWS.old
|
|
|
|
|
iconv -f ISO-8859-1 -t UTF-8 < NEWS.old > NEWS
|
|
|
|
|
%patch00 -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%if ! %{with_xen}
|
|
|
|
|
@@ -251,6 +294,10 @@ iconv -f ISO-8859-1 -t UTF-8 < NEWS.old > NEWS
|
|
|
|
|
%define _without_lxc --without-lxc
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if ! %{with_vbox}
|
|
|
|
|
%define _without_vbox --without-vbox
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if ! %{with_sasl}
|
|
|
|
|
%define _without_sasl --without-sasl
|
|
|
|
|
%endif
|
|
|
|
|
@@ -259,6 +306,10 @@ iconv -f ISO-8859-1 -t UTF-8 < NEWS.old > NEWS
|
|
|
|
|
%define _without_avahi --without-avahi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if ! %{with_phyp}
|
|
|
|
|
%define _without_phyp --without-phyp
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if ! %{with_polkit}
|
|
|
|
|
%define _without_polkit --without-polkit
|
|
|
|
|
%endif
|
|
|
|
|
@@ -275,6 +326,10 @@ iconv -f ISO-8859-1 -t UTF-8 < NEWS.old > NEWS
|
|
|
|
|
%define _without_uml --without-uml
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if ! %{with_one}
|
|
|
|
|
%define _without_one --without-one
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with_rhel5}
|
|
|
|
|
%define _with_rhel5_api --with-rhel5-api
|
|
|
|
|
%endif
|
|
|
|
|
@@ -299,50 +354,64 @@ iconv -f ISO-8859-1 -t UTF-8 < NEWS.old > NEWS
|
|
|
|
|
%define _without_storage_disk --without-storage-disk
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if ! %{with_storage_mpath}
|
|
|
|
|
%define _without_storage_mpath --without-storage-mpath
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if ! %{with_numactl}
|
|
|
|
|
%define _without_numactl --without-numactl
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if ! %{with_capng}
|
|
|
|
|
%define _without_capng --without-capng
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if ! %{with_netcf}
|
|
|
|
|
%define _without_netcf --without-netcf
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%configure %{?_without_xen} \
|
|
|
|
|
%{?_without_qemu} \
|
|
|
|
|
%{?_without_openvz} \
|
|
|
|
|
%{?_without_lxc} \
|
|
|
|
|
%{?_without_vbox} \
|
|
|
|
|
%{?_without_sasl} \
|
|
|
|
|
%{?_without_avahi} \
|
|
|
|
|
%{?_without_polkit} \
|
|
|
|
|
%{?_without_python} \
|
|
|
|
|
%{?_without_libvirtd} \
|
|
|
|
|
%{?_without_uml} \
|
|
|
|
|
%{?_without_one} \
|
|
|
|
|
%{?_without_phyp} \
|
|
|
|
|
%{?_without_network} \
|
|
|
|
|
%{?_with_rhel5_api} \
|
|
|
|
|
%{?_without_storage_fs} \
|
|
|
|
|
%{?_without_storage_lvm} \
|
|
|
|
|
%{?_without_storage_iscsi} \
|
|
|
|
|
%{?_without_storage_disk} \
|
|
|
|
|
%{?_without_storage_mpath} \
|
|
|
|
|
%{?_without_numactl} \
|
|
|
|
|
%{?_without_capng} \
|
|
|
|
|
%{?_without_netcf} \
|
|
|
|
|
--with-qemu-user=%{qemu_user} \
|
|
|
|
|
--with-qemu-group=%{qemu_group} \
|
|
|
|
|
--with-init-script=redhat \
|
|
|
|
|
--with-qemud-pid-file=%{_localstatedir}/run/libvirt_qemud.pid \
|
|
|
|
|
--with-remote-file=%{_localstatedir}/run/libvirtd.pid
|
|
|
|
|
--with-remote-pid-file=%{_localstatedir}/run/libvirtd.pid
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
gzip -9 ChangeLog
|
|
|
|
|
|
|
|
|
|
%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)
|
|
|
|
|
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.a
|
|
|
|
|
install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/run/libvirt/
|
|
|
|
|
# Default dir for disk images defined in SELinux policy
|
|
|
|
|
install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/lib/libvirt/images/
|
|
|
|
|
# Default dir for kernel+initrd images defnied in SELinux policy
|
|
|
|
|
install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/lib/libvirt/boot/
|
|
|
|
|
|
|
|
|
|
%if %{with_qemu}
|
|
|
|
|
# We don't want to install /etc/libvirt/qemu/networks in the main %files list
|
|
|
|
|
@@ -378,8 +447,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}
|
|
|
|
|
@@ -398,6 +478,9 @@ fi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
/sbin/chkconfig --add libvirtd
|
|
|
|
|
if [ "$1" -ge "1" ]; then
|
|
|
|
|
/sbin/service libvirtd condrestart > /dev/null 2>&1
|
|
|
|
|
fi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
@@ -408,15 +491,14 @@ if [ $1 = 0 ]; then
|
|
|
|
|
fi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
%post client -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.lang
|
|
|
|
|
%postun client -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-, root, root)
|
|
|
|
|
|
|
|
|
|
%doc AUTHORS ChangeLog NEWS README COPYING.LIB TODO
|
|
|
|
|
%doc %{_mandir}/man1/virsh.1*
|
|
|
|
|
%{_bindir}/virsh
|
|
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
%doc AUTHORS ChangeLog.gz NEWS README COPYING.LIB TODO
|
|
|
|
|
%dir %attr(0700, root, root) %{_sysconfdir}/libvirt/
|
|
|
|
|
|
|
|
|
|
%if %{with_qemu}
|
|
|
|
|
@@ -436,35 +518,23 @@ fi
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/libvirt/qemu.conf
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with_sasl}
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/sasl2/libvirt.conf
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%if %{with_qemu}
|
|
|
|
|
%dir %{_datadir}/libvirt/
|
|
|
|
|
%dir %{_datadir}/libvirt/networks/
|
|
|
|
|
%{_datadir}/libvirt/networks/default.xml
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%dir %{_datadir}/libvirt/
|
|
|
|
|
%dir %{_datadir}/libvirt/schemas/
|
|
|
|
|
|
|
|
|
|
%{_datadir}/libvirt/schemas/domain.rng
|
|
|
|
|
%{_datadir}/libvirt/schemas/network.rng
|
|
|
|
|
%{_datadir}/libvirt/schemas/storagepool.rng
|
|
|
|
|
%{_datadir}/libvirt/schemas/storagevol.rng
|
|
|
|
|
%{_datadir}/libvirt/schemas/nodedev.rng
|
|
|
|
|
%{_datadir}/libvirt/schemas/capability.rng
|
|
|
|
|
|
|
|
|
|
%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 %{_localstatedir}/run/libvirt/qemu/
|
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/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
|
|
|
|
|
%if %{with_lxc}
|
|
|
|
|
%dir %{_localstatedir}/run/libvirt/lxc/
|
|
|
|
|
@@ -493,8 +563,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}
|
|
|
|
|
@@ -516,6 +590,33 @@ fi
|
|
|
|
|
|
|
|
|
|
%doc docs/*.xml
|
|
|
|
|
|
|
|
|
|
%files client -f %{name}.lang
|
|
|
|
|
%defattr(-, root, root)
|
|
|
|
|
%doc AUTHORS ChangeLog.gz NEWS README COPYING.LIB TODO
|
|
|
|
|
|
|
|
|
|
%{_mandir}/man1/virsh.1*
|
|
|
|
|
%{_mandir}/man1/virt-xml-validate.1*
|
|
|
|
|
%{_bindir}/virsh
|
|
|
|
|
%{_bindir}/virt-xml-validate
|
|
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
|
|
|
|
|
|
%dir %{_datadir}/libvirt/
|
|
|
|
|
%dir %{_datadir}/libvirt/schemas/
|
|
|
|
|
|
|
|
|
|
%{_datadir}/libvirt/schemas/domain.rng
|
|
|
|
|
%{_datadir}/libvirt/schemas/network.rng
|
|
|
|
|
%{_datadir}/libvirt/schemas/storagepool.rng
|
|
|
|
|
%{_datadir}/libvirt/schemas/storagevol.rng
|
|
|
|
|
%{_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
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-, root, root)
|
|
|
|
|
|
|
|
|
|
@@ -523,6 +624,7 @@ fi
|
|
|
|
|
%dir %{_includedir}/libvirt
|
|
|
|
|
%{_includedir}/libvirt/*.h
|
|
|
|
|
%{_libdir}/pkgconfig/libvirt.pc
|
|
|
|
|
%dir %{_datadir}/gtk-doc/html/libvirt/
|
|
|
|
|
%doc %{_datadir}/gtk-doc/html/libvirt/*.devhelp
|
|
|
|
|
%doc %{_datadir}/gtk-doc/html/libvirt/*.html
|
|
|
|
|
%doc %{_datadir}/gtk-doc/html/libvirt/*.png
|
|
|
|
|
@@ -547,6 +649,165 @@ fi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Sep 15 2009 Daniel Veillard <veillard@redhat.com> - 0.7.1-1
|
|
|
|
|
- Upstream release of 0.7.1
|
|
|
|
|
- ESX, VBox driver updates
|
|
|
|
|
- mutipath support
|
|
|
|
|
- support for encrypted (qcow) volume
|
|
|
|
|
- compressed save image format for Qemu/KVM
|
|
|
|
|
- QEmu host PCI device hotplug support
|
|
|
|
|
- configuration of huge pages in guests
|
|
|
|
|
- a lot of fixes
|
|
|
|
|
|
|
|
|
|
* Mon Sep 14 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.1-0.2.gitfac3f4c
|
|
|
|
|
- Update to newer snapshot of 0.7.1
|
|
|
|
|
- Stop libvirt using untrusted 'info vcpus' PID data (#520864)
|
|
|
|
|
- Support relabelling of USB and PCI devices
|
|
|
|
|
- Enable multipath storage support
|
|
|
|
|
- Restart libvirtd upon RPM upgrade
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
- Move various requires to the libvirt-client sub-package
|
|
|
|
|
- Sync some trivial cleanups from upstream spec file
|
|
|
|
|
- Remove explicit libxml2 requires, again
|
|
|
|
|
- Build with --without-capng if capng support is disabled
|
|
|
|
|
- Remove explicit dir creating in makeinstall, replaced by attr in files
|
|
|
|
|
- Set perms on /var/{run,lib,cache}/libvirt/qemu
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2009 Mark McLoughlin <markmc@redhat.com> - 0.7.0-0.2.gitf055724
|
|
|
|
|
- Drop glusterfs dep to 2.0.1 (bug #514191)
|
|
|
|
|
|
|
|
|
|
* Mon Jul 27 2009 Daniel Veillard <veillard@redhat.com> - 0.7.0-0.1.gitf055724
|
|
|
|
|
- prerelease of 0.7.0
|
|
|
|
|
|
|
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.5-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 10 2009 Richard W.M. Jones <rjones@redhat.com> - 0.6.5-2.fc12
|
|
|
|
|
- Bump release number to rebuild against new libparted.
|
|
|
|
|
|
|
|
|
|
* Fri Jul 3 2009 Daniel Veillard <veillard@redhat.com> - 0.6.5-1.fc12
|
|
|
|
|
- Upstream release of 0.6.5
|
|
|
|
|
- OpenNebula driver
|
|
|
|
|
- many bug fixes
|
|
|
|
|
|
|
|
|
|
* Fri Jul 3 2009 Mark McLoughlin <markmc@redhat.com> - 0.6.4-4.fc12
|
|
|
|
|
- Fix libvirtd crash with bad capabilities data (bug #505635)
|
|
|
|
|
|
|
|
|
|
* Fri Jul 3 2009 Mark McLoughlin <markmc@redhat.com> - 0.6.4-3.fc12
|
|
|
|
|
- Handle shared/readonly image labelling (bug #493692)
|
|
|
|
|
- Don't unnecessarily try to change a file context (bug #507555)
|
|
|
|
|
- Don't try to label a disk with no path (e.g. empty cdrom) (bug #499569)
|
|
|
|
|
|
|
|
|
|
* Fri Jun 5 2009 Mark McLoughlin <markmc@redhat.com> - 0.6.4-2.fc12
|
|
|
|
|
- Remove the qemu BuildRequires
|
|
|
|
|
|
|
|
|
|
* Fri May 29 2009 Daniel Veillard <veillard@redhat.com> - 0.6.4-1.fc12
|
|
|
|
|
- Upstream release of 0.6.4
|
|
|
|
|
- new APIs
|
|
|
|
|
- fixes for latests QEmu/KVM versions
|
|
|
|
|
- various assorted fixes
|
|
|
|
|
|
|
|
|
|
* Mon May 25 2009 Mark McLoughlin <markmc@redhat.com> - 0.6.3-11.fc12
|
|
|
|
|
- Bring up the bridge, even if it doesn't have an IP address (bug #501912)
|
|
|
|
|
|
|
|
|
|
* Thu May 21 2009 Mark McLoughlin <markmc@redhat.com> - 0.6.3-10.fc12
|
|
|
|
|
- Fix XML attribute escaping (bug #499791)
|
|
|
|
|
- Fix serious event handling issues causing guests to be destroyed (bug #499698)
|
|
|
|
|
|
|
|
|
|
* Thu May 21 2009 Mark McLoughlin <markmc@redhat.com> - 0.6.3-9.fc12
|
|
|
|
|
- Fix qemu argv detection with latest qemu (bug #501923)
|
|
|
|
|
|
|
|
|
|
* Sun May 10 2009 Cole Robinson <crobinso@redhat.com> - 0.6.2-8.fc12
|
|
|
|
|
- Don't try to label a disk with no path (e.g. empty cdrom) (bug #499569)
|
|
|
|
|
|
|
|
|
|
* Thu May 7 2009 Mark McLoughlin <markmc@redhat.com> - 0.6.3-7.fc12
|
|
|
|
|
- Enable migration for qemu 0.10 (bug #499704)
|
|
|
|
|
|
|
|
|
|
* Wed May 6 2009 Cole Robinson <crobinso@redhat.com> - 0.6.3-6.fc12
|
|
|
|
|
- Refresh qemu caps when getCapabilities is called (bug #460649)
|
|
|
|
|
|
|
|
|
|
* Wed May 6 2009 Mark McLoughlin <markmc@redhat.com> - 0.6.3-5.fc12
|
|
|
|
|
- Fix handling of <hostdev managed='yes'> (bug #499386)
|
|
|
|
|
|
|
|
|
|
* Tue May 5 2009 Daniel Berrange <berrange@redhat.com> - 0.6.3-4.fc12
|
|
|
|
|
- Fix readonly/shared disk image labelling (rhbz #493692)
|
|
|
|
|
|
|
|
|
|
* Tue Apr 28 2009 Daniel Veillard <veillard@redhat.com> - 0.6.3-3.fc12
|
|
|
|
|
- was also missing /usr/share/gtk-doc/html/libvirt in -devel
|
|
|
|
|
|
|
|
|
|
* Tue Apr 28 2009 Daniel Veillard <veillard@redhat.com> - 0.6.3-2.fc12
|
|
|
|
|
- fix packaging bug #496945 libvirt should own /var/cache/libvirt
|
|
|
|
|
|
|
|
|
|
* Fri Apr 24 2009 Daniel Veillard <veillard@redhat.com> - 0.6.3-1.fc12
|
|
|
|
|
- release of 0.6.3
|
|
|
|
|
- VirtualBox driver
|
|
|
|
|
- new virt-xml-validate command
|
|
|
|
|
- assorted bug fixes
|
|
|
|
|
|
|
|
|
|
* Thu Apr 16 2009 Mark McLoughlin <markmc@redhat.com> - 0.6.2-2.fc12
|
|
|
|
|
- Fix qemu drive format specification (#496092)
|
|
|
|
|
|
|
|
|
|
|