]> git.pld-linux.org Git - packages/xen.git/blobdiff - xen.spec
- download stubdown sources to distfiles
[packages/xen.git] / xen.spec
index 5dc158650c9943c2f68ecc41eff27c60a38e187e..302504b146a981253e7960a54e7d2197fcc389c2 100644 (file)
--- a/xen.spec
+++ b/xen.spec
@@ -1,35 +1,40 @@
 #
-# NOTE:
-# - this xen-3.3.0 kernel and userspace
-#   if you are looking for xen-3.0.2 (kernel.spec:LINUX_2_6_16), checkout
-#   this spec from XEN_3_0_2 branch
-# - you will also need dom0 enabled kernel
-#
 # TODO:
-# - pldized init scripts
-# - script for rc-boot
-# - %%build fails on i686
+#  - most of the qemu config options aren't detected (curses, NPTL, vde, fdt)
+#  - package the ocaml stuff
 #
 # Conditional build:
-%bcond_with    pae             # build with PAE (HIGHMEM64G) support
-%bcond_with    hvm             # build with hvm (full virtualization) support
-#
-%define                major   3.4
-%define                minor   3
+%bcond_without hvm             # build with hvm (full virtualization) support
+
+%define        xen_extfiles_url        http://xenbits.xensource.com/xen-extfiles
 Summary:       Xen - a virtual machine monitor
 Summary(pl.UTF-8):     Xen - monitor maszyny wirtualnej
 Name:          xen
-Version:       %{major}.%{minor}
-Release:       0.1
+Version:       4.1.2
+Release:       0.2
 License:       GPL
 Group:         Applications/System
 Source0:       http://bits.xensource.com/oss-xen/release/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: f8d001eb9e08525c451d38deb93908b1
+# Source0-md5: 73561faf3c1b5e36ec5c089b5db848ad
 Source1:       %{name}-xend.init
 Source2:       %{name}-xendomains.init
+# used by stubdoms
+Source10: %{xen_extfiles_url}/lwip-1.3.0.tar.gz
+# Source10-md5:        36cc57650cffda9a0269493be2a169bb
+Source11: %{xen_extfiles_url}/newlib-1.16.0.tar.gz
+# Source11-md5:        bf8f1f9e3ca83d732c00a79a6ef29bc4
+Source12: %{xen_extfiles_url}/zlib-1.2.3.tar.gz
+# Source12-md5:        debc62758716a169df9f62e6ab2bc634
+Source13: %{xen_extfiles_url}/pciutils-2.2.9.tar.bz2
+# Source13-md5:        cec05e7785497c5e19da2f114b934ffd
+Source14: %{xen_extfiles_url}/grub-0.97.tar.gz
+# Source14-md5:        cd3f3eb54446be6003156158d51f4884
+Source15: %{xen_extfiles_url}/ipxe-git-v1.0.0.tar.gz
+# Source15-md5:        fb7df96781d337899066d82059346885
 Patch0:                %{name}-python_scripts.patch
-Patch1:                %{name}-gcc.patch
-Patch2:                %{name}-symbols.patch
+Patch1:                %{name}-symbols.patch
+Patch2:                %{name}-curses.patch
+Patch3:                %{name}-gcc.patch
 URL:           http://www.cl.cam.ac.uk/Research/SRG/netos/xen/index.html
 BuildRequires: SDL-devel
 %{?with_hvm:BuildRequires:     bcc}
@@ -45,7 +50,7 @@ BuildRequires:        pkgconfig
 BuildRequires: python-devel
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.268
-BuildRequires: texlive-dvips
+#BuildRequires:        texlive-dvips
 #BuildRequires:        texlive-latex-data
 BuildRequires: texlive-latex-psnfss
 BuildRequires: transfig
@@ -74,10 +79,6 @@ BuildRoot:   %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 # some PPC/SPARC boot image in ELF format
 %define         _noautostrip    .*%{_datadir}/xen/qemu/openbios-.*
 
-%ifnarch i686 athlon pentium3 pentium4
-%undefine      with_pae
-%endif
-
 %description
 This package contains the Xen hypervisor and Xen tools, needed to run
 virtual machines on x86 systems, together with the kernel-xen*
@@ -92,17 +93,17 @@ be surprised if this RPM eats your data, drinks your coffee or makes
 fun of you in front of your friends.
 
 %description -l pl.UTF-8
-Ten pakiet zawiera nadzorc?? oraz narz??dzia Xen, potrzebne do
+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
+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
+Wirtualizacja może być używana do uruchamiania wielu wersji lub wielu
 dystrybucji Linuksa na jednym systemie lub do testowania 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????.
+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 libs
 Summary:       xen libraries
@@ -117,7 +118,7 @@ Biblioteki xena.
 
 %package devel
 Summary:       Header files for xen
