]> git.pld-linux.org Git - packages/xen.git/blame - xen.spec
- seems for me fails too to commit directly to branch:
[packages/xen.git] / xen.spec
CommitLineData
2f3b83cd
AG
1#
2# NOTE:
3# - this is userspace for xen-3.2.0 (provided by kernel-xen.spec)
4# if you are looking for xen-3.0.2 (kernel.spec:LINUX_2_6_16), checkout
5# this spec from XEN_3_0_2 branch
6#
403a0e9f
AM
7# TODO:
8# - pldized init scripts
f44888a4 9# - script for rc-boot
b650a78f
JK
10#
11# Conditional build:
87ceed68 12%bcond_with pae # build with PAE (HIGHMEM64G) support
9233bca4 13%bcond_with hvm # build with hvm (full virtualization) support
b650a78f 14#
fc7816dc
ER
15%define major 3.2
16%define minor 1
adbb6385 17Summary: Xen - a virtual machine monitor
a1a3c257 18Summary(pl.UTF-8): Xen - monitor maszyny wirtualnej
fda6847b 19Name: xen
fc7816dc 20Version: %{major}.%{minor}
8e6e2740 21Release: 0.3
fda6847b 22License: GPL
129858a4 23Group: Applications/System
98fa2458 24Source0: http://bits.xensource.com/oss-xen/release/%{version}/%{name}-%{version}.tar.gz
403a0e9f
AM
25Source1: %{name}-xend.init
26Source2: %{name}-xendomains.init
47d65e01 27Patch0: %{name}-python_scripts.patch
2f3b83cd 28Patch1: %{name}-gcc.patch
67494ff6 29URL: http://www.cl.cam.ac.uk/Research/SRG/netos/xen/index.html
fc7816dc 30%{?with_hvm:BuildRequires: bcc}
39eabac9 31BuildRequires: curl-devel
d9ee3ddc 32BuildRequires: e2fsprogs-devel
fc7816dc 33BuildRequires: gcc >= 5:3.4
47d65e01 34BuildRequires: latex2html
403a0e9f 35BuildRequires: libidn-devel
403a0e9f 36BuildRequires: ncurses-devel
53503036 37BuildRequires: python-devel
48c47956 38BuildRequires: rpm-pythonprov
129858a4 39BuildRequires: rpmbuild(macros) >= 1.268
53503036 40BuildRequires: tetex-dvips
67494ff6 41BuildRequires: tetex-format-latex
42BuildRequires: tetex-latex-psnfss
53503036 43BuildRequires: transfig
12f352e2 44BuildRequires: which
53503036 45BuildRequires: zlib-devel
129858a4 46Requires(post,preun): /sbin/chkconfig
9f9b2612 47Requires: %{name}-libs = %{version}-%{release}
53503036
JB
48Requires: ZopeInterface
49Requires: bridge-utils
e77e45ff
AM
50Requires: coreutils
51Requires: diffutils
d78769bd 52Requires: gawk
e77e45ff 53Requires: iptables
fc7816dc 54Requires: kernel(xen0) = %{major}
53503036 55Requires: losetup
e77e45ff 56Requires: net-tools
8e6e2740 57Requires: python-%{name} = %{version}-%{release}
129858a4 58Requires: rc-scripts
e77e45ff
AM
59Requires: sed
60Requires: util-linux-ng
61Requires: which
cef7399d 62Obsoletes: xen-doc
971d1e2c 63ExclusiveArch: %{ix86} %{x8664}
fda6847b
AM
64BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
65
da88b5cd 66%ifnarch i686 athlon pentium3 pentium4
85bffc35 67%undefine with_pae
da88b5cd
JK
68%endif
69
fda6847b
AM
70%description
71This package contains the Xen hypervisor and Xen tools, needed to run
72virtual machines on x86 systems, together with the kernel-xen*
73packages. Information on how to use Xen can be found at the Xen
74project pages.
75
76Virtualisation can be used to run multiple versions or multiple Linux
77distributions on one system, or to test untrusted applications in a
78sandboxed environment. Note that the Xen technology is still in
79development, and this RPM has received extremely little testing. Don't
80be surprised if this RPM eats your data, drinks your coffee or makes
81fun of you in front of your friends.
82
d2a30a0d
JR
83%description -l pl.UTF-8
84Ten pakiet zawiera nadzorcę oraz narzędzia Xen, potrzebne do
adbb6385 85uruchamiania wirtualnych maszyn w systemach x86, wraz z pakietami
d2a30a0d 86kernel-xen*. Informacje jak używać Xena można znaleźć na stronach
adbb6385
JB
87projektu.
88
d2a30a0d 89Wirtualizacja może być używana do uruchamiania wielu wersji lub wielu
dcba01a0 90dystrybucji Linuksa na jednym systemie lub do testowania nie zaufanych
d2a30a0d
JR
91aplikacji w odizolowanym środowisku. Należy zauważyć, że technologia
92Xen jest ciągle rozwijana, a ten RPM był słabo testowany. Nie należy
93być zdziwionym, jeśli ten pakiet zje dane, wypije całą kawę czy będzie
94się wyśmiewał w obecności przyjaciół.
403a0e9f 95
26412ee3
JB
96%package libs
97Summary: xen libraries
98Summary(pl.UTF-8): Biblioteki xena
99Group: Libraries
100
101%description libs
102xen libraries.
103
104%description libs -l pl.UTF-8
105Biblioteki xena.
106
403a0e9f 107%package devel
6eccf3e8 108Summary: Header files for xen
a1a3c257 109Summary(pl.UTF-8): Pliki nagłówkowe xena
403a0e9f 110Group: Development/Libraries
9f9b2612 111Requires: %{name}-libs = %{version}-%{release}
403a0e9f
AM
112
113%description devel
6eccf3e8
JB
114Header files for xen.
115
d2a30a0d
JR
116%description devel -l pl.UTF-8
117Pliki nagłówkowe xena.
403a0e9f
AM
118
119%package static
120Summary: Static xen libraries
a1a3c257 121Summary(pl.UTF-8): Statyczne biblioteki xena
403a0e9f 122Group: Development/Libraries
9f9b2612 123Requires: %{name}-devel = %{version}-%{release}
403a0e9f
AM
124
125%description static
126Static xen libraries.
adbb6385 127
d2a30a0d 128%description static -l pl.UTF-8
6eccf3e8
JB
129Statyczne biblioteki xena.
130
5dd334af
JB
131%package hotplug
132Summary: xen hotplug scripts
133Summary(pl.UTF-8): Skrypty hotplug dla xena
134Group: Application/System
135
136%description hotplug
137xen hotplug scripts.
138
139%description hotplug -l pl.UTF-8
140Skrypty hotplug dla xena.
141
142%package udev
143Summary: xen udev scripts
144Summary(pl.UTF-8): Skrypty udev dla xena
145Group: Application/System
146
147%description udev
148xen udev scripts.
149
150%description udev -l pl.UTF-8
151Skrypty udev dla xena.
152
153%package -n python-xen
154Summary: xen Python modules
155Summary(pl.UTF-8): Moduły Pythona dla xena
156Group: Libraries
157
158%description -n python-xen
159xen Python modules.
160
161%description -n python-xen -l pl.UTF-8
162Moduły Pythona dla xena.
163
fda6847b 164%prep
98fa2458 165%setup -q
47d65e01
JK
166%patch0 -p1
167%patch1 -p1
4015585b 168
fc7816dc 169find '(' -name '*~' -o -name '*.orig' -o -name '.gitignore' ')' -print0 | xargs -0 -r -l512 rm -fv
fda6847b
AM
170
171%build
47d65e01
JK
172CFLAGS="%{rpmcflags} -I/usr/include/ncurses" \
173CXXFLAGS="%{rpmcflags} -I/usr/include/ncurses" \
2f3b83cd 174%{__make} -j1 xen tools \
da88b5cd 175 %{?with_pae:XEN_TARGET_X86_PAE=y} \
403a0e9f 176 CC="%{__cc}" \
da88b5cd 177 CXX="%{__cxx}"
fda6847b
AM
178
179%install
180rm -rf $RPM_BUILD_ROOT
47d65e01 181install -d $RPM_BUILD_ROOT/var/run/{xen-hotplug,xend,xenstored}
adbb6385
JB
182
183%{__make} install-xen install-tools install-docs \
4b02d844
ER
184 CC="%{__cc}" \
185 CXX="%{__cxx}" \
b650a78f 186 %{?with_pae:XEN_TARGET_X86_PAE=y} \
da88b5cd 187 DESTDIR=$RPM_BUILD_ROOT \
47d65e01 188 XEN_PYTHON_NATIVE_INSTALL=1
403a0e9f
AM
189
190install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
191install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/xend
192install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/xendomains
193
194install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/xend-db/{domain,vnet}
1d25433e 195install -d $RPM_BUILD_ROOT%{_sharedstatedir}/xen/save
fda6847b 196
2f3b83cd 197cp -a dist/install/etc/udev $RPM_BUILD_ROOT%{_sysconfdir}
38e9ca75 198cp -a dist/install/etc/hotplug $RPM_BUILD_ROOT%{_sysconfdir}
67494ff6 199
90eccaeb
ER
200%py_comp $RPM_BUILD_ROOT%{py_sitedir}
201%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
202
203%py_postclean
86497794 204# remove unneeded files
90eccaeb 205rm -f $RPM_BUILD_ROOT%{_includedir}/%{name}/COPYING
003ca0fe 206rm -rf $RPM_BUILD_ROOT%{_docdir}/xen
8e6e2740 207rm -rf $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-doc.html
86497794 208rm -rf $RPM_BUILD_ROOT/''etc/init.d
2f3b83cd
AG
209rm -f $RPM_BUILD_ROOT/boot/xen-3.2.gz
210rm -f $RPM_BUILD_ROOT/boot/xen-3.gz
074c7479 211
86497794
ER
212# conflict with qemu
213rm -f $RPM_BUILD_ROOT%{_mandir}/man1/qemu-img.1
214rm -f $RPM_BUILD_ROOT%{_mandir}/man1/qemu.1
215
fda6847b
AM
216%clean
217rm -rf $RPM_BUILD_ROOT
218
403a0e9f 219%post
403a0e9f
AM
220/sbin/chkconfig --add xend
221/sbin/chkconfig --add xendomains
222
403a0e9f
AM
223%preun
224if [ "$1" = "0" ]; then
129858a4 225 %service xend stop
403a0e9f 226 /sbin/chkconfig --del xend
129858a4
ER
227
228 %service xendomains stop
403a0e9f
AM
229 /sbin/chkconfig --del xendomains
230fi
231
26412ee3
JB
232%post libs -p /sbin/ldconfig
233%postun libs -p /sbin/ldconfig
234
fda6847b
AM
235%files
236%defattr(644,root,root,755)
b924b9f5 237%doc COPYING README docs/misc/*
47d65e01 238%doc docs/html/*
98fa2458
AM
239/boot/%{name}-syms-%{version}
240/boot/%{name}-%{version}.gz
fda6847b 241/boot/%{name}.gz
403a0e9f 242%attr(754,root,root) /etc/rc.d/init.d/*
47d65e01 243%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/*
403a0e9f 244%dir %{_sysconfdir}/xen
47d65e01 245%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/qemu-ifup
403a0e9f 246%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/*.*
67494ff6 247#%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/b*
403a0e9f
AM
248%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/xmexample[12]
249%dir %{_sysconfdir}/xen/auto
250%dir %{_sysconfdir}/xen/scripts
251%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/scripts/*
252%attr(755,root,root) %{_bindir}/*
253%attr(755,root,root) %{_sbindir}/*
47d65e01
JK
254%dir %{_libdir}/%{name}
255%dir %{_libdir}/%{name}/bin
256%attr(744,root,root) %{_libdir}/%{name}/bin/*
38e9ca75 257%if "%{_lib}" != "lib"
81c76053 258%dir %{_prefix}/lib/%{name}
38e9ca75 259%endif
81c76053 260%dir %{_prefix}/lib/%{name}/boot
bbcbc194 261%{?with_hvm:%attr(744,root,root) %{_prefix}/lib/%{name}/boot/hvmloader}
47d65e01 262%{_datadir}/xen
403a0e9f 263%{_mandir}/man?/*
47d65e01
JK
264%{_sharedstatedir}/xen
265%{_sharedstatedir}/xenstored
266%dir /var/run/xen-hotplug
267%dir %attr(700,root,root) /var/run/xend
268%dir /var/run/xenstored
403a0e9f 269
26412ee3 270%files libs
403a0e9f 271%defattr(644,root,root,755)
26412ee3 272%attr(755,root,root) %{_libdir}/lib*.so.*
4015585b 273%dir %{_libdir}/fs
d9ee3ddc 274%dir %{_libdir}/fs/ext2fs-lib
2f3b83cd
AG
275%dir %{_libdir}/fs/fat
276%dir %{_libdir}/fs/iso9660
4015585b 277%dir %{_libdir}/fs/reiserfs
278%dir %{_libdir}/fs/ufs
279%attr(755,root,root) %{_libdir}/fs/*/*.so
26412ee3 280
5dd334af
JB
281%files devel
282%defattr(644,root,root,755)
283%attr(755,root,root) %{_libdir}/lib*.so
284%{_includedir}/*
285
286%files static
287%defattr(644,root,root,755)
288%{_libdir}/lib*.a
289
4b02d844 290%if %{without hvm}
2f3b83cd
AG
291%files hotplug
292%defattr(644,root,root,755)
293%attr(755,root,root) /etc/hotplug/*
81c76053 294%endif
2f3b83cd
AG
295
296%files udev
297%defattr(644,root,root,755)
298%config(noreplace) %verify(not md5 mtime size) /etc/udev/*
299
8e6e2740
ER
300%files -n python-xen
301%defattr(644,root,root,755)
5dd334af 302%attr(755,root,root) %{py_sitedir}/fsimage.so
8e6e2740
ER
303%{py_sitedir}/grub
304%dir %{py_sitedir}/xen
305%dir %{py_sitedir}/xen/lowlevel
306%{py_sitedir}/xen/lowlevel/*.py*
307%attr(755,root,root) %{py_sitedir}/xen/lowlevel/*.so
308%{py_sitedir}/xen/sv
309%{py_sitedir}/xen/util
310%{py_sitedir}/xen/web
311%{py_sitedir}/xen/xend
312%{py_sitedir}/xen/xm
313%{py_sitedir}/xen/xsview
314%{py_sitedir}/xen/*.py*
315%if "%{py_ver}" > "2.4"
316%{py_sitedir}/*.egg-info
317%endif
This page took 0.852913 seconds and 4 git commands to generate.