2007-01-11 01:44:36 +01:00
|
|
|
#
|
2011-01-15 02:55:10 +01:00
|
|
|
# spec file for package libvirt
|
2007-01-11 01:44:36 +01:00
|
|
|
#
|
2012-01-03 17:29:06 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-11 01:44:36 +01:00
|
|
|
#
|
2008-08-10 01:31:46 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-11 01:44:36 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-04-05 00:08:05 +02:00
|
|
|
# For now, default to a full server + client build
|
|
|
|
%define client_only 0
|
|
|
|
|
|
|
|
# Disable all server side drivers if client only build requested
|
|
|
|
%if %{client_only}
|
|
|
|
%define server_drivers 0
|
2010-12-02 17:42:49 +01:00
|
|
|
%else
|
2011-04-05 00:08:05 +02:00
|
|
|
%define server_drivers 1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# 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 that run on local host
|
|
|
|
%define with_xen 0%{!?_without_xen:%{server_drivers}}
|
|
|
|
%define with_qemu 0%{!?_without_qemu:%{server_drivers}}
|
|
|
|
%define with_openvz 0%{!?_without_openvz:%{server_drivers}}
|
|
|
|
%define with_lxc 0%{!?_without_lxc:%{server_drivers}}
|
|
|
|
%define with_vbox 0%{!?_without_vbox:%{server_drivers}}
|
|
|
|
%define with_uml 0%{!?_without_uml:%{server_drivers}}
|
|
|
|
%define with_libxl 0%{!?_without_libxl:%{server_drivers}}
|
2011-07-05 22:25:50 +02:00
|
|
|
%define with_vmware 0%{!?_without_vmware:%{server_drivers}}
|
2011-04-05 00:08:05 +02:00
|
|
|
|
2011-11-10 02:55:47 +01:00
|
|
|
# Then the hypervisor drivers that talk via a native remote protocol
|
2011-04-05 00:08:05 +02:00
|
|
|
%define with_phyp 0%{!?_without_phyp:0}
|
|
|
|
%define with_esx 0%{!?_without_esx:1}
|
2011-07-05 22:25:50 +02:00
|
|
|
%define with_xenapi 0%{!?_without_xenapi:1}
|
2011-09-26 05:28:30 +02:00
|
|
|
%define with_hyperv 0%{!?_without_hyperv:0}
|
2011-04-05 00:08:05 +02:00
|
|
|
|
|
|
|
# Then the secondary host drivers
|
|
|
|
%define with_network 0%{!?_without_network:%{server_drivers}}
|
|
|
|
%define with_storage_fs 0%{!?_without_storage_fs:%{server_drivers}}
|
|
|
|
%define with_storage_lvm 0%{!?_without_storage_lvm:%{server_drivers}}
|
|
|
|
%define with_storage_iscsi 0%{!?_without_storage_iscsi:%{server_drivers}}
|
|
|
|
%define with_storage_disk 0%{!?_without_storage_disk:%{server_drivers}}
|
|
|
|
%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}}
|
2011-08-08 23:26:58 +02:00
|
|
|
%define with_apparmor 0%{!?_without_apparmor:%{server_drivers}}
|
2011-04-05 00:08:05 +02:00
|
|
|
|
2011-09-08 18:17:38 +02:00
|
|
|
# Optional bits on by default
|
|
|
|
%define with_polkit 0%{!?_without_polkit:1}
|
|
|
|
|
2011-04-05 00:08:05 +02:00
|
|
|
# A few optional bits off by default, we enable later
|
|
|
|
%define with_capng 0%{!?_without_capng:0}
|
|
|
|
%define with_netcf 0%{!?_without_netcf:0}
|
2011-09-16 20:53:58 +02:00
|
|
|
%define with_netcontrol 0%{!?_without_netcontrol:0}
|
2011-04-05 00:08:05 +02:00
|
|
|
%define with_udev 0%{!?_without_udev:0}
|
|
|
|
%define with_hal 0%{!?_without_hal:0}
|
|
|
|
%define with_yajl 0%{!?_without_yajl:0}
|
|
|
|
%define with_nwfilter 0%{!?_without_nwfilter:0}
|
|
|
|
%define with_libpcap 0%{!?_without_libpcap:0}
|
|
|
|
%define with_macvtap 0%{!?_without_macvtap:0}
|
|
|
|
%define with_libnl 0%{!?_without_libnl:0}
|
|
|
|
%define with_audit 0%{!?_without_audit:0}
|
|
|
|
%define with_dtrace 0%{!?_without_dtrace:0}
|
|
|
|
%define with_cgconfig 0%{!?_without_cgconfig:0}
|
2011-12-15 02:23:04 +01:00
|
|
|
%define with_sanlock 0%{!?_without_sanlock:0}
|
|
|
|
%define with_systemd 0%{!?_without_systemd:0}
|
2011-04-05 00:08:05 +02:00
|
|
|
# Non-server/HV driver defaults which are always enabled
|
|
|
|
%define with_python 0%{!?_without_python:1}
|
|
|
|
%define with_sasl 0%{!?_without_sasl:1}
|
|
|
|
|
|
|
|
# Set the OS / architecture specific special cases
|
|
|
|
|
|
|
|
# Xen is available only on i386 x86_64
|
|
|
|
%ifnarch %ix86 x86_64
|
|
|
|
%define with_xen 0
|
|
|
|
%define with_libxl 0
|
2010-12-02 17:42:49 +01:00
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
|
2011-05-06 16:29:19 +02:00
|
|
|
# libxenlight driver requires Xen >= 4.1, which is only
|
|
|
|
# available in openSUSE >= 12.1 or SLE >= 11sp2
|
|
|
|
%if 0%{?suse_version} < 1210
|
|
|
|
%define with_libxl 0
|
|
|
|
%endif
|
|
|
|
|
2011-04-05 00:08:05 +02:00
|
|
|
# numactl only on x86_64 and ia64
|
|
|
|
%ifnarch x86_64 ia64
|
|
|
|
%define with_numactl 0
|
2011-01-18 18:47:48 +01:00
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
|
2011-11-10 02:55:47 +01:00
|
|
|
# SLES doesn't contain OpenVZ, VBox, UML, ESX, VMWare, Citrix XenAPI,
|
|
|
|
# or hyper-v
|
2011-04-05 00:08:05 +02:00
|
|
|
%if 0%{?sles_version}
|
|
|
|
%define with_openvz 0
|
|
|
|
%define with_vbox 0
|
|
|
|
%define with_uml 0
|
|
|
|
%define with_esx 0
|
|
|
|
%define with_vmware 0
|
|
|
|
%define with_xenapi 0
|
2011-11-10 02:55:47 +01:00
|
|
|
%define with_hyperv 0
|
2010-12-02 17:42:49 +01:00
|
|
|
%endif
|
2010-03-01 01:43:01 +01:00
|
|
|
|
2011-04-05 00:08:05 +02:00
|
|
|
# Enable phyp driver for IBM Power systems
|
|
|
|
%ifarch ppc64
|
|
|
|
%define with_phyp 1
|
2008-07-08 22:02:35 +02:00
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
|
2010-01-08 01:37:05 +01:00
|
|
|
# LXC and selinux are not available on anything < openSUSE 11.1
|
|
|
|
%if 0%{?suse_version} < 1110
|
2011-04-05 00:08:05 +02:00
|
|
|
%define with_lxc 0
|
|
|
|
%define with_selinux 0
|
2008-08-10 01:31:46 +02:00
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
|
|
|
|
# udev is used to manage host devices in 11.1 or newer
|
|
|
|
%if 0%{?suse_version} > 1110
|
|
|
|
%define with_udev 0%{!?_without_udev:%{server_drivers}}
|
|
|
|
%else
|
|
|
|
%define with_hal 0%{!?_without_hal:%{server_drivers}}
|
2009-10-13 17:16:43 +02:00
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
|
2011-09-16 20:53:58 +02:00
|
|
|
# netcontrol is used to manage network interfaces on openSUSE >= 12.1
|
|
|
|
%if 0%{?suse_version} >= 1210
|
|
|
|
%define with_netcontrol 0%{!?_without_netcontrol:%{server_drivers}}
|
|
|
|
%endif
|
|
|
|
|
2011-05-17 19:39:57 +02:00
|
|
|
# libcapng is used to manage capabilities in 11.3 or newer.
|
|
|
|
# It is also used by lxc and needs to be enabled if lxc is enabled.
|
|
|
|
%if 0%{?suse_version} >= 1130 || %{with_lxc}
|
2011-04-05 00:08:05 +02:00
|
|
|
%define with_capng 0%{!?_without_capng:1}
|
2010-01-08 01:37:05 +01:00
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
|
|
|
|
# Enable yajl library for JSON mode with QEMU in 11.4 or newer
|
|
|
|
%if 0%{?suse_version} >= 1140
|
|
|
|
%define with_yajl 0%{!?_without_yajl:%{server_drivers}}
|
|
|
|
%endif
|
|
|
|
|
2011-06-30 21:38:30 +02:00
|
|
|
# All supported version of openSUSE/SLE contain audit
|
|
|
|
%define with_audit 0%{!?_without_audit:1}
|
|
|
|
|
2012-01-05 00:48:35 +01:00
|
|
|
%if 0%{?suse_version} > 1140
|
|
|
|
%define with_systemd 0%{!?_without_systemd:1}
|
|
|
|
%endif
|
|
|
|
|
2012-01-19 00:03:47 +01:00
|
|
|
# Enable sanlock on openSUSE > 12.1
|
|
|
|
%if 0%{?suse_version} > 1210
|
|
|
|
%define with_sanlock 0%{!?_without_sanlock:%{server_drivers}}
|
|
|
|
%endif
|
|
|
|
|
2011-08-04 20:00:03 +02:00
|
|
|
# Disable some drivers when building without libvirt daemon.
|
|
|
|
# The logic is the same as in configure.ac
|
|
|
|
%if ! %{with_libvirtd}
|
|
|
|
%define with_network 0
|
|
|
|
%define with_qemu 0
|
|
|
|
%define with_lxc 0
|
|
|
|
%define with_uml 0
|
|
|
|
%define with_hal 0
|
|
|
|
%define with_udev 0
|
|
|
|
%define with_storage_fs 0
|
|
|
|
%define with_storage_lvm 0
|
|
|
|
%define with_storage_iscsi 0
|
|
|
|
%define with_storage_mpath 0
|
|
|
|
%define with_storage_disk 0
|
|
|
|
%endif
|
|
|
|
|
2011-04-05 00:08:05 +02:00
|
|
|
# Enable libpcap library
|
|
|
|
%if %{with_qemu}
|
|
|
|
%if 0%{?suse_version} >= 1140
|
|
|
|
%define with_nwfilter 0%{!?_without_nwfilter:%{server_drivers}}
|
|
|
|
%define with_libpcap 0%{!?_without_libpcap:%{server_drivers}}
|
|
|
|
%define with_macvtap 0%{!?_without_macvtap:%{server_drivers}}
|
2011-06-09 19:01:57 +02:00
|
|
|
# Force QEMU to run as qemu:qemu
|
2011-06-09 17:50:53 +02:00
|
|
|
%define qemu_user qemu
|
|
|
|
%define qemu_group qemu
|
|
|
|
%else
|
|
|
|
%define qemu_user root
|
|
|
|
%define qemu_group root
|
2011-04-05 00:08:05 +02:00
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with_macvtap}
|
|
|
|
%define with_libnl 1
|
|
|
|
%endif
|
|
|
|
|
2011-06-15 23:48:27 +02:00
|
|
|
%define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services
|
|
|
|
|
2012-01-20 00:02:47 +01:00
|
|
|
BuildRequires: bridge-utils
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: libgcrypt-devel
|
|
|
|
BuildRequires: libgnutls-devel
|
|
|
|
BuildRequires: libtasn1-devel
|
|
|
|
BuildRequires: libtool
|
2011-04-05 00:08:05 +02:00
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: libxslt
|
|
|
|
BuildRequires: ncurses-devel
|
2012-01-20 00:02:47 +01:00
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: python-devel
|
2011-04-05 00:08:05 +02:00
|
|
|
BuildRequires: python-xml
|
2012-01-20 00:02:47 +01:00
|
|
|
BuildRequires: readline-devel
|
|
|
|
BuildRequires: xhtml-dtd
|
2011-04-05 00:08:05 +02:00
|
|
|
# Only for directory ownership:
|
|
|
|
BuildRequires: gtk-doc
|
|
|
|
%if %{with_xen} || %{with_libxl}
|
|
|
|
BuildRequires: xen-devel
|
|
|
|
%endif
|
|
|
|
%if %{with_sasl}
|
|
|
|
BuildRequires: cyrus-sasl-devel
|
|
|
|
%endif
|
2010-01-08 01:37:05 +01:00
|
|
|
%if %{with_hal}
|
|
|
|
BuildRequires: hal-devel
|
|
|
|
%endif
|
|
|
|
%if %{with_udev}
|
|
|
|
BuildRequires: libudev-devel >= 145
|
|
|
|
BuildRequires: libpciaccess0-devel >= 0.10.9
|
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
%if %{with_avahi}
|
2008-07-08 22:02:35 +02:00
|
|
|
%if 0%{?suse_version} > 1030
|
2008-08-10 01:31:46 +02:00
|
|
|
BuildRequires: libavahi-devel
|
2008-07-08 22:02:35 +02:00
|
|
|
%else
|
|
|
|
BuildRequires: avahi-devel
|
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
%endif
|
2008-09-01 17:06:07 +02:00
|
|
|
%if %{with_selinux}
|
|
|
|
BuildRequires: libselinux-devel
|
|
|
|
%endif
|
2010-08-09 02:19:48 +02:00
|
|
|
%if %{with_apparmor}
|
|
|
|
BuildRequires: libapparmor-devel
|
|
|
|
%endif
|
2010-01-08 01:37:05 +01:00
|
|
|
%if %{with_numactl}
|
2009-02-03 22:58:24 +01:00
|
|
|
BuildRequires: libnuma-devel
|
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
%if %{with_polkit}
|
2009-09-27 00:09:58 +02:00
|
|
|
%if 0%{?suse_version} > 1110
|
|
|
|
BuildRequires: polkit >= 0.9
|
|
|
|
%else
|
|
|
|
BuildRequires: PolicyKit-devel >= 0.6
|
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
%endif
|
2009-10-13 17:16:43 +02:00
|
|
|
%if %{with_phyp}
|
|
|
|
BuildRequires: libssh2-devel
|
|
|
|
%endif
|
2010-12-02 17:42:49 +01:00
|
|
|
%if %{with_yajl}
|
|
|
|
BuildRequires: libyajl-devel
|
|
|
|
%endif
|
2010-10-02 00:46:48 +02:00
|
|
|
%if %{with_esx}
|
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
%endif
|
2011-09-26 05:28:30 +02:00
|
|
|
%if %{with_hyperv}
|
|
|
|
BuildRequires: libwsman-devel >= 2.2.3
|
|
|
|
%endif
|
2010-10-06 00:35:25 +02:00
|
|
|
%if %{with_capng}
|
2011-04-05 00:08:05 +02:00
|
|
|
BuildRequires: libcap-ng-devel >= 0.5.0
|
2010-10-06 00:35:25 +02:00
|
|
|
%endif
|
2010-12-02 17:42:49 +01:00
|
|
|
%if %{with_netcf}
|
2011-04-05 00:08:05 +02:00
|
|
|
BuildRequires: netcf-devel >= 0.1.4
|
2010-12-02 17:42:49 +01:00
|
|
|
%endif
|
2012-01-09 23:51:36 +01:00
|
|
|
%define with_netcontrol 1
|
2011-09-16 20:53:58 +02:00
|
|
|
%if %{with_netcontrol}
|
|
|
|
BuildRequires: libnetcontrol-devel >= 0.2.0
|
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
%if %{with_network}
|
|
|
|
BuildRequires: dnsmasq >= 2.41
|
2012-01-11 17:36:57 +01:00
|
|
|
BuildRequires: iptables
|
2011-04-05 00:08:05 +02:00
|
|
|
BuildRequires: radvd
|
|
|
|
%endif
|
|
|
|
%if %{with_nwfilter}
|
|
|
|
BuildRequires: ebtables
|
|
|
|
%endif
|
|
|
|
%if %{with_libpcap}
|
|
|
|
BuildRequires: libpcap-devel
|
|
|
|
%endif
|
|
|
|
%if %{with_libnl}
|
2011-09-16 21:30:03 +02:00
|
|
|
%if 0%{?suse_version} < 1210
|
|
|
|
BuildRequires: libnl-devel
|
|
|
|
%else
|
2011-09-16 20:32:42 +02:00
|
|
|
BuildRequires: libnl-1_1-devel
|
2011-04-05 00:08:05 +02:00
|
|
|
%endif
|
2011-09-16 21:30:03 +02:00
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
%if %{with_storage_fs}
|
|
|
|
# For mount/umount in FS driver
|
|
|
|
BuildRequires: util-linux
|
|
|
|
%endif
|
|
|
|
%if %{with_storage_lvm}
|
|
|
|
# For LVM drivers
|
|
|
|
BuildRequires: lvm2
|
|
|
|
%endif
|
|
|
|
%if %{with_storage_iscsi}
|
|
|
|
# For ISCSI driver
|
|
|
|
BuildRequires: open-iscsi
|
|
|
|
%endif
|
|
|
|
%if %{with_storage_disk}
|
|
|
|
# For disk driver
|
|
|
|
BuildRequires: parted-devel
|
|
|
|
%endif
|
|
|
|
%if %{with_storage_mpath}
|
|
|
|
# For Multipath support
|
2011-05-16 11:14:01 +02:00
|
|
|
BuildRequires: device-mapper-devel
|
2011-04-05 00:08:05 +02:00
|
|
|
%endif
|
2011-06-30 21:38:30 +02:00
|
|
|
%if %{with_audit}
|
|
|
|
BuildRequires: audit-devel
|
|
|
|
%endif
|
2011-11-10 02:55:47 +01:00
|
|
|
%if %{with_dtrace}
|
|
|
|
# we need /usr/sbin/dtrace
|
|
|
|
BuildRequires: systemtap-sdt-devel
|
|
|
|
%endif
|
2011-12-15 02:23:04 +01:00
|
|
|
%if %{with_sanlock}
|
|
|
|
BuildRequires: sanlock-devel >= 1.8
|
|
|
|
%endif
|
|
|
|
%if %{with_systemd}
|
2012-01-05 00:48:35 +01:00
|
|
|
BuildRequires: systemd
|
2011-12-15 02:23:04 +01:00
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
|
|
|
|
Name: libvirt
|
2007-10-10 00:17:47 +02:00
|
|
|
Url: http://libvirt.org/
|
2012-02-15 20:01:07 +01:00
|
|
|
Version: 0.9.10
|
2012-01-20 00:02:47 +01:00
|
|
|
Release: 0
|
2011-09-22 04:08:06 +02:00
|
|
|
Summary: A C toolkit to interact with the virtualization capabilities of Linux
|
2012-01-20 00:02:47 +01:00
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: Development/Libraries/C and C++
|
2011-09-14 20:13:45 +02:00
|
|
|
Conflicts: kvm < 0.14.1
|
2011-04-05 00:08:05 +02:00
|
|
|
|
2010-01-08 01:37:05 +01:00
|
|
|
# The client side, i.e. shared libs and virsh are in a subpackage
|
2010-05-14 00:45:32 +02:00
|
|
|
Requires: %{name}-client = %{version}-%{release}
|
2010-12-02 17:42:49 +01:00
|
|
|
Requires: virt-utils
|
2011-04-05 00:08:05 +02:00
|
|
|
# Used by many of the drivers, so turn it on whenever the
|
|
|
|
# daemon is present
|
|
|
|
%if %{with_libvirtd}
|
2010-10-19 13:07:30 +02:00
|
|
|
Recommends: bridge-utils
|
2011-04-05 00:08:05 +02:00
|
|
|
# for modprobe of pci devices
|
|
|
|
Requires: module-init-tools
|
2011-08-04 20:00:03 +02:00
|
|
|
# for /sbin/ip & /sbin/tc
|
2011-04-05 00:08:05 +02:00
|
|
|
Requires: iproute
|
|
|
|
%endif
|
|
|
|
%if %{with_network}
|
|
|
|
Recommends: dnsmasq >= 2.41
|
|
|
|
Recommends: radvd
|
|
|
|
%endif
|
|
|
|
%if %{with_network} || %{with_nwfilter}
|
2010-10-19 13:07:30 +02:00
|
|
|
Recommends: iptables
|
2011-04-05 00:08:05 +02:00
|
|
|
%endif
|
|
|
|
%if %{with_nwfilter}
|
|
|
|
Recommends: ebtables
|
|
|
|
%endif
|
2009-04-24 23:15:55 +02:00
|
|
|
Recommends: logrotate
|
2010-10-19 13:07:30 +02:00
|
|
|
Recommends: nfs-client
|
2010-01-08 01:37:05 +01:00
|
|
|
%if %{with_hal}
|
2009-01-29 01:42:42 +01:00
|
|
|
Requires: hal
|
2010-01-08 01:37:05 +01:00
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
%if %{with_udev}
|
|
|
|
Requires: udev >= 145
|
|
|
|
%endif
|
|
|
|
%if %{with_polkit}
|
2009-12-11 16:19:30 +01:00
|
|
|
%if 0%{?suse_version} > 1110
|
2010-10-19 13:07:30 +02:00
|
|
|
Recommends: polkit >= 0.9
|
2009-09-27 00:09:58 +02:00
|
|
|
%else
|
2010-12-02 17:42:49 +01:00
|
|
|
Recommends: PolicyKit >= 0.6
|
2009-09-27 00:09:58 +02:00
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
%endif
|
|
|
|
%if %{with_storage_fs}
|
|
|
|
Recommends: nfs-utils
|
|
|
|
%endif
|
|
|
|
%if %{with_storage_lvm}
|
|
|
|
# For LVM drivers
|
|
|
|
Recommends: lvm2
|
|
|
|
%endif
|
|
|
|
%if %{with_storage_iscsi}
|
|
|
|
# For ISCSI driver
|
|
|
|
Recommends: open-iscsi
|
|
|
|
%endif
|
|
|
|
%if %{with_storage_disk}
|
|
|
|
# For disk driver
|
|
|
|
Recommends: parted
|
|
|
|
Recommends: device-mapper
|
|
|
|
%endif
|
|
|
|
%if %{with_storage_mpath}
|
|
|
|
# For multipath support
|
|
|
|
Recommends: device-mapper
|
|
|
|
%endif
|
2012-02-15 20:01:07 +01:00
|
|
|
#%ifarch i386 i586 i686 x86_64 ia64
|
2011-12-15 02:23:04 +01:00
|
|
|
# For virConnectGetSysinfo
|
2012-02-15 20:01:07 +01:00
|
|
|
#Requires: dmidecode
|
|
|
|
#%endif
|
2011-12-15 02:23:04 +01:00
|
|
|
# For service management
|
|
|
|
%if %{with_systemd}
|
2012-01-05 00:48:35 +01:00
|
|
|
%{?systemd_requires}
|
2011-12-15 02:23:04 +01:00
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
|
2007-08-21 02:37:22 +02:00
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
|
|
Source1: libvirtd.init
|
2011-06-15 23:48:27 +02:00
|
|
|
Source2: libvirtd-relocation-server.fw
|
2011-08-19 23:40:32 +02:00
|
|
|
Source99: baselibs.conf
|
2009-09-27 00:09:58 +02:00
|
|
|
# Upstream patches
|
2012-02-16 06:03:57 +01:00
|
|
|
Patch0: c05ec920-polkit0-build.patch
|
|
|
|
Patch1: fcdfa31f-polkit0-auth.patch
|
2009-09-27 00:09:58 +02:00
|
|
|
# Need to go upstream
|
2010-04-16 00:56:55 +02:00
|
|
|
Patch100: xen-name-for-devid.patch
|
2011-03-31 22:22:32 +02:00
|
|
|
Patch101: clone.patch
|
|
|
|
Patch102: xen-pv-cdrom.patch
|
2012-01-09 23:51:36 +01:00
|
|
|
Patch103: AF_PACKET.patch
|
2009-09-27 00:09:58 +02:00
|
|
|
# Our patches
|
|
|
|
Patch200: libvirtd-defaults.patch
|
2011-04-06 00:31:12 +02:00
|
|
|
Patch201: use-init-script-redhat.patch
|
2011-11-30 17:55:23 +01:00
|
|
|
Patch202: relax-qemu-usergroup-check.patch
|
|
|
|
Patch203: suse-qemu-conf.patch
|
2011-08-08 23:26:58 +02:00
|
|
|
%if %{with_apparmor}
|
2011-08-19 23:40:32 +02:00
|
|
|
Patch250: install-apparmor-profiles.patch
|
2011-08-08 23:26:58 +02:00
|
|
|
%endif
|
2011-09-16 20:53:58 +02:00
|
|
|
%if %{with_netcontrol}
|
|
|
|
Patch300: libvirt-suse-netcontrol.patch
|
|
|
|
%endif
|
2007-01-11 01:44:36 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2010-01-08 01:37:05 +01:00
|
|
|
Libvirt is a C toolkit to interact with the virtualization
|
|
|
|
capabilities of Linux. Virtualization of the Linux Operating System means
|
|
|
|
the ability to run multiple instances of Operating Systems concurrently
|
2007-01-11 01:44:36 +01:00
|
|
|
on a single hardware system where the basic resources are driven by a
|
|
|
|
Linux instance. The library aims to provide long term stable C API
|
2010-01-08 01:37:05 +01:00
|
|
|
to interact with Linux virtualization technologies.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Daniel Veillard <veillard@redhat.com>
|
|
|
|
Karel Zak <kzak@redhat.com>
|
|
|
|
|
|
|
|
%package client
|
|
|
|
Summary: Client side library and utilities of the libvirt library
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: readline
|
|
|
|
Requires: ncurses
|
2011-02-25 20:42:17 +01:00
|
|
|
# Needed by libvirt-guests init script.
|
|
|
|
Requires: gettext
|
2011-04-05 00:08:05 +02:00
|
|
|
Requires: cyrus-sasl
|
|
|
|
Recommends: cyrus-sasl-digestmd5
|
2010-01-08 01:37:05 +01:00
|
|
|
# So remote clients can access libvirt over SSH tunnel
|
2010-06-25 17:16:19 +02:00
|
|
|
# (client invokes 'nc' against the UNIX socket on the server)
|
2010-10-19 13:07:30 +02:00
|
|
|
Recommends: netcat-openbsd
|
2010-01-08 01:37:05 +01:00
|
|
|
|
|
|
|
%description client
|
2011-09-22 04:08:06 +02:00
|
|
|
Libvirt is a C toolkit to interact with the virtualization
|
2010-01-08 01:37:05 +01:00
|
|
|
capabilities of Linux. The libvirt-client package contains shared
|
|
|
|
libraries and client binaries needed to access the virtualization
|
|
|
|
capabilities of recent versions of Linux (and other OSes).
|
2009-12-29 18:35:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-11 01:44:36 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Daniel Veillard <veillard@redhat.com>
|
|
|
|
Karel Zak <kzak@redhat.com>
|
|
|
|
|
|
|
|
%package devel
|
2011-09-22 04:08:06 +02:00
|
|
|
Summary: A C toolkit to interact with the virtualization capabilities of Linux
|
2007-01-11 01:44:36 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-05-14 00:45:32 +02:00
|
|
|
Requires: %{name}-client = %{version}-%{release} libxml2-devel
|
2011-04-05 00:08:05 +02:00
|
|
|
Requires: pkg-config
|
|
|
|
%if %{with_xen} || %{with_libxl}
|
2008-07-08 22:02:35 +02:00
|
|
|
Requires: xen-devel
|
2010-01-08 01:37:04 +01:00
|
|
|
%endif
|
2007-01-11 01:44:36 +01:00
|
|
|
|
|
|
|
%description devel
|
2011-09-22 04:08:06 +02:00
|
|
|
Libvirt is a C toolkit to interact with the virtualization
|
2010-01-08 01:37:05 +01:00
|
|
|
capabilities of Linux. The libvirt-devel package contains headers
|
|
|
|
and libraries needed for developing libvirt applications.
|
2007-01-11 01:44:36 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2007-03-07 22:48:39 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Daniel Veillard <veillard@redhat.com>
|
|
|
|
Karel Zak <kzak@redhat.com>
|
|
|
|
|
|
|
|
%package doc
|
2011-09-22 04:08:06 +02:00
|
|
|
Summary: A C toolkit to interact with the virtualization capabilities of Linux
|
2007-03-07 22:48:39 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-05-14 00:45:32 +02:00
|
|
|
Requires: %{name}-client = %{version}-%{release}
|
2007-03-07 22:48:39 +01:00
|
|
|
|
|
|
|
%description doc
|
2011-09-22 04:08:06 +02:00
|
|
|
Libvirt is a C toolkit to interact with the virtualization
|
|
|
|
capabilities of Linux. The libvirt-doc package contains documentation
|
2010-01-08 01:37:05 +01:00
|
|
|
for the libvirt API and tools.
|
2007-03-07 22:48:39 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-11 01:44:36 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Daniel Veillard <veillard@redhat.com>
|
|
|
|
Karel Zak <kzak@redhat.com>
|
|
|
|
|
2011-12-15 02:23:04 +01:00
|
|
|
%if %{with_sanlock}
|
|
|
|
|
|
|
|
%package lock-sanlock
|
|
|
|
Summary: Sanlock lock manager plugin for QEMU driver
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: sanlock >= 1.8
|
|
|
|
#for virt-sanlock-cleanup require augeas
|
|
|
|
Requires: augeas
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description lock-sanlock
|
|
|
|
Includes the Sanlock lock manager plugin for the QEMU driver
|
|
|
|
%endif
|
|
|
|
|
2011-04-05 00:08:05 +02:00
|
|
|
%if %{with_python}
|
2011-09-26 05:28:30 +02:00
|
|
|
|
2007-01-11 01:44:36 +01:00
|
|
|
%package python
|
2011-09-22 04:08:06 +02:00
|
|
|
Summary: A C toolkit to interact with the virtualization capabilities of Linux
|
2007-01-11 01:44:36 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-05-14 00:45:32 +02:00
|
|
|
Requires: %{name}-client = %{version}-%{release}
|
2007-03-07 22:48:39 +01:00
|
|
|
%py_requires
|
2007-01-11 01:44:36 +01:00
|
|
|
|
|
|
|
%description python
|
2011-09-22 04:08:06 +02:00
|
|
|
Libvirt is a C toolkit to interact with the virtualization
|
2010-01-08 01:37:05 +01:00
|
|
|
capabilities of Linux. The libvirt-python package provides python
|
|
|
|
bindings for the libvirt C API.
|
2007-01-11 01:44:36 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Daniel Veillard <veillard@redhat.com>
|
|
|
|
Karel Zak <kzak@redhat.com>
|
2011-04-05 00:08:05 +02:00
|
|
|
%endif
|
2007-01-11 01:44:36 +01:00
|
|
|
|
|
|
|
%prep
|
2007-03-07 22:48:39 +01:00
|
|
|
%setup -q
|
2011-11-15 23:06:40 +01:00
|
|
|
%patch0 -p1
|
2012-02-16 06:03:57 +01:00
|
|
|
%patch1 -p1
|
2009-09-27 00:09:58 +02:00
|
|
|
%patch100 -p1
|
2011-03-31 22:22:32 +02:00
|
|
|
%patch101
|
|
|
|
%patch102 -p1
|
2011-11-28 21:14:22 +01:00
|
|
|
%patch103 -p1
|
2009-09-27 00:09:58 +02:00
|
|
|
%patch200 -p1
|
2011-01-12 00:41:45 +01:00
|
|
|
%patch201 -p1
|
2011-09-26 05:28:30 +02:00
|
|
|
%patch202 -p1
|
2011-11-30 17:55:23 +01:00
|
|
|
%patch203 -p1
|
2011-08-08 23:26:58 +02:00
|
|
|
%if %{with_apparmor}
|
2011-08-19 23:40:32 +02:00
|
|
|
%patch250 -p1
|
2011-08-08 23:26:58 +02:00
|
|
|
%endif
|
2011-09-16 20:53:58 +02:00
|
|
|
%if %{with_netcontrol}
|
|
|
|
%patch300 -p1
|
|
|
|
%endif
|
2007-01-11 01:44:36 +01:00
|
|
|
|
|
|
|
%build
|
2008-07-08 22:02:35 +02:00
|
|
|
%if ! %{with_xen}
|
|
|
|
%define _without_xen --without-xen
|
|
|
|
%endif
|
2010-01-08 01:37:05 +01:00
|
|
|
%if ! %{with_qemu}
|
|
|
|
%define _without_qemu --without-qemu
|
|
|
|
%endif
|
|
|
|
%if ! %{with_openvz}
|
|
|
|
%define _without_openvz --without-openvz
|
|
|
|
%endif
|
2011-04-06 00:31:12 +02:00
|
|
|
%if ! %{with_lxc}
|
|
|
|
%define _without_lxc --without-lxc
|
|
|
|
%endif
|
2010-01-08 01:37:05 +01:00
|
|
|
%if ! %{with_vbox}
|
|
|
|
%define _without_vbox --without-vbox
|
|
|
|
%endif
|
2011-04-06 00:31:12 +02:00
|
|
|
%if ! %{with_xenapi}
|
|
|
|
%define _without_xenapi --without-xenapi
|
|
|
|
%endif
|
2010-01-08 01:37:05 +01:00
|
|
|
%if ! %{with_uml}
|
|
|
|
%define _without_uml --without-uml
|
|
|
|
%endif
|
|
|
|
%if ! %{with_phyp}
|
|
|
|
%define _without_phyp --without-phyp
|
|
|
|
%endif
|
|
|
|
%if ! %{with_esx}
|
|
|
|
%define _without_esx --without-esx
|
|
|
|
%endif
|
2011-04-06 00:31:12 +02:00
|
|
|
%if ! %{with_vmware}
|
|
|
|
%define _without_vmware --without-vmware
|
|
|
|
%endif
|
2011-09-26 05:28:30 +02:00
|
|
|
%if ! %{with_hyperv}
|
|
|
|
%define _without_hyperv --without-hyperv
|
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
%if ! %{with_libxl}
|
|
|
|
%define _without_libxl --without-libxl
|
|
|
|
%endif
|
2011-04-06 00:31:12 +02:00
|
|
|
%if ! %{with_libvirtd}
|
|
|
|
%define _without_libvirtd --without-libvirtd
|
|
|
|
%endif
|
|
|
|
%if ! %{with_storage_fs}
|
|
|
|
%define _without_storage_fs --without-storage-fs
|
|
|
|
%endif
|
|
|
|
%if ! %{with_storage_lvm}
|
|
|
|
%define _without_storage_lvm --without-storage-lvm
|
|
|
|
%endif
|
|
|
|
%if ! %{with_storage_iscsi}
|
|
|
|
%define _without_storage_iscsi --without-storage-iscsi
|
|
|
|
%endif
|
|
|
|
%if ! %{with_storage_disk}
|
|
|
|
%define _without_storage_disk --without-storage-disk
|
|
|
|
%endif
|
|
|
|
%if ! %{with_storage_mpath}
|
|
|
|
%define _without_storage_mpath --without-storage-mpath
|
|
|
|
%endif
|
2010-01-08 01:37:05 +01:00
|
|
|
%if ! %{with_numactl}
|
|
|
|
%define _without_numactl --without-numactl
|
|
|
|
%endif
|
|
|
|
%if ! %{with_selinux}
|
|
|
|
%define _without_selinux --without-selinux
|
|
|
|
%endif
|
|
|
|
%if ! %{with_apparmor}
|
|
|
|
%define _without_apparmor --without-apparmor
|
|
|
|
%endif
|
|
|
|
%if ! %{with_capng}
|
|
|
|
%define _without_capng --without-capng
|
|
|
|
%endif
|
|
|
|
%if ! %{with_netcf}
|
|
|
|
%define _without_netcf --without-netcf
|
|
|
|
%endif
|
2011-09-16 20:53:58 +02:00
|
|
|
%if ! %{with_netcontrol}
|
|
|
|
%define _without_netcontrol --without-netcontrol
|
|
|
|
%endif
|
2010-01-08 01:37:05 +01:00
|
|
|
%if ! %{with_hal}
|
|
|
|
%define _without_hal --without-hal
|
|
|
|
%endif
|
|
|
|
%if ! %{with_udev}
|
|
|
|
%define _without_udev --without-udev
|
|
|
|
%endif
|
|
|
|
%if ! %{with_yajl}
|
|
|
|
%define _without_yajl --without-yajl
|
2008-09-01 17:06:07 +02:00
|
|
|
%endif
|
2010-08-09 02:19:48 +02:00
|
|
|
%if ! %{with_macvtap}
|
|
|
|
%define _without_macvtap --without-macvtap
|
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
%if ! %{with_polkit}
|
|
|
|
%define _without_polkit --without-polkit
|
|
|
|
%endif
|
2011-06-30 21:38:30 +02:00
|
|
|
%if ! %{with_audit}
|
|
|
|
%define _without_audit --without-audit
|
|
|
|
%endif
|
2011-11-10 02:55:47 +01:00
|
|
|
%if ! %{with_dtrace}
|
|
|
|
%define _without_dtrace --without-dtrace
|
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
%if ! %{with_network}
|
|
|
|
%define _without_network --without-network
|
|
|
|
%endif
|
|
|
|
%if ! %{with_sasl}
|
|
|
|
%define _without_sasl --without-sasl
|
|
|
|
%endif
|
2012-02-15 20:01:07 +01:00
|
|
|
%if ! %{with_avahi}
|
|
|
|
%define _without_avahi --without-avahi
|
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
%if ! %{with_python}
|
|
|
|
%define _without_python --without-python
|
|
|
|
%endif
|
|
|
|
%if ! %{with_libpcap}
|
|
|
|
%define _without_libpcap --without-libpcap
|
2010-10-02 00:46:48 +02:00
|
|
|
%endif
|
2011-12-15 02:23:04 +01:00
|
|
|
%if ! %{with_sanlock}
|
|
|
|
%define _without_sanlock --without-sanlock
|
|
|
|
%endif
|
|
|
|
%if %{with_systemd}
|
|
|
|
# Use 'systemd+redhat' (see patch use-init-script-redhat.patch),
|
|
|
|
# so if someone installs upstart or legacy init scripts, they can
|
|
|
|
# still start libvirtd
|
|
|
|
%define init_scripts --with-init_script=systemd+redhat
|
|
|
|
%else
|
|
|
|
%define init_scripts --with-init_script=redhat
|
|
|
|
%endif
|
2011-02-15 17:27:59 +01:00
|
|
|
|
2007-03-07 22:48:39 +01:00
|
|
|
autoreconf -f -i
|
2008-10-26 00:53:14 +02:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
2009-04-24 23:15:55 +02:00
|
|
|
%configure --disable-static --with-pic \
|
|
|
|
%{?_without_xen} \
|
2010-01-08 01:37:05 +01:00
|
|
|
%{?_without_qemu} \
|
|
|
|
%{?_without_openvz} \
|
2011-04-06 00:31:12 +02:00
|
|
|
%{?_without_lxc} \
|
2010-01-08 01:37:05 +01:00
|
|
|
%{?_without_vbox} \
|
2011-04-06 00:31:12 +02:00
|
|
|
%{?_without_xenapi} \
|
2010-01-08 01:37:05 +01:00
|
|
|
%{?_without_uml} \
|
|
|
|
%{?_without_phyp} \
|
|
|
|
%{?_without_esx} \
|
2011-04-06 00:31:12 +02:00
|
|
|
%{?_without_vmware} \
|
2011-09-26 05:28:30 +02:00
|
|
|
%{?_without_hyperv} \
|
2011-04-05 00:08:05 +02:00
|
|
|
%{?_without_libxl} \
|
2011-04-06 00:31:12 +02:00
|
|
|
%{?_without_libvirtd} \
|
|
|
|
%{?_without_storage_fs} \
|
|
|
|
%{?_without_storage_lvm} \
|
|
|
|
%{?_without_storage_iscsi} \
|
|
|
|
%{?_without_storage_disk} \
|
|
|
|
%{?_without_storage_mpath} \
|
2010-01-08 01:37:05 +01:00
|
|
|
%{?_without_numactl} \
|
|
|
|
%{?_without_selinux} \
|
|
|
|
%{?_without_apparmor} \
|
2011-04-05 00:08:05 +02:00
|
|
|
%{?_without_capng} \
|
|
|
|
%{?_without_netcf} \
|
2011-09-16 20:53:58 +02:00
|
|
|
%{?_without_netcontrol} \
|
2010-01-08 01:37:05 +01:00
|
|
|
%{?_without_hal} \
|
|
|
|
%{?_without_udev} \
|
|
|
|
%{?_without_yajl} \
|
2010-08-09 02:19:48 +02:00
|
|
|
%{?_without_macvtap} \
|
2011-04-05 00:08:05 +02:00
|
|
|
%{?_without_polkit} \
|
2011-06-30 21:38:30 +02:00
|
|
|
%{?_without_audit} \
|
2011-11-10 02:55:47 +01:00
|
|
|
%{?_without_dtrace} \
|
2011-04-05 00:08:05 +02:00
|
|
|
%{?_without_network} \
|
|
|
|
%{?_without_sasl} \
|
2012-02-15 20:01:07 +01:00
|
|
|
%{?_without_avahi} \
|
2011-04-05 00:08:05 +02:00
|
|
|
%{?_without_python} \
|
|
|
|
%{?_without_libpcap} \
|
2011-12-15 02:23:04 +01:00
|
|
|
%{?_without_sanlock} \
|
2008-07-08 22:02:35 +02:00
|
|
|
--libexecdir=%{_libdir}/%{name} \
|
2011-06-09 17:50:53 +02:00
|
|
|
--with-qemu-user=%{qemu_user} \
|
|
|
|
--with-qemu-group=%{qemu_group} \
|
2011-12-15 02:23:04 +01:00
|
|
|
%{init_scripts} \
|
2009-04-24 23:15:55 +02:00
|
|
|
ac_cv_path_MODPROBE=/sbin/modprobe \
|
|
|
|
ac_cv_path_UDEVADM=/sbin/udevadm \
|
2009-01-29 01:42:42 +01:00
|
|
|
ac_cv_path_SHOWMOUNT=/usr/sbin/showmount
|
2011-12-15 02:23:04 +01:00
|
|
|
make V=1 %{?jobs:-j%jobs} DOCS_DIR=%{_docdir}/%{name}-python EXAMPLE_DIR=%{_docdir}/%{name}-python/examples HTML_DIR=%{_docdir}/%{name}
|
2007-01-11 01:44:36 +01:00
|
|
|
|
|
|
|
%install
|
2012-01-05 00:48:35 +01:00
|
|
|
%makeinstall SYSTEMD_UNIT_DIR=%{_unitdir} DOCS_DIR=%{_docdir}/%{name}-python EXAMPLE_DIR=%{_docdir}/%{name}-python/examples HTML_DIR=%{_docdir}/%{name}
|
2007-06-14 15:38:05 +02:00
|
|
|
cp -a AUTHORS ChangeLog COPYING NEWS README TODO $RPM_BUILD_ROOT%{_docdir}/%{name}/
|
2009-01-12 02:05:34 +01:00
|
|
|
cd docs ; cp -a *.html $RPM_BUILD_ROOT%{_docdir}/%{name} ; cp -a *.png $RPM_BUILD_ROOT%{_docdir}/%{name} ; cd ..
|
2012-01-20 00:02:47 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
|
|
rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.la
|
|
|
|
rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.a
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lock-driver/*.la
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/lock-driver/*.a
|
2008-08-10 01:31:46 +02:00
|
|
|
# remove currently unsupported locale(s)
|
2008-01-07 16:31:17 +01:00
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/locale/sr@latin
|
2011-05-16 23:54:18 +02:00
|
|
|
%if 0%{?suse_version} < 1130
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/locale/vi_VN
|
|
|
|
%endif
|
2008-08-10 01:31:46 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/lib/libvirt
|
2011-04-05 00:08:05 +02:00
|
|
|
%find_lang %{name}
|
|
|
|
%if %{with_network}
|
2011-04-06 00:31:12 +02:00
|
|
|
install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/lib/libvirt/dnsmasq/
|
2011-04-05 00:08:05 +02:00
|
|
|
install -d -m 0755 $RPM_BUILD_ROOT%{_datadir}/libvirt/networks/
|
|
|
|
cp $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/default.xml \
|
|
|
|
$RPM_BUILD_ROOT%{_datadir}/libvirt/networks/default.xml
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/default.xml
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml
|
|
|
|
# Strip auto-generated UUID - we need it generated per-install
|
|
|
|
sed -i -e "/<uuid>/d" $RPM_BUILD_ROOT%{_datadir}/libvirt/networks/default.xml
|
|
|
|
%else
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/default.xml
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml
|
|
|
|
%endif
|
2010-01-08 01:37:05 +01:00
|
|
|
%if ! %{with_lxc}
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/lxc.conf
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_lxc.aug
|
2010-04-16 00:56:55 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.lxc
|
2010-01-08 01:37:05 +01:00
|
|
|
%endif
|
|
|
|
%if ! %{with_qemu}
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/qemu.conf
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_datadir}/augeas/lenses/libvirtd_qemu.aug
|
2010-04-16 00:56:55 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.qemu
|
|
|
|
%endif
|
|
|
|
%if ! %{with_uml}
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/libvirtd.uml
|
2010-01-08 01:37:05 +01:00
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
%if ! %{with_python}
|
2011-04-06 00:31:12 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}-python
|
2011-04-05 00:08:05 +02:00
|
|
|
%endif
|
|
|
|
%if ! %{with_libvirtd}
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/libvirt/nwfilter
|
|
|
|
%endif
|
2011-03-24 11:58:29 +01:00
|
|
|
|
2011-01-12 23:51:53 +01:00
|
|
|
# init scripts
|
2007-08-21 02:37:22 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
2011-04-06 00:31:12 +02:00
|
|
|
%if %{with_libvirtd}
|
|
|
|
install %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/init.d/libvirtd
|
|
|
|
ln -s /etc/init.d/libvirtd $RPM_BUILD_ROOT%{_sbindir}/rclibvirtd
|
|
|
|
%endif
|
|
|
|
ln -s /etc/init.d/libvirt-guests $RPM_BUILD_ROOT%{_sbindir}/rclibvirt-guests
|
2011-06-15 23:48:27 +02:00
|
|
|
#install firewall definitions format is described here:
|
|
|
|
#/usr/share/SuSEfirewall2/services/TEMPLATE
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_fwdefdir}
|
|
|
|
install -m 644 %{S:2} $RPM_BUILD_ROOT/%{_fwdefdir}/libvirtd-relocation-server
|
2012-01-03 17:29:06 +01:00
|
|
|
%fdupes -s $RPM_BUILD_ROOT
|
2007-01-11 01:44:36 +01:00
|
|
|
|
|
|
|
%clean
|
2007-03-07 22:48:39 +01:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2007-01-11 01:44:36 +01:00
|
|
|
|
2011-09-14 20:13:45 +02:00
|
|
|
%pre
|
2012-01-05 00:48:35 +01:00
|
|
|
%if %{with_systemd}
|
|
|
|
%service_add_pre libvirtd.service
|
|
|
|
%endif
|
2011-09-14 20:13:45 +02:00
|
|
|
%{_bindir}/getent group libvirt >/dev/null || \
|
|
|
|
%{_sbindir}/groupadd -r libvirt 2>/dev/null
|
|
|
|
|
2010-01-08 01:37:05 +01:00
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
2011-04-05 00:08:05 +02:00
|
|
|
%if %{with_libvirtd}
|
2011-04-06 00:31:12 +02:00
|
|
|
%if %{with_network}
|
|
|
|
# Install the default network if one doesn't exist
|
2011-12-15 02:23:04 +01:00
|
|
|
if ! /sbin/chkconfig libvirtd && test ! -f %{_sysconfdir}/libvirt/qemu/networks/default.xml
|
2011-04-05 00:08:05 +02:00
|
|
|
then
|
|
|
|
UUID=`/usr/bin/uuidgen`
|
|
|
|
sed -e "s,</name>,</name>\n <uuid>$UUID</uuid>," \
|
|
|
|
< %{_datadir}/libvirt/networks/default.xml \
|
|
|
|
> %{_sysconfdir}/libvirt/qemu/networks/default.xml
|
|
|
|
fi
|
2011-07-01 18:12:34 +02:00
|
|
|
%endif
|
2011-12-15 02:23:04 +01:00
|
|
|
%if %{with_systemd}
|
2012-01-05 00:48:35 +01:00
|
|
|
%service_add_post libvirtd.service libvirt-guests.service
|
2012-01-25 22:42:04 +01:00
|
|
|
%endif
|
2012-01-05 00:48:35 +01:00
|
|
|
%if 0%{?sles_version}
|
2011-04-06 00:31:12 +02:00
|
|
|
%{fillup_and_insserv -y libvirtd}
|
2011-12-15 02:23:04 +01:00
|
|
|
%else # ! sles
|
2011-04-06 00:31:12 +02:00
|
|
|
%{fillup_only -n libvirtd}
|
|
|
|
%endif
|
2011-02-25 20:42:17 +01:00
|
|
|
%{fillup_only -n libvirt-guests}
|
2011-12-15 02:23:04 +01:00
|
|
|
%endif
|
2007-01-11 01:44:36 +01:00
|
|
|
|
2007-08-21 02:37:22 +02:00
|
|
|
%preun
|
2011-04-05 00:08:05 +02:00
|
|
|
%if %{with_libvirtd}
|
2011-12-15 02:23:04 +01:00
|
|
|
%if %{with_systemd}
|
2012-01-05 00:48:35 +01:00
|
|
|
%service_del_preun libvirtd.service libvirt-guests.service
|
2011-04-05 00:08:05 +02:00
|
|
|
%endif
|
2012-01-25 22:42:04 +01:00
|
|
|
%stop_on_removal libvirtd
|
2011-12-15 02:23:04 +01:00
|
|
|
%endif
|
2007-08-21 02:37:22 +02:00
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
2011-04-05 00:08:05 +02:00
|
|
|
%if %{with_libvirtd}
|
2011-12-15 02:23:04 +01:00
|
|
|
%if %{with_systemd}
|
2012-01-05 00:48:35 +01:00
|
|
|
%service_del_postun libvirtd.service libvirt-guests.service
|
2011-04-05 00:08:05 +02:00
|
|
|
%endif
|
2012-01-25 22:42:04 +01:00
|
|
|
%restart_on_update libvirtd
|
2011-12-15 02:23:04 +01:00
|
|
|
%endif
|
2007-08-21 02:37:22 +02:00
|
|
|
%insserv_cleanup
|
2007-01-11 01:44:36 +01:00
|
|
|
|
2010-01-08 01:37:05 +01:00
|
|
|
%post client -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun client -p /sbin/ldconfig
|
|
|
|
|
2011-04-05 00:08:05 +02:00
|
|
|
%if %{with_libvirtd}
|
2011-09-26 05:28:30 +02:00
|
|
|
|
2010-01-08 01:37:05 +01:00
|
|
|
%files
|
2007-01-11 01:44:36 +01:00
|
|
|
%defattr(-, root, root)
|
2007-07-24 01:32:16 +02:00
|
|
|
%{_sbindir}/libvirtd
|
2008-07-08 22:02:35 +02:00
|
|
|
%dir %{_libdir}/%{name}
|
2007-08-21 02:37:22 +02:00
|
|
|
%dir %attr(0700, root, root) %{_sysconfdir}/libvirt/
|
2011-04-05 00:08:05 +02:00
|
|
|
%if %{with_network}
|
2007-08-21 02:37:22 +02:00
|
|
|
%dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/
|
|
|
|
%dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/
|
|
|
|
%dir %attr(0700, root, root) %{_sysconfdir}/libvirt/qemu/networks/autostart
|
2011-04-06 00:31:12 +02:00
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/network/
|
|
|
|
%dir %attr(0755, root, root) %{_localstatedir}/lib/libvirt/dnsmasq/
|
2011-04-05 00:08:05 +02:00
|
|
|
%dir %{_datadir}/libvirt/networks/
|
|
|
|
%{_datadir}/libvirt/networks/default.xml
|
|
|
|
%endif
|
2010-04-16 00:56:55 +02:00
|
|
|
%dir %attr(0700, root, root) %{_sysconfdir}/libvirt/nwfilter/
|
|
|
|
%{_sysconfdir}/libvirt/nwfilter/*.xml
|
2011-04-06 00:31:12 +02:00
|
|
|
%{_localstatedir}/adm/fillup-templates/sysconfig.libvirtd
|
2007-08-21 02:37:22 +02:00
|
|
|
%config /etc/init.d/libvirtd
|
|
|
|
%{_sbindir}/rclibvirtd
|
2011-12-15 02:23:04 +01:00
|
|
|
%if %{with_systemd}
|
|
|
|
%{_unitdir}/libvirtd.service
|
|
|
|
%endif
|
2010-05-26 00:35:17 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/libvirt/libvirtd.conf
|
2011-04-01 02:28:05 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd
|
2012-01-24 22:28:41 +01:00
|
|
|
%dir %{_datadir}/augeas/
|
|
|
|
%dir %{_datadir}/augeas/lenses
|
|
|
|
%dir %{_datadir}/augeas/lenses/tests
|
|
|
|
%{_datadir}/augeas/lenses/libvirtd.aug
|
|
|
|
%{_datadir}/augeas/lenses/tests/test_libvirtd.aug
|
2011-11-10 02:55:47 +01:00
|
|
|
%if %{with_dtrace}
|
|
|
|
%{_datadir}/systemtap/tapset/libvirt_probes.stp
|
|
|
|
%{_datadir}/systemtap/tapset/libvirt_functions.stp
|
|
|
|
%endif
|
2010-01-08 01:37:05 +01:00
|
|
|
%dir %{_localstatedir}/lib/libvirt/
|
2011-06-02 20:32:33 +02:00
|
|
|
%dir %attr(0711, root, root) %{_localstatedir}/lib/libvirt/images/
|
|
|
|
%dir %attr(0711, root, root) %{_localstatedir}/lib/libvirt/boot/
|
|
|
|
%dir %attr(0711, root, root) %{_localstatedir}/cache/libvirt/
|
2010-01-08 01:37:05 +01:00
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/
|
2011-04-05 00:08:05 +02:00
|
|
|
%if %{with_polkit}
|
2009-09-27 00:09:58 +02:00
|
|
|
%if 0%{?suse_version} > 1110
|
|
|
|
%{_datadir}/polkit-1/actions/org.libvirt.unix.policy
|
|
|
|
%else
|
2008-10-08 18:23:52 +02:00
|
|
|
%{_datadir}/PolicyKit/policy/org.libvirt.unix.policy
|
2008-07-08 22:02:35 +02:00
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
%endif
|
2010-01-08 01:37:05 +01:00
|
|
|
%if %{with_qemu}
|
2010-05-26 00:35:17 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/libvirt/qemu.conf
|
2010-04-16 00:56:55 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.qemu
|
2011-06-09 17:50:53 +02:00
|
|
|
%dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/lib/libvirt/qemu/
|
|
|
|
%dir %attr(0750, %{qemu_user}, %{qemu_group}) %{_localstatedir}/cache/libvirt/qemu/
|
2010-04-16 00:56:55 +02:00
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/qemu/
|
2012-01-24 22:28:41 +01:00
|
|
|
%{_datadir}/augeas/lenses/libvirtd_qemu.aug
|
|
|
|
%{_datadir}/augeas/lenses/tests/test_libvirtd_qemu.aug
|
2010-01-08 01:37:05 +01:00
|
|
|
%endif
|
|
|
|
%if %{with_lxc}
|
2010-04-16 00:56:55 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/libvirt/lxc.conf
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.lxc
|
2010-01-08 01:37:05 +01:00
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/lxc/
|
2010-04-16 00:56:55 +02:00
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/lxc/
|
2010-01-08 01:37:05 +01:00
|
|
|
%attr(0755, root, root) %{_libdir}/%{name}/libvirt_lxc
|
2012-01-24 22:28:41 +01:00
|
|
|
%{_datadir}/augeas/lenses/libvirtd_lxc.aug
|
|
|
|
%{_datadir}/augeas/lenses/tests/test_libvirtd_lxc.aug
|
2010-01-08 01:37:05 +01:00
|
|
|
%endif
|
|
|
|
%if %{with_uml}
|
2010-04-16 00:56:55 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd.uml
|
2010-01-08 01:37:05 +01:00
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/uml/
|
2010-04-16 00:56:52 +02:00
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/uml/
|
2010-04-16 00:56:55 +02:00
|
|
|
%endif
|
2011-04-05 00:08:05 +02:00
|
|
|
%if %{with_libxl}
|
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/libvirt/libxl/
|
2011-04-12 00:52:27 +02:00
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/libxl/
|
2011-04-05 00:08:05 +02:00
|
|
|
%endif
|
2011-04-06 00:31:12 +02:00
|
|
|
%if %{with_storage_disk}
|
2011-06-02 20:32:33 +02:00
|
|
|
%attr(0755, root, root) %{_libdir}/%{name}/libvirt_parthelper
|
2010-01-08 01:37:05 +01:00
|
|
|
%endif
|
2011-06-02 20:32:33 +02:00
|
|
|
%attr(0755, root, root) %{_libdir}/%{name}/libvirt_iohelper
|
2010-08-09 02:19:48 +02:00
|
|
|
%doc %{_mandir}/man8/libvirtd.8*
|
2011-08-08 23:26:58 +02:00
|
|
|
%if %{with_apparmor}
|
|
|
|
%dir %{_sysconfdir}/apparmor.d
|
2011-08-19 23:40:32 +02:00
|
|
|
%dir %{_sysconfdir}/apparmor.d/abstractions
|
2011-08-08 23:26:58 +02:00
|
|
|
%dir %{_sysconfdir}/apparmor.d/libvirt
|
2011-08-19 23:40:32 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/apparmor.d/usr.sbin.libvirtd
|
|
|
|
%config(noreplace) %{_sysconfdir}/apparmor.d/usr.lib.libvirt.virt-aa-helper
|
|
|
|
%config(noreplace) %{_sysconfdir}/apparmor.d/abstractions/libvirt-qemu
|
2011-08-08 23:26:58 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/apparmor.d/libvirt/TEMPLATE
|
|
|
|
%{_libdir}/%{name}/virt-aa-helper
|
|
|
|
%endif
|
2011-06-15 23:48:27 +02:00
|
|
|
%config %{_fwdefdir}/libvirtd-relocation-server
|
2011-12-15 02:23:04 +01:00
|
|
|
%endif # with_libvirtd
|
2010-01-08 01:37:05 +01:00
|
|
|
|
|
|
|
%files client -f %{name}.lang
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc %dir %{_docdir}/%{name}
|
|
|
|
%doc %{_docdir}/%{name}/[CNRT]*
|
|
|
|
%doc %{_docdir}/%{name}/AUTHORS
|
|
|
|
%doc %{_mandir}/man1/virsh.1*
|
|
|
|
%doc %{_mandir}/man1/virt-xml-validate.1*
|
|
|
|
%doc %{_mandir}/man1/virt-pki-validate.1*
|
2012-02-15 20:01:07 +01:00
|
|
|
%doc %{_mandir}/man1/virt-host-validate.1*
|
2011-11-10 02:55:47 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/libvirt/libvirt.conf
|
2010-01-08 01:37:05 +01:00
|
|
|
%{_bindir}/virsh
|
|
|
|
%{_bindir}/virt-xml-validate
|
|
|
|
%{_bindir}/virt-pki-validate
|
2012-02-15 20:01:07 +01:00
|
|
|
%{_bindir}/virt-host-validate
|
2011-04-06 00:31:12 +02:00
|
|
|
%dir %{_libdir}/%{name}
|
2010-01-08 01:37:05 +01:00
|
|
|
%{_libdir}/lib*.so.*
|
2011-01-12 00:41:45 +01:00
|
|
|
%{_localstatedir}/adm/fillup-templates/sysconfig.libvirt-guests
|
|
|
|
%config /etc/init.d/libvirt-guests
|
|
|
|
%{_sbindir}/rclibvirt-guests
|
2011-12-15 02:23:04 +01:00
|
|
|
%if %{with_systemd}
|
|
|
|
%{_unitdir}/libvirt-guests.service
|
|
|
|
%endif
|
2010-03-01 01:43:01 +01:00
|
|
|
|
2010-01-08 01:37:05 +01:00
|
|
|
%dir %{_datadir}/libvirt/
|
|
|
|
%dir %{_datadir}/libvirt/schemas/
|
2010-03-01 01:43:01 +01:00
|
|
|
|
2011-09-26 05:28:30 +02:00
|
|
|
%{_datadir}/libvirt/schemas/basictypes.rng
|
|
|
|
%{_datadir}/libvirt/schemas/capability.rng
|
2010-01-08 01:37:05 +01:00
|
|
|
%{_datadir}/libvirt/schemas/domain.rng
|
2011-09-26 05:28:30 +02:00
|
|
|
%{_datadir}/libvirt/schemas/domaincommon.rng
|
|
|
|
%{_datadir}/libvirt/schemas/domainsnapshot.rng
|
|
|
|
%{_datadir}/libvirt/schemas/interface.rng
|
2010-01-08 01:37:05 +01:00
|
|
|
%{_datadir}/libvirt/schemas/network.rng
|
2011-09-26 05:28:30 +02:00
|
|
|
%{_datadir}/libvirt/schemas/networkcommon.rng
|
2010-01-08 01:37:05 +01:00
|
|
|
%{_datadir}/libvirt/schemas/nodedev.rng
|
2011-09-26 05:28:30 +02:00
|
|
|
%{_datadir}/libvirt/schemas/nwfilter.rng
|
2010-01-08 01:37:05 +01:00
|
|
|
%{_datadir}/libvirt/schemas/secret.rng
|
|
|
|
%{_datadir}/libvirt/schemas/storageencryption.rng
|
2011-09-26 05:28:30 +02:00
|
|
|
%{_datadir}/libvirt/schemas/storagepool.rng
|
|
|
|
%{_datadir}/libvirt/schemas/storagevol.rng
|
2011-08-04 20:00:03 +02:00
|
|
|
%{_datadir}/libvirt/cpu_map.xml
|
2011-04-05 00:08:05 +02:00
|
|
|
%if %{with_sasl}
|
2010-05-26 00:40:36 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/sasl2/libvirt.conf
|
2011-04-05 00:08:05 +02:00
|
|
|
%endif
|
2007-01-11 01:44:36 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
2007-03-07 22:48:39 +01:00
|
|
|
%{_includedir}/libvirt
|
|
|
|
%{_libdir}/*.so
|
2007-01-11 01:44:36 +01:00
|
|
|
%{_libdir}/pkgconfig/libvirt.pc
|
2007-03-07 22:48:39 +01:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_datadir}/gtk-doc/html/libvirt
|
2009-01-12 02:05:34 +01:00
|
|
|
%doc %{_docdir}/%{name}/*.png
|
2007-03-07 22:48:39 +01:00
|
|
|
%doc %{_docdir}/%{name}/*.html
|
2010-11-01 23:38:39 +01:00
|
|
|
%doc %{_docdir}/%{name}/*.gif
|
|
|
|
%doc %{_docdir}/%{name}/*.css
|
2007-03-07 22:48:39 +01:00
|
|
|
%doc %{_docdir}/%{name}/html
|
2007-01-11 01:44:36 +01:00
|
|
|
|
2011-12-15 02:23:04 +01:00
|
|
|
%if %{with_sanlock}
|
|
|
|
|
|
|
|
%files lock-sanlock
|
|
|
|
%defattr(-, root, root)
|
2012-01-19 00:03:47 +01:00
|
|
|
%doc %{_mandir}/man8/virt-sanlock-cleanup.8*
|
2011-12-15 02:23:04 +01:00
|
|
|
%if %{with_qemu}
|
2012-01-19 00:03:47 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/qemu-sanlock.conf
|
2011-12-15 02:23:04 +01:00
|
|
|
%endif
|
2012-01-19 00:03:47 +01:00
|
|
|
%dir %{_libdir}/%{name}/lock-driver/
|
|
|
|
%attr(0755, root, root) %{_libdir}/%{name}/lock-driver/sanlock.so
|
2012-01-24 22:28:41 +01:00
|
|
|
%dir %{_datadir}/augeas/
|
|
|
|
%dir %{_datadir}/augeas/lenses
|
|
|
|
%dir %{_datadir}/augeas/lenses/tests
|
2011-12-15 02:23:04 +01:00
|
|
|
%{_datadir}/augeas/lenses/libvirt_sanlock.aug
|
|
|
|
%{_datadir}/augeas/lenses/tests/test_libvirt_sanlock.aug
|
2012-01-19 00:03:47 +01:00
|
|
|
%dir %attr(0700, root, root) %{_localstatedir}/lib/%{name}/sanlock
|
2011-12-15 02:23:04 +01:00
|
|
|
%{_sbindir}/virt-sanlock-cleanup
|
|
|
|
%endif
|
|
|
|
|
2011-04-05 00:08:05 +02:00
|
|
|
%if %{with_python}
|
2011-09-26 05:28:30 +02:00
|
|
|
|
2007-01-11 01:44:36 +01:00
|
|
|
%files python
|
|
|
|
%defattr(-, root, root)
|
2007-03-07 22:48:39 +01:00
|
|
|
%doc %{_docdir}/%{name}-python
|
|
|
|
%{py_sitedir}/libvirt.py*
|
2011-09-26 05:28:30 +02:00
|
|
|
%{_libdir}/python*/site-packages/libvirt_qemu.py*
|
2007-03-07 22:48:39 +01:00
|
|
|
%{py_sitedir}/libvirtmod*
|
2011-04-05 00:08:05 +02:00
|
|
|
%endif
|
2008-01-07 16:31:17 +01:00
|
|
|
|
2007-02-25 23:29:40 +01:00
|
|
|
%changelog
|