-Summary(pl.UTF-8):     Pliki nag????wkowe xena
+Summary(pl.UTF-8):     Pliki nagłówkowe xena
 Group:         Development/Libraries
 Requires:      %{name}-libs = %{version}-%{release}
 
@@ -125,7 +126,7 @@ Requires:   %{name}-libs = %{version}-%{release}
 Header files for xen.
 
 %description devel -l pl.UTF-8
-Pliki nag????wkowe xena.
+Pliki nagłówkowe xena.
 
 %package static
 Summary:       Static xen libraries
@@ -139,17 +140,6 @@ Static xen libraries.
 %description static -l pl.UTF-8
 Statyczne biblioteki xena.
 
-%package hotplug
-Summary:       xen hotplug scripts
-Summary(pl.UTF-8):     Skrypty hotplug dla xena
-Group:         Applications/System
-
-%description hotplug
-xen hotplug scripts.
-
-%description hotplug -l pl.UTF-8
-Skrypty hotplug dla xena.
-
 %package udev
 Summary:       xen udev scripts
 Summary(pl.UTF-8):     Skrypty udev dla xena
@@ -161,9 +151,20 @@ xen udev scripts.
 %description udev -l pl.UTF-8
 Skrypty udev dla xena.
 
+%package xend
+Summary:       xend daemon
+Summary(pl.UTF-8):     Demon xend
+Group:         Daemons
+
+%description xend
+xend daemon.
+
+%description xend -l pl.UTF-8
+Demon xend.
+
 %package -n python-xen
 Summary:       xen Python modules
-Summary(pl.UTF-8):     Modu??y Pythona dla xena
+Summary(pl.UTF-8):     Moduły Pythona dla xena
 Group:         Libraries
 Conflicts:     xen < 3.2.1-0.3
 
@@ -171,80 +172,90 @@ Conflicts:        xen < 3.2.1-0.3
 xen Python modules.
 
 %description -n python-xen -l pl.UTF-8
