2007-01-16 00:42:10 +01:00
|
|
|
#
|
2011-05-12 11:17:07 +02:00
|
|
|
# spec file for package xen
|
2007-01-16 00:42:10 +01:00
|
|
|
#
|
2014-01-02 01:51:35 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:42:10 +01:00
|
|
|
#
|
2008-08-18 00:24:29 +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-16 00:42:10 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2014-01-02 01:51:35 +01:00
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
Name: xen
|
2014-01-09 22:49:46 +01:00
|
|
|
ExclusiveArch: %ix86 x86_64 %arm aarch64
|
2014-01-02 20:09:07 +01:00
|
|
|
%define xvers 4.4
|
2010-01-16 01:12:54 +01:00
|
|
|
%define xvermaj 4
|
2014-01-15 17:11:09 +01:00
|
|
|
%define changeset 28287
|
2014-01-02 20:09:07 +01:00
|
|
|
%define xen_build_dir xen-4.4.0-testing
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifarch %arm aarch64
|
|
|
|
%define with_kmp 0
|
2014-01-15 17:11:09 +01:00
|
|
|
%define with_xend 0
|
2014-01-02 20:09:07 +01:00
|
|
|
%define with_debug 0
|
2013-07-06 03:06:10 +02:00
|
|
|
%define with_stubdom 0
|
2014-01-09 22:49:46 +01:00
|
|
|
%define with_dom0_support 1
|
2013-07-06 03:06:10 +02:00
|
|
|
%else
|
2014-01-15 17:11:09 +01:00
|
|
|
%ifarch x86_64
|
2013-06-07 16:13:54 +02:00
|
|
|
%define with_kmp 1
|
2014-01-02 20:09:07 +01:00
|
|
|
%define with_debug 1
|
2011-08-05 22:04:48 +02:00
|
|
|
%define with_stubdom 1
|
2014-01-09 22:49:46 +01:00
|
|
|
%define with_dom0_support 1
|
2014-01-15 17:11:09 +01:00
|
|
|
%define with_qemu_traditional 1
|
2014-01-16 21:18:13 +01:00
|
|
|
%if %suse_version > 1230
|
|
|
|
%define with_xend 1
|
|
|
|
%else
|
|
|
|
%define with_xend 1
|
|
|
|
%endif
|
2014-01-09 22:49:46 +01:00
|
|
|
%else
|
2014-01-15 17:11:09 +01:00
|
|
|
%define with_xend 0
|
2014-01-09 22:49:46 +01:00
|
|
|
%define with_stubdom 0
|
2014-01-15 17:11:09 +01:00
|
|
|
%define with_dom0_support 0
|
2014-01-09 22:49:46 +01:00
|
|
|
%define with_qemu_traditional 0
|
|
|
|
%endif
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2011-08-15 15:32:00 +02:00
|
|
|
# EFI requires gcc46 or newer
|
|
|
|
# its available in 12.1 or >= sles11sp2
|
2012-09-24 16:49:27 +02:00
|
|
|
%if %suse_version == 1210 || %suse_version == 1110
|
2011-08-15 15:32:00 +02:00
|
|
|
%define with_gcc46 1
|
|
|
|
%else
|
|
|
|
%define with_gcc46 0
|
|
|
|
%endif
|
2011-06-14 21:01:54 +02:00
|
|
|
%define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services
|
2013-06-01 23:11:56 +02:00
|
|
|
%if %suse_version >= 1230
|
2013-07-30 23:20:13 +02:00
|
|
|
%define with_systemd 1
|
2011-04-12 00:31:41 +02:00
|
|
|
%else
|
2013-07-30 23:20:13 +02:00
|
|
|
%define with_systemd 0
|
2011-04-12 00:31:41 +02:00
|
|
|
%endif
|
2014-01-23 19:54:00 +01:00
|
|
|
%ifarch %arm aarch64
|
|
|
|
BuildRequires: libfdt1-devel
|
|
|
|
%endif
|
|
|
|
%ifarch %ix86 x86_64
|
2011-05-12 11:17:07 +02:00
|
|
|
BuildRequires: dev86
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2012-10-03 00:08:01 +02:00
|
|
|
BuildRequires: fdupes
|
2012-09-17 17:49:23 +02:00
|
|
|
BuildRequires: glib2-devel
|
2013-07-06 03:06:10 +02:00
|
|
|
BuildRequires: libaio-devel
|
2012-01-05 20:41:54 +01:00
|
|
|
BuildRequires: libbz2-devel
|
2012-02-25 21:58:13 +01:00
|
|
|
BuildRequires: libuuid-devel
|
2011-05-12 11:17:07 +02:00
|
|
|
BuildRequires: libxml2-devel
|
2012-09-17 17:49:23 +02:00
|
|
|
BuildRequires: libyajl-devel
|
2014-01-23 19:54:00 +01:00
|
|
|
BuildRequires: libpixman-1-0-devel
|
2011-05-12 11:17:07 +02:00
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: python-devel
|
2014-01-15 17:11:09 +01:00
|
|
|
BuildRequires: transfig
|
2014-01-16 21:18:13 +01:00
|
|
|
%if %suse_version >= 1030
|
2011-05-12 11:17:07 +02:00
|
|
|
BuildRequires: texinfo
|
|
|
|
BuildRequires: texlive
|
2014-01-16 21:18:13 +01:00
|
|
|
%if %suse_version > 1220
|
2014-01-23 19:54:00 +01:00
|
|
|
BuildRequires: texlive-latex
|
2012-07-10 15:51:42 +02:00
|
|
|
BuildRequires: texlive-courier
|
|
|
|
BuildRequires: texlive-dvips
|
|
|
|
BuildRequires: texlive-helvetic
|
|
|
|
BuildRequires: texlive-psnfss
|
|
|
|
BuildRequires: texlive-times
|
|
|
|
BuildRequires: tex(a4.sty)
|
|
|
|
BuildRequires: tex(a4wide.sty)
|
|
|
|
BuildRequires: tex(fancyhdr.sty)
|
|
|
|
BuildRequires: tex(parskip.sty)
|
|
|
|
BuildRequires: tex(setspace.sty)
|
2014-01-16 21:18:13 +01:00
|
|
|
%endif
|
|
|
|
%else
|
|
|
|
BuildRequires: te_ams
|
|
|
|
BuildRequires: te_latex
|
|
|
|
BuildRequires: tetex
|
|
|
|
%endif
|
2014-01-02 20:09:07 +01:00
|
|
|
%if %suse_version >= 1230
|
|
|
|
BuildRequires: systemd
|
|
|
|
%endif
|
|
|
|
%if %suse_version >= 1120
|
|
|
|
BuildRequires: xz-devel
|
2012-07-10 15:51:42 +02:00
|
|
|
%endif
|
2014-01-02 20:09:07 +01:00
|
|
|
%if %suse_version <= 1110
|
|
|
|
BuildRequires: pmtools
|
2010-10-20 23:00:35 +02:00
|
|
|
%else
|
2014-01-23 19:54:00 +01:00
|
|
|
%ifarch %ix86 x86_64
|
2014-01-02 20:09:07 +01:00
|
|
|
BuildRequires: acpica
|
|
|
|
%endif
|
2010-10-20 23:00:35 +02:00
|
|
|
%endif
|
2007-02-11 11:48:10 +01:00
|
|
|
%ifarch x86_64
|
2011-08-15 15:32:00 +02:00
|
|
|
%if %{?with_gcc46}0
|
2011-08-05 22:04:48 +02:00
|
|
|
BuildRequires: gcc46
|
2012-01-05 20:41:54 +01:00
|
|
|
BuildRequires: libgcc46
|
|
|
|
BuildRequires: libgcc46-32bit
|
2011-08-15 15:32:00 +02:00
|
|
|
%endif
|
2012-10-05 23:55:57 +02:00
|
|
|
BuildRequires: glibc-32bit
|
|
|
|
BuildRequires: glibc-devel-32bit
|
2014-01-02 20:09:07 +01:00
|
|
|
%define max_cpus 512
|
2010-04-03 00:15:37 +02:00
|
|
|
%define pae_enabled n
|
2007-02-11 11:48:10 +01:00
|
|
|
%endif
|
|
|
|
%if %{?with_kmp}0
|
2012-01-05 20:41:54 +01:00
|
|
|
BuildRequires: kernel-source
|
|
|
|
BuildRequires: kernel-syms
|
2014-01-02 20:09:07 +01:00
|
|
|
BuildRequires: module-init-tools
|
2014-01-16 21:18:13 +01:00
|
|
|
%if %suse_version >= 1230
|
2014-01-15 17:11:09 +01:00
|
|
|
BuildRequires: lndir
|
2014-01-16 21:18:13 +01:00
|
|
|
%else
|
|
|
|
BuildRequires: xorg-x11-util-devel
|
|
|
|
%endif
|
2013-05-09 10:15:21 +02:00
|
|
|
%endif
|
2014-01-02 20:09:07 +01:00
|
|
|
|
2014-01-16 21:18:13 +01:00
|
|
|
Version: 4.4.0_02
|
2012-01-05 20:41:54 +01:00
|
|
|
Release: 0
|
2007-01-16 00:42:10 +01:00
|
|
|
PreReq: %insserv_prereq %fillup_prereq
|
|
|
|
Summary: Xen Virtualization: Hypervisor (aka VMM aka Microkernel)
|
2012-01-05 20:41:54 +01:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Kernel
|
2014-01-02 20:09:07 +01:00
|
|
|
Source0: xen-4.4.0-testing-src.tar.bz2
|
2010-11-12 18:55:23 +01:00
|
|
|
Source1: stubdom.tar.bz2
|
2012-09-17 17:49:23 +02:00
|
|
|
Source2: qemu-xen-traditional-dir-remote.tar.bz2
|
|
|
|
Source3: qemu-xen-dir-remote.tar.bz2
|
|
|
|
Source4: seabios-dir-remote.tar.bz2
|
|
|
|
Source5: ipxe.tar.bz2
|
|
|
|
Source10: README.SuSE
|
|
|
|
Source11: boot.xen
|
|
|
|
Source12: boot.local.xenU
|
|
|
|
Source14: init.xendomains
|
|
|
|
Source15: logrotate.conf
|
|
|
|
Source18: xmexample.disks
|
|
|
|
Source19: block-nbd
|
|
|
|
Source20: block-iscsi
|
|
|
|
Source21: block-npiv-common.sh
|
|
|
|
Source22: block-npiv
|
|
|
|
Source23: block-npiv-vport
|
|
|
|
Source24: xmclone.sh
|
|
|
|
Source26: init.xen_loop
|
2009-03-03 00:46:51 +01:00
|
|
|
%if %{?with_kmp}0
|
2012-09-17 17:49:23 +02:00
|
|
|
Source28: kmp_filelist
|
2009-03-03 00:46:51 +01:00
|
|
|
%endif
|
2012-09-17 17:49:23 +02:00
|
|
|
Source29: block-dmmd
|
2013-06-12 23:52:27 +02:00
|
|
|
# Xen API remote authentication sources
|
2012-09-17 17:49:23 +02:00
|
|
|
Source30: etc_pam.d_xen-api
|
|
|
|
Source31: xenapiusers
|
2013-07-31 22:29:13 +02:00
|
|
|
# Sysconfig hook script for Xen
|
2012-09-17 17:49:23 +02:00
|
|
|
Source32: xen-updown.sh
|
2013-07-31 22:29:13 +02:00
|
|
|
# Init script and sysconf file for pciback
|
2012-09-17 17:49:23 +02:00
|
|
|
Source34: init.pciback
|
|
|
|
Source35: sysconfig.pciback
|
2013-01-22 16:44:50 +01:00
|
|
|
Source36: xnloader.py
|
2013-07-31 22:29:13 +02:00
|
|
|
# Systemd service files
|
2013-08-16 23:22:11 +02:00
|
|
|
Source41: xencommons.service
|
|
|
|
Source42: xendomains.service
|
|
|
|
Source43: xen-watchdog.service
|
2014-01-02 20:09:07 +01:00
|
|
|
# Xend files
|
|
|
|
%if %{?with_xend}0
|
|
|
|
Source50: init.xend
|
|
|
|
Source51: xend-relocation.sh
|
|
|
|
Source52: xend-relocation-server.fw
|
|
|
|
Source53: domUloader.py
|
|
|
|
Source54: xmexample.domUloader
|
|
|
|
Source55: xmexample.disks
|
|
|
|
Source56: xend.service
|
|
|
|
%endif
|
|
|
|
Source57: xen-utils-0.1.tar.bz2
|
|
|
|
# For xen-libs
|
2011-03-31 18:16:25 +02:00
|
|
|
Source99: baselibs.conf
|
2011-05-03 19:51:18 +02:00
|
|
|
# http://xenbits.xensource.com/ext/xenalyze
|
2010-12-11 00:38:27 +01:00
|
|
|
Source20000: xenalyze.hg.tar.bz2
|
2007-05-21 22:28:46 +02:00
|
|
|
# Upstream patches
|
2014-01-02 20:09:07 +01:00
|
|
|
# Upstream qemu
|
|
|
|
Patch250: VNC-Support-for-ExtendedKeyEvent-client-message.patch
|
|
|
|
Patch251: 0001-net-move-the-tap-buffer-into-TAPState.patch
|
|
|
|
Patch252: 0002-net-increase-tap-buffer-size.patch
|
|
|
|
Patch253: 0003-e1000-fix-access-4-bytes-beyond-buffer-end.patch
|
|
|
|
Patch254: 0004-e1000-secrc-support.patch
|
|
|
|
Patch255: 0005-e1000-multi-buffer-packet-support.patch
|
|
|
|
Patch256: 0006-e1000-clear-EOP-for-multi-buffer-descriptors.patch
|
|
|
|
Patch257: 0007-e1000-verify-we-have-buffers-upfront.patch
|
|
|
|
Patch258: 0008-e1000-check-buffer-availability.patch
|
|
|
|
# Our platform specific patches
|
2013-06-01 23:11:56 +02:00
|
|
|
Patch301: xen-destdir.patch
|
|
|
|
Patch302: xen-changeset.patch
|
|
|
|
Patch303: xen-xmexample.patch
|
|
|
|
Patch310: bridge-opensuse.patch
|
|
|
|
Patch311: bridge-vlan.patch
|
|
|
|
Patch312: bridge-bonding.patch
|
|
|
|
Patch313: bridge-record-creation.patch
|
|
|
|
Patch314: vif-bridge-no-iptables.patch
|
|
|
|
Patch315: vif-bridge-tap-fix.patch
|
2013-08-15 23:14:40 +02:00
|
|
|
Patch316: xl-conf-default-bridge.patch
|
2013-06-01 23:11:56 +02:00
|
|
|
Patch320: network-nat-open-SuSEfirewall2-FORWARD.patch
|
|
|
|
Patch321: udev-rules.patch
|
2008-12-05 15:30:41 +01:00
|
|
|
# Needs to go upstream
|
2014-01-02 20:09:07 +01:00
|
|
|
Patch330: suspend_evtchn_lock.patch
|
|
|
|
Patch331: xenpaging.doc.patch
|
|
|
|
# Qemu traditional
|
|
|
|
Patch350: blktap.patch
|
|
|
|
Patch351: cdrom-removable.patch
|
|
|
|
Patch352: change-vnc-passwd.patch
|
|
|
|
Patch353: xen-qemu-iscsi-fix.patch
|
|
|
|
Patch354: qemu-security-etch1.patch
|
|
|
|
Patch355: xen-disable-qemu-monitor.patch
|
|
|
|
Patch356: xen-hvm-default-bridge.patch
|
|
|
|
Patch357: qemu-ifup-set-mtu.patch
|
|
|
|
Patch358: ioemu-vnc-resize.patch
|
|
|
|
Patch359: capslock_enable.patch
|
|
|
|
Patch360: altgr_2.patch
|
|
|
|
Patch361: log-guest-console.patch
|
|
|
|
Patch362: ioemu-blktap-fv-init.patch
|
|
|
|
Patch363: ioemu-blktap-image-format.patch
|
|
|
|
Patch364: build-tapdisk-ioemu.patch
|
|
|
|
Patch365: tapdisk-ioemu-logfile.patch
|
|
|
|
Patch366: ioemu-blktap-zero-size.patch
|
|
|
|
Patch367: tapdisk-ioemu-shutdown-fix.patch
|
|
|
|
Patch368: ioemu-blktap-barriers.patch
|
|
|
|
Patch369: bdrv_open2_fix_flags.patch
|
|
|
|
Patch370: bdrv_open2_flags_2.patch
|
|
|
|
Patch371: ioemu-bdrv-open-CACHE_WB.patch
|
|
|
|
Patch372: ioemu-7615-qcow2-fix-alloc_cluster_link_l2.patch
|
|
|
|
Patch373: qemu-dm-segfault.patch
|
|
|
|
Patch374: bdrv_default_rwflag.patch
|
|
|
|
Patch375: kernel-boot-hvm.patch
|
|
|
|
Patch376: ioemu-watchdog-support.patch
|
|
|
|
Patch377: ioemu-watchdog-linkage.patch
|
|
|
|
Patch378: ioemu-watchdog-ib700-timer.patch
|
|
|
|
Patch379: ioemu-hvm-pv-support.patch
|
|
|
|
Patch380: pvdrv_emulation_control.patch
|
|
|
|
Patch381: ioemu-disable-scsi.patch
|
|
|
|
Patch382: ioemu-disable-emulated-ide-if-pv.patch
|
|
|
|
Patch383: xenpaging.qemu.flush-cache.patch
|
2014-01-16 21:18:13 +01:00
|
|
|
Patch384: qemu-xen-upstream-blkif-discard.patch
|
2014-01-23 19:54:00 +01:00
|
|
|
Patch385: xen_pvonhvm.xen_emul_unplug.patch
|
2014-01-02 20:09:07 +01:00
|
|
|
# Xend
|
|
|
|
Patch400: xen.migrate.tools_set_migration_constraints_from_cmdline.patch
|
|
|
|
Patch401: xen.migrate.tools_add_xm_migrate_--log_progress_option.patch
|
|
|
|
Patch402: xen.migrate.tools-xend_move_assert_to_exception_block.patch
|
|
|
|
Patch403: xen.migrate.tools_set_number_of_dirty_pages_during_migration.patch
|
2014-01-02 21:31:21 +01:00
|
|
|
Patch404: xend-config.patch
|
|
|
|
Patch405: xend-max-free-mem.patch
|
|
|
|
Patch406: xend-hvm-default-pae.patch
|
2014-01-09 22:49:46 +01:00
|
|
|
Patch407: xend-vif-route-ifup.patch
|
|
|
|
Patch408: xend-xenapi-console-protocol.patch
|
|
|
|
Patch409: xend-core-dump-loc.patch
|
|
|
|
Patch410: xend-xen-api-auth.patch
|
|
|
|
Patch411: xend-checkpoint-rename.patch
|
|
|
|
Patch412: xend-xm-save-check-file.patch
|
|
|
|
Patch413: xend-xm-create-xflag.patch
|
|
|
|
Patch414: xend-domu-usb-controller.patch
|
|
|
|
Patch415: xend-devid-or-name.patch
|
|
|
|
Patch416: xend-migration-domname-fix.patch
|
|
|
|
Patch417: xend-del_usb_xend_entry.patch
|
|
|
|
Patch418: xend-xen-domUloader.patch
|
|
|
|
Patch419: xend-multi-xvdp.patch
|
|
|
|
Patch420: xend-check_device_status.patch
|
|
|
|
Patch421: xend-change_home_server.patch
|
|
|
|
Patch422: xend-minimum-restart-time.patch
|
|
|
|
Patch423: xend-disable-internal-logrotate.patch
|
|
|
|
Patch424: xend-config-enable-dump-comment.patch
|
|
|
|
Patch425: xend-tools-watchdog-support.patch
|
|
|
|
Patch426: xend-console-port-restore.patch
|
|
|
|
Patch427: xend-vcpu-affinity-fix.patch
|
|
|
|
Patch428: xend-migration-bridge-check.patch
|
|
|
|
Patch429: xend-managed-pci-device.patch
|
|
|
|
Patch430: xend-hvm-firmware-passthrough.patch
|
|
|
|
Patch431: xend-cpuinfo-model-name.patch
|
|
|
|
Patch432: xend-xm-reboot-fix.patch
|
|
|
|
Patch433: xend-domain-lock.patch
|
|
|
|
Patch434: xend-domain-lock-sfex.patch
|
|
|
|
Patch435: xend-32on64-extra-mem.patch
|
|
|
|
Patch436: xend-hv_extid_compatibility.patch
|
|
|
|
Patch437: xend-xenpaging.autostart.patch
|
2010-01-16 01:12:54 +01:00
|
|
|
# Other bug fixes or features
|
2014-01-02 20:09:07 +01:00
|
|
|
Patch450: libxen_permissive.patch
|
|
|
|
Patch451: xenconsole-no-multiple-connections.patch
|
|
|
|
Patch452: hibernate.patch
|
|
|
|
Patch453: stdvga-cache.patch
|
|
|
|
Patch454: ipxe-enable-nics.patch
|
|
|
|
Patch455: pygrub-netware-xnloader.patch
|
|
|
|
Patch456: pygrub-boot-legacy-sles.patch
|
|
|
|
Patch460: blktapctrl-close-fifos.patch
|
|
|
|
Patch461: blktapctrl-default-to-ioemu.patch
|
|
|
|
Patch462: blktapctrl-disable-debug-printf.patch
|
|
|
|
Patch463: blktap-pv-cdrom.patch
|
|
|
|
Patch464: set-mtu-from-bridge-for-tap-interface.patch
|
2010-01-16 01:12:54 +01:00
|
|
|
# Hypervisor and PV driver Patches
|
2011-01-14 19:24:51 +01:00
|
|
|
Patch501: x86-ioapic-ack-default.patch
|
|
|
|
Patch502: x86-cpufreq-report.patch
|
2012-09-21 16:45:08 +02:00
|
|
|
Patch503: x86-dom-print.patch
|
2013-06-01 23:11:56 +02:00
|
|
|
Patch504: x86-extra-trap-info.patch
|
|
|
|
Patch520: supported_module.patch
|
2013-07-17 04:04:59 +02:00
|
|
|
Patch521: magic_ioport_compat.patch
|
2013-06-01 23:11:56 +02:00
|
|
|
# Build patches
|
|
|
|
Patch99997: disable-wget-check.patch
|
2011-05-10 18:44:09 +02:00
|
|
|
Patch99998: tmp-initscript-modprobe.patch
|
2011-03-30 16:56:23 +02:00
|
|
|
Patch99999: tmp_build.patch
|
2007-09-14 00:50:00 +02:00
|
|
|
Url: http://www.cl.cam.ac.uk/Research/SRG/netos/xen/
|
2007-01-16 00:42:10 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-08-21 17:26:06 +02:00
|
|
|
%define pyver %(python -c "import sys; print sys.version[:3]")
|
2007-02-11 11:48:10 +01:00
|
|
|
%if %{?with_kmp}0
|
2009-03-03 00:46:51 +01:00
|
|
|
%suse_kernel_module_package -n xen um xen -f kmp_filelist
|
2007-02-11 11:48:10 +01:00
|
|
|
%endif
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Xen is a virtual machine monitor for x86 that supports execution of
|
|
|
|
multiple guest operating systems with unprecedented levels of
|
|
|
|
performance and resource isolation.
|
|
|
|
|
|
|
|
This package contains the Xen Hypervisor. (tm)
|
|
|
|
|
|
|
|
Modern computers are sufficiently powerful to use virtualization to
|
|
|
|
present the illusion of many smaller virtual machines (VMs), each
|
|
|
|
running a separate operating system instance. Successful partitioning
|
|
|
|
of a machine to support the concurrent execution of multiple operating
|
|
|
|
systems poses several challenges. Firstly, virtual machines must be
|
|
|
|
isolated from one another: It is not acceptable for the execution of
|
|
|
|
one to adversely affect the performance of another. This is
|
|
|
|
particularly true when virtual machines are owned by mutually
|
|
|
|
untrusting users. Secondly, it is necessary to support a variety of
|
|
|
|
different operating systems to accommodate the heterogeneity of popular
|
|
|
|
applications. Thirdly, the performance overhead introduced by
|
|
|
|
virtualization should be small.
|
|
|
|
|
|
|
|
Xen uses a technique called paravirtualization: The guest OS is
|
|
|
|
modified, mainly to enhance performance.
|
|
|
|
|
|
|
|
The Xen hypervisor (microkernel) does not provide device drivers for
|
|
|
|
your hardware (except for CPU and memory). This job is left to the
|
|
|
|
kernel that's running in domain 0. Thus the domain 0 kernel is
|
|
|
|
privileged; it has full hardware access. It's started immediately after
|
|
|
|
Xen starts up. Other domains have no access to the hardware; instead
|
|
|
|
they use virtual interfaces that are provided by Xen (with the help of
|
|
|
|
the domain 0 kernel).
|
|
|
|
|
2013-07-31 22:29:13 +02:00
|
|
|
In addition to this package you need to install the kernel-xen, xen-libs
|
|
|
|
and xen-tools packages to use Xen. Xen version 3 and newer also supports
|
|
|
|
running unmodified guests using full virtualization, if appropriate hardware
|
|
|
|
is present.
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
[Hypervisor is a trademark of IBM]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Ian Pratt <ian.pratt@cl.cam.ac.uk>
|
|
|
|
Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
|
|
|
|
Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
|
|
|
|
Mark Williamson <mark.williamson@cl.cam.ac.uk>
|
|
|
|
Ewan Mellor <ewan@xensource.com>
|
|
|
|
...
|
|
|
|
|
2014-01-09 22:49:46 +01:00
|
|
|
%if %{?with_dom0_support}0
|
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
%package libs
|
|
|
|
Summary: Xen Virtualization: Libraries
|
|
|
|
Group: System/Kernel
|
2011-12-02 21:25:29 +01:00
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
%description libs
|
|
|
|
Xen is a virtual machine monitor for x86 that supports execution of
|
|
|
|
multiple guest operating systems with unprecedented levels of
|
|
|
|
performance and resource isolation.
|
|
|
|
|
|
|
|
This package contains the libraries used to interact with the Xen
|
|
|
|
virtual machine monitor.
|
|
|
|
|
2013-07-31 22:29:13 +02:00
|
|
|
In addition to this package you need to install kernel-xen, xen and
|
|
|
|
xen-tools to use Xen.
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Ian Pratt <ian.pratt@cl.cam.ac.uk>
|
|
|
|
|
2011-08-07 18:42:22 +02:00
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
%package tools
|
|
|
|
Summary: Xen Virtualization: Control tools for domain 0
|
|
|
|
Group: System/Kernel
|
2012-03-28 11:13:58 +02:00
|
|
|
Requires: bridge-utils
|
|
|
|
Requires: multipath-tools
|
|
|
|
Requires: python
|
|
|
|
Requires: python-curses
|
|
|
|
Requires: python-lxml
|
|
|
|
Requires: python-openssl
|
|
|
|
Requires: python-pam
|
|
|
|
Requires: python-xml
|
2008-02-02 01:58:27 +01:00
|
|
|
Requires: xen-libs = %{version}
|
2008-03-14 18:02:08 +01:00
|
|
|
# subpackage existed in 10.3
|
2012-11-19 14:58:33 +01:00
|
|
|
Provides: xen-tools-ioemu = %{version}
|
|
|
|
Obsoletes: xen-tools-ioemu < %{version}
|
2013-06-01 23:11:56 +02:00
|
|
|
Conflicts: libvirt < 1.0.5
|
2011-12-02 21:25:29 +01:00
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
%description tools
|
|
|
|
Xen is a virtual machine monitor for x86 that supports execution of
|
|
|
|
multiple guest operating systems with unprecedented levels of
|
|
|
|
performance and resource isolation.
|
|
|
|
|
|
|
|
This package contains the control tools that allow you to start, stop,
|
|
|
|
migrate, and manage virtual machines.
|
|
|
|
|
2013-07-31 22:29:13 +02:00
|
|
|
In addition to this package you need to install kernel-xen, xen and
|
|
|
|
xen-libs to use Xen.
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
|
2013-06-01 23:11:56 +02:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Ian Pratt <ian.pratt@cl.cam.ac.uk>
|
|
|
|
|
|
|
|
|
2014-01-02 20:09:07 +01:00
|
|
|
%if %{?with_xend}0
|
2014-01-16 21:18:13 +01:00
|
|
|
%if %suse_version > 1230
|
2013-06-01 23:11:56 +02:00
|
|
|
%package xend-tools
|
|
|
|
Summary: Xen Virtualization: Control tools for domain 0
|
|
|
|
Group: System/Kernel
|
2013-11-26 21:18:36 +01:00
|
|
|
Requires: pciutils
|
2013-06-01 23:11:56 +02:00
|
|
|
Requires: python
|
|
|
|
Requires: python-curses
|
|
|
|
Requires: python-lxml
|
|
|
|
Requires: python-openssl
|
|
|
|
Requires: python-pam
|
|
|
|
Requires: python-xml
|
|
|
|
Requires: xen-tools
|
|
|
|
Conflicts: libvirt < 1.0.5
|
|
|
|
|
|
|
|
%description xend-tools
|
|
|
|
Xen is a virtual machine monitor for x86 that supports execution of
|
|
|
|
multiple guest operating systems with unprecedented levels of
|
|
|
|
performance and resource isolation.
|
|
|
|
|
2013-07-31 22:29:13 +02:00
|
|
|
This package contains the control tools that allow you to start, stop
|
|
|
|
migrate, and manage virtual machines using the legacy xend/xm toolstack.
|
|
|
|
|
|
|
|
In addition to this package you need to install kernel-xen, xen and
|
|
|
|
xen-libs to use Xen.
|
2011-07-01 21:31:25 +02:00
|
|
|
%endif
|
2014-01-09 22:49:46 +01:00
|
|
|
%endif
|
2014-01-16 21:18:13 +01:00
|
|
|
%endif
|
2007-04-26 01:53:07 +02:00
|
|
|
|
|
|
|
%package tools-domU
|
|
|
|
Summary: Xen Virtualization: Control tools for domain U
|
|
|
|
Group: System/Kernel
|
|
|
|
Conflicts: xen-tools
|
2011-12-02 21:25:29 +01:00
|
|
|
|
2007-04-26 01:53:07 +02:00
|
|
|
%description tools-domU
|
|
|
|
Xen is a virtual machine monitor for x86 that supports execution of
|
|
|
|
multiple guest operating systems with unprecedented levels of
|
|
|
|
performance and resource isolation.
|
|
|
|
|
|
|
|
This package contains tools that allow unprivileged domains to query
|
|
|
|
the virtualized environment.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Ian Pratt <ian.pratt@cl.cam.ac.uk>
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Xen Virtualization: Headers and libraries for development
|
|
|
|
Group: System/Kernel
|
2013-11-19 19:39:48 +01:00
|
|
|
Requires: libuuid-devel
|
2007-01-16 00:42:10 +01:00
|
|
|
Requires: xen-libs = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Xen is a virtual machine monitor for x86 that supports execution of
|
|
|
|
multiple guest operating systems with unprecedented levels of
|
|
|
|
performance and resource isolation.
|
|
|
|
|
|
|
|
This package contains the libraries and header files needed to create
|
|
|
|
tools to control virtual machines.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Ian Pratt <ian.pratt@cl.cam.ac.uk>
|
|
|
|
|
2007-02-11 11:48:10 +01:00
|
|
|
%if %{?with_kmp}0
|
2007-11-29 22:05:25 +01:00
|
|
|
|
2007-02-11 11:48:10 +01:00
|
|
|
%package KMP
|
|
|
|
Summary: Xen para-virtual device drivers for fully virtualized guests
|
2012-01-05 20:41:54 +01:00
|
|
|
Group: System/Kernel
|
2008-09-01 02:39:12 +02:00
|
|
|
Conflicts: xen
|
2007-02-11 11:48:10 +01:00
|
|
|
|
|
|
|
%description KMP
|
|
|
|
Xen is a virtual machine monitor for x86 that supports execution of
|
|
|
|
multiple guest operating systems with unprecedented levels of
|
|
|
|
performance and resource isolation.
|
|
|
|
|
2013-07-31 22:29:13 +02:00
|
|
|
This package contains the Xen para-virtual device drivers for fully
|
|
|
|
virtualized guests.
|
2007-02-11 11:48:10 +01:00
|
|
|
|
|
|
|
%endif
|
2007-11-29 22:05:25 +01:00
|
|
|
|
2014-01-09 22:49:46 +01:00
|
|
|
%if %{?with_dom0_support}0
|
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
%package doc-html
|
|
|
|
Summary: Xen Virtualization: HTML documentation
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description doc-html
|
|
|
|
Xen is a virtual machine monitor for x86 that supports execution of
|
|
|
|
multiple guest operating systems with unprecedented levels of
|
|
|
|
performance and resource isolation.
|
|
|
|
|
|
|
|
xen-doc-html contains the online documentation in HTML format. Point
|
|
|
|
your browser at file:/usr/share/doc/packages/xen/html/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Ian Pratt <ian.pratt@cl.cam.ac.uk>
|
2014-01-09 22:49:46 +01:00
|
|
|
%endif
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
%prep
|
2014-01-02 20:09:07 +01:00
|
|
|
%setup -q -n %xen_build_dir -a 1 -a 2 -a 3 -a 4 -a 5 -a 57 -a 20000
|
2011-10-20 21:52:33 +02:00
|
|
|
# Upstream patches
|
2014-01-02 20:09:07 +01:00
|
|
|
# Upstream qemu patches
|
|
|
|
%patch250 -p1
|
|
|
|
%patch251 -p1
|
|
|
|
%patch252 -p1
|
|
|
|
%patch253 -p1
|
|
|
|
%patch254 -p1
|
|
|
|
%patch255 -p1
|
|
|
|
%patch256 -p1
|
|
|
|
%patch257 -p1
|
|
|
|
%patch258 -p1
|
|
|
|
# Our platform specific patches
|
2010-01-16 01:12:54 +01:00
|
|
|
%patch301 -p1
|
|
|
|
%patch302 -p1
|
2013-06-01 23:11:56 +02:00
|
|
|
%patch303 -p1
|
2010-01-16 01:12:54 +01:00
|
|
|
%patch310 -p1
|
|
|
|
%patch311 -p1
|
|
|
|
%patch312 -p1
|
|
|
|
%patch313 -p1
|
|
|
|
%patch314 -p1
|
2011-05-13 05:23:20 +02:00
|
|
|
%patch315 -p1
|
2013-08-15 23:14:40 +02:00
|
|
|
%patch316 -p1
|
2013-06-01 23:11:56 +02:00
|
|
|
%patch320 -p1
|
|
|
|
%patch321 -p1
|
|
|
|
%patch330 -p1
|
|
|
|
%patch331 -p1
|
2014-01-02 20:09:07 +01:00
|
|
|
# Qemu traditional
|
2010-01-16 01:12:54 +01:00
|
|
|
%patch350 -p1
|
|
|
|
%patch351 -p1
|
|
|
|
%patch352 -p1
|
|
|
|
%patch353 -p1
|
2013-10-24 23:00:35 +02:00
|
|
|
%patch354 -p1
|
2014-01-02 20:09:07 +01:00
|
|
|
%patch355 -p1
|
|
|
|
%patch356 -p1
|
|
|
|
%patch357 -p1
|
|
|
|
%patch358 -p1
|
|
|
|
%patch359 -p1
|
2013-06-01 23:11:56 +02:00
|
|
|
%patch360 -p1
|
|
|
|
%patch361 -p1
|
|
|
|
%patch362 -p1
|
|
|
|
%patch363 -p1
|
2013-10-24 23:00:35 +02:00
|
|
|
%patch364 -p1
|
2014-01-02 20:09:07 +01:00
|
|
|
%patch365 -p1
|
|
|
|
%patch366 -p1
|
|
|
|
%patch367 -p1
|
|
|
|
%patch368 -p1
|
|
|
|
%patch369 -p1
|
|
|
|
%patch370 -p1
|
|
|
|
%patch371 -p1
|
|
|
|
%patch372 -p1
|
|
|
|
%patch373 -p1
|
|
|
|
%patch374 -p1
|
|
|
|
%patch375 -p1
|
|
|
|
%patch376 -p1
|
|
|
|
%patch377 -p1
|
|
|
|
%patch378 -p1
|
|
|
|
%patch379 -p1
|
|
|
|
%patch380 -p1
|
|
|
|
%patch381 -p1
|
|
|
|
%patch382 -p1
|
|
|
|
%patch383 -p1
|
2014-01-16 21:18:13 +01:00
|
|
|
%patch384 -p1
|
2014-01-23 19:54:00 +01:00
|
|
|
%patch385 -p1
|
2014-01-02 20:09:07 +01:00
|
|
|
# Xend
|
|
|
|
%if %{?with_xend}0
|
|
|
|
%patch400 -p1
|
|
|
|
%patch401 -p1
|
|
|
|
%patch402 -p1
|
|
|
|
%patch403 -p1
|
|
|
|
%patch404 -p1
|
|
|
|
%patch405 -p1
|
|
|
|
%patch406 -p1
|
|
|
|
%patch407 -p1
|
|
|
|
%patch408 -p1
|
|
|
|
%patch409 -p1
|
|
|
|
%patch410 -p1
|
|
|
|
%patch411 -p1
|
|
|
|
%patch412 -p1
|
|
|
|
%patch413 -p1
|
|
|
|
%patch414 -p1
|
|
|
|
%patch415 -p1
|
|
|
|
%patch416 -p1
|
|
|
|
%patch417 -p1
|
|
|
|
%patch418 -p1
|
|
|
|
%patch419 -p1
|
|
|
|
%patch420 -p1
|
|
|
|
%patch421 -p1
|
|
|
|
%patch422 -p1
|
|
|
|
%patch423 -p1
|
|
|
|
%patch424 -p1
|
|
|
|
%patch425 -p1
|
|
|
|
%patch426 -p1
|
|
|
|
%patch427 -p1
|
|
|
|
%patch428 -p1
|
|
|
|
%patch429 -p1
|
|
|
|
%patch430 -p1
|
|
|
|
%patch431 -p1
|
|
|
|
%patch432 -p1
|
2014-01-02 21:31:21 +01:00
|
|
|
%patch433 -p1
|
|
|
|
%patch434 -p1
|
2014-01-09 22:49:46 +01:00
|
|
|
%patch435 -p1
|
|
|
|
%patch436 -p1
|
|
|
|
%patch437 -p1
|
2014-01-02 20:09:07 +01:00
|
|
|
%endif
|
|
|
|
# Other bug fixes or features
|
|
|
|
%patch450 -p1
|
|
|
|
%patch451 -p1
|
|
|
|
%patch452 -p1
|
|
|
|
%patch453 -p1
|
|
|
|
%patch454 -p1
|
|
|
|
%patch455 -p1
|
|
|
|
%patch456 -p1
|
|
|
|
%patch460 -p1
|
|
|
|
%patch461 -p1
|
|
|
|
%patch462 -p1
|
|
|
|
%patch463 -p1
|
|
|
|
%patch464 -p1
|
|
|
|
# Hypervisor and PV driver Patches
|
2009-05-04 18:38:09 +02:00
|
|
|
%patch501 -p1
|
|
|
|
%patch502 -p1
|
2012-09-21 16:45:08 +02:00
|
|
|
%patch503 -p1
|
2010-01-16 01:12:54 +01:00
|
|
|
%patch504 -p1
|
2013-06-01 23:11:56 +02:00
|
|
|
%patch520 -p1
|
|
|
|
%patch521 -p1
|
2014-01-02 20:09:07 +01:00
|
|
|
# Build patches
|
2013-06-01 23:11:56 +02:00
|
|
|
%patch99997 -p1
|
2011-05-10 18:44:09 +02:00
|
|
|
%patch99998 -p1
|
2011-03-30 16:56:23 +02:00
|
|
|
%patch99999 -p1
|
2014-01-02 20:09:07 +01:00
|
|
|
|
2012-11-17 16:39:25 +01:00
|
|
|
# tools/qemu-xen-traditional-dir-remote/configure ./tools/qemu-xen-dir-remote/configure use
|
|
|
|
# clock_gettime to check whether -lrt is needed - and don't check other functions
|
|
|
|
# with glibc 2.17 clock_gettime is part of libc, so use timer_settime
|
|
|
|
sed -i -e 's/int main(void) { clockid_t id; return clock_gettime(id, NULL); }/int main(void) { struct itimerspec v;timer_t t; return timer_gettime (t, \&v);}/' \
|
|
|
|
tools/qemu-xen-traditional-dir-remote/configure ./tools/qemu-xen-dir-remote/configure
|
2011-03-30 16:56:23 +02:00
|
|
|
|
2007-08-07 09:32:10 +02:00
|
|
|
%build
|
2007-01-16 00:42:10 +01:00
|
|
|
XEN_EXTRAVERSION=%version-%release
|
|
|
|
XEN_EXTRAVERSION=${XEN_EXTRAVERSION#%{xvers}}
|
2007-05-23 01:45:46 +02:00
|
|
|
sed -i "s/XEN_EXTRAVERSION[\t ]*.=.*\$/XEN_EXTRAVERSION = $XEN_EXTRAVERSION/" xen/Makefile
|
|
|
|
sed -i "s/XEN_CHANGESET[\t ]*=.*\$/XEN_CHANGESET = %{changeset}/" xen/Makefile
|
2012-10-05 23:55:57 +02:00
|
|
|
export EXTRA_CFLAGS_XEN_TOOLS="$RPM_OPT_FLAGS"
|
2014-01-02 20:09:07 +01:00
|
|
|
configure_flags=
|
|
|
|
%if %{?with_stubdom}0
|
|
|
|
configure_flags=--enable-stubdom
|
|
|
|
%else
|
|
|
|
configure_flags=--disable-stubdom
|
|
|
|
%endif
|
|
|
|
%if %{?with_qemu_traditional}0
|
|
|
|
configure_flags="${configure_flags} --enable-qemu-traditional"
|
|
|
|
%else
|
|
|
|
configure_flags="${configure_flags} --disable-qemu-traditional"
|
|
|
|
%endif
|
|
|
|
%if %{?with_xend}0
|
|
|
|
configure_flags="${configure_flags} --enable-xend"
|
|
|
|
%else
|
|
|
|
configure_flags="${configure_flags} --disable-xend"
|
|
|
|
%endif
|
2012-09-17 17:49:23 +02:00
|
|
|
./configure \
|
|
|
|
--enable-xenapi \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec_prefix=/usr \
|
|
|
|
--bindir=%{_bindir} \
|
|
|
|
--sbindir=%{_sbindir} \
|
|
|
|
--libdir=%{_libdir} \
|
2014-01-02 20:09:07 +01:00
|
|
|
--datadir=%{_datadir} \
|
|
|
|
--enable-blktap1 ${configure_flags}
|
2014-01-09 22:49:46 +01:00
|
|
|
%if %{?with_dom0_support}0
|
2012-09-19 00:20:30 +02:00
|
|
|
CFLAGS_SAVE=$CFLAGS
|
2014-01-23 19:54:00 +01:00
|
|
|
%ifarch %ix86 x86_64
|
2012-10-05 23:55:57 +02:00
|
|
|
make -C xenalyze.hg CC="gcc -I../xen/include -DMAX_CPUS=%{max_cpus} ${RPM_OPT_FLAGS}" %{?_smp_mflags} -k
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2011-03-22 22:15:11 +01:00
|
|
|
make -C tools/include/xen-foreign %{?_smp_mflags}
|
|
|
|
make tools docs %{?_smp_mflags}
|
2011-03-21 17:47:37 +01:00
|
|
|
make -C tools/debugger/gdbsx
|
2014-01-02 20:09:07 +01:00
|
|
|
%if %{?with_xend}0
|
2012-09-17 17:49:23 +02:00
|
|
|
make -C tools/xen-utils-0.1 XEN_INTREE_BUILD=yes XEN_ROOT=$PWD
|
2011-07-01 21:31:25 +02:00
|
|
|
%endif
|
2014-01-09 22:49:46 +01:00
|
|
|
%else
|
|
|
|
make -C tools/include/xen-foreign %{?_smp_mflags}
|
|
|
|
make tools docs %{?_smp_mflags}
|
|
|
|
%endif
|
2007-02-11 11:48:10 +01:00
|
|
|
%if %{?with_kmp}0
|
2013-07-31 22:29:13 +02:00
|
|
|
# PV driver modules
|
2008-09-01 02:39:12 +02:00
|
|
|
export XL=/usr/src/linux
|
|
|
|
export XEN=/usr/src/linux/include/xen
|
2007-02-11 11:48:10 +01:00
|
|
|
mkdir -p obj
|
|
|
|
for flavor in %flavors_to_build; do
|
|
|
|
rm -rf obj/$flavor
|
|
|
|
cp -r unmodified_drivers/linux-2.6 obj/$flavor
|
2008-09-01 02:39:12 +02:00
|
|
|
cd obj/$flavor
|
|
|
|
./mkbuildtree
|
2007-02-11 11:48:10 +01:00
|
|
|
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules \
|
2011-03-22 22:15:11 +01:00
|
|
|
%{?_smp_mflags} \
|
2008-09-01 02:39:12 +02:00
|
|
|
M=$PWD
|
|
|
|
cd ../..
|
2007-02-11 11:48:10 +01:00
|
|
|
done
|
|
|
|
%endif
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
%install
|
2012-10-05 23:55:57 +02:00
|
|
|
export EXTRA_CFLAGS_XEN_TOOLS="$RPM_OPT_FLAGS"
|
2014-01-15 17:11:09 +01:00
|
|
|
export EXTRA_CFLAGS_QEMU_TRADITIONAL="$RPM_OPT_FLAGS"
|
|
|
|
export EXTRA_CFLAGS_QEMU_XEN="$RPM_OPT_FLAGS"
|
2011-07-01 21:31:25 +02:00
|
|
|
# EFI
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifarch x86_64 %arm aarch64
|
2011-08-15 16:46:23 +02:00
|
|
|
make -C xen install \
|
|
|
|
%if %{?with_gcc46}0
|
|
|
|
CC=gcc-4.6 \
|
|
|
|
%endif
|
|
|
|
max_phys_cpus=%{max_cpus} debug=n crash_debug=n DESTDIR=$RPM_BUILD_ROOT %{?_smp_mflags}
|
2011-07-07 18:20:18 +02:00
|
|
|
make -C xen clean
|
2007-01-16 00:42:10 +01:00
|
|
|
install_xen()
|
|
|
|
{
|
|
|
|
local ext=""
|
|
|
|
if [ -n "$1" ]; then
|
|
|
|
ext="-$1"
|
|
|
|
mv $RPM_BUILD_ROOT/boot/xen-%{version}-%{release}.gz \
|
|
|
|
$RPM_BUILD_ROOT/boot/xen${ext}-%{version}-%{release}.gz
|
|
|
|
mv $RPM_BUILD_ROOT/boot/xen-syms-%{version}-%{release} \
|
|
|
|
$RPM_BUILD_ROOT/boot/xen-syms${ext}-%{version}-%{release}
|
|
|
|
fi
|
|
|
|
rm $RPM_BUILD_ROOT/boot/xen-%{xvers}.gz
|
|
|
|
rm $RPM_BUILD_ROOT/boot/xen-%{xvermaj}.gz
|
|
|
|
rm $RPM_BUILD_ROOT/boot/xen.gz
|
|
|
|
# Do not link to links; grub cannot follow.
|
|
|
|
ln -s xen${ext}-%{version}-%{release}.gz $RPM_BUILD_ROOT/boot/xen${ext}-%{xvers}.gz
|
|
|
|
ln -s xen${ext}-%{version}-%{release}.gz $RPM_BUILD_ROOT/boot/xen${ext}-%{xvermaj}.gz
|
|
|
|
ln -s xen${ext}-%{version}-%{release}.gz $RPM_BUILD_ROOT/boot/xen${ext}.gz
|
|
|
|
ln -sf xen-syms${ext}-%{version}-%{release} $RPM_BUILD_ROOT/boot/xen-syms${ext}
|
|
|
|
}
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifnarch %arm aarch64
|
2014-01-02 20:09:07 +01:00
|
|
|
%if %{?with_debug}0
|
2011-03-22 22:15:11 +01:00
|
|
|
make -C xen install max_phys_cpus=%{max_cpus} pae=%{pae_enabled} debug=y crash_debug=y DESTDIR=$RPM_BUILD_ROOT %{?_smp_mflags}
|
2008-03-27 23:24:06 +01:00
|
|
|
install_xen dbg
|
2007-01-16 00:42:10 +01:00
|
|
|
make -C xen clean
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2014-01-02 20:09:07 +01:00
|
|
|
%endif
|
2011-03-22 22:15:11 +01:00
|
|
|
make -C xen install max_phys_cpus=%{max_cpus} pae=%{pae_enabled} debug=n crash_debug=n DESTDIR=$RPM_BUILD_ROOT %{?_smp_mflags}
|
2008-03-27 23:24:06 +01:00
|
|
|
install_xen
|
2007-01-16 00:42:10 +01:00
|
|
|
make -C xen clean
|
2011-03-22 22:15:11 +01:00
|
|
|
make -C tools/include/xen-foreign %{?_smp_mflags}
|
2007-01-16 00:42:10 +01:00
|
|
|
# tools
|
|
|
|
export XEN_PYTHON_NATIVE_INSTALL=1
|
|
|
|
make -C tools install \
|
2011-03-22 22:15:11 +01:00
|
|
|
DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} %{?_smp_mflags}
|
2009-06-12 20:43:24 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/usr/sbin/{qcow-create,img2qcow,qcow2raw}
|
2013-07-06 03:06:10 +02:00
|
|
|
echo > xen.files.txt
|
2007-01-16 00:42:10 +01:00
|
|
|
%ifarch x86_64
|
2013-07-31 22:29:13 +02:00
|
|
|
# EFI depends on gcc46
|
2011-08-15 15:32:00 +02:00
|
|
|
if test -d $RPM_BUILD_ROOT%{_libdir}/efi
|
|
|
|
then
|
|
|
|
echo %{_libdir}/efi >> xen.files.txt
|
|
|
|
fi
|
2010-12-11 00:38:27 +01:00
|
|
|
cp -avL xenalyze.hg/dump-raw $RPM_BUILD_ROOT/%{_bindir}/xenalyze.dump-raw
|
|
|
|
cp -avL xenalyze.hg/xenalyze $RPM_BUILD_ROOT/%{_bindir}
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2011-07-01 21:31:25 +02:00
|
|
|
%else
|
|
|
|
make -C tools install DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} %{?_smp_mflags}
|
|
|
|
%endif
|
2013-07-31 22:29:13 +02:00
|
|
|
|
2011-07-01 21:31:25 +02:00
|
|
|
# PV driver modules
|
2007-02-11 11:48:10 +01:00
|
|
|
%if %{?with_kmp}0
|
|
|
|
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
|
|
|
|
export INSTALL_MOD_DIR=updates
|
2012-01-23 22:46:39 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/modprobe.d
|
2007-02-11 11:48:10 +01:00
|
|
|
for flavor in %flavors_to_build; do
|
|
|
|
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install \
|
|
|
|
M=$PWD/obj/$flavor
|
|
|
|
done
|
2007-01-16 00:42:10 +01:00
|
|
|
%endif
|
2013-07-31 22:29:13 +02:00
|
|
|
|
2011-07-01 21:31:25 +02:00
|
|
|
# Stubdom
|
2014-01-09 22:49:46 +01:00
|
|
|
%if %{?with_dom0_support}0
|
2010-12-11 00:38:27 +01:00
|
|
|
%if %{?with_stubdom}0
|
2013-07-31 22:29:13 +02:00
|
|
|
# remove -fstack-protector flag for stubdom build section
|
2013-05-07 16:35:00 +02:00
|
|
|
export EXTRA_CFLAGS_XEN_TOOLS=$(echo $RPM_OPT_FLAGS |sed -e 's/-fstack-protector//g')
|
|
|
|
export EXTRA_CFLAGS_QEMU_TRADITIONAL=$(echo $RPM_OPT_FLAGS |sed -e 's/-fstack-protector//g')
|
|
|
|
export EXTRA_CFLAGS_QEMU_XEN=$(echo $RPM_OPT_FLAGS |sed -e 's/-fstack-protector//g')
|
2012-10-08 14:28:21 +02:00
|
|
|
make stubdom %{?_smp_mflags}
|
2010-11-12 18:55:23 +01:00
|
|
|
make -C stubdom install \
|
|
|
|
DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} \
|
|
|
|
DOCDIR=%{_defaultdocdir}/xen INCDIR=%{_includedir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/xen
|
2013-07-31 22:29:13 +02:00
|
|
|
# restore -fstack-protector flag
|
2013-05-07 16:35:00 +02:00
|
|
|
export EXTRA_CFLAGS_XEN_TOOLS="$RPM_OPT_FLAGS"
|
|
|
|
export EXTRA_CFLAGS_QEMU_TRADITIONAL="$RPM_OPT_FLAGS"
|
|
|
|
export EXTRA_CFLAGS_QEMU_XEN="$RPM_OPT_FLAGS"
|
2010-12-11 00:38:27 +01:00
|
|
|
%endif
|
2013-07-31 22:29:13 +02:00
|
|
|
|
2011-07-01 21:31:25 +02:00
|
|
|
# Docs
|
2007-02-11 11:48:10 +01:00
|
|
|
make -C docs install \
|
|
|
|
DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} \
|
|
|
|
DOCDIR=%{_defaultdocdir}/xen
|
2012-09-17 17:49:23 +02:00
|
|
|
for name in COPYING %SOURCE10 %SOURCE11 %SOURCE12; do
|
2007-02-11 11:48:10 +01:00
|
|
|
install -m 644 $name $RPM_BUILD_ROOT/%{_defaultdocdir}/xen/
|
2007-01-16 00:42:10 +01:00
|
|
|
done
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/xen/misc
|
2010-10-29 18:37:40 +02:00
|
|
|
for name in vtpm.txt crashdb.txt sedf_scheduler_mini-HOWTO.txt xenpaging.txt; do
|
2007-02-11 11:48:10 +01:00
|
|
|
install -m 644 docs/misc/$name $RPM_BUILD_ROOT/%{_defaultdocdir}/xen/misc/
|
2007-01-16 00:42:10 +01:00
|
|
|
done
|
2013-07-31 22:29:13 +02:00
|
|
|
|
|
|
|
# Init scripts
|
2007-01-16 00:42:10 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
2013-07-09 23:37:32 +02:00
|
|
|
install tools/hotplug/Linux/init.d/xendomains $RPM_BUILD_ROOT/etc/init.d/xendomains
|
2007-01-16 00:42:10 +01:00
|
|
|
ln -s /etc/init.d/xendomains $RPM_BUILD_ROOT/usr/sbin/rcxendomains
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifnarch %arm aarch64
|
2012-09-17 17:49:23 +02:00
|
|
|
install %SOURCE34 $RPM_BUILD_ROOT/etc/init.d/pciback
|
2011-10-18 16:16:28 +02:00
|
|
|
ln -s /etc/init.d/pciback $RPM_BUILD_ROOT/usr/sbin/rcpciback
|
2012-09-17 17:49:23 +02:00
|
|
|
install %SOURCE35 $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.pciback
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2008-04-12 21:41:18 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/modprobe.d
|
2012-09-17 17:49:23 +02:00
|
|
|
install -m644 %SOURCE26 $RPM_BUILD_ROOT/etc/modprobe.d/xen_loop.conf
|
2013-07-31 22:29:13 +02:00
|
|
|
|
2014-01-02 20:09:07 +01:00
|
|
|
# Xend init scripts and related programs
|
|
|
|
%if %{?with_xend}0
|
|
|
|
%ifnarch %arm aarch64
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/xen/xend-db/domain
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/xen/xend-db/migrate
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/xen/xend-db/vnet
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/udev/rules.d
|
2008-08-18 00:24:29 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/xen/{vm,examples,scripts}
|
2014-01-02 20:09:07 +01:00
|
|
|
mv $RPM_BUILD_ROOT/etc/udev/rules.d/xend.rules $RPM_BUILD_ROOT/etc/udev/rules.d/40-xend.rules
|
|
|
|
install %SOURCE50 $RPM_BUILD_ROOT/etc/init.d/xend
|
|
|
|
ln -s /etc/init.d/xend $RPM_BUILD_ROOT/usr/sbin/rcxend
|
|
|
|
install -m755 %SOURCE51 $RPM_BUILD_ROOT/etc/xen/scripts/
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_fwdefdir}
|
|
|
|
install -m 644 %{S:26} $RPM_BUILD_ROOT/%{_fwdefdir}/xend-relocation-server
|
|
|
|
make -C tools/xen-utils-0.1 install DESTDIR=$RPM_BUILD_ROOT XEN_INTREE_BUILD=yes XEN_ROOT=$PWD
|
|
|
|
install -m755 %SOURCE53 $RPM_BUILD_ROOT/usr/lib/xen/boot/
|
2007-01-16 00:42:10 +01:00
|
|
|
mv $RPM_BUILD_ROOT/etc/xen/xmexample* $RPM_BUILD_ROOT/etc/xen/examples
|
2014-01-02 20:09:07 +01:00
|
|
|
install -m644 %SOURCE54 %SOURCE55 $RPM_BUILD_ROOT/etc/xen/examples/
|
|
|
|
ln -s /etc/xen/scripts/vm-monitor $RPM_BUILD_ROOT/etc/xen/scripts/set-lock
|
|
|
|
%if %{?with_systemd}0
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
|
|
|
install -m 644 %{SOURCE56} %{buildroot}%{_unitdir}/xend.service
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# Example config
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/xen/{vm,examples,scripts}
|
2012-09-17 17:49:23 +02:00
|
|
|
mv $RPM_BUILD_ROOT/etc/xen/xlexample* $RPM_BUILD_ROOT/etc/xen/examples
|
2008-08-18 00:24:29 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/etc/xen/examples/*nbd
|
2014-01-02 20:09:07 +01:00
|
|
|
install -m644 %SOURCE18 $RPM_BUILD_ROOT/etc/xen/examples/
|
2010-10-20 23:00:35 +02:00
|
|
|
install -m644 tools/xentrace/formats $RPM_BUILD_ROOT/etc/xen/examples/xentrace_formats.txt
|
2013-07-31 22:29:13 +02:00
|
|
|
|
|
|
|
# Scripts
|
2008-08-18 00:24:29 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/etc/xen/scripts/block-*nbd
|
2014-01-02 20:09:07 +01:00
|
|
|
install -m755 %SOURCE19 %SOURCE20 %SOURCE21 %SOURCE22 %SOURCE23 %SOURCE24 %SOURCE29 $RPM_BUILD_ROOT/etc/xen/scripts/
|
2013-07-31 22:29:13 +02:00
|
|
|
|
2008-03-06 02:36:51 +01:00
|
|
|
# Xen API remote authentication files
|
|
|
|
install -d $RPM_BUILD_ROOT/etc/pam.d
|
2012-09-17 17:49:23 +02:00
|
|
|
install -m644 %SOURCE30 $RPM_BUILD_ROOT/etc/pam.d/xen-api
|
|
|
|
install -m644 %SOURCE31 $RPM_BUILD_ROOT/etc/xen/
|
2013-07-31 22:29:13 +02:00
|
|
|
|
|
|
|
# Sysconfig hook for Xen
|
2008-09-12 17:57:53 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig/network/scripts
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig/network/if-up.d
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig/network/if-down.d
|
2012-09-17 17:49:23 +02:00
|
|
|
install -m755 %SOURCE32 $RPM_BUILD_ROOT/etc/sysconfig/network/scripts
|
2008-09-12 17:57:53 +02:00
|
|
|
ln -s /etc/sysconfig/network/scripts/xen-updown.sh $RPM_BUILD_ROOT/etc/sysconfig/network/if-up.d/xen
|
|
|
|
ln -s /etc/sysconfig/network/scripts/xen-updown.sh $RPM_BUILD_ROOT/etc/sysconfig/network/if-down.d/xen
|
2013-07-31 22:29:13 +02:00
|
|
|
|
|
|
|
# Logrotate
|
2012-09-17 17:49:23 +02:00
|
|
|
install -m644 -D %SOURCE15 $RPM_BUILD_ROOT/etc/logrotate.d/xen
|
2013-07-31 22:29:13 +02:00
|
|
|
|
|
|
|
# Directories
|
2007-01-16 00:42:10 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/xenstored
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/xen/images
|
2007-02-11 11:48:10 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/xen/jobs
|
2007-01-16 00:42:10 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/xen/save
|
2008-06-06 17:48:40 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/xen/dump
|
2007-01-16 00:42:10 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/log/xen
|
2011-07-01 21:31:25 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/log/xen/console
|
2007-01-16 00:42:10 +01:00
|
|
|
ln -s /var/lib/xen/images $RPM_BUILD_ROOT/etc/xen/images
|
2013-07-31 22:29:13 +02:00
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
# Bootloader
|
2013-07-06 03:06:10 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/lib/xen/boot/
|
2013-01-22 16:51:51 +01:00
|
|
|
install -m755 %SOURCE36 $RPM_BUILD_ROOT/%{_libdir}/python%{pyver}/site-packages
|
2013-07-31 22:29:13 +02:00
|
|
|
|
|
|
|
# Udev support
|
2008-08-18 00:24:29 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/udev/rules.d
|
2007-01-16 00:42:10 +01:00
|
|
|
mv $RPM_BUILD_ROOT/etc/udev/rules.d/xen-backend.rules $RPM_BUILD_ROOT/etc/udev/rules.d/40-xen.rules
|
2013-07-31 22:29:13 +02:00
|
|
|
|
|
|
|
# Systemd
|
2013-07-31 22:58:24 +02:00
|
|
|
%if %{?with_systemd}0
|
2013-07-30 23:20:13 +02:00
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
2013-08-16 23:22:11 +02:00
|
|
|
install -m 644 %{SOURCE41} %{buildroot}%{_unitdir}/xencommons.service
|
|
|
|
install -m 644 %{SOURCE42} %{buildroot}%{_unitdir}/xendomains.service
|
|
|
|
install -m 644 %{SOURCE43} %{buildroot}%{_unitdir}/xen-watchdog.service
|
2013-07-30 23:20:13 +02:00
|
|
|
%endif
|
2013-07-31 22:29:13 +02:00
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
# Clean up unpackaged files
|
2014-01-02 20:09:07 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_datadir}/doc/packages/xen/html/hypercall/x86_64/.deps
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_datadir}/doc/packages/xen/html/hypercall/x86_32/.deps
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_datadir}/doc/packages/xen/html/hypercall/arm/.deps
|
2013-07-31 22:29:13 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/xen/qemu/openbios-*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/qemu-xen/qemu/openbios-*
|
2013-06-01 23:11:56 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/qemu-xen/qemu/palcode-clipper
|
2009-08-21 17:26:06 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/python%{pyver}/site-packages/*.egg-info
|
2008-08-18 00:24:29 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/doc/xen/README.*
|
2012-09-17 17:49:23 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/lib/debug
|
2013-06-01 23:11:56 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/usr/etc/qemu/target-x86_64.conf
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/libexec/qemu-bridge-helper
|
2014-01-02 20:09:07 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT/usr/lib/debug/usr/libexec/qemu-bridge-helper.debug
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/sbin/xen-mfndump
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/lib/debug/usr/sbin/xen-mfndump.debug
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/qemu-img-xen
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/qemu-nbd-xen
|
2013-07-31 22:29:13 +02:00
|
|
|
|
2014-01-02 20:09:07 +01:00
|
|
|
%if %{?with_xend}0
|
2011-07-01 21:31:25 +02:00
|
|
|
%else
|
2014-01-02 20:09:07 +01:00
|
|
|
# Remove xend/xm
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/python%{pyver}/site-packages/xen/remus/*
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/python%{pyver}/site-packages/xen/sv/*
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/python%{pyver}/site-packages/xen/util/*
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/python%{pyver}/site-packages/xen/xend/*
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/python%{pyver}/site-packages/xen/xm/*
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/python%{pyver}/site-packages/xen/web/*
|
|
|
|
rm -rf $RPM_BUILD_ROOT/var/lib/xen/xend-db
|
|
|
|
rm -f $RPM_BUILD_ROOT/etc/udev/rules.d/xend.rules
|
|
|
|
rm -f $RPM_BUILD_ROOT/etc/udev/rules.d/40-xend.rules
|
|
|
|
rm -f $RPM_BUILD_ROOT/etc/init.d/xend
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/sbin/rcxend
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/sbin/xm
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/sbin/xend
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/sbin/xen-bugtool
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/sbin/xen-python-path
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/sbin/xen-list
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/sbin/xen-destroy
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/sbin/xen-vmresync
|
|
|
|
rm -f $RPM_BUILD_ROOT/etc/xen/scripts/xend-relocation.sh
|
|
|
|
rm -f $RPM_BUILD_ROOT/etc/xen/scripts/domain-lock*
|
|
|
|
rm -f $RPM_BUILD_ROOT/etc/xen/scripts/vm-monitor
|
|
|
|
rm -f $RPM_BUILD_ROOT/etc/xen/xm-config.xml
|
|
|
|
rm -f $RPM_BUILD_ROOT/etc/xen/*.sxp
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/xm*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man5/xmdomain.cfg*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man5/xend-config.sxp*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/man/man1/xen-list.1.gz
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# Create symlinks for keymaps
|
|
|
|
%fdupes -s $RPM_BUILD_ROOT/%{_datadir}
|
2011-08-07 18:42:22 +02:00
|
|
|
|
2014-01-09 22:49:46 +01:00
|
|
|
%else
|
|
|
|
# !with_dom0_support
|
|
|
|
|
|
|
|
# 32 bit hypervisor no longer supported. Remove dom0 tools.
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_datadir}/man
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/fs
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/xen
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/python*
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/sbin
|
|
|
|
rm -rf $RPM_BUILD_ROOT/etc/xen
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_datadir}/qemu-xen
|
|
|
|
rm -rf $RPM_BUILD_ROOT/var
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/bash_completion.d/xl.sh
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d/xen*
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/xen*
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/*store*
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/*trace*
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/xenco*
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/pygrub
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/remus
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/etc/qemu/target-x86_64.conf
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/libexec/qemu-bridge-helper
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.so.*
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{?with_dom0_support}0
|
|
|
|
|
2011-08-15 15:32:00 +02:00
|
|
|
%files -f xen.files.txt
|
2007-01-16 00:42:10 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
/boot/xen-%{version}-%{release}.gz
|
|
|
|
/boot/xen-%{xvermaj}.gz
|
2007-05-23 01:45:46 +02:00
|
|
|
/boot/xen-%{xvers}.gz
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifnarch %arm aarch64
|
2014-01-02 20:09:07 +01:00
|
|
|
%if %{?with_debug}0
|
2007-01-16 00:42:10 +01:00
|
|
|
/boot/xen-dbg-%{version}-%{release}.gz
|
|
|
|
/boot/xen-dbg-%{xvermaj}.gz
|
2007-05-23 01:45:46 +02:00
|
|
|
/boot/xen-dbg-%{xvers}.gz
|
2007-01-16 00:42:10 +01:00
|
|
|
/boot/xen-dbg.gz
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2014-01-02 20:09:07 +01:00
|
|
|
%endif
|
2007-05-23 01:45:46 +02:00
|
|
|
/boot/xen-syms
|
|
|
|
/boot/xen-syms-%{version}-%{release}
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifnarch %arm aarch64
|
2014-01-02 20:09:07 +01:00
|
|
|
%if %{?with_debug}0
|
2007-01-16 00:42:10 +01:00
|
|
|
/boot/xen-syms-dbg
|
2007-05-23 01:45:46 +02:00
|
|
|
/boot/xen-syms-dbg-%{version}-%{release}
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2011-07-01 21:31:25 +02:00
|
|
|
%endif
|
2014-01-02 20:09:07 +01:00
|
|
|
/boot/xen.gz
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
%files libs
|
|
|
|
%defattr(-,root,root)
|
2007-02-11 11:48:10 +01:00
|
|
|
%{_libdir}/fs/
|
2011-04-12 00:31:41 +02:00
|
|
|
%{_libdir}/*.so.*
|
2007-02-19 23:34:05 +01:00
|
|
|
|
2007-06-23 00:22:21 +02:00
|
|
|
%files tools
|
2007-01-16 00:42:10 +01:00
|
|
|
%defattr(-,root,root)
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifnarch %arm aarch64
|
2010-12-11 00:38:27 +01:00
|
|
|
/usr/bin/xenalyze
|
|
|
|
/usr/bin/xenalyze.dump-raw
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2007-01-16 00:42:10 +01:00
|
|
|
/usr/bin/xencons
|
|
|
|
/usr/bin/xenstore*
|
|
|
|
/usr/bin/xentrace*
|
2008-07-19 01:04:37 +02:00
|
|
|
/usr/bin/pygrub
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifnarch %arm aarch64
|
2014-01-02 20:09:07 +01:00
|
|
|
%if %{?with_qemu_traditional}0
|
2008-08-18 00:24:29 +02:00
|
|
|
/usr/bin/tapdisk-ioemu
|
2014-01-02 20:09:07 +01:00
|
|
|
%endif
|
2011-03-30 16:56:23 +02:00
|
|
|
/usr/bin/remus
|
2013-06-20 19:01:24 +02:00
|
|
|
/usr/bin/xencov_split
|
2007-01-16 00:42:10 +01:00
|
|
|
/usr/sbin/blktapctrl
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2014-01-02 20:09:07 +01:00
|
|
|
#/usr/sbin/flask-*
|
2013-06-12 23:52:27 +02:00
|
|
|
/usr/sbin/tap*
|
2013-07-09 23:37:32 +02:00
|
|
|
/usr/sbin/rcxendomains
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifnarch %arm aarch64
|
2011-10-18 16:16:28 +02:00
|
|
|
/usr/sbin/rcpciback
|
2013-06-12 23:52:27 +02:00
|
|
|
/usr/sbin/xenbaked
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2013-06-12 23:52:27 +02:00
|
|
|
/usr/sbin/xenconsoled
|
|
|
|
/usr/sbin/xencov
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifnarch %arm aarch64
|
2013-06-12 23:52:27 +02:00
|
|
|
/usr/sbin/xen-hptool
|
|
|
|
/usr/sbin/xen-hvmcrash
|
|
|
|
/usr/sbin/xen-hvmctx
|
|
|
|
/usr/sbin/xenlockprof
|
|
|
|
/usr/sbin/xen-lowmemd
|
|
|
|
/usr/sbin/xenmon.py
|
|
|
|
/usr/sbin/xenperf
|
|
|
|
/usr/sbin/xenpm
|
|
|
|
/usr/sbin/xenpmd
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2013-06-12 23:52:27 +02:00
|
|
|
/usr/sbin/xen-ringwatch
|
|
|
|
/usr/sbin/xenstored
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifnarch %arm aarch64
|
2013-06-12 23:52:27 +02:00
|
|
|
/usr/sbin/xen-tmem-list-parse
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2013-06-12 23:52:27 +02:00
|
|
|
/usr/sbin/xentop
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifnarch %arm aarch64
|
2013-06-12 23:52:27 +02:00
|
|
|
/usr/sbin/xentrace_setmask
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2013-06-12 23:52:27 +02:00
|
|
|
/usr/sbin/xenwatchdogd
|
2010-01-16 01:12:54 +01:00
|
|
|
/usr/sbin/gtracestat
|
|
|
|
/usr/sbin/gtraceview
|
|
|
|
/usr/sbin/lock-util
|
|
|
|
/usr/sbin/td-util
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifnarch %arm aarch64
|
2010-01-16 01:12:54 +01:00
|
|
|
/usr/sbin/vhd-update
|
|
|
|
/usr/sbin/vhd-util
|
2010-09-28 00:07:21 +02:00
|
|
|
/usr/sbin/gdbsx
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2010-10-20 23:00:35 +02:00
|
|
|
/usr/sbin/xl
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifnarch %arm aarch64
|
2011-11-28 20:34:40 +01:00
|
|
|
/usr/sbin/kdd
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2013-06-12 23:52:27 +02:00
|
|
|
%dir %attr(700,root,root) /etc/xen
|
|
|
|
%dir /etc/xen/scripts
|
2014-01-02 20:09:07 +01:00
|
|
|
%ifnarch %arm aarch64
|
|
|
|
%if %{?with_qemu_traditional}0
|
|
|
|
/etc/xen/scripts/qemu-ifup
|
|
|
|
%endif
|
|
|
|
%endif
|
2013-06-12 23:52:27 +02:00
|
|
|
/etc/xen/scripts/blktap
|
|
|
|
/etc/xen/scripts/block*
|
|
|
|
/etc/xen/scripts/external-device-migrate
|
|
|
|
/etc/xen/scripts/hotplugpath.sh
|
|
|
|
/etc/xen/scripts/locking.sh
|
|
|
|
/etc/xen/scripts/logging.sh
|
|
|
|
/etc/xen/scripts/network-*
|
|
|
|
/etc/xen/scripts/vif2
|
|
|
|
/etc/xen/scripts/vif-*
|
|
|
|
/etc/xen/scripts/vscsi
|
|
|
|
/etc/xen/scripts/xen-hotplug-*
|
|
|
|
/etc/xen/scripts/xen-network-common.sh
|
|
|
|
/etc/xen/scripts/xen-script-common.sh
|
|
|
|
/etc/xen/scripts/xmclone.sh
|
2011-11-03 23:59:30 +01:00
|
|
|
%{_libdir}/xen
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifarch x86_64 aarch64
|
2011-11-03 23:59:30 +01:00
|
|
|
/usr/lib/xen
|
2007-01-16 00:42:10 +01:00
|
|
|
%endif
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifnarch %arm aarch64
|
2013-06-12 23:52:27 +02:00
|
|
|
/var/adm/fillup-templates/sysconfig.pciback
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2013-06-12 23:52:27 +02:00
|
|
|
/var/adm/fillup-templates/sysconfig.xencommons
|
2013-07-09 23:37:32 +02:00
|
|
|
/var/adm/fillup-templates/sysconfig.xendomains
|
2007-01-16 00:42:10 +01:00
|
|
|
%dir /var/lib/xen
|
|
|
|
%dir %attr(700,root,root) /var/lib/xen/images
|
|
|
|
%dir %attr(700,root,root) /var/lib/xen/save
|
2008-06-06 17:48:40 +02:00
|
|
|
%dir %attr(700,root,root) /var/lib/xen/dump
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifnarch %arm aarch64
|
2010-10-29 18:37:40 +02:00
|
|
|
%dir %attr(700,root,root) /var/lib/xen/xenpaging
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2007-05-23 01:45:46 +02:00
|
|
|
%dir /var/lib/xenstored
|
2007-01-16 00:42:10 +01:00
|
|
|
%dir /var/log/xen
|
2011-07-01 21:31:25 +02:00
|
|
|
%dir /var/log/xen/console
|
2007-07-25 02:03:48 +02:00
|
|
|
%config /etc/logrotate.d/xen
|
2007-05-23 01:45:46 +02:00
|
|
|
/etc/xen/auto
|
|
|
|
%config /etc/xen/examples
|
|
|
|
/etc/xen/images
|
2011-04-12 00:31:41 +02:00
|
|
|
%config /etc/xen/cpupool
|
2008-08-18 00:24:29 +02:00
|
|
|
/etc/xen/README*
|
2007-05-23 01:45:46 +02:00
|
|
|
%config /etc/xen/vm
|
2008-03-06 02:36:51 +01:00
|
|
|
%config(noreplace) /etc/xen/xenapiusers
|
2011-03-21 17:47:37 +01:00
|
|
|
%config(noreplace) /etc/xen/xl.conf
|
2008-03-06 02:36:51 +01:00
|
|
|
%config /etc/pam.d/xen-api
|
2009-08-17 14:57:35 +02:00
|
|
|
%config /etc/modprobe.d/xen_loop.conf
|
2013-06-12 23:52:27 +02:00
|
|
|
%config /etc/init.d/xencommons
|
2013-07-09 23:37:32 +02:00
|
|
|
%config /etc/init.d/xendomains
|
2013-06-12 23:52:27 +02:00
|
|
|
%config /etc/init.d/xen-watchdog
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifnarch %arm aarch64
|
2013-06-12 23:52:27 +02:00
|
|
|
%config /etc/init.d/pciback
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2013-07-31 22:58:24 +02:00
|
|
|
%if %{?with_systemd}0
|
2013-07-30 23:20:13 +02:00
|
|
|
%{_unitdir}/xencommons.service
|
2013-08-16 23:22:11 +02:00
|
|
|
%{_unitdir}/xendomains.service
|
2013-07-30 23:20:13 +02:00
|
|
|
%{_unitdir}/xen-watchdog.service
|
|
|
|
%endif
|
2008-04-12 21:41:18 +02:00
|
|
|
%dir /etc/modprobe.d
|
2007-01-16 00:42:10 +01:00
|
|
|
%dir /etc/udev
|
|
|
|
%dir /etc/udev/rules.d
|
|
|
|
/etc/udev/rules.d/40-xen.rules
|
2008-09-12 17:57:53 +02:00
|
|
|
/etc/sysconfig/network/scripts/xen-updown.sh
|
|
|
|
/etc/sysconfig/network/if-up.d/xen
|
|
|
|
/etc/sysconfig/network/if-down.d/xen
|
2010-10-20 23:00:35 +02:00
|
|
|
/etc/bash_completion.d/xl.sh
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifnarch %arm aarch64
|
2012-09-17 17:49:23 +02:00
|
|
|
%dir %{_datadir}/qemu-xen
|
|
|
|
%{_datadir}/qemu-xen/*
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2014-01-02 20:09:07 +01:00
|
|
|
%if %{?with_qemu_traditional}0
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifnarch %arm aarch64
|
2014-01-02 20:09:07 +01:00
|
|
|
%dir %{_datadir}/xen
|
2013-06-12 23:52:27 +02:00
|
|
|
%dir %{_datadir}/xen/qemu
|
2008-08-18 00:24:29 +02:00
|
|
|
%{_datadir}/xen/qemu/*
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2014-01-02 20:09:07 +01:00
|
|
|
%endif
|
2013-06-12 23:52:27 +02:00
|
|
|
%dir %{_libdir}/python%{pyver}/site-packages/grub
|
|
|
|
%dir %{_libdir}/python%{pyver}/site-packages/xen
|
|
|
|
%dir %{_libdir}/python%{pyver}/site-packages/xen/lowlevel
|
2009-08-21 17:26:06 +02:00
|
|
|
%{_libdir}/python%{pyver}/site-packages/grub/*
|
2013-06-01 23:11:56 +02:00
|
|
|
%{_libdir}/python%{pyver}/site-packages/xen/__init__*
|
|
|
|
%{_libdir}/python%{pyver}/site-packages/xen/lowlevel/*
|
2009-08-21 17:26:06 +02:00
|
|
|
%{_libdir}/python%{pyver}/site-packages/fsimage.so
|
2013-01-22 16:44:50 +01:00
|
|
|
%{_libdir}/python%{pyver}/site-packages/xnloader.py
|
2013-06-12 23:52:27 +02:00
|
|
|
%dir %{_defaultdocdir}/xen
|
|
|
|
%{_defaultdocdir}/xen/COPYING
|
|
|
|
%{_defaultdocdir}/xen/README.SuSE
|
|
|
|
%{_defaultdocdir}/xen/boot.local.xenU
|
|
|
|
%{_defaultdocdir}/xen/boot.xen
|
|
|
|
%{_defaultdocdir}/xen/misc
|
|
|
|
%{_mandir}/man1/xentop.1.gz
|
|
|
|
%{_mandir}/man1/xentrace_format.1.gz
|
|
|
|
%{_mandir}/man1/xl.1.gz
|
2014-01-02 20:09:07 +01:00
|
|
|
%{_mandir}/man1/xenstore-chmod.1.gz
|
|
|
|
%{_mandir}/man1/xenstore-ls.1.gz
|
|
|
|
%{_mandir}/man1/xenstore.1.gz
|
2013-06-12 23:52:27 +02:00
|
|
|
%{_mandir}/man5/xl.cfg.5.gz
|
|
|
|
%{_mandir}/man5/xl.conf.5.gz
|
|
|
|
%{_mandir}/man5/xlcpupool.cfg.5.gz
|
|
|
|
%{_mandir}/man8/*.8.gz
|
2008-02-02 01:58:27 +01:00
|
|
|
|
2014-01-02 20:09:07 +01:00
|
|
|
%if %{?with_xend}0
|
2014-01-16 21:18:13 +01:00
|
|
|
%if %suse_version > 1230
|
2013-06-01 23:11:56 +02:00
|
|
|
%files xend-tools
|
2014-01-16 21:18:13 +01:00
|
|
|
%endif
|
2013-06-01 23:11:56 +02:00
|
|
|
%defattr(-,root,root)
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifnarch %arm aarch64
|
2013-06-01 23:11:56 +02:00
|
|
|
/etc/udev/rules.d/40-xend.rules
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
|
|
|
%ifnarch %arm aarch64
|
2013-06-01 23:11:56 +02:00
|
|
|
/usr/sbin/rcxend
|
|
|
|
/usr/sbin/xm
|
2013-06-12 23:52:27 +02:00
|
|
|
/usr/sbin/xend
|
|
|
|
/usr/sbin/xen-bugtool
|
|
|
|
/usr/sbin/xen-python-path
|
2013-08-29 20:19:23 +02:00
|
|
|
/usr/sbin/xen-list
|
|
|
|
/usr/sbin/xen-destroy
|
|
|
|
/usr/sbin/xen-vmresync
|
2013-06-01 23:11:56 +02:00
|
|
|
%dir /var/lib/xen/xend-db
|
|
|
|
%dir /var/lib/xen/xend-db/domain
|
|
|
|
%dir /var/lib/xen/xend-db/migrate
|
|
|
|
%dir /var/lib/xen/xend-db/vnet
|
|
|
|
%dir %{_libdir}/python%{pyver}/site-packages/xen/remus
|
|
|
|
%dir %{_libdir}/python%{pyver}/site-packages/xen/util
|
|
|
|
%dir %{_libdir}/python%{pyver}/site-packages/xen/xend
|
|
|
|
%dir %{_libdir}/python%{pyver}/site-packages/xen/xm
|
|
|
|
%dir %{_libdir}/python%{pyver}/site-packages/xen/web
|
2014-01-02 20:09:07 +01:00
|
|
|
%dir %{_datadir}/xen
|
|
|
|
%{_datadir}/xen/*.dtd
|
2013-06-12 23:52:27 +02:00
|
|
|
%config /etc/init.d/xend
|
2013-07-31 22:58:24 +02:00
|
|
|
%if %{?with_systemd}0
|
2013-07-30 23:20:13 +02:00
|
|
|
%{_unitdir}/xend.service
|
|
|
|
%endif
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2013-06-12 23:52:27 +02:00
|
|
|
%dir %attr(700,root,root) /etc/xen
|
2013-06-01 23:11:56 +02:00
|
|
|
%config(noreplace) /etc/xen/*.sxp
|
|
|
|
%config(noreplace) /etc/xen/*.xml
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifnarch %arm aarch64
|
2013-06-12 23:52:27 +02:00
|
|
|
/etc/xen/scripts/xend-relocation.sh
|
2013-08-29 20:19:23 +02:00
|
|
|
/etc/xen/scripts/domain-lock*
|
|
|
|
/etc/xen/scripts/vm-monitor
|
|
|
|
/etc/xen/scripts/set-lock
|
2013-06-01 23:11:56 +02:00
|
|
|
%{_libdir}/python%{pyver}/site-packages/xen/remus/*
|
|
|
|
%{_libdir}/python%{pyver}/site-packages/xen/util/*
|
|
|
|
%{_libdir}/python%{pyver}/site-packages/xen/xend/*
|
|
|
|
%{_libdir}/python%{pyver}/site-packages/xen/xm/*
|
|
|
|
%{_libdir}/python%{pyver}/site-packages/xen/web/*
|
|
|
|
%config %{_fwdefdir}/xend-relocation-server
|
2013-06-12 23:52:27 +02:00
|
|
|
%{_mandir}/man1/xm.1.gz
|
|
|
|
%{_mandir}/man5/xmdomain.cfg.5.gz
|
|
|
|
%{_mandir}/man5/xend-config.sxp.5.gz
|
2013-08-29 20:19:23 +02:00
|
|
|
%{_mandir}/man1/xen-list.1.gz
|
2013-06-02 00:36:20 +02:00
|
|
|
%endif
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2014-01-09 22:49:46 +01:00
|
|
|
# with_dom0_support
|
|
|
|
%endif
|
2013-06-01 23:11:56 +02:00
|
|
|
|
2008-02-02 01:58:27 +01:00
|
|
|
%files tools-domU
|
|
|
|
%defattr(-,root,root)
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifnarch %arm aarch64
|
2008-02-02 01:58:27 +01:00
|
|
|
/usr/bin/xen-detect
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2008-11-25 15:57:48 +01:00
|
|
|
/bin/domu-xenstore
|
2008-02-02 01:58:27 +01:00
|
|
|
/bin/xenstore-*
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2011-04-12 00:31:41 +02:00
|
|
|
%{_libdir}/*.a
|
|
|
|
%{_libdir}/*.so
|
|
|
|
/usr/include/*
|
2007-01-16 00:42:10 +01:00
|
|
|
|
2014-01-09 22:49:46 +01:00
|
|
|
%if %{?with_dom0_support}0
|
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
%files doc-html
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_defaultdocdir}/xen/html
|
2011-08-07 18:42:22 +02:00
|
|
|
|
2013-08-29 20:19:23 +02:00
|
|
|
%post
|
2013-09-04 23:57:48 +02:00
|
|
|
if [ -x /sbin/update-bootloader ]; then
|
|
|
|
/sbin/update-bootloader --refresh; exit 0
|
|
|
|
fi
|
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
%post tools
|
2013-07-31 22:58:24 +02:00
|
|
|
%if %{?with_systemd}0
|
2013-07-30 23:20:13 +02:00
|
|
|
%{fillup_and_insserv -i -y -n xencommons xencommons}
|
|
|
|
/bin/systemctl enable xencommons.service
|
2014-01-16 21:18:13 +01:00
|
|
|
%if %suse_version <= 1230
|
|
|
|
%if %{?with_xend}0
|
|
|
|
%{fillup_and_insserv -y -n xend xend}
|
|
|
|
/bin/systemctl enable xend.service
|
|
|
|
%endif
|
|
|
|
%endif
|
2013-07-30 23:20:13 +02:00
|
|
|
%else
|
2014-01-02 20:09:07 +01:00
|
|
|
%{fillup_and_insserv -y -n xencommons xencommons}
|
2014-01-16 21:18:13 +01:00
|
|
|
%if %suse_version <= 1230
|
|
|
|
%if %{?with_xend}0
|
|
|
|
# enable both xm (xend based) and xl (libxl based)
|
|
|
|
if /bin/ls /etc/init.d/rc3.d/S??xend > /dev/null 2>&1 ; then
|
|
|
|
if ! /bin/ls /etc/init.d/rc3.d/S??xencommons > /dev/null 2>&1 ; then
|
|
|
|
echo "postin %{name}-tools: Forcing insserv xencommons during package upgrade because xend was enabled."
|
|
|
|
echo "postin %{name}-tools: with xend"
|
|
|
|
fi
|
|
|
|
%{fillup_and_insserv -Y -n xencommons xencommons}
|
|
|
|
else
|
|
|
|
%{fillup_and_insserv -y -n xencommons xencommons}
|
|
|
|
fi
|
|
|
|
%{fillup_and_insserv -y -n xend xend}
|
2013-07-30 23:20:13 +02:00
|
|
|
%endif
|
2014-01-16 21:18:13 +01:00
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
2013-07-06 03:06:10 +02:00
|
|
|
%ifnarch %arm aarch64
|
2013-07-31 22:58:24 +02:00
|
|
|
%if %{?with_systemd}0
|
2013-07-30 23:20:13 +02:00
|
|
|
%{fillup_and_insserv -i -y -n xendomains xendomains}
|
|
|
|
/bin/systemctl enable xendomains.service
|
|
|
|
%else
|
2007-08-03 02:38:01 +02:00
|
|
|
%{fillup_and_insserv -y -n xendomains xendomains}
|
2011-10-18 16:16:28 +02:00
|
|
|
%{fillup_only -n pciback}
|
2014-01-02 20:09:07 +01:00
|
|
|
%endif
|
|
|
|
if [ -f /usr/bin/qemu-system-i386 ]; then
|
|
|
|
rm -f /usr/lib/xen/bin/qemu-system-i386
|
|
|
|
ln -s /usr/bin/qemu-system-i386 /usr/lib/xen/bin/qemu-system-i386
|
|
|
|
fi
|
|
|
|
if [ -f /usr/bin/qemu-system-x86_64 ]; then
|
|
|
|
rm -f /usr/lib/xen/bin/qemu-system-x86_64
|
|
|
|
ln -s /usr/bin/qemu-system-x86_64 /usr/lib/xen/bin/qemu-system-x86_64
|
|
|
|
fi
|
2010-03-02 01:46:56 +01:00
|
|
|
if [ -f /usr/bin/qemu-img ]; then
|
|
|
|
if [ -f /usr/bin/qemu-img-xen ]; then
|
|
|
|
rm /usr/bin/qemu-img-xen
|
|
|
|
fi
|
2014-01-02 20:09:07 +01:00
|
|
|
rm -f /usr/lib/xen/bin/qemu-img-xen
|
|
|
|
ln -s /usr/bin/qemu-img /usr/lib/xen/bin/qemu-img-xen
|
2010-03-02 01:46:56 +01:00
|
|
|
fi
|
|
|
|
if [ -f /usr/bin/qemu-nbd ]; then
|
|
|
|
if [ -f /usr/bin/qemu-nbd-xen ]; then
|
|
|
|
rm /usr/bin/qemu-nbd-xen
|
|
|
|
fi
|
2014-01-02 20:09:07 +01:00
|
|
|
rm -f /usr/lib/xen/bin/qemu-nbd-xen
|
|
|
|
ln -s /usr/bin/qemu-nbd /usr/lib/xen/bin/qemu-nbd-xen
|
|
|
|
fi
|
|
|
|
if [ -f /usr/bin/qemu-io ]; then
|
|
|
|
rm -f /usr/lib/xen/bin/qemu-io-xen
|
|
|
|
ln -s /usr/bin/qemu-io /usr/lib/xen/bin/qemu-io-xen
|
2010-03-02 01:46:56 +01:00
|
|
|
fi
|
2013-07-30 23:20:13 +02:00
|
|
|
%endif
|
2007-01-16 00:42:10 +01:00
|
|
|
|
2014-01-16 21:18:13 +01:00
|
|
|
%if %suse_version > 1230
|
|
|
|
%if %{?with_xend}0
|
|
|
|
%post xend-tools
|
|
|
|
%if %{?with_systemd}0
|
|
|
|
%{fillup_and_insserv -i -y -n xend xend}
|
|
|
|
/bin/systemctl enable xend.service
|
|
|
|
%else
|
|
|
|
%{fillup_and_insserv -y -n xend xend}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
%preun tools
|
2013-07-31 22:58:24 +02:00
|
|
|
%if %{?with_systemd}0
|
2013-09-04 00:22:05 +02:00
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
/bin/systemctl disable xencommons.service
|
|
|
|
/bin/systemctl disable xendomains.service
|
2014-01-16 21:18:13 +01:00
|
|
|
%if %suse_version <= 1230
|
|
|
|
%if %{?with_xend}0
|
|
|
|
/bin/systemctl disable xend.service
|
|
|
|
%endif
|
|
|
|
%endif
|
2013-09-04 00:22:05 +02:00
|
|
|
fi
|
2013-07-30 23:20:13 +02:00
|
|
|
%else
|
2014-01-02 20:09:07 +01:00
|
|
|
%{stop_on_removal xendomains xencommons}
|
2014-01-16 21:18:13 +01:00
|
|
|
%if %suse_version <= 1230
|
2011-04-12 00:31:41 +02:00
|
|
|
%if %{?with_xend}0
|
2014-01-16 21:18:13 +01:00
|
|
|
%{stop_on_removal xend}
|
|
|
|
%endif
|
|
|
|
%endif
|
2011-04-12 00:31:41 +02:00
|
|
|
%endif
|
2014-01-02 20:09:07 +01:00
|
|
|
|
2014-01-16 21:18:13 +01:00
|
|
|
%if %suse_version > 1230
|
|
|
|
%if %{?with_xend}0
|
2014-01-02 20:09:07 +01:00
|
|
|
%preun xend-tools
|
|
|
|
%if %{?with_systemd}0
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
/bin/systemctl disable xend.service
|
2010-03-02 01:46:56 +01:00
|
|
|
fi
|
2014-01-02 20:09:07 +01:00
|
|
|
%else
|
|
|
|
%{stop_on_removal xend}
|
2011-07-01 21:31:25 +02:00
|
|
|
%endif
|
2014-01-16 21:18:13 +01:00
|
|
|
%endif
|
|
|
|
%endif
|
2014-01-02 20:09:07 +01:00
|
|
|
|
2014-01-16 21:18:13 +01:00
|
|
|
%postun tools
|
|
|
|
%if %suse_version <= 1230
|
|
|
|
%if %{?with_xend}0
|
|
|
|
%{restart_on_update xend}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%{insserv_cleanup}
|
|
|
|
%ifnarch %arm aarch64
|
|
|
|
%if %suse_version <= 1230
|
|
|
|
%if %{?with_xend}0
|
|
|
|
if [ -f /usr/bin/qemu-img-xen ]; then
|
|
|
|
rm /usr/bin/qemu-img-xen
|
|
|
|
fi
|
|
|
|
if [ -f /usr/bin/qemu-nbd-xen ]; then
|
|
|
|
rm /usr/bin/qemu-nbd-xen
|
|
|
|
fi
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %suse_version > 1230
|
|
|
|
%if %{?with_xend}0
|
2014-01-02 20:09:07 +01:00
|
|
|
%postun xend-tools
|
|
|
|
%{restart_on_update xend}
|
|
|
|
%{insserv_cleanup}
|
2014-01-16 21:18:13 +01:00
|
|
|
if [ -f /usr/bin/qemu-img-xen ]; then
|
|
|
|
rm /usr/bin/qemu-img-xen
|
|
|
|
fi
|
|
|
|
if [ -f /usr/bin/qemu-nbd-xen ]; then
|
|
|
|
rm /usr/bin/qemu-nbd-xen
|
|
|
|
fi
|
|
|
|
%endif
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2007-01-16 00:42:10 +01:00
|
|
|
|
2011-04-12 00:31:41 +02:00
|
|
|
%post libs -p /sbin/ldconfig
|
2007-05-23 01:45:46 +02:00
|
|
|
|
2011-04-12 00:31:41 +02:00
|
|
|
%postun libs -p /sbin/ldconfig
|
2007-11-29 22:05:25 +01:00
|
|
|
|
2014-01-09 22:49:46 +01:00
|
|
|
%endif
|
|
|
|
|
2007-02-19 23:34:05 +01:00
|
|
|
%changelog
|