Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37536865
en ru br
Репозитории ALT
4.1: 3.2.1-alt1
4.0: 3.1.4-alt1.M40.1
www.altlinux.org/Changes

Группа :: Эмуляторы
Пакет: xen

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 


Name: xen
Version: 3.1.4
Release: alt1.M40.1

Summary: Xen is a Virtual Machine Monitor
Group: Emulators
License: GPL
Url: http://www.cl.cam.ac.uk/Research/SRG/netos/xen/

Source0: %name-%version.tar.bz2
# list of files and directories are removed from kernel-source-xen
Source1: %name-3.0.3-alt-exclude

#Patch1: %name-3.0.3-alt-remove-lsb.patch

#Patch2: %name-3.0.4-alt-python.patch
#Patch3: %name-3.0.3-alt-mkbuildtree-fix.patch
#Patch4: %name-3.0.3-alt-vnc.patch
#Patch5: %name-3.0.4-alt-build.patch
#Patch6: %name-%version-alt-stub.patch
#Patch7: %name-%version-alt-config.patch
#Patch6: %name-%version-alt-fix-bridge-start.patch

#Packager: XEN Maintainers Team <xen at packages.altlinux.org>

Packager: Michail Yakushin <silicium at altlinux.ru>
# Automatically added by buildreq on Tue Mar 14 2006
BuildRequires: dev86 esound-devel ghostscript-classic ghostscript-common ghostscript-module-X ghostscript-utils latex2html libSDL-devel libX11-devel libXext-devel libalsa-devel libaudiofile-devel libe2fs-devel libgimp-print libjpeg-devel libncurses-devel libtinfo-devel libvncserver-devel netpbm perl-DBM python-base python-dev python-modules-compiler python-modules-encodings python-modules-logging python-modules-libxml2 tetex-core tetex-dvips tetex-latex transfig urw-fonts xorg-x11-proto-devel zlib-devel libxml2-devel libssl-devel

BuildPreReq: kernel-build-tools glib2-devel

Requires: bridge-utils python-module-xen xen-hypervisor >= %version-%release
Requires: libxen >= %version-%release
Requires: python-module-xen >= %version-%release

%description
Xen is a Virtual Machine Monitor (VMM) originally developed by the
Systems Research Group of the University of Cambridge Computer
Laboratory, as part of the UK-EPSRC funded XenoServers project.
Xen is freely-distributable Open Source software, released under the
GNU GPL.

%package -n python-module-xen
Summary: Python binding's for XEN
Group: System/Libraries

%description -n python-module-xen
Xen is a Virtual Machine Monitor (VMM) originally developed by the
Systems Research Group of the University of Cambridge Computer
Laboratory, as part of the UK-EPSRC funded XenoServers project.
Xen is freely-distributable Open Source software, released under the
GNU GPL.

This package contains python binding's for XEN.

%package -n python-module-grub
Summary: python-module-grub
Group: System/Libraries

%description -n python-module-grub
python-module-grub

%package -n lib%name
Summary: Shared libraries for XEN
Group: System/Libraries
#Provides: /usr/lib/xen/bin/qemu-dm
%ifarch x86_64
Provides: libfsimage.so.1.0(libfsimage.so.1.0)(64bit)
%endif
%ifarch i586
Provides:  libfsimage.so.1.0(libfsimage.so.1.0)
%endif

%description -n lib%name
Xen is a Virtual Machine Monitor (VMM) originally developed by the
Systems Research Group of the University of Cambridge Computer
Laboratory, as part of the UK-EPSRC funded XenoServers project.
Xen is freely-distributable Open Source software, released under the
GNU GPL.

This package contains the XEN shared libraries.

%package -n lib%name-devel
Summary: Development files for XEN
Group: Development/C

Requires: lib%name = %version

%description -n lib%name-devel
Xen is a Virtual Machine Monitor (VMM) originally developed by the
Systems Research Group of the University of Cambridge Computer
Laboratory, as part of the UK-EPSRC funded XenoServers project.
Xen is freely-distributable Open Source software, released under the
GNU GPL.

This package contains the XEN include files and development libraries
required when building applications which are going to use XEN shared
libraries.

%package -n lib%name-devel-static
Summary: Static libraries for lib%name
Group: Development/C

Requires: lib%name-devel = %version