-Modu??y Pythona dla xena.
+Moduły Pythona dla xena.
+
+%package -n bash-completion-%{name}
+Summary:    bash-completion for xen
+Group:      Applications/Shells
+Requires:   %{name} = %{version}-%{release}
+Requires:   bash-completion
+
+%description -n bash-completion-%{name}
+This package provides bash-completion for xen.
 
 %prep
 %setup -q
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+#%%patch3 -p1
+
+%{__rm} -v tools/check/*.orig
 
-find '(' -name '*~' -o -name '*.orig' -o -name '.gitignore' ')' -print0 | xargs -0 -r -l512 rm -fv
+# stubdom sources
+ln -s %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} stubdom
+ln -s %{PATCH23} stubdom/grub.patches/99grub-ext4-support.patch
+ln -s %{SOURCE15} tools/firmware/etherboot/ipxe.tar.gz
 
 %build
 CFLAGS="%{rpmcflags} -I/usr/include/ncurses" \
 CXXFLAGS="%{rpmcflags} -I/usr/include/ncurses" \
 %{__make} -j1 xen tools \
-       %{?with_pae:XEN_TARGET_X86_PAE=y} \
        CC="%{__cc}" \
        CXX="%{__cxx}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/var/run/{xen-hotplug,xend,xenstored}
+install -d $RPM_BUILD_ROOT/etc/xen/examples
 
-%{__make} install-xen install-tools install-docs \
+%{__make} install-xen install-tools install-stubdom install-docs \
        CC="%{__cc}" \
        CXX="%{__cxx}" \
-       %{?with_pae:XEN_TARGET_X86_PAE=y} \
-       DESTDIR=$RPM_BUILD_ROOT \
-       XEN_PYTHON_NATIVE_INSTALL=1
+       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
+mv $RPM_BUILD_ROOT/etc/xen/{xmexample*,examples}
 
-install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/xend-db/{domain,vnet}
-install -d $RPM_BUILD_ROOT%{_sharedstatedir}/xen/save
-
-cp -a dist/install/etc/udev $RPM_BUILD_ROOT%{_sysconfdir}
-cp -a dist/install/etc/hotplug $RPM_BUILD_ROOT%{_sysconfdir}
+cp -p tools/blktap/README{,.blktap}
+cp -p tools/xenmon/README{,.xenmon}
 
 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
 
 %py_postclean
+
 # remove unneeded files
-rm -f $RPM_BUILD_ROOT%{_includedir}/%{name}/COPYING
-rm -rf $RPM_BUILD_ROOT%{_docdir}/xen
-rm -rf $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-doc.html
-rm -rf $RPM_BUILD_ROOT/''etc/init.d
-rm -f $RPM_BUILD_ROOT/boot/xen-3.2.gz
-rm -f $RPM_BUILD_ROOT/boot/xen-3.4.gz
-rm -f $RPM_BUILD_ROOT/boot/xen-3.gz
-# # strip - Unable to recognise the format of the input file
-# rm -f $RPM_BUILD_ROOT%{_datadir}/xen/qemu/openbios-sparc32
-# rm -f $RPM_BUILD_ROOT%{_datadir}/xen/qemu/openbios-sparc64
-
-
-# conflict with qemu
-rm -f $RPM_BUILD_ROOT%{_mandir}/man1/qemu-img.1
-rm -f $RPM_BUILD_ROOT%{_mandir}/man1/qemu.1
+%{__rm} $RPM_BUILD_ROOT/boot/xen-4.1.gz
+%{__rm} $RPM_BUILD_ROOT/boot/xen-4.gz
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/xen
+%{__rm} $RPM_BUILD_ROOT%{_includedir}/%{name}/COPYING
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/sbin/chkconfig --add xend
+/sbin/chkconfig --add xen-watchdog
+/sbin/chkconfig --add xencommons
 /sbin/chkconfig --add xendomains
 
 %preun
 if [ "$1" = "0" ]; then
-       %service xend stop
-       /sbin/chkconfig --del xend
-
        %service xendomains stop
        /sbin/chkconfig --del xendomains
+
+       %service xencommons stop
+       /sbin/chkconfig --del xencommons
+
+       %service xen-watchdog stop
+       /sbin/chkconfig --del xen-watchdog
+fi
+
+%post  xend
+/sbin/chkconfig --add xend
+
+%preun xend
+if [ "$1" = "0" ]; then
+       %service xend stop
+       /sbin/chkconfig --del xend
 fi
 
 %post  libs -p /sbin/ldconfig
@@ -252,23 +263,31 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%doc COPYING README docs/misc/*
+%doc COPYING README* docs/misc/* 
 %doc docs/html/*
+%doc tools/blktap/README.blktap tools/xenmon/README.xenmon
+%doc tools/ioemu-dir/*.html
 /boot/%{name}-syms-%{version}
 /boot/%{name}-%{version}.gz
 /boot/%{name}.gz
-%attr(754,root,root) /etc/rc.d/init.d/*
+%attr(754,root,root) /etc/rc.d/init.d/xen-watchdog
+%attr(754,root,root) /etc/rc.d/init.d/xencommons
+%attr(754,root,root) /etc/rc.d/init.d/xendomains
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/*
 %dir %{_sysconfdir}/xen
-%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/qemu-ifup
-%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/README
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/xmexample[123]
 %dir %{_sysconfdir}/xen/auto
+%dir %{_sysconfdir}/xen/examples
 %dir %{_sysconfdir}/xen/scripts
 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/scripts/*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/examples/*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/README*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/cpupool
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/xl.conf
 %attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_sbindir}/*
+%attr(755,root,root) %{_sbindir}/[bfgikloqtv]*
+%attr(755,root,root) %{_sbindir}/xen??*
+%attr(755,root,root) %{_sbindir}/xl
+%attr(755,root,root) %{_sbindir}/xsview
 %dir %{_libdir}/%{name}
 %dir %{_libdir}/%{name}/bin
 %attr(744,root,root) %{_libdir}/%{name}/bin/*
@@ -281,8 +300,6 @@ fi
 %{_mandir}/man?/*
 %{_sharedstatedir}/xen
 %{_sharedstatedir}/xenstored
-%dir /var/run/xen-hotplug
-%dir %attr(700,root,root) /var/run/xend
 %dir /var/run/xenstored
 
 %files libs
@@ -306,14 +323,19 @@ fi
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
 
-%files hotplug
-%defattr(644,root,root,755)
-%attr(755,root,root) /etc/hotplug/*
-
 %files udev
 %defattr(644,root,root,755)
 %config(noreplace) %verify(not md5 mtime size) /etc/udev/*
 
+%files xend
+%defattr(644,root,root,755)
+%attr(754,root,root) %{_sysconfdir}/rc.d/init.d/xend
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/xm*
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/xend*
+%attr(755,root,root) %{_sbindir}/xend
+%attr(755,root,root) %{_sbindir}/xm
+%dir %attr(700,root,root) /var/run/xend
+
 %files -n python-xen
 %defattr(644,root,root,755)
 %attr(755,root,root) %{py_sitedir}/fsimage.so
@@ -322,6 +344,7 @@ fi
 %dir %{py_sitedir}/xen/lowlevel
 %{py_sitedir}/xen/lowlevel/*.py*
 %attr(755,root,root) %{py_sitedir}/xen/lowlevel/*.so
+%{py_sitedir}/xen/remus
 %{py_sitedir}/xen/sv
 %{py_sitedir}/xen/util
 %{py_sitedir}/xen/web
@@ -332,3 +355,7 @@ fi
 %if "%{py_ver}" > "2.4"
 %{py_sitedir}/*.egg-info
 %endif
+
+%files -n bash-completion-%{name}
+%defattr(644,root,root,755)
+/etc/bash_completion.d/*
This page took 0.043295 seconds and 4 git commands to generate.