%define bigver %(echo %version | cut -d. -f1) %define majver %(echo %version | cut -d. -f1-2) Name: xen Version: 4.0.1 Release: 2mamba Summary: An high performing server virtualization software Group: Applications/Emulators Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.xen.org Source: http://bits.xensource.com/oss-xen/release/%{version}/xen-%{version}.tar.gz Source1: xen-grub-conf-07_xen Patch0: %{name}-3.1.0-gcc4.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libbluetooth-devel BuildRequires: libe2fs-devel BuildRequires: libgcrypt-devel BuildRequires: libGL-devel BuildRequires: libgnutls-devel BuildRequires: libncurses-devel BuildRequires: libpci-devel BuildRequires: libpython-devel BuildRequires: libSDL-devel BuildRequires: libX11-devel BuildRequires: libXext-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END Requires: bridge-utils Requires: python Requires: libxen = %{version}-%{release} BuildRoot: %{_tmppath}/%{name}-%{version}-root %description With Xen virtualization, a thin software layer known as the Xen hypervisor is inserted between the server’s hardware and the operating system. This provides an abstraction layer that allows each physical server to run one or more “virtual servers,” effectively decoupling the operating system and its applications from the underlying physical server. Once a virtual server image has been created it can run on any server, at any time, and multiple virtual servers can simultaneously share a single server, increasing its utilization while receiving a resource guarantee that ensures that application layer performance criteria are met. %package -n libxen Summary: Libraries used by Xen Group: System/Libraries %description -n libxen With Xen virtualization, a thin software layer known as the Xen hypervisor is inserted between the server’s hardware and the operating system. This provides an abstraction layer that allows each physical server to run one or more “virtual servers,” effectively decoupling the operating system and its applications from the underlying physical server. Once a virtual server image has been created it can run on any server, at any time, and multiple virtual servers can simultaneously share a single server, increasing its utilization while receiving a resource guarantee that ensures that application layer performance criteria are met. This package contains the dynamic libraries used by Xen. %package -n libxen-devel Summary: Static libraries and header files for Xen Requires: libxen = %{version}-%{release} Group: Development/Libraries Provides: xen-devel Obsoletes: xen-devel %description -n libxen-devel With Xen virtualization, a thin software layer known as the Xen hypervisor is inserted between the server’s hardware and the operating system. This provides an abstraction layer that allows each physical server to run one or more “virtual servers,” effectively decoupling the operating system and its applications from the underlying physical server. Once a virtual server image has been created it can run on any server, at any time, and multiple virtual servers can simultaneously share a single server, increasing its utilization while receiving a resource guarantee that ensures that application layer performance criteria are met. This is the development package. %prep %setup -q %build %if "%{_target_cpu}" == "i586" XEN_TARGET_ARCH=x86_64 make %{_smp_mflags} CROSS_COMPILE=x86_64-openmamba-linux-gnu- xen %make tools docs %else %make xen tools docs %endif %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %if "%{_target_cpu}" == "i586" XEN_TARGET_ARCH=x86_64 make CROSS_COMPILE=x86_64-openmamba-linux-gnu- install-xen DESTDIR=%{buildroot} %else make install-xen DESTDIR=%{buildroot} %endif make install-tools install-docs DESTDIR=%{buildroot} install -D -m0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/grub.d/07_xen # enable xend-unix-server for virtual-manager echo "(xend-unix-server yes)" >> %{buildroot}%{_sysconfdir}/xen/xend-config.sxp install -d %{buildroot}%{_sysconfdir}/modules.d/ cat > %{buildroot}%{_sysconfdir}/modules.d/xen.conf << _EOF blkbk netbk netloop _EOF rm -f %{buildroot}%{_sysconfdir}/udev/xend.rules %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post %if "%{_target_cpu}" == "i586" if [ -x /usr/sbin/update-grub ]; then /usr/sbin/update-grub 2>/dev/null fi %endif : %post -n libxen -p /sbin/ldconfig %postun -n libxen -p /sbin/ldconfig %files %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/xend %{_sysconfdir}/bash_completion.d/xl.sh %{_sysconfdir}/grub.d/07_xen %{_sysconfdir}/init.d/xend %{_sysconfdir}/init.d/xendomains %{_sysconfdir}/sysconfig/xendomains %{_sysconfdir}/udev/rules.d/xen-backend.rules %{_sysconfdir}/udev/xen-backend.rules %{_sysconfdir}/udev/rules.d/xend.rules %dir %{_sysconfdir}/xen %{_sysconfdir}/xen/* %{_sysconfdir}/modules.d/xen.conf /boot/xen-%{version}.gz /boot/xen-%{majver}.gz /boot/xen-%{bigver}.gz /boot/xen.gz /boot/xen-syms-%{version} %{_bindir}/qemu-img-xen %{_bindir}/qemu-nbd-xen %{_bindir}/pygrub %{_bindir}/remus %{_bindir}/xen-detect %{_bindir}/xencons %{_bindir}/xenstore %{_bindir}/xenstore-chmod %{_bindir}/xenstore-control %{_bindir}/xenstore-exists %{_bindir}/xenstore-list %{_bindir}/xenstore-ls %{_bindir}/xenstore-read %{_bindir}/xenstore-rm %{_bindir}/xenstore-write %{_bindir}/xentrace %{_bindir}/xentrace_format %{_bindir}/xentrace_setsize %{_sbindir}/blktapctrl %{_sbindir}/flask-getenforce %{_sbindir}/flask-loadpolicy %{_sbindir}/flask-setenforce %{_sbindir}/fs-backend %{_sbindir}/gdbsx %{_sbindir}/gtracestat %{_sbindir}/gtraceview %{_sbindir}/img2qcow %{_sbindir}/lock-util %{_sbindir}/qcow-create %{_sbindir}/qcow2raw %{_sbindir}/tapdisk %{_sbindir}/tapdisk-client %{_sbindir}/tapdisk-diff %{_sbindir}/tapdisk-stream %{_sbindir}/tapdisk2 %{_sbindir}/td-util %{_sbindir}/vhd-update %{_sbindir}/vhd-util %{_sbindir}/xen-bugtool %{_sbindir}/xen-hvmctx %{_sbindir}/xen-tmem-list-parse %{_sbindir}/xen-python-path %{_sbindir}/xenbaked %{_sbindir}/xenconsoled %{_sbindir}/xend %{_sbindir}/xenlockprof %{_sbindir}/xenmon.py %{_sbindir}/xenpaging %{_sbindir}/xenperf %{_sbindir}/xenpm %{_sbindir}/xenpmd %{_sbindir}/xenstored %{_sbindir}/xentop %{_sbindir}/xentrace_setmask %{_sbindir}/xl %{_sbindir}/xm %{_sbindir}/xsview %{_mandir}/man1/*.gz %{_mandir}/man8/xentrace.8.gz %{_datadir}/xen/create.dtd %{_datadir}/xen/man/* %{_datadir}/xen/qemu/* %{_docdir}/xen/* %doc COPYING README %files -n libxen %defattr(-,root,root) %{_libdir}/fs/ext2fs-lib/fsimage.so %{_libdir}/fs/fat/fsimage.so %{_libdir}/fs/iso9660/fsimage.so %{_libdir}/fs/reiserfs/fsimage.so %{_libdir}/fs/ufs/fsimage.so %{_libdir}/fs/zfs/fsimage.so %{_libdir}/libblktap.so.* %{_libdir}/libflask.so.* %{_libdir}/libfsimage.so.* %{_libdir}/libvhd.so.* %{_libdir}/libxenctrl.so.* %{_libdir}/libxenguest.so.* %{_libdir}/libxenlight.so.* %{_libdir}/libxenstore.so.* %{_libdir}/libxlutil.so.* %dir %{_libdir}/xen %dir %{_libdir}/xen/bin %dir %{_libdir}/xen/boot %{_libdir}/xen/bin/* %{_libdir}/xen/boot/hvmloader %{python_sitearch}/xen/* %{python_sitearch}/fsimage.so %{python_sitearch}/grub/* %{python_sitearch}/pygrub-*.egg-info %{python_sitearch}/xen-*.egg-info %files -n libxen-devel %defattr(-,root,root) %{_includedir}/* %{_libdir}/libblktap.a %{_libdir}/libblktap.so %{_libdir}/libflask.a %{_libdir}/libflask.so %{_libdir}/libfsimage.so %{_libdir}/libvhd.a %{_libdir}/libvhd.so %{_libdir}/libxenctrl.a %{_libdir}/libxenctrl.so %{_libdir}/libxenguest.a %{_libdir}/libxenguest.so %{_libdir}/libxenlight.a %{_libdir}/libxenlight.so %{_libdir}/libxenstore.a %{_libdir}/libxenstore.so %{_libdir}/libxlutil.a %{_libdir}/libxlutil.so %changelog * Thu Jan 13 2011 Silvan Calarco 4.0.1-2mamba - rebuilt with xz 5.0.0 * Thu Sep 02 2010 Automatic Build System 4.0.1-1mamba - automatic update to 4.0.1 by autodist * Tue Jun 22 2010 Silvan Calarco 4.0.0-2mamba - added libxen and libxen-devel (replacing xen-devel) subpackages - added pluggable module loading file for blkbk, netbk and netloop - xend-config.sxp: configure unix-server for virtual-manager * Fri Apr 09 2010 Silvan Calarco 4.0.0-1mamba - update to 4.0.0 - added configuration file for grub 2 * Mon Mar 08 2010 Automatic Build System 3.4.2-1mamba - automatic update to 3.4.2 by autodist * Sat Mar 06 2010 Silvan Calarco 3.4.1-2mamba - added build of xen hypervisor (x86_64) and docs * Fri Mar 05 2010 Silvan Calarco 3.4.1-1mamba - update to 3.4.1 * Fri Jun 22 2007 Silvan Calarco src-1mamba - package created by autospec