1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 maintainer = Ben Schweikert <ben.schweikert@ipfire.org>
11 groups = Applications/Virtualization
12 url = http://www.xen.org/
14 summary = The Xen tools.
17 The Xen hypervisor, the powerful open source industry standard
18 for virtualization, offers a powerful, efficient, and secure
19 feature set for virtualization.
22 source_dl = http://bits.xensource.com/oss-xen/release/%{version}/
23 sources = %{thisapp}.tar.gz xen-utils-0.2.tar.bz2
45 mv ../xen-utils/ipxe.tar.gz tools/firmware/etherboot/
46 mv ../xen-utils/newlib-1.16.0.tar.gz stubdom/
47 mv ../xen-utils/grub-0.97.tar.gz stubdom/
48 mv ../xen-utils/lwip-1.3.0.tar.gz stubdom/
49 mv ../xen-utils/pciutils-2.2.9.tar.bz2 stubdom/
50 mv ../xen-utils/zlib-1.2.3.tar.gz stubdom/
53 if [ "${DISTRO_ARCH}" = "x86_64" ]; then
54 # Dirty ugly workaround for stub-32.h error (is missing).
55 ln -s /usr/include/gnu/stubs-64.h /usr/include/gnu/stubs-32.h
60 # Have to build it this way, else parts of the xen stubdom \
61 # would get build too.
62 make dist-xen %{PARALELLISMFLAGS}
63 make dist-tools %{PARALELLISMFLAGS}
66 # Only install xen and tools
67 make_install_targets = \
68 DESTDIR=%{BUILDROOT} \
74 # Remove unneeded files:
76 rm -Rf %{BUILDROOT}/boot/xen-syms*
77 rm -Rf %{BUILDROOT}/boot/xen-4.1.gz
78 rm -Rf %{BUILDROOT}/boot/xen-4.gz
80 rm -Rf %{BUILDROOT}/etc/init.d
81 chrpath --delete %{BUILDROOT}/usr/lib/xen/bin/qemu-dm
83 rm -Rf %{BUILDROOT}/usr/share/doc/xen
84 rm -Rf %{BUILDROOT}/usr/share/doc/qemu
86 rm -Rf %{BUILDROOT}/usr/sbin/xen-python-path
87 # qemu stuff (unused or available from upstream)
88 rm -Rf %{BUILDROOT}/usr/share/xen/man
91 mkdir -p %{BUILDROOT}/var/lib/xen/xend-db/domain
92 mkdir -p %{BUILDROOT}/var/lib/xen/xend-db/vnet
93 mkdir -p %{BUILDROOT}/var/lib/xen/xend-db/migrate
94 mkdir -p %{BUILDROOT}/var/lib/xen/images
95 mkdir -p %{BUILDROOT}/var/log/xen/console
112 This package contains the libraries needed to
113 run applications which manage Xen virtual machines
116 # Very hacky workaround for an improper name of libfsimage.
117 if "%{DISTRO_ARCH}" == "x86_64"
119 libfsimage.so.1.0(libfsimage.so.1.0)(64bit)
123 libfsimage.so.1.0(libfsimage.so.1.0)
126 files += %{libdir}/fs
129 package %{name}-hypervisor
130 summary = The Xen hypervisor.
132 This package contains the Xen hypervisor.
140 package %{name}-runtime
141 summary = Runtime programms and daemons for Xen environments.
143 This package contains the runtime programs
144 and daemons which form the core Xen userspace environment.
153 package %{name}-devel
157 This package contains what's needed to
158 develop applications which manage Xen virtual machines.
162 package %{name}-debuginfo