%description -n lib%name-devel-static
Xen is a Virtual Machine Monitor (VMM) originally developed by the
Systems Research Group of the University of Cambridge Computer
Laboratory, as part of the UK-EPSRC funded XenoServers project.
Xen is freely-distributable Open Source software, released under the
GNU GPL.

This package contains the XEN static libraries.

%package docs
Summary: Documentation for XEN
Group: Books/Computer books

%description docs
Xen is a Virtual Machine Monitor (VMM) originally developed by the
Systems Research Group of the University of Cambridge Computer
Laboratory, as part of the UK-EPSRC funded XenoServers project.
Xen is freely-distributable Open Source software, released under the
GNU GPL.

This package contains the XEN documentation in PostScript and PDF
formats.



%package hypervisor
Group: System/Kernel and hardware
Summary: Xen itself

%description hypervisor
Main part of xen.

%prep
%setup -q
#patch1 -p1
#patch2 -p2
#patch3 -p1
#patch4 -p1
#patch5 -p2
#patch6 -p2
#%patch7 -p1
%build
# ugly hack for building python binding's // begin
pushd tools/libxc
%make_build
popd

pushd tools/xenstore
%make_build
popd

pushd tools/xcutils
%make_install
popd

# ugly hack for building python binding's // end


pushd tools/libfsimage
%make_build
popd
# build python binding's for xen // begin
pushd tools/python

%__mkdir_p build

# Unfortunately build and install steps should be done at once

# because otherwise .pyo files won't get into INSTALLED_FILES
# record
%make_build
CFLAGS="%optflags" %__python setup.py \
install --optimize=2 \
--root=`pwd`/build \
--record=../../INSTALLED_FILES
popd

pushd tools/pygrub

%__mkdir_p build

CFLAGS="%optflags" %__python setup.py \
install --optimize=2 \
--root=`pwd`/build \
--record=../../INSTALLED_FILES_GRUB
popd

# build python binding's for xen // end


%make_build xen tools docs

%install
# install python binding's for xen // begin
pushd tools/python/
%__mkdir_p %buildroot/usr
%__cp -pr build/usr/* %buildroot/usr
popd

pushd tools/pygrub/
%__cp -pr build/usr/* %buildroot/usr
popd

# install python binding's for xen // end


# install all other tools

%make_install install-xen install-tools install-docs DESTDIR=%buildroot

pushd tools/examples
%make_install install-udev install-hotplug DESTDIR=%buildroot
popd

#fix

%__mkdir_p %buildroot{%kernel_src,%_sysconfdir/rc.d}
%__cp -r dist/install/etc/hotplug %buildroot%_sysconfdir/hotplug
%__cp -r %buildroot%_sysconfdir/init.d %buildroot%_sysconfdir/rc.d/init.d
%__mv -f %buildroot%_sysconfdir/udev/xen-backend.rules %buildroot%_sysconfdir/udev/rules.d/

rm %buildroot%_man1dir/qemu-img.1
rm %buildroot%_man1dir/qemu.1


%postun -n lib%name
%postun_ldconfig



%files
%config(noreplace) %_sysconfdir/xen
%config(noreplace) %_sysconfdir/rc.d/init.d/*
%config(noreplace) %_sysconfdir/hotplug/*
%config(noreplace) %_sysconfdir/sysconfig/*
%config(noreplace) %_sysconfdir/udev/rules.d/*
%_bindir/*
%_sbindir/*
%_man1dir/*
%_man8dir/*
%_datadir/xen/*
/var/lib/xenstored
/var/run/xenstored
/var/log/xen
%exclude %_libdir/python2.4
%exclude /etc/init.d

%files hypervisor
/boot/*

%files -n python-module-xen -f INSTALLED_FILES
%_libdir/python/xen
   
%files -n python-module-grub -f INSTALLED_FILES_GRUB
%_libdir/python/grub
%_libdir/python/*.so*

%files -n lib%name
%_libdir/lib*.so*
%_libdir/xen
%_libdir/fs
%ifarch x86_64
   /usr/lib/xen/boot/hvmloader
%endif
   

%files -n lib%name-devel
%_includedir/*.h
%dir %_includedir/xen/
%_includedir/xen/*

%files -n lib%name-devel-static
%_libdir/lib*.a

%files docs
%doc %_datadir/doc/xen/*


%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin