2007-01-16 00:42:10 +01:00
|
|
|
#
|
2010-05-14 00:42:02 +02:00
|
|
|
# spec file for package xen (Version 4.0.0_21091_05)
|
2007-01-16 00:42:10 +01:00
|
|
|
#
|
2010-03-01 16:05:50 +01:00
|
|
|
# Copyright (c) 2010 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-03-06 02:36:51 +01:00
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
Name: xen
|
2008-10-22 18:52:24 +02:00
|
|
|
ExclusiveArch: %ix86 x86_64
|
2010-01-16 01:12:54 +01:00
|
|
|
%define xvers 4.0
|
|
|
|
%define xvermaj 4
|
2010-04-19 00:21:06 +02:00
|
|
|
%define changeset 21091
|
2010-01-16 01:12:54 +01:00
|
|
|
%define xen_build_dir xen-4.0.0-testing
|
2010-04-19 00:21:06 +02:00
|
|
|
%define with_kmp 1
|
2010-03-02 01:46:56 +01:00
|
|
|
BuildRequires: LibVNCServer-devel SDL-devel acpica automake bin86 curl-devel dev86 graphviz latex2html libjpeg-devel libxml2-devel ncurses-devel openssl openssl-devel pciutils-devel python-devel texinfo transfig
|
2007-05-04 00:32:49 +02:00
|
|
|
BuildRequires: texlive texlive-latex
|
2007-02-11 11:48:10 +01:00
|
|
|
%ifarch x86_64
|
|
|
|
BuildRequires: glibc-32bit 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
|
|
|
|
%if %{?with_kmp}0
|
2007-08-12 11:48:30 +02:00
|
|
|
BuildRequires: kernel-source kernel-syms module-init-tools xorg-x11
|
2007-02-11 11:48:10 +01:00
|
|
|
%endif
|
2010-05-14 00:42:02 +02:00
|
|
|
Version: 4.0.0_21091_05
|
2010-05-19 20:47:46 +02:00
|
|
|
Release: 2
|
2010-05-14 00:42:01 +02:00
|
|
|
License: GPLv2+
|
2007-01-16 00:42:10 +01:00
|
|
|
Group: System/Kernel
|
2007-09-14 00:50:00 +02:00
|
|
|
AutoReqProv: on
|
2007-01-16 00:42:10 +01:00
|
|
|
PreReq: %insserv_prereq %fillup_prereq
|
|
|
|
Summary: Xen Virtualization: Hypervisor (aka VMM aka Microkernel)
|
2010-01-16 01:12:54 +01:00
|
|
|
Source0: xen-4.0.0-testing-src.tar.bz2
|
2007-01-16 00:42:10 +01:00
|
|
|
Source2: README.SuSE
|
|
|
|
Source3: boot.xen
|
|
|
|
Source4: boot.local.xenU
|
2007-02-11 11:48:10 +01:00
|
|
|
Source5: init.xend
|
|
|
|
Source6: init.xendomains
|
2007-07-25 02:03:48 +02:00
|
|
|
Source7: logrotate.conf
|
2007-02-11 11:48:10 +01:00
|
|
|
Source8: domUloader.py
|
|
|
|
Source9: xmexample.domUloader
|
2007-06-19 00:21:15 +02:00
|
|
|
Source10: xmexample.disks
|
|
|
|
Source11: block-nbd
|
2007-02-11 11:48:10 +01:00
|
|
|
Source12: block-iscsi
|
2009-09-27 00:20:08 +02:00
|
|
|
Source13: block-npiv-common.sh
|
|
|
|
Source14: block-npiv
|
|
|
|
Source15: block-npiv-vport
|
2007-06-19 00:21:15 +02:00
|
|
|
Source16: xmclone.sh
|
2008-02-02 01:58:27 +01:00
|
|
|
Source17: xend-relocation.sh
|
2008-04-12 21:41:18 +02:00
|
|
|
Source18: init.xen_loop
|
2009-03-03 00:46:51 +01:00
|
|
|
%if %{?with_kmp}0
|
2010-03-02 01:46:56 +01:00
|
|
|
Source19: xen_pvdrivers.conf
|
2009-03-03 00:46:51 +01:00
|
|
|
Source20: kmp_filelist
|
|
|
|
%endif
|
2010-01-16 01:12:54 +01:00
|
|
|
Source21: block-dmmd
|
2008-03-06 02:36:51 +01:00
|
|
|
# Xen API remote authentication sources
|
|
|
|
Source23: etc_pam.d_xen-api
|
|
|
|
Source24: xenapiusers
|
2008-09-12 17:57:53 +02:00
|
|
|
# sysconfig hook script for Xen
|
|
|
|
Source25: xen-updown.sh
|
2007-05-21 22:28:46 +02:00
|
|
|
# Upstream patches
|
2010-04-19 00:21:06 +02:00
|
|
|
Patch0: 21089-x86-startup-irq-from-setup-gsi.patch
|
|
|
|
Patch1: 21109-x86-cpu-hotplug.patch
|
|
|
|
Patch2: 21128-domain-save-flush.patch
|
2010-05-14 00:42:02 +02:00
|
|
|
Patch3: 21129-xen-hotplug-cleanup.patch
|
|
|
|
Patch4: 21150-shadow-race.patch
|
|
|
|
Patch5: 21160-sysctl-debug-keys.patch
|
|
|
|
Patch6: 21189-x86-emulate-clflush.patch
|
|
|
|
Patch7: 21193-blktap-script.patch
|
|
|
|
Patch8: 21194-ioemu-subtype.patch
|
|
|
|
Patch9: 21223-xend-preserve-devs.patch
|
|
|
|
Patch10: 21225-conring-iommu.patch
|
|
|
|
Patch11: 21234-x86-bad-srat-clear-pxm2node.patch
|
|
|
|
Patch12: 21235-crashkernel-advanced.patch
|
|
|
|
Patch13: 21266-vmx-disabled-check.patch
|
|
|
|
Patch14: 21271-x86-cache-flush-global.patch
|
|
|
|
Patch15: 21272-x86-dom0-alloc-performance.patch
|
|
|
|
Patch16: 21301-svm-lmsl.patch
|
|
|
|
Patch17: 21304-keyhandler-alternative.patch
|
|
|
|
Patch18: 21317-xend-blkif-util-tap2.patch
|
|
|
|
Patch19: passthrough-hotplug-segfault.patch
|
2010-05-19 20:47:46 +02:00
|
|
|
Patch20: 21331-svm-vintr-during-nmi.patch
|
|
|
|
Patch21: 21333-xentrace-t_info-size.patch
|
|
|
|
Patch22: 21340-vtd-dom0-mapping-latency.patch
|
|
|
|
Patch23: 21346-x86-platform-timer-wrap.patch
|
|
|
|
Patch24: 21349-x86-memcpy.patch
|
|
|
|
Patch25: 21360-x86-mce-polling-diabled-init.patch
|
|
|
|
Patch26: 21372-x86-cross-cpu-wait.patch
|
|
|
|
Patch27: 21373-dummy-domain-io-caps.patch
|
2010-05-25 18:28:20 +02:00
|
|
|
Patch28: 21408-amd-erratum-383.patch
|
2007-05-21 22:28:46 +02:00
|
|
|
# Our patches
|
2010-01-16 01:12:54 +01:00
|
|
|
Patch300: xen-config.diff
|
|
|
|
Patch301: xend-config.diff
|
|
|
|
Patch302: xen-destdir.diff
|
|
|
|
Patch303: xen-rpmoptflags.diff
|
|
|
|
Patch304: xen-warnings.diff
|
|
|
|
Patch305: xen-changeset.diff
|
|
|
|
Patch306: xen-paths.diff
|
|
|
|
Patch307: xen-xmexample.diff
|
|
|
|
Patch308: xen-xmexample-vti.diff
|
|
|
|
Patch309: xen-fixme-doc.diff
|
|
|
|
Patch310: xen-domUloader.diff
|
|
|
|
Patch311: xen-no-dummy-nfs-ip.diff
|
|
|
|
Patch312: serial-split.patch
|
|
|
|
Patch313: xen-xm-top-needs-root.diff
|
|
|
|
Patch314: xen-max-free-mem.diff
|
|
|
|
Patch315: xen-disable-libxl.diff
|
2010-03-01 23:01:50 +01:00
|
|
|
Patch316: xen-disable-xenpaging.diff
|
2010-03-21 11:57:55 +01:00
|
|
|
Patch317: xen-extra-fixes.patch
|
2010-01-16 01:12:54 +01:00
|
|
|
Patch320: block-losetup-retry.diff
|
|
|
|
Patch321: block-flags.diff
|
|
|
|
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
|
|
|
|
Patch328: network-route.patch
|
|
|
|
Patch329: vif-route-ifup.patch
|
|
|
|
Patch330: network-nat-open-SuSEfirewall2-FORWARD.patch
|
|
|
|
Patch340: xen-hvm-default-bridge.diff
|
|
|
|
Patch341: xen-hvm-default-pae.diff
|
|
|
|
Patch342: xm-test-cleanup.diff
|
|
|
|
Patch343: tools-xc_kexec.diff
|
|
|
|
Patch344: tools-kboot.diff
|
|
|
|
Patch345: libxen_permissive.patch
|
|
|
|
Patch346: xenapi-console-protocol.patch
|
|
|
|
Patch347: xen-disable-qemu-monitor.diff
|
|
|
|
Patch348: qemu-security-etch1.diff
|
|
|
|
Patch350: cdrom-removable.patch
|
|
|
|
Patch351: xend-core-dump-loc.diff
|
|
|
|
Patch352: blktap.patch
|
|
|
|
Patch353: xen-qemu-iscsi-fix.patch
|
|
|
|
Patch354: xen-api-auth.patch
|
|
|
|
Patch355: tools-gdbserver-build.diff
|
|
|
|
Patch356: ioemu-vnc-resize.patch
|
|
|
|
Patch357: ioemu-debuginfo.patch
|
2010-03-02 01:46:56 +01:00
|
|
|
Patch358: vif-bridge-no-iptables.patch
|
2010-05-14 00:42:02 +02:00
|
|
|
Patch359: suse-disable-tap2-default.patch
|
2008-12-05 15:30:41 +01:00
|
|
|
# Needs to go upstream
|
2010-05-14 00:42:02 +02:00
|
|
|
Patch360: checkpoint-rename.patch
|
|
|
|
Patch361: xm-save-check-file.patch
|
|
|
|
Patch362: xm-create-xflag.patch
|
|
|
|
Patch363: cpupools-core.patch
|
|
|
|
Patch364: cpupools-core-fixup.patch
|
2010-03-21 11:57:55 +01:00
|
|
|
Patch365: cpu-pools-libxc.patch
|
|
|
|
Patch366: cpu-pools-python.patch
|
|
|
|
Patch367: cpu-pools-libxen.patch
|
|
|
|
Patch368: cpu-pools-xmtest.patch
|
|
|
|
Patch369: cpu-pools-docs.patch
|
2008-07-19 01:04:37 +02:00
|
|
|
# Patches for snapshot support
|
2010-01-16 01:12:54 +01:00
|
|
|
Patch400: snapshot-ioemu-save.patch
|
|
|
|
Patch401: snapshot-ioemu-restore.patch
|
|
|
|
Patch402: snapshot-ioemu-delete.patch
|
|
|
|
Patch403: snapshot-xend.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-04-26 23:23:48 +02:00
|
|
|
Patch423: bdrv_open2_fix_flags.patch
|
|
|
|
Patch424: bdrv_open2_flags_2.patch
|
|
|
|
Patch425: ioemu-7615-qcow2-fix-alloc_cluster_link_l2.patch
|
|
|
|
Patch426: ioemu-bdrv-open-CACHE_WB.patch
|
|
|
|
Patch427: xen-ioemu-hvm-pv-support.diff
|
|
|
|
Patch428: qemu-dm-segfault.patch
|
|
|
|
Patch429: hibernate.patch
|
|
|
|
Patch430: del_usb_xend_entry.patch
|
2010-05-25 18:28:20 +02:00
|
|
|
Patch431: capslock_enable.patch
|
2008-08-18 00:24:29 +02:00
|
|
|
# Jim's domain lock patch
|
2010-01-16 01:12:54 +01:00
|
|
|
Patch450: xend-domain-lock.patch
|
|
|
|
# Hypervisor and PV driver Patches
|
2010-05-14 00:42:02 +02:00
|
|
|
Patch500: 32on64-extra-mem.patch
|
|
|
|
Patch501: x86-ioapic-ack-default.patch
|
|
|
|
Patch502: x86-cpufreq-report.patch
|
|
|
|
Patch503: dump-exec-state.patch
|
|
|
|
Patch504: dom-print.patch
|
|
|
|
Patch505: pvdrv-import-shared-info.patch
|
|
|
|
Patch506: x86-show-page-walk-early.patch
|
|
|
|
Patch507: x86-extra-trap-info.patch
|
|
|
|
Patch508: pvdrv_emulation_control.patch
|
|
|
|
Patch509: blktap-pv-cdrom.patch
|
|
|
|
Patch510: pv-driver-build.patch
|
|
|
|
Patch511: supported_module.diff
|
|
|
|
Patch512: magic_ioport_compat.patch
|
2010-01-16 01:12:54 +01:00
|
|
|
Patch650: disable_emulated_device.diff
|
2010-03-02 01:46:56 +01:00
|
|
|
Patch651: ioemu-disable-scsi.patch
|
2008-03-06 02:36:51 +01:00
|
|
|
# novell_shim patches
|
2010-01-16 01:12:54 +01:00
|
|
|
Patch700: hv_tools.patch
|
|
|
|
Patch701: hv_xen_base.patch
|
|
|
|
Patch702: hv_xen_extension.patch
|
|
|
|
Patch703: hv_win7_eoi_bug.patch
|
|
|
|
# Build patch
|
2008-11-25 15:57:48 +01:00
|
|
|
Patch999: 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 pysite %(python -c "import distutils.sysconfig; print distutils.sysconfig.get_python_lib()")
|
|
|
|
%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
|
2010-03-02 01:46:54 +01:00
|
|
|
License: GPLv2+
|
2007-01-16 00:42:10 +01:00
|
|
|
Summary: Xen Virtualization: Libraries
|
|
|
|
Group: System/Kernel
|
2008-11-21 15:57:01 +01:00
|
|
|
#Requires: xen = %{version}
|
2007-01-16 00:42:10 +01:00
|
|
|
AutoReqProv: on
|
|
|
|
|
|
|
|
%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>
|
|
|
|
|
|
|
|
%package tools
|
2010-03-02 01:46:54 +01:00
|
|
|
License: GPLv2+
|
2007-01-16 00:42:10 +01:00
|
|
|
Summary: Xen Virtualization: Control tools for domain 0
|
|
|
|
Group: System/Kernel
|
2008-02-02 01:58:27 +01:00
|
|
|
Requires: xen-libs = %{version}
|
2008-08-18 00:24:29 +02:00
|
|
|
Requires: bridge-utils multipath-tools python python-curses python-openssl python-pam python-xml pyxml
|
2008-03-14 18:02:08 +01:00
|
|
|
#Requires: ipcalc
|
|
|
|
# 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
|
2007-01-16 00:42:10 +01:00
|
|
|
AutoReqProv: on
|
|
|
|
|
|
|
|
%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>
|
|
|
|
|
|
|
|
%package tools-domU
|
2010-03-02 01:46:54 +01:00
|
|
|
License: GPLv2+
|
2007-04-26 01:53:07 +02:00
|
|
|
Summary: Xen Virtualization: Control tools for domain U
|
|
|
|
Group: System/Kernel
|
|
|
|
Conflicts: xen-tools
|
|
|
|
AutoReqProv: on
|
|
|
|
|
|
|
|
%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
|
2010-03-02 01:46:54 +01:00
|
|
|
License: GPLv2+
|
2007-01-16 00:42:10 +01:00
|
|
|
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
|
2010-03-02 01:46:54 +01:00
|
|
|
License: GPLv2+
|
2007-02-11 11:48:10 +01:00
|
|
|
Group: System/Kernel
|
|
|
|
Summary: Xen para-virtual device drivers for fully virtualized guests
|
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
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
%package doc-html
|
2010-03-02 01:46:54 +01:00
|
|
|
License: GPLv2+
|
2007-01-16 00:42:10 +01:00
|
|
|
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
|
2010-03-02 01:46:54 +01:00
|
|
|
License: GPLv2+
|
2007-01-16 00:42:10 +01:00
|
|
|
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>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %xen_build_dir
|
2010-04-19 00:21:06 +02:00
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
2010-04-26 23:23:48 +02:00
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
2010-05-14 00:42:02 +02:00
|
|
|
%patch10 -p1
|
|
|
|
%patch11 -p1
|
|
|
|
%patch12 -p1
|
|
|
|
%patch13 -p1
|
|
|
|
%patch14 -p1
|
|
|
|
%patch15 -p1
|
|
|
|
%patch16 -p1
|
|
|
|
%patch17 -p1
|
|
|
|
%patch18 -p1
|
|
|
|
%patch19 -p1
|
2010-05-19 20:47:46 +02:00
|
|
|
%patch20 -p1
|
|
|
|
%patch21 -p1
|
|
|
|
%patch22 -p1
|
|
|
|
%patch23 -p1
|
|
|
|
%patch24 -p1
|
|
|
|
%patch25 -p1
|
|
|
|
%patch26 -p1
|
|
|
|
%patch27 -p1
|
2010-05-25 18:28:20 +02:00
|
|
|
%patch28 -p1
|
2009-05-04 18:38:09 +02:00
|
|
|
%patch300 -p1
|
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
|
|
|
|
%patch315 -p1
|
2010-03-01 23:01:50 +01:00
|
|
|
%patch316 -p1
|
2010-03-21 11:57:55 +01:00
|
|
|
%patch317 -p1
|
2010-01-16 01:12:54 +01:00
|
|
|
#%patch320 -p1
|
|
|
|
#%patch321 -p1
|
|
|
|
%patch322 -p1
|
|
|
|
%patch323 -p1
|
|
|
|
%patch324 -p1
|
|
|
|
%patch325 -p1
|
|
|
|
%patch326 -p1
|
|
|
|
%patch327 -p1
|
|
|
|
%patch328 -p1
|
|
|
|
%patch329 -p1
|
|
|
|
%patch330 -p1
|
|
|
|
%patch340 -p1
|
2009-05-04 18:38:09 +02:00
|
|
|
%patch341 -p1
|
|
|
|
%patch342 -p1
|
|
|
|
%patch343 -p1
|
|
|
|
%patch344 -p1
|
|
|
|
%patch345 -p1
|
|
|
|
%patch346 -p1
|
|
|
|
%patch347 -p1
|
|
|
|
%patch348 -p1
|
2010-01-16 01:12:54 +01:00
|
|
|
%patch350 -p1
|
|
|
|
%patch351 -p1
|
|
|
|
%patch352 -p1
|
|
|
|
%patch353 -p1
|
|
|
|
%patch354 -p1
|
|
|
|
%patch355 -p1
|
|
|
|
%patch356 -p1
|
|
|
|
%patch357 -p1
|
2010-03-02 01:46:56 +01:00
|
|
|
%patch358 -p1
|
|
|
|
%patch359 -p1
|
2010-01-16 01:12:54 +01:00
|
|
|
%patch360 -p1
|
|
|
|
%patch361 -p1
|
|
|
|
%patch362 -p1
|
2010-03-02 01:46:56 +01:00
|
|
|
%patch363 -p1
|
|
|
|
%patch364 -p1
|
|
|
|
%patch365 -p1
|
|
|
|
%patch366 -p1
|
|
|
|
%patch367 -p1
|
|
|
|
%patch368 -p1
|
|
|
|
%patch369 -p1
|
2010-01-16 01:12:54 +01:00
|
|
|
%patch400 -p1
|
2010-03-02 01:46:56 +01:00
|
|
|
%patch401 -p1
|
2010-01-16 01:12:54 +01:00
|
|
|
%patch402 -p1
|
2009-05-04 18:38:09 +02:00
|
|
|
%patch403 -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-05-25 18:28:20 +02:00
|
|
|
%patch431 -p1
|
2009-05-04 18:38:09 +02:00
|
|
|
%patch450 -p1
|
|
|
|
%patch500 -p1
|
|
|
|
%patch501 -p1
|
|
|
|
%patch502 -p1
|
2009-08-17 14:57:35 +02:00
|
|
|
%patch503 -p1
|
2010-01-16 01:12:54 +01:00
|
|
|
%patch504 -p1
|
|
|
|
%patch505 -p1
|
|
|
|
%patch506 -p1
|
|
|
|
%patch507 -p1
|
|
|
|
%patch508 -p1
|
|
|
|
%patch509 -p1
|
|
|
|
%patch510 -p1
|
|
|
|
%patch511 -p1
|
|
|
|
%patch512 -p1
|
|
|
|
%patch650 -p1
|
2010-03-02 01:46:56 +01:00
|
|
|
%patch651 -p1
|
2010-01-16 01:12:54 +01:00
|
|
|
%patch700 -p1
|
|
|
|
%patch701 -p1
|
|
|
|
%patch702 -p1
|
|
|
|
%patch703 -p1
|
2008-11-25 15:57:48 +01:00
|
|
|
%patch999 -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
|
2008-07-19 01:04:37 +02:00
|
|
|
make -C tools/include/xen-foreign
|
2007-01-16 00:42:10 +01:00
|
|
|
make tools docs
|
2008-09-12 17:57:53 +02:00
|
|
|
cd tools/debugger/gdb
|
|
|
|
# there are code problems that don't pass the 02-check-gcc-output, hence bitbucket
|
|
|
|
./gdbbuild 1>/dev/null 2>/dev/null
|
|
|
|
cd ../../..
|
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 \
|
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
|
2007-02-11 11:48:10 +01:00
|
|
|
test ! -z "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" && rm -rf $RPM_BUILD_ROOT
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
2007-01-16 00:42:10 +01:00
|
|
|
export RPM_OPT_FLAGS
|
|
|
|
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}
|
|
|
|
}
|
2010-04-03 00:15:37 +02:00
|
|
|
make -C xen install max_phys_cpus=%{max_cpus} pae=%{pae_enabled} debug=y crash_debug=y DESTDIR=$RPM_BUILD_ROOT
|
2008-03-27 23:24:06 +01:00
|
|
|
install_xen dbg
|
2007-01-16 00:42:10 +01:00
|
|
|
make -C xen clean
|
2010-04-03 00:15:37 +02:00
|
|
|
make -C xen install max_phys_cpus=%{max_cpus} pae=%{pae_enabled} debug=n crash_debug=n DESTDIR=$RPM_BUILD_ROOT
|
2008-03-27 23:24:06 +01:00
|
|
|
install_xen
|
2007-01-16 00:42:10 +01:00
|
|
|
make -C xen clean
|
2007-02-11 11:48:10 +01:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
export RPM_OPT_FLAGS
|
2008-07-19 01:04:37 +02:00
|
|
|
make -C tools/include/xen-foreign
|
2007-01-16 00:42:10 +01:00
|
|
|
# tools
|
|
|
|
export XEN_PYTHON_NATIVE_INSTALL=1
|
|
|
|
make -C tools install \
|
|
|
|
DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir}
|
2008-09-12 17:57:53 +02:00
|
|
|
cp tools/debugger/gdb/gdb-6.2.1-linux-i386-xen/gdb/gdbserver/gdbserver-xen $RPM_BUILD_ROOT/usr/bin/gdbserver-xen
|
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 \
|
|
|
|
DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir}
|
|
|
|
%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
|
2007-02-11 11:48:10 +01:00
|
|
|
%if %{?with_kmp}0
|
|
|
|
# pv driver modules
|
|
|
|
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
|
|
|
|
export INSTALL_MOD_DIR=updates
|
|
|
|
for flavor in %flavors_to_build; do
|
|
|
|
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install \
|
|
|
|
M=$PWD/obj/$flavor
|
|
|
|
done
|
2009-03-03 00:46:51 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/modprobe.d
|
2010-03-02 01:46:56 +01:00
|
|
|
install -m644 %SOURCE19 $RPM_BUILD_ROOT/etc/modprobe.d/xen_pvdrivers.conf
|
2007-01-16 00:42:10 +01:00
|
|
|
%endif
|
|
|
|
# docs
|
2007-02-11 11:48:10 +01:00
|
|
|
make -C docs install \
|
|
|
|
DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} \
|
|
|
|
DOCDIR=%{_defaultdocdir}/xen
|
2008-01-12 02:32:53 +01:00
|
|
|
for name in COPYING %SOURCE2 %SOURCE3 %SOURCE4; 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
|
|
|
|
for name in vtpm.txt crashdb.txt sedf_scheduler_mini-HOWTO.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
|
|
|
|
# init scripts
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
2007-02-11 11:48:10 +01:00
|
|
|
install %SOURCE5 $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
|
2007-02-11 11:48:10 +01:00
|
|
|
install %SOURCE6 $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
|
2008-04-12 21:41:18 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/modprobe.d
|
2009-08-17 14:57:35 +02:00
|
|
|
install -m644 %SOURCE18 $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
|
2008-08-18 00:24:29 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/etc/xen/examples/*nbd
|
2007-06-19 00:21:15 +02:00
|
|
|
install -m644 %SOURCE9 %SOURCE10 $RPM_BUILD_ROOT/etc/xen/examples/
|
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
|
2010-01-16 01:12:54 +01:00
|
|
|
install -m755 %SOURCE11 %SOURCE12 %SOURCE13 %SOURCE14 %SOURCE15 %SOURCE16 %SOURCE17 %SOURCE21 $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
|
|
|
|
install -m644 %SOURCE23 $RPM_BUILD_ROOT/etc/pam.d/xen-api
|
|
|
|
install -m644 %SOURCE24 $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
|
|
|
|
install -m755 %SOURCE25 $RPM_BUILD_ROOT/etc/sysconfig/network/scripts
|
|
|
|
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
|
2007-07-25 02:03:48 +02:00
|
|
|
install -m644 -D %SOURCE7 $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
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/run/xenstored
|
|
|
|
ln -s /var/lib/xen/images $RPM_BUILD_ROOT/etc/xen/images
|
|
|
|
# Bootloader
|
2007-02-11 11:48:10 +01:00
|
|
|
install -m755 %SOURCE8 $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
|
2007-06-23 00:22:21 +02:00
|
|
|
#%find_lang xen-vm # po files are misnamed upstream
|
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-*
|
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*
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/xen/qemu/openbios-sparc32
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/xen/qemu/openbios-sparc64
|
2009-05-04 18:38:09 +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/sbin/netfix
|
2009-08-21 17:26:06 +02:00
|
|
|
#rm -f $RPM_BUILD_ROOT/%pysite/*.egg-info
|
|
|
|
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.*
|
2010-03-02 01:46:56 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT/usr/share/xen/create.dtd
|
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
|
|
|
|
# FATE feature for remus rejected
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/remus
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/python%{pyver}/site-packages/xen/remus
|
2010-01-16 01:12:54 +01:00
|
|
|
# This is necessary because of the build of libconfig for libxl
|
|
|
|
#rm -rf $RPM_BUILD_ROOT/$RPM_BUILD_ROOT
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%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
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
%files libs
|
|
|
|
%defattr(-,root,root)
|
2007-02-11 11:48:10 +01:00
|
|
|
%{_libdir}/fs/
|
2007-05-23 01:45:46 +02:00
|
|
|
%{_libdir}/libblktap.so.*
|
2008-03-06 02:36:51 +01:00
|
|
|
%{_libdir}/libflask.so.*
|
2007-05-23 01:45:46 +02:00
|
|
|
%{_libdir}/libfsimage.so.*
|
2007-01-16 00:42:10 +01:00
|
|
|
%{_libdir}/libxen*.so.*
|
2010-01-16 01:12:54 +01:00
|
|
|
%{_libdir}/libvhd.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)
|
2008-07-19 01:04:37 +02:00
|
|
|
#/usr/bin/lomount
|
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
|
2010-03-02 01:46:56 +01:00
|
|
|
#/usr/bin/qemu-img-xen
|
|
|
|
#/usr/bin/qemu-nbd-xen
|
2008-08-18 00:24:29 +02:00
|
|
|
/usr/bin/tapdisk-ioemu
|
2008-09-12 17:57:53 +02:00
|
|
|
/usr/bin/gdbserver-xen
|
2010-03-02 01:46:56 +01: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
|
2007-01-16 00:42:10 +01:00
|
|
|
/usr/sbin/rcxend
|
|
|
|
/usr/sbin/rcxendomains
|
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
|
2008-08-18 00:24:29 +02:00
|
|
|
/usr/sbin/fs-backend
|
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
|
2007-01-16 00:42:10 +01:00
|
|
|
%dir %{_libdir}/xen
|
|
|
|
%dir %{_libdir}/xen/bin
|
|
|
|
%ifarch x86_64
|
|
|
|
%dir /usr/lib/xen
|
|
|
|
%dir /usr/lib/xen/bin
|
|
|
|
%endif
|
|
|
|
%dir /usr/lib/xen/boot
|
2009-05-04 18:38:09 +02:00
|
|
|
#%{_datadir}/xen/*.dtd
|
2007-01-16 00:42:10 +01:00
|
|
|
%{_libdir}/xen/bin/readnotes
|
|
|
|
%{_libdir}/xen/bin/xc_restore
|
|
|
|
%{_libdir}/xen/bin/xc_save
|
|
|
|
%{_libdir}/xen/bin/xenconsole
|
|
|
|
%{_libdir}/xen/bin/xenctx
|
2008-07-19 01:04:37 +02:00
|
|
|
%{_libdir}/xen/bin/lsevtchn
|
2010-01-16 01:12:54 +01:00
|
|
|
%{_libdir}/xen/bin/imqebt
|
2007-01-16 00:42:10 +01:00
|
|
|
%{_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
|
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
|
|
|
|
%dir /var/run/xenstored
|
2007-05-23 01:45:46 +02:00
|
|
|
/etc/init.d/xend
|
|
|
|
/etc/init.d/xendomains
|
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
|
2010-01-16 01:12:54 +01:00
|
|
|
#/etc/xen/scripts/qemu-ifup
|
2008-08-18 00:24:29 +02:00
|
|
|
/etc/xen/README*
|
2007-05-23 01:45:46 +02:00
|
|
|
%config /etc/xen/vm
|
|
|
|
%config /etc/xen/*.sxp
|
|
|
|
%config /etc/xen/*.xml
|
2008-03-06 02:36:51 +01:00
|
|
|
%config(noreplace) /etc/xen/xenapiusers
|
|
|
|
%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
|
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 %pysite/xen
|
|
|
|
%dir %{_libdir}/python%{pyver}/site-packages/xen
|
|
|
|
#%dir %pysite/grub
|
|
|
|
%dir %{_libdir}/python%{pyver}/site-packages/grub
|
2008-02-02 01:58:27 +01:00
|
|
|
# formerly tools-ioemu
|
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
|
2010-01-16 01:12:54 +01:00
|
|
|
#%dir %{_datadir}/xen/qemu/keymaps
|
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/*
|
2007-01-16 00:42:10 +01:00
|
|
|
%{_libdir}/xen/bin/qemu-dm
|
|
|
|
%ifarch x86_64
|
|
|
|
/usr/lib/xen/bin/qemu-dm
|
2008-09-01 02:39:12 +02:00
|
|
|
/usr/lib64/xen/bin/xc_kexec
|
2007-02-11 11:48:10 +01:00
|
|
|
%else
|
2008-09-01 02:39:12 +02:00
|
|
|
/usr/lib/xen/bin/xc_kexec
|
2007-01-16 00:42:10 +01:00
|
|
|
%endif
|
|
|
|
/usr/lib/xen/boot/hvmloader
|
2009-08-21 17:26:06 +02:00
|
|
|
#%pysite/xen/*
|
|
|
|
%{_libdir}/python%{pyver}/site-packages/xen/*
|
2008-02-02 01:58:27 +01:00
|
|
|
/usr/lib/xen/boot/domUloader.py
|
2009-08-21 17:26:06 +02:00
|
|
|
#%pysite/grub/*
|
|
|
|
%{_libdir}/python%{pyver}/site-packages/grub/*
|
|
|
|
#%pysite/fsimage.so
|
|
|
|
%{_libdir}/python%{pyver}/site-packages/fsimage.so
|
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)
|
|
|
|
%{_libdir}/libblktap.a
|
2007-05-23 01:45:46 +02:00
|
|
|
%{_libdir}/libblktap.so
|
2007-12-20 16:46:41 +01:00
|
|
|
%{_libdir}/libflask.a
|
2008-03-06 02:36:51 +01:00
|
|
|
%{_libdir}/libflask.so
|
2007-05-23 01:45:46 +02:00
|
|
|
%{_libdir}/libfsimage.so
|
2007-01-16 00:42:10 +01:00
|
|
|
%{_libdir}/libxen*.a
|
2007-02-11 11:48:10 +01:00
|
|
|
%{_libdir}/libxen*.so
|
2010-01-16 01:12:54 +01:00
|
|
|
%{_libdir}/libvhd.a
|
|
|
|
%{_libdir}/libvhd.so
|
2007-05-23 01:45:46 +02:00
|
|
|
/usr/bin/serial-split
|
2007-01-16 00:42:10 +01:00
|
|
|
/usr/include/blktaplib.h
|
2007-02-11 11:48:10 +01:00
|
|
|
/usr/include/fsimage*
|
2007-01-16 00:42:10 +01:00
|
|
|
/usr/include/xen*.h
|
2007-05-23 01:45:46 +02:00
|
|
|
/usr/include/xen/
|
2007-01-16 00:42:10 +01:00
|
|
|
/usr/include/xs.h
|
|
|
|
/usr/include/xs_lib.h
|
|
|
|
|
|
|
|
%files doc-html
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_defaultdocdir}/xen/html
|
|
|
|
|
|
|
|
%files doc-pdf
|
|
|
|
%defattr(-,root,root)
|
2007-05-23 01:45:46 +02:00
|
|
|
%{_defaultdocdir}/xen/pdf
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
%clean
|
2007-05-23 01:45:46 +02:00
|
|
|
#test ! -z "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" && rm -rf $RPM_BUILD_ROOT
|
|
|
|
#rm -rf $RPM_BUILD_DIR/%xen_build_dir
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
%post tools
|
2007-08-03 02:38:01 +02:00
|
|
|
%{fillup_and_insserv -y -n xend xend}
|
|
|
|
%{fillup_and_insserv -y -n xendomains xendomains}
|
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
|
2007-05-23 01:45:46 +02:00
|
|
|
%{stop_on_removal xendomains xend}
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
%postun tools
|
|
|
|
%{restart_on_update xend}
|
|
|
|
%{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
|
2007-01-16 00:42:10 +01:00
|
|
|
|
2007-05-23 01:45:46 +02:00
|
|
|
%post libs
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%postun libs
|
|
|
|
/sbin/ldconfig
|
2007-11-29 22:05:25 +01:00
|
|
|
|
2007-02-19 23:34:05 +01:00
|
|
|
%changelog
|