# TODO: # - pldized init scripts # - script for rc-boot Summary: Xen - a virtual machine monitor Summary(pl): Xen - monitor maszyny wirtualnej Name: xen Version: 2 Epoch: 0 Release: 0.20050329.1 Group: Development/Libraries License: GPL Source0: http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/%{name}-unstable-src.tgz # Source0-md5: 07b260048dda6d4367754366138d49ab Source1: %{name}-xend.init Source2: %{name}-xendomains.init URL: http://sourceforge.net/projects/xen/ BuildRequires: curl-devel BuildRequires: python-devel BuildRequires: python-Twisted BuildRequires: bridge-utils BuildRequires: transfig BuildRequires: libidn-devel BuildRequires: zlib-devel BuildRequires: X11-devel BuildRequires: ncurses-devel ExclusiveArch: %{ix86} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This package contains the Xen hypervisor and Xen tools, needed to run virtual machines on x86 systems, together with the kernel-xen* packages. Information on how to use Xen can be found at the Xen project pages. Virtualisation can be used to run multiple versions or multiple Linux distributions on one system, or to test untrusted applications in a sandboxed environment. Note that the Xen technology is still in development, and this RPM has received extremely little testing. Don't be surprised if this RPM eats your data, drinks your coffee or makes fun of you in front of your friends. %description -l pl Ten pakiet zawiera nadzorcę oraz narzędzia Xen, potrzebne do uruchamiania wirtualnych maszyn w systemach x86, wraz z pakietami kernel-xen*. Informacje jak używać Xena można znaleźć na stronach projektu. Wirtualizacja może być używana do uruchamiania wielu wersji lub wielu dystrybucji Linuksa na jednym systemie lub do testowaania nie zaufanych aplikacji w odizolowanym środowisku. Należy zauważyć, że technologia Xen jest ciągle rozwijana, a ten RPM był słabo testowany. Nie należy być zdziwionym, jeśli ten pakiet zje dane, wypije całą kawę czy będzie się wyśmiewał w obecności przyjaciół. %package devel Summary: Header files and develpment documentation for xen. Group: Development/Libraries Requires: %{name} = %{epoch}:%{version}-%{release} %description devel Header files and develpment documentation for xen. %package static Summary: Static xen libraries Group: Development/Libraries Requires: %{name}-devel = %{epoch}:%{version}-%{release} %description static Static xen libraries. %prep %setup -q -n xen-unstable chmod -R u+w . echo 'CXXFLAGS+=-I/usr/include/ncurses' >> tools/ioemu/gui/Makefile %build CFLAGS="%{rpmcflags}" \ CXXFLAGS="%{rpmcflags}" \ %{__make} xen tools docs \ CC="%{__cc}" \ CXX="%{__cxx}" %install rm -rf $RPM_BUILD_ROOT %{__make} install-xen install-tools install-docs \ DESTDIR=$RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/etc/rc.d/init.d install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/xend install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/xendomains install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/xend-db/{domain,vnet} install -d $RPM_BUILD_ROOT%{_mandir} cp -a $RPM_BUILD_ROOT%{_prefix}/man/* $RPM_BUILD_ROOT%{_mandir} install -d doc-html-install/{interface,user} cp -a docs/html/interface/*.{png,html,css} doc-html-install/interface cp -a docs/html/user/*.{png,html,css} doc-html-install/user rm -f $RPM_BUILD_ROOT%{_includedir}/%{name}/COPYING %{py_comp} $RPM_BUILD_ROOT%{_libdir}/python %{py_ocomp} $RPM_BUILD_ROOT%{_libdir}/python find $RPM_BUILD_ROOT%{_libdir}/python -name '*.py' -exec rm "{}" ";" %clean rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig /sbin/chkconfig --add xend /sbin/chkconfig --add xendomains %postun -p /sbin/ldconfig %preun if [ "$1" = "0" ]; then # if [ -f /var/lock/subsys/xend ]; then # /etc/rc.d/init.d/xend stop 1>&2 # fi /sbin/chkconfig --del xend # if [ -f /var/lock/subsys/xendomains ]; then # /etc/rc.d/init.d/xendomains stop 1>&2 # fi /sbin/chkconfig --del xendomains fi %files %defattr(644,root,root,755) %doc COPYING ChangeLog README docs/misc/* doc-html-install/* /boot/%{name}-syms /boot/%{name}.gz %attr(754,root,root) /etc/rc.d/init.d/* %dir %{_sysconfdir}/xen %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/*.* %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/b* %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/xmexample[12] %dir %{_sysconfdir}/xen/auto %dir %{_sysconfdir}/xen/scripts %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/scripts/* %attr(755,root,root) %{_bindir}/* %attr(755,root,root) %{_sbindir}/* %attr(755,root,root) %{_libdir}/lib*.so.* %{_libdir}/python/%{name} %attr(755,root,root) %{_libdir}/python/%{name}/lowlevel/*.so %{_mandir}/man?/* %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/lib*.so %{_includedir}/* %files static %defattr(644,root,root,755) %{_libdir}/lib*.a