1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
9 sup_arches = i686 x86_64
11 maintainer = Ben Schweikert <ben.schweikert@ipfire.org>
12 groups = Applications/Virtualization
13 url = http://www.xen.org/
15 summary = The Xen tools.
18 The Xen hypervisor, the powerful open source industry standard
19 for virtualization, offers a powerful, efficient, and secure
20 feature set for virtualization.
21 It is possible to use a i686 host, but it is not supported.
24 source_dl = http://bits.xensource.com/oss-xen/release/%{version}/
25 sources = %{thisapp}.tar.gz xen-utils-0.2.tar.bz2
47 mv ../xen-utils/ipxe.tar.gz tools/firmware/etherboot/
48 mv ../xen-utils/newlib-1.16.0.tar.gz stubdom/
49 mv ../xen-utils/grub-0.97.tar.gz stubdom/
50 mv ../xen-utils/lwip-1.3.0.tar.gz stubdom/
51 mv ../xen-utils/pciutils-2.2.9.tar.bz2 stubdom/
52 mv ../xen-utils/zlib-1.2.3.tar.gz stubdom/
55 if [ "${DISTRO_ARCH}" = "x86_64" ]; then
56 # Dirty ugly workaround for stub-32.h error (is missing).
57 ln -s /usr/include/gnu/stubs-64.h /usr/include/gnu/stubs-32.h
62 # Have to build it this way, else parts of the xen stubdom \
63 # would get build too.
64 make dist-xen %{PARALELLISMFLAGS}
65 make dist-tools %{PARALELLISMFLAGS}
68 # Only install xen and tools
69 make_install_targets = \
70 DESTDIR=%{BUILDROOT} \
76 # Remove unneeded files:
78 rm -Rf %{BUILDROOT}/boot/xen-syms*
79 rm -Rf %{BUILDROOT}/boot/xen-4.1.gz
80 rm -Rf %{BUILDROOT}/boot/xen-4.gz
82 rm -Rf %{BUILDROOT}/etc/init.d
83 chrpath --delete %{BUILDROOT}/usr/lib/xen/bin/qemu-dm
85 rm -Rf %{BUILDROOT}/usr/share/doc/xen
86 rm -Rf %{BUILDROOT}/usr/share/doc/qemu
88 rm -Rf %{BUILDROOT}/usr/sbin/xen-python-path
89 # qemu stuff (unused or available from upstream)
90 rm -Rf %{BUILDROOT}/usr/share/xen/man
93 mkdir -p %{BUILDROOT}/var/lib/xen/xend-db/domain
94 mkdir -p %{BUILDROOT}/var/lib/xen/xend-db/vnet
95 mkdir -p %{BUILDROOT}/var/lib/xen/xend-db/migrate
96 mkdir -p %{BUILDROOT}/var/lib/xen/images
97 mkdir -p %{BUILDROOT}/var/log/xen/console
114 This package contains the libraries needed to
115 run applications which manage Xen virtual machines
118 # Very hacky workaround for an improper name of libfsimage.
119 if "%{DISTRO_ARCH}" == "x86_64"
121 libfsimage.so.1.0(libfsimage.so.1.0)(64bit)
125 libfsimage.so.1.0(libfsimage.so.1.0)
128 files += %{libdir}/fs
131 package %{name}-hypervisor
132 summary = The Xen hypervisor.
134 This package contains the Xen hypervisor.
142 package %{name}-runtime
143 summary = Runtime programms and daemons for Xen environments.
145 This package contains the runtime programs
146 and daemons which form the core Xen userspace environment.
155 package %{name}-devel
159 This package contains what's needed to
160 develop applications which manage Xen virtual machines.
164 package %{name}-debuginfo