2 # - pldized init scripts
4 Summary: Xen - a virtual machine monitor
5 Summary(pl): Xen - monitor maszyny wirtualnej
10 Group: Applications/System
12 Source0: http://www.cl.cam.ac.uk/Research/SRG/netos/xen/downloads/%{name}-%{version}-src.tgz
13 # Source0-md5: ce09744be2b34ad6ffd8eb15dae2eb1f
14 Source1: %{name}-xend.init
15 Source2: %{name}-xendomains.init
16 Patch0: %{name}-twisted.patch
17 Patch1: %{name}-scripts.patch
18 URL: http://www.cl.cam.ac.uk/Research/SRG/netos/xen/index.html
19 BuildRequires: XFree86-devel
20 BuildRequires: curl-devel
21 BuildRequires: libidn-devel
22 BuildRequires: ncurses-devel
23 BuildRequires: python-Twisted
24 BuildRequires: python-devel
25 BuildRequires: rpm-pythonprov
26 BuildRequires: tetex-dvips
27 BuildRequires: tetex-format-latex
28 BuildRequires: tetex-latex-psnfss
29 BuildRequires: transfig
31 BuildRequires: zlib-devel
32 Requires: ZopeInterface
33 Requires: bridge-utils
35 Requires: python-TwistedWeb
36 ExclusiveArch: %{ix86}
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 This package contains the Xen hypervisor and Xen tools, needed to run
41 virtual machines on x86 systems, together with the kernel-xen*
42 packages. Information on how to use Xen can be found at the Xen
45 Virtualisation can be used to run multiple versions or multiple Linux
46 distributions on one system, or to test untrusted applications in a
47 sandboxed environment. Note that the Xen technology is still in
48 development, and this RPM has received extremely little testing. Don't
49 be surprised if this RPM eats your data, drinks your coffee or makes
50 fun of you in front of your friends.
53 Ten pakiet zawiera nadzorcê oraz narzêdzia Xen, potrzebne do
54 uruchamiania wirtualnych maszyn w systemach x86, wraz z pakietami
55 kernel-xen*. Informacje jak u¿ywaæ Xena mo¿na znale¼æ na stronach
58 Wirtualizacja mo¿e byæ u¿ywana do uruchamiania wielu wersji lub wielu
59 dystrybucji Linuksa na jednym systemie lub do testowania nie zaufanych
60 aplikacji w odizolowanym ¶rodowisku. Nale¿y zauwa¿yæ, ¿e technologia
61 Xen jest ci±gle rozwijana, a ten RPM by³ s³abo testowany. Nie nale¿y
62 byæ zdziwionym, je¶li ten pakiet zje dane, wypije ca³± kawê czy bêdzie
63 siê wy¶miewa³ w obecno¶ci przyjació³.
66 Summary: Header files for xen
67 Summary(pl): Pliki nag³ówkowe xena
68 Group: Development/Libraries
69 Requires: %{name} = %{epoch}:%{version}-%{release}
74 %description devel -l pl
75 Pliki nag³ówkowe xena.
78 Summary: Static xen libraries
79 Summary(pl): Statyczne biblioteki xena
80 Group: Development/Libraries
81 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
86 %description static -l pl
87 Statyczne biblioteki xena.
90 Summary: Xen documentation
91 Summary(pl): Dokumentacja xena
92 Group: Applications/System
93 Requires: %{name} = %{epoch}:%{version}-%{release}
98 %description doc -l pl
102 %setup -q -n %{name}-2.0
106 #echo 'CXXFLAGS+=-I/usr/include/ncurses' >> tools/ioemu/gui/Makefile
109 CFLAGS="%{rpmcflags}" \
110 CXXFLAGS="%{rpmcflags}" \
111 %{__make} xen tools docs \
116 rm -rf $RPM_BUILD_ROOT
118 %{__make} install-xen install-tools install-docs \
119 DESTDIR=$RPM_BUILD_ROOT
121 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
122 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/xend
123 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/xendomains
125 install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/xend-db/{domain,vnet}
127 #install -d $RPM_BUILD_ROOT%{_mandir}
128 #cp -a $RPM_BUILD_ROOT%{_prefix}/man/* $RPM_BUILD_ROOT%{_mandir}
130 #install -d doc-html-install/{interface,user}
131 #cp -a docs/html/interface/*.{png,html,css} doc-html-install/interface
132 #cp -a docs/html/user/*.{png,html,css} doc-html-install/user
134 rm -f $RPM_BUILD_ROOT%{_includedir}/%{name}/COPYING
136 %{py_comp} $RPM_BUILD_ROOT%{_libdir}/python
137 %{py_ocomp} $RPM_BUILD_ROOT%{_libdir}/python
138 find $RPM_BUILD_ROOT%{_libdir}/python -name '*.py' -exec rm "{}" ";"
140 install -d $RPM_BUILD_ROOT%{_datadir}/xen/
141 cp -f $RPM_BUILD_ROOT%{_datadir}/doc/xen/pdf/*.pdf $RPM_BUILD_ROOT%{_datadir}/xen/
143 install -d $RPM_BUILD_ROOT%{_sharedstatedir}/xen
144 install -d $RPM_BUILD_ROOT%{_sharedstatedir}/xen/{sv,xend-db}
145 install -d $RPM_BUILD_ROOT%{_sharedstatedir}/xen/xend-db/{domain,vnet,migrate}
148 rm -rf $RPM_BUILD_ROOT
152 /sbin/chkconfig --add xend
153 /sbin/chkconfig --add xendomains
155 %postun -p /sbin/ldconfig
158 if [ "$1" = "0" ]; then
159 # if [ -f /var/lock/subsys/xend ]; then
160 # /etc/rc.d/init.d/xend stop 1>&2
162 /sbin/chkconfig --del xend
163 # if [ -f /var/lock/subsys/xendomains ]; then
164 # /etc/rc.d/init.d/xendomains stop 1>&2
166 /sbin/chkconfig --del xendomains
170 %defattr(644,root,root,755)
171 #%doc COPYING ChangeLog README docs/misc/* doc-html-install/*
172 %doc COPYING ChangeLog README docs/misc/*
173 /boot/%{name}-syms-%{version}
174 /boot/%{name}-%{version}.gz
176 %attr(754,root,root) /etc/rc.d/init.d/*
177 %dir %{_sysconfdir}/xen
178 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/*.*
179 #%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/b*
180 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/xmexample[12]
181 %dir %{_sysconfdir}/xen/auto
182 %dir %{_sysconfdir}/xen/scripts
183 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/scripts/*
184 %attr(755,root,root) %{_bindir}/*
185 %attr(755,root,root) %{_sbindir}/*
186 %attr(755,root,root) %{_libdir}/lib*.so.*
187 %{_libdir}/python/%{name}
188 %attr(755,root,root) %{_libdir}/python/%{name}/lowlevel/*.so
190 %dir %{_sharedstatedir}/xen
191 %dir %{_sharedstatedir}/xen/sv
192 %dir %{_sharedstatedir}/xen/xend-db
193 %dir %{_sharedstatedir}/xen/xend-db/domain
194 %dir %{_sharedstatedir}/xen/xend-db/vnet
195 %dir %{_sharedstatedir}/xen/xend-db/migrate
198 %defattr(644,root,root,755)
199 %attr(755,root,root) %{_libdir}/lib*.so
203 %defattr(644,root,root,755)
207 %defattr(644,root,root,755)
209 %{_datadir}/xen/*.pdf