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
|
|
|
#
|
2012-01-05 20:41:54 +01:00
|
|
|
# Copyright (c) 2012 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/
|
|
|
|
#
|
|
|
|
|
2012-09-21 16:45:08 +02:00
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
Name: xen
|
2008-10-22 18:52:24 +02:00
|
|
|
ExclusiveArch: %ix86 x86_64
|
2012-09-17 17:49:23 +02:00
|
|
|
%define xvers 4.2
|
2010-01-16 01:12:54 +01:00
|
|
|
%define xvermaj 4
|
2012-09-17 17:49:23 +02:00
|
|
|
%define changeset 25844
|
|
|
|
%define xen_build_dir xen-4.2.0-testing
|
2010-04-19 00:21:06 +02:00
|
|
|
%define with_kmp 1
|
2011-08-05 22:04:48 +02:00
|
|
|
%define with_stubdom 1
|
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-07-01 21:31:25 +02:00
|
|
|
%ifarch x86_64
|
|
|
|
%define with_dom0_support 1
|
|
|
|
%else
|
|
|
|
%define with_dom0_support 0
|
|
|
|
%endif
|
2011-06-14 21:01:54 +02:00
|
|
|
%define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services
|
2011-04-12 00:31:41 +02:00
|
|
|
%if %suse_version > 1140
|
2011-10-18 19:11:33 +02:00
|
|
|
%define with_xend 1
|
2011-04-12 00:31:41 +02:00
|
|
|
%else
|
|
|
|
%define with_xend 1
|
|
|
|
%endif
|
2011-05-12 11:17:07 +02:00
|
|
|
BuildRequires: LibVNCServer-devel
|
|
|
|
BuildRequires: SDL-devel
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: bin86
|
|
|
|
BuildRequires: curl-devel
|
|
|
|
BuildRequires: dev86
|
2012-09-17 17:49:23 +02:00
|
|
|
BuildRequires: glib2-devel
|
2011-05-12 11:17:07 +02:00
|
|
|
BuildRequires: graphviz
|
|
|
|
BuildRequires: latex2html
|
2012-01-05 20:41:54 +01:00
|
|
|
BuildRequires: libbz2-devel
|
2011-05-12 11:17:07 +02:00
|
|
|
BuildRequires: libjpeg-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
|
2011-05-12 11:17:07 +02:00
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
BuildRequires: openssl
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pciutils-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: texinfo
|
|
|
|
BuildRequires: transfig
|
2011-03-21 17:47:37 +01:00
|
|
|
%if %suse_version >= 1120
|
2011-05-12 11:17:07 +02:00
|
|
|
BuildRequires: xz-devel
|
2011-03-21 17:47:37 +01:00
|
|
|
%endif
|
2010-10-20 23:00:35 +02:00
|
|
|
%if %suse_version <= 1110
|
2011-05-12 11:17:07 +02:00
|
|
|
BuildRequires: pmtools
|
2010-10-20 23:00:35 +02:00
|
|
|
%else
|
2011-05-12 11:17:07 +02:00
|
|
|
BuildRequires: acpica
|
2010-10-20 23:00:35 +02:00
|
|
|
%endif
|
|
|
|
%if %suse_version >= 1030
|
2011-05-12 11:17:07 +02:00
|
|
|
BuildRequires: texlive
|
|
|
|
BuildRequires: texlive-latex
|
2012-07-10 15:51:42 +02:00
|
|
|
%if %suse_version > 1220
|
|
|
|
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)
|
|
|
|
%endif
|
2010-10-20 23:00:35 +02:00
|
|
|
%else
|
2011-05-12 11:17:07 +02:00
|
|
|
BuildRequires: te_ams
|
|
|
|
BuildRequires: te_latex
|
|
|
|
BuildRequires: tetex
|
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-09-17 17:49:23 +02:00
|
|
|
BuildRequires: gcc-32bit
|
|
|
|
BuildRequires: gcc43-32bit
|
2012-09-24 16:49:27 +02:00
|
|
|
BuildRequires: glibc-32bit
|
|
|
|
BuildRequires: glibc-devel-32bit
|
2010-04-03 00:15:37 +02:00
|
|
|
%define max_cpus 256
|
|
|
|
%define pae_enabled n
|
|
|
|
%else
|
|
|
|
%define max_cpus 32
|
|
|
|
%define pae_enabled y
|
2007-02-11 11:48:10 +01:00
|
|
|
%endif
|
2010-11-12 18:55:23 +01:00
|
|
|
BuildRequires: glibc-devel
|
2007-02-11 11:48:10 +01:00
|
|
|
%if %{?with_kmp}0
|
2012-01-05 20:41:54 +01:00
|
|
|
BuildRequires: kernel-source
|
|
|
|
BuildRequires: kernel-syms
|
|
|
|
BuildRequires: module-init-tools
|
|
|
|
BuildRequires: xorg-x11
|
2007-02-11 11:48:10 +01:00
|
|
|
%endif
|
2012-09-17 17:49:23 +02:00
|
|
|
Version: 4.2.0_01
|
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
|
2012-09-17 17:49:23 +02:00
|
|
|
Source0: xen-4.2.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
|
|
|
|
Source6: xen-utils-0.1.tar.bz2
|
|
|
|
Source10: README.SuSE
|
|
|
|
Source11: boot.xen
|
|
|
|
Source12: boot.local.xenU
|
|
|
|
Source13: init.xend
|
|
|
|
Source14: init.xendomains
|
|
|
|
Source15: logrotate.conf
|
|
|
|
Source16: domUloader.py
|
|
|
|
Source17: xmexample.domUloader
|
|
|
|
Source18: xmexample.disks
|
|
|
|
Source19: block-nbd
|
|
|
|
Source20: block-iscsi
|
|
|
|
Source21: block-npiv-common.sh
|
|
|
|
Source22: block-npiv
|
|
|
|
Source23: block-npiv-vport
|
|
|
|
Source24: xmclone.sh
|
|
|
|
Source25: xend-relocation.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
|
|
|
Source27: xen_pvdrivers.conf
|
|
|
|
Source28: kmp_filelist
|
2009-03-03 00:46:51 +01:00
|
|
|
%endif
|
2008-03-06 02:36:51 +01:00
|
|
|
# Xen API remote authentication sources
|
2012-09-17 17:49:23 +02:00
|
|
|
Source29: block-dmmd
|
|
|
|
Source30: etc_pam.d_xen-api
|
|
|
|
Source31: xenapiusers
|
2008-09-12 17:57:53 +02:00
|
|
|
# sysconfig hook script for Xen
|
2012-09-17 17:49:23 +02:00
|
|
|
Source32: xen-updown.sh
|
2011-06-14 21:01:54 +02:00
|
|
|
# Firewall service file for xend relocation server
|
2012-09-17 17:49:23 +02:00
|
|
|
Source33: xend-relocation-server.fw
|
2011-10-18 16:16:28 +02:00
|
|
|
# init script and sysconf file for pciback
|
2012-09-17 17:49:23 +02:00
|
|
|
Source34: init.pciback
|
|
|
|
Source35: sysconfig.pciback
|
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
|
2012-09-21 16:45:08 +02:00
|
|
|
Patch25833: 25833-32on64-bogus-pt_base-adjust.patch
|
|
|
|
Patch25835: 25835-adjust-rcu-lock-domain.patch
|
|
|
|
Patch25836: 25836-VT-d-S3-MSI-resume.patch
|
|
|
|
Patch25850: 25850-tmem-xsa-15-1.patch
|
|
|
|
Patch25851: 25851-tmem-xsa-15-2.patch
|
|
|
|
Patch25852: 25852-tmem-xsa-15-3.patch
|
|
|
|
Patch25853: 25853-tmem-xsa-15-4.patch
|
|
|
|
Patch25854: 25854-tmem-xsa-15-5.patch
|
|
|
|
Patch25855: 25855-tmem-xsa-15-6.patch
|
|
|
|
Patch25856: 25856-tmem-xsa-15-7.patch
|
|
|
|
Patch25857: 25857-tmem-xsa-15-8.patch
|
|
|
|
Patch25858: 25858-tmem-xsa-15-9.patch
|
|
|
|
Patch25859: 25859-tmem-missing-break.patch
|
|
|
|
Patch25860: 25860-tmem-cleanup.patch
|
|
|
|
Patch25861: 25861-x86-early-fixmap.patch
|
|
|
|
Patch25862: 25862-sercon-non-com.patch
|
|
|
|
Patch25863: 25863-sercon-ehci-dbgp.patch
|
|
|
|
Patch25864: 25864-sercon-unused.patch
|
|
|
|
Patch25866: 25866-sercon-ns16550-pci-irq.patch
|
|
|
|
Patch25867: 25867-sercon-ns16550-parse.patch
|
|
|
|
Patch25874: 25874-x86-EFI-chain-cfg.patch
|
|
|
|
Patch25909: 25909-xenpm-consistent.patch
|
2012-09-27 10:19:46 +02:00
|
|
|
Patch25941: 25941-pygrub_always_append_--args.patch
|
2011-01-14 19:24:51 +01:00
|
|
|
# Upstream qemu patches
|
2007-05-21 22:28:46 +02:00
|
|
|
# Our patches
|
2010-01-16 01:12:54 +01:00
|
|
|
Patch301: xend-config.diff
|
|
|
|
Patch302: xen-destdir.diff
|
|
|
|
Patch303: xen-rpmoptflags.diff
|
|
|
|
Patch304: xen-warnings.diff
|
2011-05-13 05:23:20 +02:00
|
|
|
Patch305: xen-warnings-unused.diff
|
|
|
|
Patch306: xen-changeset.diff
|
|
|
|
Patch307: xen-paths.diff
|
|
|
|
Patch308: xen-xmexample.diff
|
|
|
|
Patch309: xen-xmexample-vti.diff
|
|
|
|
Patch310: xen-fixme-doc.diff
|
|
|
|
Patch311: xen-domUloader.diff
|
|
|
|
Patch312: xen-no-dummy-nfs-ip.diff
|
|
|
|
Patch313: serial-split.patch
|
|
|
|
Patch314: xen-xm-top-needs-root.diff
|
|
|
|
Patch315: xen-max-free-mem.diff
|
2010-01-16 01:12:54 +01:00
|
|
|
Patch322: bridge-opensuse.patch
|
|
|
|
Patch323: bridge-vlan.diff
|
|
|
|
Patch324: bridge-bonding.diff
|
|
|
|
Patch325: bridge-record-creation.patch
|
|
|
|
Patch326: network-nat.patch
|
|
|
|
Patch327: udev-rules.patch
|
2011-03-21 17:47:37 +01:00
|
|
|
Patch328: vif-route-ifup.patch
|
|
|
|
Patch329: network-nat-open-SuSEfirewall2-FORWARD.patch
|
2010-01-16 01:12:54 +01:00
|
|
|
Patch340: xen-hvm-default-bridge.diff
|
|
|
|
Patch341: xen-hvm-default-pae.diff
|
2012-09-17 17:49:23 +02:00
|
|
|
Patch342: libxen_permissive.patch
|
|
|
|
Patch343: xenapi-console-protocol.patch
|
|
|
|
Patch344: xen-disable-qemu-monitor.diff
|
|
|
|
Patch345: qemu-security-etch1.diff
|
2010-01-16 01:12:54 +01:00
|
|
|
Patch350: cdrom-removable.patch
|
|
|
|
Patch351: xend-core-dump-loc.diff
|
|
|
|
Patch352: blktap.patch
|
2012-09-17 17:49:23 +02:00
|
|
|
Patch353: xen-api-auth.patch
|
|
|
|
Patch354: xen-qemu-iscsi-fix.patch
|
2012-01-05 20:41:54 +01:00
|
|
|
Patch355: ioemu-vnc-resize.patch
|
|
|
|
Patch356: ioemu-debuginfo.patch
|
|
|
|
Patch357: vif-bridge-no-iptables.patch
|
|
|
|
Patch358: xenconsole-no-multiple-connections.patch
|
2008-12-05 15:30:41 +01:00
|
|
|
# Needs to go upstream
|
2011-08-15 15:32:00 +02:00
|
|
|
Patch370: checkpoint-rename.patch
|
|
|
|
Patch371: xm-save-check-file.patch
|
|
|
|
Patch372: xm-create-xflag.patch
|
|
|
|
Patch373: xend-sysconfig.patch
|
|
|
|
Patch374: domu-usb-controller.patch
|
|
|
|
Patch375: usb-list.patch
|
|
|
|
Patch376: xend-devid-or-name.patch
|
|
|
|
Patch377: suspend_evtchn_lock.patch
|
|
|
|
Patch378: log-guest-console.patch
|
2011-09-15 23:43:21 +02:00
|
|
|
Patch379: xend-migration-domname-fix.patch
|
2012-01-05 20:41:54 +01:00
|
|
|
Patch380: xm-create-maxmem.patch
|
2012-03-05 21:59:08 +01:00
|
|
|
Patch381: vif-bridge-tap-fix.patch
|
2012-08-10 23:38:41 +02:00
|
|
|
Patch382: xend-cpuid.patch
|
2009-05-04 18:38:09 +02:00
|
|
|
# ioemu part of blktap patch series
|
2010-01-16 01:12:54 +01:00
|
|
|
Patch410: ioemu-blktap-fv-init.patch
|
|
|
|
Patch411: ioemu-blktap-image-format.patch
|
|
|
|
Patch412: build-tapdisk-ioemu.patch
|
|
|
|
Patch413: tapdisk-ioemu-logfile.patch
|
|
|
|
Patch414: ioemu-blktap-zero-size.patch
|
|
|
|
Patch415: tapdisk-ioemu-shutdown-fix.patch
|
|
|
|
Patch420: blktapctrl-default-to-ioemu.patch
|
|
|
|
Patch421: ioemu-blktap-barriers.patch
|
|
|
|
# Other bug fixes or features
|
2010-08-01 17:25:18 +02:00
|
|
|
Patch423: bdrv_open2_fix_flags.patch
|
2010-04-26 23:23:48 +02:00
|
|
|
Patch424: bdrv_open2_flags_2.patch
|
2010-09-28 00:07:21 +02:00
|
|
|
Patch425: ioemu-bdrv-open-CACHE_WB.patch
|
|
|
|
Patch426: ioemu-7615-qcow2-fix-alloc_cluster_link_l2.patch
|
2010-04-26 23:23:48 +02:00
|
|
|
Patch427: xen-ioemu-hvm-pv-support.diff
|
|
|
|
Patch428: qemu-dm-segfault.patch
|
|
|
|
Patch429: hibernate.patch
|
|
|
|
Patch430: del_usb_xend_entry.patch
|
2010-06-04 15:05:01 +02:00
|
|
|
Patch431: capslock_enable.patch
|
2010-09-28 00:07:21 +02:00
|
|
|
Patch433: multi-xvdp.patch
|
|
|
|
Patch434: check_device_status.patch
|
2010-10-20 23:00:35 +02:00
|
|
|
Patch435: change_home_server.patch
|
|
|
|
Patch436: altgr_2.patch
|
2010-11-12 18:55:23 +01:00
|
|
|
Patch438: stdvga-cache.patch
|
|
|
|
Patch439: minios-fixups.patch
|
|
|
|
Patch440: bdrv_default_rwflag.patch
|
2011-01-14 19:24:51 +01:00
|
|
|
Patch442: xen-minimum-restart-time.patch
|
2011-05-31 19:35:29 +02:00
|
|
|
Patch446: xend-disable-internal-logrotate.patch
|
|
|
|
Patch447: xend-config-enable-dump-comment.patch
|
2011-07-01 21:31:25 +02:00
|
|
|
Patch448: change-vnc-passwd.patch
|
2011-11-28 20:34:40 +01:00
|
|
|
Patch449: kernel-boot-hvm.patch
|
2011-07-01 21:31:25 +02:00
|
|
|
Patch450: ioemu-watchdog-support.patch
|
|
|
|
Patch451: ioemu-watchdog-linkage.patch
|
|
|
|
Patch452: ioemu-watchdog-ib700-timer.patch
|
|
|
|
Patch453: tools-watchdog-support.patch
|
2011-08-15 15:32:00 +02:00
|
|
|
Patch454: xend-console-port-restore.patch
|
|
|
|
Patch455: xencommons-proc-xen.patch
|
2011-09-15 23:43:21 +02:00
|
|
|
Patch456: xend-vcpu-affinity-fix.patch
|
2012-09-17 17:49:23 +02:00
|
|
|
Patch457: xen-cpupool-xl-config-format.patch
|
|
|
|
Patch458: ipxe-enable-nics.patch
|
|
|
|
Patch459: blktap-close-fifos.patch
|
|
|
|
Patch460: blktap-disable-debug-printf.patch
|
|
|
|
Patch461: xen-bug776995-pvscsi-persistent-names.patch
|
|
|
|
Patch462: xen-bug776995-pvscsi-no-devname.patch
|
|
|
|
Patch463: xen-bug776995-pvscsi-sysfs-parser.patch
|
2008-08-18 00:24:29 +02:00
|
|
|
# Jim's domain lock patch
|
2011-07-01 21:31:25 +02:00
|
|
|
Patch480: xend-domain-lock.patch
|
|
|
|
Patch481: xend-domain-lock-sfex.patch
|
2010-01-16 01:12:54 +01:00
|
|
|
# Hypervisor and PV driver Patches
|
2010-05-14 00:42:02 +02:00
|
|
|
Patch500: 32on64-extra-mem.patch
|
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
|
|
|
|
Patch504: pvdrv-import-shared-info.patch
|
|
|
|
Patch505: x86-extra-trap-info.patch
|
|
|
|
Patch506: pvdrv_emulation_control.patch
|
|
|
|
Patch507: blktap-pv-cdrom.patch
|
2012-09-17 17:49:23 +02:00
|
|
|
Patch510: pv-driver-build.patch
|
|
|
|
Patch511: supported_module.diff
|
|
|
|
Patch512: magic_ioport_compat.patch
|
|
|
|
Patch513: xen.sles11sp1.fate311487.xen_platform_pci.dmistring.patch
|
2010-01-16 01:12:54 +01:00
|
|
|
Patch650: disable_emulated_device.diff
|
2010-08-01 17:25:18 +02:00
|
|
|
Patch651: ioemu-disable-scsi.patch
|
2011-01-14 19:24:51 +01:00
|
|
|
Patch652: ioemu-disable-emulated-ide-if-pv.patch
|
|
|
|
Patch700: hv_extid_compatibility.patch
|
2012-01-05 20:41:54 +01:00
|
|
|
Patch701: xen.no-default-runlevel-4.patch
|
2011-05-03 19:51:18 +02:00
|
|
|
# xenalyze
|
2011-05-12 11:17:07 +02:00
|
|
|
Patch20000: xenalyze.gcc46.patch
|
2011-03-30 16:56:23 +02:00
|
|
|
# Build 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).
|
|
|
|
|
|
|
|
Xen does support booting other Operating Systems; ports of NetBSD
|
|
|
|
(Christian Limpach), FreeBSD (Kip Macy), and Plan 9 (Ron Minnich)
|
|
|
|
exist. A port of Windows XP was developed for an earlier version of
|
|
|
|
Xen, but is not available for release due to license restrictions.
|
|
|
|
|
|
|
|
In addition to this package you need to install the kernel-xen and
|
|
|
|
xen-tools to use Xen. Xen 3 also supports running unmodified guests
|
|
|
|
using full virtualization, if appropriate hardware is present. Install
|
|
|
|
xen-tools-ioemu if you want to use this.
|
|
|
|
|
|
|
|
[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>
|
|
|
|
...
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
Summary: Xen Virtualization: Libraries
|
|
|
|
Group: System/Kernel
|
2008-11-21 15:57:01 +01:00
|
|
|
#Requires: xen = %{version}
|
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.
|
|
|
|
|
|
|
|
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).
|
|
|
|
|
|
|
|
Xen does support booting other Operating Systems; ports of NetBSD
|
|
|
|
(Christian Limpach), FreeBSD (Kip Macy), and Plan 9 (Ron Minnich)
|
|
|
|
exist. A port of Windows XP was developed for an earlier version of
|
|
|
|
Xen, but is not available for release due to license restrictions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Ian Pratt <ian.pratt@cl.cam.ac.uk>
|
|
|
|
|
2011-07-01 21:31:25 +02:00
|
|
|
%if %{?with_dom0_support}0
|
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
|
2008-03-21 05:05:55 +01:00
|
|
|
Provides: xen-tools-ioemu = 3.2
|
|
|
|
Obsoletes: xen-tools-ioemu <= 3.2
|
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.
|
|
|
|
|
|
|
|
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).
|
|
|
|
|
|
|
|
Xen does support booting other Operating Systems; ports of NetBSD
|
|
|
|
(Christian Limpach), FreeBSD (Kip Macy), and Plan 9 (Ron Minnich)
|
|
|
|
exist. A port of Windows XP was developed for an earlier version of
|
|
|
|
Xen, but is not available for release due to license restrictions.
|
|
|
|
|
|
|
|
In addition to this package you need to install kernel-xen and xen to
|
|
|
|
use Xen.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-04-26 01:53:07 +02:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Ian Pratt <ian.pratt@cl.cam.ac.uk>
|
2011-07-01 21:31:25 +02: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
|
|
|
|
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.
|
|
|
|
|
|
|
|
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).
|
|
|
|
|
|
|
|
Xen does support booting other Operating Systems; ports of NetBSD
|
|
|
|
(Christian Limpach), FreeBSD (Kip Macy), and Plan 9 (Ron Minnich)
|
|
|
|
exist. A port of Windows XP was developed for an earlier version of
|
|
|
|
Xen, but is not available for release due to license restrictions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 para-virtual device drivers for fully virtualized guests
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
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).
|
|
|
|
|
|
|
|
Xen does support booting other Operating Systems; ports of NetBSD
|
|
|
|
(Christian Limpach), FreeBSD (Kip Macy), and Plan 9 (Ron Minnich)
|
|
|
|
exist. A port of Windows XP was developed for an earlier version of
|
|
|
|
Xen, but is not available for release due to license restrictions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%endif
|
2007-11-29 22:05:25 +01:00
|
|
|
|
2011-07-01 21:31:25 +02:00
|
|
|
%if %{?with_dom0_support}0
|
2011-08-07 18:42:22 +02:00
|
|
|
|
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>
|
|
|
|
|
|
|
|
%package doc-pdf
|
|
|
|
Summary: Xen Virtualization: PDF documentation
|
|
|
|
Group: Documentation/Other
|
|
|
|
|
|
|
|
%description doc-pdf
|
|
|
|
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-pdf contains the online documentation in PDF format. Use
|
|
|
|
xpdf/kpdf/gpdf/gv/... to read the files in
|
|
|
|
/usr/share/doc/packages/xen/pdf/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Ian Pratt <ian.pratt@cl.cam.ac.uk>
|
2011-07-01 21:31:25 +02:00
|
|
|
%endif
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
%prep
|
2012-09-17 17:49:23 +02:00
|
|
|
%setup -q -n %xen_build_dir -a 1 -a 2 -a 3 -a 4 -a 5 -a 20000
|
|
|
|
tar xfj %{SOURCE6} -C $RPM_BUILD_DIR/%{xen_build_dir}/tools
|
2011-05-03 19:51:18 +02:00
|
|
|
%patch20000 -p1
|
2011-10-20 21:52:33 +02:00
|
|
|
# Upstream patches
|
2012-09-21 16:45:08 +02:00
|
|
|
%patch25833 -p1
|
|
|
|
%patch25835 -p1
|
|
|
|
%patch25836 -p1
|
|
|
|
%patch25850 -p1
|
|
|
|
%patch25851 -p1
|
|
|
|
%patch25852 -p1
|
|
|
|
%patch25853 -p1
|
|
|
|
%patch25854 -p1
|
|
|
|
%patch25855 -p1
|
|
|
|
%patch25856 -p1
|
|
|
|
%patch25857 -p1
|
|
|
|
%patch25858 -p1
|
|
|
|
%patch25859 -p1
|
|
|
|
%patch25860 -p1
|
|
|
|
%patch25861 -p1
|
|
|
|
%patch25862 -p1
|
|
|
|
%patch25863 -p1
|
|
|
|
%patch25864 -p1
|
|
|
|
%patch25866 -p1
|
|
|
|
%patch25867 -p1
|
|
|
|
%patch25874 -p1
|
|
|
|
%patch25909 -p1
|
2012-09-27 10:19:46 +02:00
|
|
|
%patch25941 -p1
|
2012-01-05 20:41:54 +01:00
|
|
|
# Qemu
|
|
|
|
# Our patches
|
2010-01-16 01:12:54 +01:00
|
|
|
%patch301 -p1
|
|
|
|
%patch302 -p1
|
|
|
|
%patch303 -p1
|
|
|
|
%patch304 -p1
|
|
|
|
%patch305 -p1
|
|
|
|
%patch306 -p1
|
|
|
|
%patch307 -p1
|
|
|
|
%patch308 -p1
|
|
|
|
%patch309 -p1
|
|
|
|
%patch310 -p1
|
|
|
|
%patch311 -p1
|
|
|
|
%patch312 -p1
|
|
|
|
%patch313 -p1
|
|
|
|
%patch314 -p1
|
2011-05-13 05:23:20 +02:00
|
|
|
%patch315 -p1
|
2010-01-16 01:12:54 +01:00
|
|
|
%patch322 -p1
|
|
|
|
%patch323 -p1
|
|
|
|
%patch324 -p1
|
|
|
|
%patch325 -p1
|
|
|
|
%patch326 -p1
|
|
|
|
%patch327 -p1
|
|
|
|
%patch328 -p1
|
|
|
|
%patch329 -p1
|
|
|
|
%patch340 -p1
|
2009-05-04 18:38:09 +02:00
|
|
|
%patch341 -p1
|
|
|
|
%patch342 -p1
|
2012-09-17 17:49:23 +02:00
|
|
|
%patch343 -p1
|
2009-05-04 18:38:09 +02:00
|
|
|
%patch344 -p1
|
|
|
|
%patch345 -p1
|
2010-01-16 01:12:54 +01:00
|
|
|
%patch350 -p1
|
|
|
|
%patch351 -p1
|
|
|
|
%patch352 -p1
|
|
|
|
%patch353 -p1
|
|
|
|
%patch354 -p1
|
2012-01-05 20:41:54 +01:00
|
|
|
%patch355 -p1
|
2010-01-16 01:12:54 +01:00
|
|
|
%patch356 -p1
|
|
|
|
%patch357 -p1
|
2010-03-02 01:46:56 +01:00
|
|
|
%patch358 -p1
|
2010-06-04 15:05:01 +02:00
|
|
|
%patch370 -p1
|
2010-08-01 17:25:18 +02:00
|
|
|
%patch371 -p1
|
|
|
|
%patch372 -p1
|
2010-09-28 00:07:21 +02:00
|
|
|
%patch373 -p1
|
2011-08-15 15:32:00 +02:00
|
|
|
%patch374 -p1
|
2011-07-01 21:31:25 +02:00
|
|
|
%patch375 -p1
|
2011-08-15 15:32:00 +02:00
|
|
|
%patch376 -p1
|
2011-11-28 20:34:40 +01:00
|
|
|
%patch377 -p1
|
2011-08-15 15:32:00 +02:00
|
|
|
%patch378 -p1
|
2011-09-15 23:43:21 +02:00
|
|
|
%patch379 -p1
|
2011-11-08 21:45:47 +01:00
|
|
|
%patch380 -p1
|
2012-01-05 20:41:54 +01:00
|
|
|
%patch381 -p1
|
2012-01-23 22:46:39 +01:00
|
|
|
%patch382 -p1
|
2010-01-16 01:12:54 +01:00
|
|
|
%patch410 -p1
|
|
|
|
%patch411 -p1
|
|
|
|
%patch412 -p1
|
|
|
|
%patch413 -p1
|
|
|
|
%patch414 -p1
|
|
|
|
%patch415 -p1
|
|
|
|
%patch420 -p1
|
|
|
|
%patch421 -p1
|
|
|
|
%patch423 -p1
|
|
|
|
%patch424 -p1
|
|
|
|
%patch425 -p1
|
|
|
|
%patch426 -p1
|
|
|
|
%patch427 -p1
|
2010-03-02 01:46:56 +01:00
|
|
|
%patch428 -p1
|
2010-04-03 00:15:37 +02:00
|
|
|
%patch429 -p1
|
2010-04-26 23:23:48 +02:00
|
|
|
%patch430 -p1
|
2010-06-04 15:05:01 +02:00
|
|
|
%patch431 -p1
|
2010-09-28 00:07:21 +02:00
|
|
|
%patch433 -p1
|
|
|
|
%patch434 -p1
|
2010-10-20 23:00:35 +02:00
|
|
|
%patch435 -p1
|
|
|
|
%patch436 -p1
|
2010-11-12 18:55:23 +01:00
|
|
|
%patch438 -p1
|
|
|
|
%patch439 -p1
|
|
|
|
%patch440 -p1
|
2011-01-14 19:24:51 +01:00
|
|
|
%patch442 -p1
|
2011-05-31 19:35:29 +02:00
|
|
|
%patch446 -p1
|
|
|
|
%patch447 -p1
|
2011-07-01 21:31:25 +02:00
|
|
|
%patch448 -p1
|
|
|
|
%patch449 -p1
|
2009-05-04 18:38:09 +02:00
|
|
|
%patch450 -p1
|
2011-06-14 21:01:54 +02:00
|
|
|
%patch451 -p1
|
2011-07-01 21:31:25 +02:00
|
|
|
%patch452 -p1
|
|
|
|
%patch453 -p1
|
2011-08-15 15:32:00 +02:00
|
|
|
%patch454 -p1
|
|
|
|
%patch455 -p1
|
2011-09-15 23:43:21 +02:00
|
|
|
%patch456 -p1
|
2011-10-18 16:16:28 +02:00
|
|
|
%patch457 -p1
|
2011-11-28 20:34:40 +01:00
|
|
|
%patch458 -p1
|
|
|
|
%patch459 -p1
|
2012-01-05 20:41:54 +01:00
|
|
|
%patch460 -p1
|
|
|
|
%patch461 -p1
|
|
|
|
%patch462 -p1
|
2012-01-23 22:46:39 +01:00
|
|
|
%patch463 -p1
|
2011-07-01 21:31:25 +02:00
|
|
|
%patch480 -p1
|
|
|
|
%patch481 -p1
|
2009-05-04 18:38:09 +02:00
|
|
|
%patch500 -p1
|
|
|
|
%patch501 -p1
|
|
|
|
%patch502 -p1
|
2012-09-21 16:45:08 +02:00
|
|
|
%patch503 -p1
|
2010-01-16 01:12:54 +01:00
|
|
|
%patch504 -p1
|
|
|
|
%patch505 -p1
|
2012-09-21 16:45:08 +02:00
|
|
|
%patch506 -p1
|
2010-01-16 01:12:54 +01:00
|
|
|
%patch507 -p1
|
2012-09-17 17:49:23 +02:00
|
|
|
%if %suse_version < 1220
|
2010-01-16 01:12:54 +01:00
|
|
|
%patch510 -p1
|
2012-09-17 17:49:23 +02:00
|
|
|
%endif
|
2010-01-16 01:12:54 +01:00
|
|
|
%patch511 -p1
|
|
|
|
%patch512 -p1
|
2012-09-17 17:49:23 +02:00
|
|
|
%patch513 -p1
|
2010-01-16 01:12:54 +01:00
|
|
|
%patch650 -p1
|
2010-03-02 01:46:56 +01:00
|
|
|
%patch651 -p1
|
2011-01-14 19:24:51 +01:00
|
|
|
%patch652 -p1
|
2010-01-16 01:12:54 +01:00
|
|
|
%patch700 -p1
|
2012-01-05 20:41:54 +01:00
|
|
|
%patch701 -p1
|
2011-05-10 18:44:09 +02:00
|
|
|
%patch99998 -p1
|
2011-03-30 16:56:23 +02:00
|
|
|
%patch99999 -p1
|
|
|
|
|
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
|
2007-02-12 02:09:41 +01:00
|
|
|
RPM_OPT_FLAGS=${RPM_OPT_FLAGS//-fstack-protector/}
|
|
|
|
export CFLAGS="${RPM_OPT_FLAGS}"
|
2007-01-16 00:42:10 +01:00
|
|
|
export RPM_OPT_FLAGS
|
2012-09-17 17:49:23 +02:00
|
|
|
./configure \
|
|
|
|
--enable-xenapi \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec_prefix=/usr \
|
|
|
|
--bindir=%{_bindir} \
|
|
|
|
--sbindir=%{_sbindir} \
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--datadir=%{_datadir}
|
2012-09-19 00:20:30 +02:00
|
|
|
%if %{?with_dom0_support}0
|
|
|
|
CFLAGS_SAVE=$CFLAGS
|
|
|
|
make -C xenalyze.hg CC="gcc -I../xen/include" %{?_smp_mflags}
|
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
|
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
|
|
|
%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
|
|
|
|
# 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
|
2010-08-01 17:25:18 +02:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
2011-07-01 21:31:25 +02:00
|
|
|
%if %{?with_dom0_support}0
|
|
|
|
# EFI
|
2011-07-07 18:20:18 +02:00
|
|
|
%ifarch x86_64
|
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
|
|
|
|
%endif
|
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}
|
|
|
|
}
|
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
|
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}
|
2007-01-16 00:42:10 +01:00
|
|
|
make -C tools/misc/serial-split install \
|
2011-03-22 22:15:11 +01:00
|
|
|
DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} %{?_smp_mflags}
|
2007-01-16 00:42:10 +01:00
|
|
|
%ifarch x86_64
|
2010-03-02 01:46:56 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/${_libdir}/xen/bin/
|
|
|
|
ln -s /usr/lib/xen/bin/qemu-dm $RPM_BUILD_ROOT/%{_libdir}/xen/bin/qemu-dm
|
2007-01-16 00:42:10 +01:00
|
|
|
%endif
|
2011-08-15 15:32:00 +02:00
|
|
|
# efi depends on gcc46
|
|
|
|
echo > xen.files.txt
|
|
|
|
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}
|
2011-07-01 21:31:25 +02:00
|
|
|
%else
|
|
|
|
make -C tools install DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} %{?_smp_mflags}
|
|
|
|
make -C tools/misc/serial-split install \
|
|
|
|
DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} %{?_smp_mflags}
|
|
|
|
%endif
|
|
|
|
# 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
|
2012-09-17 17:49:23 +02:00
|
|
|
install -m644 %SOURCE27 $RPM_BUILD_ROOT/etc/modprobe.d/xen_pvdrivers-$flavor.conf
|
2007-02-11 11:48:10 +01:00
|
|
|
done
|
2007-01-16 00:42:10 +01:00
|
|
|
%endif
|
2011-07-01 21:31:25 +02:00
|
|
|
%if %{?with_dom0_support}0
|
|
|
|
# Stubdom
|
2010-12-11 00:38:27 +01:00
|
|
|
%if %{?with_stubdom}0
|
2011-08-05 22:04:48 +02:00
|
|
|
make stubdom
|
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
|
|
|
|
%ifarch x86_64
|
|
|
|
ln -s /usr/lib/xen/bin/stubdom-dm $RPM_BUILD_ROOT/usr/lib64/xen/bin/stubdom-dm
|
|
|
|
ln -s /usr/lib/xen/bin/stubdompath.sh $RPM_BUILD_ROOT/usr/lib64/xen/bin/stubdompath.sh
|
|
|
|
%endif
|
2010-12-11 00:38:27 +01:00
|
|
|
%endif
|
2012-09-17 17:49:23 +02:00
|
|
|
# Qemu
|
|
|
|
#make -C tools/qemu-xen-dir-remote install
|
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
|
2011-07-01 21:31:25 +02:00
|
|
|
%endif
|
2007-01-16 00:42:10 +01:00
|
|
|
# init scripts
|
2011-07-01 21:31:25 +02:00
|
|
|
%if %{?with_dom0_support}0
|
2007-01-16 00:42:10 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
2012-09-17 17:49:23 +02:00
|
|
|
install %SOURCE13 $RPM_BUILD_ROOT/etc/init.d/xend
|
2007-01-16 00:42:10 +01:00
|
|
|
ln -s /etc/init.d/xend $RPM_BUILD_ROOT/usr/sbin/rcxend
|
2012-09-17 17:49:23 +02:00
|
|
|
install %SOURCE14 $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
|
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
|
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
|
2007-01-16 00:42:10 +01:00
|
|
|
# example config
|
2008-08-18 00:24:29 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/xen/{vm,examples,scripts}
|
2007-01-16 00:42:10 +01:00
|
|
|
mv $RPM_BUILD_ROOT/etc/xen/xmexample* $RPM_BUILD_ROOT/etc/xen/examples
|
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
|
2012-09-17 17:49:23 +02:00
|
|
|
install -m644 %SOURCE17 %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
|
2007-04-26 01:53:07 +02:00
|
|
|
# scripts
|
2008-08-18 00:24:29 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/etc/xen/scripts/block-*nbd
|
2012-09-17 17:49:23 +02:00
|
|
|
install -m755 %SOURCE19 %SOURCE20 %SOURCE21 %SOURCE22 %SOURCE23 %SOURCE24 %SOURCE25 %SOURCE29 $RPM_BUILD_ROOT/etc/xen/scripts/
|
2009-06-12 20:43:24 +02:00
|
|
|
ln -s /etc/xen/scripts/vm-monitor $RPM_BUILD_ROOT/etc/xen/scripts/set-lock
|
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/
|
2008-09-12 17:57:53 +02:00
|
|
|
# sysconfig hook for Xen
|
|
|
|
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
|
2007-01-16 00:42:10 +01:00
|
|
|
# logrotate
|
2012-09-17 17:49:23 +02:00
|
|
|
install -m644 -D %SOURCE15 $RPM_BUILD_ROOT/etc/logrotate.d/xen
|
2007-01-16 00:42:10 +01:00
|
|
|
# directories
|
|
|
|
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/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/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
|
|
|
|
# Bootloader
|
2012-09-17 17:49:23 +02:00
|
|
|
install -m755 %SOURCE16 $RPM_BUILD_ROOT/usr/lib/xen/boot/
|
2007-01-16 00:42:10 +01: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
|
2009-05-04 18:38:09 +02:00
|
|
|
mv $RPM_BUILD_ROOT/etc/udev/rules.d/xend.rules $RPM_BUILD_ROOT/etc/udev/rules.d/40-xend.rules
|
2010-12-01 00:19:04 +01:00
|
|
|
# xen utils
|
2012-09-17 17:49:23 +02:00
|
|
|
make -C tools/xen-utils-0.1 install DESTDIR=$RPM_BUILD_ROOT XEN_INTREE_BUILD=yes XEN_ROOT=$PWD
|
2007-01-16 00:42:10 +01:00
|
|
|
# Clean up unpackaged files
|
2008-08-18 00:24:29 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/xen/qemu/
|
2008-09-01 02:39:12 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_datadir}/doc/qemu/qemu-*
|
2012-09-17 17:49:23 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_datadir}/doc/packages/xen/html/hypercall/.deps
|
2007-05-23 01:45:46 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_defaultdocdir}/xen/ps
|
2008-08-18 00:24:29 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/xen/man/man1/qemu/qemu*
|
2012-09-17 17:49:23 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/xen/qemu/openbios-ppc
|
2008-08-18 00:24:29 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/xen/qemu/openbios-sparc32
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/xen/qemu/openbios-sparc64
|
2012-09-17 17:49:23 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/qemu-xen/openbios-ppc
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/qemu-xen/openbios-sparc32
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/qemu-xen/openbios-sparc64
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/qemu-xen/palcode-clipper
|
2008-08-18 00:24:29 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/usr/sbin/netfix
|
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/html
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/share/doc/xen/README.*
|
2008-09-01 02:39:12 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/xen/bin/qemu-dm.debug
|
2010-03-02 01:46:56 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/qemu-img-xen
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/qemu-nbd-xen
|
2010-09-28 00:07:21 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/debug
|
2012-09-17 17:49:23 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/lib/debug
|
|
|
|
# Upstream Qemu
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/local/share/qemu
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/local/share/doc/qemu
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/local/etc/qemu/target-x86_64.conf
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/local/share/man/man1/qemu.1
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/local/share/man/man1/qemu-img.1
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/local/share/man/man8/qemu-nbd.8
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/local/share/doc/qemu/qemu-doc.html
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/local/share/doc/qemu/qemu-tech.html
|
2011-06-14 21:01:54 +02:00
|
|
|
#install firewall definitions format is described here:
|
|
|
|
#/usr/share/SuSEfirewall2/services/TEMPLATE
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_fwdefdir}
|
|
|
|
install -m 644 %{S:26} $RPM_BUILD_ROOT/%{_fwdefdir}/xend-relocation-server
|
2011-07-01 21:31:25 +02:00
|
|
|
%else
|
|
|
|
# 32 bit hypervisor no longer supported. Remove dom0 tools.
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc
|
2012-09-19 00:20:30 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/local/share/doc
|
2011-07-01 21:31:25 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_datadir}/man
|
2012-09-19 00:20:30 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/local/share/man
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_datadir}/qemu-xen
|
2011-07-01 21:31:25 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_datadir}/xen
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_datadir}/locale
|
|
|
|
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/bash_completion.d
|
|
|
|
rm -rf $RPM_BUILD_ROOT/etc/init.d
|
|
|
|
rm -rf $RPM_BUILD_ROOT/etc/logrotate.d
|
|
|
|
rm -rf $RPM_BUILD_ROOT/etc/pam.d
|
|
|
|
rm -rf $RPM_BUILD_ROOT/etc/sysconfig
|
|
|
|
rm -rf $RPM_BUILD_ROOT/etc/udev
|
2012-09-19 00:20:30 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT/etc/qemu
|
2011-07-01 21:31:25 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT/etc/xen
|
2012-09-19 00:20:30 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/local/etc
|
2011-07-01 21:31:25 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT/var
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/*store*
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/*trace*
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/xenalyze*
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/qemu*
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/pygrub
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/remus
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/tapdisk-ioemu
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/xencons
|
|
|
|
%endif
|
2007-01-16 00:42:10 +01:00
|
|
|
|
2011-07-01 21:31:25 +02:00
|
|
|
%if %{?with_dom0_support}0
|
2011-08-07 18:42:22 +02:00
|
|
|
|
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
|
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
|
2007-05-23 01:45:46 +02:00
|
|
|
/boot/xen-syms
|
|
|
|
/boot/xen-syms-%{version}-%{release}
|
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}
|
|
|
|
/boot/xen.gz
|
2011-07-01 21:31:25 +02:00
|
|
|
%endif
|
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
|
|
|
|
2011-07-01 21:31:25 +02:00
|
|
|
%if %{?with_dom0_support}0
|
2011-08-07 18:42:22 +02:00
|
|
|
|
2007-06-23 00:22:21 +02:00
|
|
|
%files tools
|
2007-01-16 00:42:10 +01:00
|
|
|
%defattr(-,root,root)
|
2010-12-11 00:38:27 +01:00
|
|
|
/usr/bin/xenalyze
|
|
|
|
/usr/bin/xenalyze.dump-raw
|
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
|
2008-08-18 00:24:29 +02:00
|
|
|
/usr/bin/tapdisk-ioemu
|
2011-03-30 16:56:23 +02:00
|
|
|
/usr/bin/remus
|
2007-01-16 00:42:10 +01:00
|
|
|
/usr/sbin/blktapctrl
|
2007-12-20 16:46:41 +01:00
|
|
|
/usr/sbin/flask-loadpolicy
|
2010-01-16 01:12:54 +01:00
|
|
|
/usr/sbin/flask-getenforce
|
|
|
|
/usr/sbin/flask-setenforce
|
2012-09-17 17:49:23 +02:00
|
|
|
/usr/sbin/flask-get-bool
|
|
|
|
/usr/sbin/flask-label-pci
|
|
|
|
/usr/sbin/flask-set-bool
|
2007-01-16 00:42:10 +01:00
|
|
|
/usr/sbin/rcxend
|
|
|
|
/usr/sbin/rcxendomains
|
2011-10-18 16:16:28 +02:00
|
|
|
/usr/sbin/rcpciback
|
2007-05-23 01:45:46 +02:00
|
|
|
/usr/sbin/tapdisk
|
2007-01-16 00:42:10 +01:00
|
|
|
/usr/sbin/xen*
|
|
|
|
/usr/sbin/xm
|
2007-12-20 16:46:41 +01:00
|
|
|
/usr/sbin/xsview
|
2010-01-16 01:12:54 +01:00
|
|
|
/usr/sbin/gtracestat
|
|
|
|
/usr/sbin/gtraceview
|
|
|
|
/usr/sbin/lock-util
|
|
|
|
/usr/sbin/tapdisk-client
|
|
|
|
/usr/sbin/tapdisk-diff
|
|
|
|
/usr/sbin/tapdisk-stream
|
|
|
|
/usr/sbin/tapdisk2
|
|
|
|
/usr/sbin/td-util
|
|
|
|
/usr/sbin/vhd-update
|
|
|
|
/usr/sbin/vhd-util
|
2010-09-28 00:07:21 +02:00
|
|
|
/usr/sbin/gdbsx
|
2010-10-20 23:00:35 +02:00
|
|
|
/usr/sbin/xl
|
2011-11-28 20:34:40 +01:00
|
|
|
/usr/sbin/kdd
|
2011-03-21 17:47:37 +01:00
|
|
|
/usr/sbin/tap-ctl
|
2011-11-03 23:59:30 +01:00
|
|
|
%{_libdir}/xen
|
2007-01-16 00:42:10 +01:00
|
|
|
%ifarch x86_64
|
2011-11-03 23:59:30 +01:00
|
|
|
/usr/lib/xen
|
2007-01-16 00:42:10 +01:00
|
|
|
%endif
|
|
|
|
%{_mandir}/man1/*.1.gz
|
|
|
|
%{_mandir}/man5/*.5.gz
|
|
|
|
%{_mandir}/man8/*.8.gz
|
2007-05-23 01:45:46 +02:00
|
|
|
/var/adm/fillup-templates/*
|
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
|
2010-10-29 18:37:40 +02:00
|
|
|
%dir %attr(700,root,root) /var/lib/xen/xenpaging
|
2007-01-16 00:42:10 +01: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
|
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
|
2011-04-12 00:31:41 +02:00
|
|
|
%config /etc/init.d/*
|
2007-07-25 02:03:48 +02:00
|
|
|
%config /etc/logrotate.d/xen
|
2007-02-11 11:48:10 +01:00
|
|
|
%dir %attr(700,root,root) /etc/xen
|
2007-05-23 01:45:46 +02:00
|
|
|
/etc/xen/auto
|
|
|
|
%config /etc/xen/examples
|
|
|
|
/etc/xen/images
|
|
|
|
/etc/xen/scripts
|
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
|
2010-06-04 15:05:01 +02:00
|
|
|
%config(noreplace) /etc/xen/*.sxp
|
|
|
|
%config(noreplace) /etc/xen/*.xml
|
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
|
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
|
2009-05-04 18:38:09 +02:00
|
|
|
/etc/udev/rules.d/40-xend.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
|
2007-01-16 00:42:10 +01:00
|
|
|
%dir %{_defaultdocdir}/xen
|
|
|
|
%{_defaultdocdir}/xen/COPYING
|
2007-02-11 11:48:10 +01:00
|
|
|
%{_defaultdocdir}/xen/README.SuSE
|
|
|
|
%{_defaultdocdir}/xen/boot.local.xenU
|
2007-05-23 01:45:46 +02:00
|
|
|
%{_defaultdocdir}/xen/boot.xen
|
2007-01-16 00:42:10 +01:00
|
|
|
%{_defaultdocdir}/xen/misc
|
2009-08-21 17:26:06 +02:00
|
|
|
%dir %{_libdir}/python%{pyver}/site-packages/xen
|
|
|
|
%dir %{_libdir}/python%{pyver}/site-packages/grub
|
2012-09-17 17:49:23 +02:00
|
|
|
%dir %{_datadir}/qemu-xen
|
2007-01-16 00:42:10 +01:00
|
|
|
%dir %{_datadir}/xen
|
2008-08-18 00:24:29 +02:00
|
|
|
%dir %{_datadir}/xen/man
|
|
|
|
%dir %{_datadir}/xen/man/man1
|
2009-05-04 18:38:09 +02:00
|
|
|
%dir %{_datadir}/xen/man/man8
|
2007-01-16 00:42:10 +01:00
|
|
|
%dir %{_datadir}/xen/qemu
|
2012-09-17 17:49:23 +02:00
|
|
|
%{_datadir}/qemu-xen/*
|
2010-08-01 17:25:18 +02:00
|
|
|
%{_datadir}/xen/*.dtd
|
2008-08-18 00:24:29 +02:00
|
|
|
%{_datadir}/xen/qemu/*
|
|
|
|
%{_datadir}/xen/man/man1/*
|
2009-05-04 18:38:09 +02:00
|
|
|
%{_datadir}/xen/man/man8/*
|
2009-08-21 17:26:06 +02:00
|
|
|
%{_libdir}/python%{pyver}/site-packages/xen/*
|
|
|
|
%{_libdir}/python%{pyver}/site-packages/grub/*
|
|
|
|
%{_libdir}/python%{pyver}/site-packages/fsimage.so
|
2011-06-14 21:01:54 +02:00
|
|
|
%config %{_fwdefdir}/xend-relocation-server
|
2011-07-01 21:31:25 +02:00
|
|
|
%endif
|
2008-02-02 01:58:27 +01:00
|
|
|
|
|
|
|
%files tools-domU
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/bin/xen-detect
|
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-07-01 21:31:25 +02:00
|
|
|
%{_bindir}/serial-split
|
2011-04-12 00:31:41 +02:00
|
|
|
%{_libdir}/*.a
|
|
|
|
%{_libdir}/*.so
|
|
|
|
/usr/include/*
|
2007-01-16 00:42:10 +01:00
|
|
|
|
2011-07-01 21:31:25 +02:00
|
|
|
%if %{?with_dom0_support}0
|
2011-08-07 18:42:22 +02:00
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
%files doc-html
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_defaultdocdir}/xen/html
|
2012-09-17 17:49:23 +02:00
|
|
|
#%{_datadir}/doc/qemu
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
%files doc-pdf
|
|
|
|
%defattr(-,root,root)
|
2007-05-23 01:45:46 +02:00
|
|
|
%{_defaultdocdir}/xen/pdf
|
2011-07-01 21:31:25 +02:00
|
|
|
%endif
|
2007-01-16 00:42:10 +01:00
|
|
|
|
2011-07-01 21:31:25 +02:00
|
|
|
%if %{?with_dom0_support}0
|
2011-08-07 18:42:22 +02:00
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
%post tools
|
2011-04-12 00:31:41 +02:00
|
|
|
%if %{?with_xend}0
|
|
|
|
# with_xend
|
|
|
|
# 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
|
2007-08-03 02:38:01 +02:00
|
|
|
%{fillup_and_insserv -y -n xend xend}
|
2011-04-12 00:31:41 +02:00
|
|
|
%else
|
|
|
|
# without_xend
|
|
|
|
# disable xm (xend based) and enable only 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."
|
|
|
|
fi
|
|
|
|
echo "postin %{name}-tools: disabling xend in favor of xencommons. xm command replaced by xl."
|
|
|
|
%{stop_on_removal xend}
|
|
|
|
rm -fv /etc/init.d/rc?.d/???xend || :
|
|
|
|
%{fillup_and_insserv -Y -n xencommons xencommons}
|
|
|
|
else
|
|
|
|
%{fillup_and_insserv -y -n xencommons xencommons}
|
|
|
|
fi
|
|
|
|
%endif
|
|
|
|
#
|
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}
|
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
|
|
|
|
ln -s /usr/bin/qemu-img /usr/bin/qemu-img-xen
|
|
|
|
fi
|
|
|
|
if [ -f /usr/bin/qemu-nbd ]; then
|
|
|
|
if [ -f /usr/bin/qemu-nbd-xen ]; then
|
|
|
|
rm /usr/bin/qemu-nbd-xen
|
|
|
|
fi
|
|
|
|
ln -s /usr/bin/qemu-nbd /usr/bin/qemu-nbd-xen
|
|
|
|
fi
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
%preun tools
|
2011-04-12 00:31:41 +02:00
|
|
|
%{stop_on_removal xendomains xend xencommons}
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
%postun tools
|
2011-04-12 00:31:41 +02:00
|
|
|
%if %{?with_xend}0
|
|
|
|
# with_xend
|
2007-01-16 00:42:10 +01:00
|
|
|
%{restart_on_update xend}
|
2011-04-12 00:31:41 +02:00
|
|
|
%endif
|
2007-01-16 00:42:10 +01:00
|
|
|
%{insserv_cleanup}
|
2010-03-02 01:46:56 +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
|
2011-07-01 21:31:25 +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
|
|
|
|
2007-02-19 23:34:05 +01:00
|
|
|
%changelog
|