]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: | |
3 | # - most of the qemu config options aren't detected (NPTL, vde, fdt) | |
4 | # - check if other tools/libs are not usable in domU, move them to -guest | |
5 | # packages if so | |
6 | # - pass bconds to qemu configure script (tricky, as the script is called from | |
7 | # Xen Makefiles) | |
8 | # | |
9 | # | |
10 | # Conditional build: | |
11 | %bcond_without opengl # disable OpenGL support in Xen qemu | |
12 | %bcond_without sdl # disable SDL support in Xen qemu | |
13 | %bcond_without bluetooth # disable bluetooth support in Xen qemu | |
14 | %bcond_without brlapi # disable brlapi support in Xen qemu | |
15 | %bcond_without ocaml # build Ocaml libraries for Xen tools | |
16 | # | |
17 | # from Config.mk: | |
18 | %define seabios_version 1.6.3.2 | |
19 | # | |
20 | %define xen_extfiles_url http://xenbits.xensource.com/xen-extfiles | |
21 | Summary: Xen - a virtual machine monitor | |
22 | Summary(pl.UTF-8): Xen - monitor maszyny wirtualnej | |
23 | Name: xen | |
24 | Version: 4.2.0 | |
25 | Release: 0.1 | |
26 | License: GPL v2, interface parts on BSD-like | |
27 | Group: Applications/System | |
28 | Source0: http://bits.xensource.com/oss-xen/release/%{version}/%{name}-%{version}.tar.gz | |
29 | # Source0-md5: f4f217969afc38f09251039966d91a87 | |
30 | # used by stubdoms | |
31 | Source10: %{xen_extfiles_url}/lwip-1.3.0.tar.gz | |
32 | # Source10-md5: 36cc57650cffda9a0269493be2a169bb | |
33 | Source11: %{xen_extfiles_url}/newlib-1.16.0.tar.gz | |
34 | # Source11-md5: bf8f1f9e3ca83d732c00a79a6ef29bc4 | |
35 | Source12: %{xen_extfiles_url}/zlib-1.2.3.tar.gz | |
36 | # Source12-md5: debc62758716a169df9f62e6ab2bc634 | |
37 | Source13: %{xen_extfiles_url}/pciutils-2.2.9.tar.bz2 | |
38 | # Source13-md5: cec05e7785497c5e19da2f114b934ffd | |
39 | Source14: %{xen_extfiles_url}/grub-0.97.tar.gz | |
40 | # Source14-md5: cd3f3eb54446be6003156158d51f4884 | |
41 | Source15: http://xenbits.xen.org/xen-extfiles/ipxe-git-9a93db3f0947484e30e753bbd61a10b17336e20e.tar.gz | |
42 | # Source15-md5: 7496268cebf47d5c9ccb0696e3b26065 | |
43 | # http://xenbits.xen.org/git-http/seabios.git/ | |
44 | # git archive --prefix=tools/firmware/seabios/ --format=tar rel-%{seabios_version} | xz > seabios-%{seabios_version}.tar.xz | |
45 | Source16: seabios-%{seabios_version}.tar.xz | |
46 | # Source16-md5: 145e07ff5618a3999f94f2e830d06b05 | |
47 | Source30: proc-xen.mount | |
48 | Source31: var-lib-xenstored.mount | |
49 | Source32: blktapctrl.service | |
50 | Source33: blktapctrl.sysconfig | |
51 | Source34: xenconsoled.service | |
52 | Source35: xenconsoled.sysconfig | |
53 | Source36: xenstored.service | |
54 | Source37: xenstored.sysconfig | |
55 | Source38: xenstored.tmpfiles | |
56 | Source39: xend.service | |
57 | Source40: xend.tmpfiles | |
58 | Source41: xen-watchdog.service | |
59 | Source42: xen-dom0-modules-load.conf | |
60 | # sysvinit scripts | |
61 | Source50: xend.init | |
62 | Source51: xenconsoled.init | |
63 | Source52: xenstored.init | |
64 | Source53: xen-watchdog.init | |
65 | Source54: xendomains.init | |
66 | Source55: xen.logrotate | |
67 | Patch0: %{name}-python_scripts.patch | |
68 | Patch1: %{name}-symbols.patch | |
69 | Patch2: %{name}-curses.patch | |
70 | Patch3: pygrubfix.patch | |
71 | Patch4: xend.catchbt.patch | |
72 | Patch5: xend-pci-loop.patch | |
73 | Patch6: xen-dumpdir.patch | |
74 | # Warning: this disables ingress filtering implemented in xen scripts! | |
75 | Patch7: xen-net-disable-iptables-on-bridge.patch | |
76 | Patch8: xen-configure-xend.patch | |
77 | Patch9: xen-initscript.patch | |
78 | Patch10: xen-quemu-softloat-c99.patch | |
79 | URL: http://www.xen.org/products/xenhyp.html | |
80 | %{?with_opengl:BuildRequires: OpenGL-devel} | |
81 | %{?with_sdl:BuildRequires: SDL-devel >= 1.2.1} | |
82 | %ifarch %{ix86} %{x8664} | |
83 | BuildRequires: acpica | |
84 | BuildRequires: bcc | |
85 | %endif | |
86 | %{?with_bluetooth:BuildRequires: bluez-libs-devel} | |
87 | %{?with_brlapi:BuildRequires: brlapi-devel} | |
88 | BuildRequires: bzip2-devel | |
89 | BuildRequires: ceph-devel | |
90 | BuildRequires: curl-devel | |
91 | BuildRequires: cyrus-sasl-devel >= 2 | |
92 | BuildRequires: e2fsprogs-devel | |
93 | BuildRequires: gcc >= 5:3.4 | |
94 | BuildRequires: gettext-devel | |
95 | BuildRequires: glib2-devel >= 1:2.12 | |
96 | BuildRequires: gnutls-devel | |
97 | BuildRequires: latex2html >= 2008 | |
98 | BuildRequires: libaio-devel | |
99 | BuildRequires: libiscsi-devel | |
100 | BuildRequires: libjpeg-devel | |
101 | BuildRequires: libpng-devel | |
102 | BuildRequires: libuuid-devel | |
103 | BuildRequires: lzo-devel >= 2 | |
104 | BuildRequires: ncurses-devel | |
105 | %if %{with ocaml} | |
106 | BuildRequires: ocaml >= 3.04-7 | |
107 | BuildRequires: ocaml-findlib | |
108 | %endif | |
109 | BuildRequires: nss-devel >= 3.12.8 | |
110 | BuildRequires: openssl-devel | |
111 | BuildRequires: pciutils-devel | |
112 | BuildRequires: perl-base | |
113 | BuildRequires: pkgconfig | |
114 | BuildRequires: python-devel | |
115 | BuildRequires: rpm-pythonprov | |
116 | BuildRequires: rpmbuild(macros) >= 1.647 | |
117 | BuildRequires: spice-protocol >= 0.6.0 | |
118 | BuildRequires: spice-server-devel >= 0.6.0 | |
119 | BuildRequires: texi2html | |
120 | BuildRequires: texlive-dvips | |
121 | BuildRequires: texlive-latex-psnfss | |
122 | BuildRequires: texlive-xetex | |
123 | # not adjusted for usbredir 0.5.x (libusbredirparser-0.5) | |
124 | #BuildRequires: usbredir-devel | |
125 | BuildRequires: vde2-devel | |
126 | BuildRequires: which | |
127 | # for xfsctl (<xfs/xfs.h>) | |
128 | BuildRequires: xfsprogs-devel | |
129 | BuildRequires: xorg-lib-libX11-devel | |
130 | BuildRequires: xorg-lib-libXext-devel | |
131 | BuildRequires: xz-devel | |
132 | BuildRequires: yajl-devel | |
133 | BuildRequires: zlib-devel | |
134 | # FIXME: see qemu configure comments on top of spec | |
135 | %{!?with_opengl:BuildConflicts: OpenGL-devel} | |
136 | %{!?with_sdl:BuildConflicts: SDL-devel} | |
137 | %{!?with_sdl:BuildConflicts: SDL-devel} | |
138 | %{!?with_bluetooth:BuildConflicts: bluez-libs-devel} | |
139 | %{!?with_brlapi:BuildConflicts: brlapi-devel} | |
140 | Requires(post,preun): /sbin/chkconfig | |
141 | Requires(post,preun,postun): systemd-units >= 38 | |
142 | Requires: %{name}-libs = %{version}-%{release} | |
143 | Requires: ZopeInterface | |
144 | Requires: bridge-utils | |
145 | Requires: coreutils | |
146 | Requires: diffutils | |
147 | Requires: gawk | |
148 | Requires: iptables | |
149 | Requires: losetup | |
150 | Requires: net-tools | |
151 | Requires: python-%{name} = %{version}-%{release} | |
152 | Requires: rc-scripts | |
153 | Requires: sed | |
154 | Requires: systemd-units >= 38 | |
155 | Requires: util-linux | |
156 | Requires: which | |
157 | Requires: %{name}-guest = %{version}-%{release} | |
158 | Obsoletes: xen-doc | |
159 | Obsoletes: xen-udev | |
160 | ExclusiveArch: %{ix86} %{x8664} | |
161 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
162 | ||
163 | # some PPC/SPARC boot images in ELF format | |
164 | %define _noautostrip .*%{_datadir}/\\(xen/qemu\\|qemu-xen\\)/\\(openbios-.*\\|palcode-clipper\\) | |
165 | ||
166 | %description | |
167 | This package contains the Xen hypervisor and Xen tools, needed to run | |
168 | virtual machines on x86 systems, together with the kernel-xen* | |
169 | packages. Information on how to use Xen can be found at the Xen | |
170 | project pages. | |
171 | ||
172 | Virtualisation can be used to run multiple versions or multiple Linux | |
173 | distributions on one system, or to test untrusted applications in a | |
174 | sandboxed environment. Note that the Xen technology is still in | |
175 | development, and this RPM has received extremely little testing. Don't | |
176 | be surprised if this RPM eats your data, drinks your coffee or makes | |
177 | fun of you in front of your friends. | |
178 | ||
179 | %description -l pl.UTF-8 | |
180 | Ten pakiet zawiera nadzorcę oraz narzędzia Xen, potrzebne do | |
181 | uruchamiania wirtualnych maszyn w systemach x86, wraz z pakietami | |
182 | kernel-xen*. Informacje jak używać Xena można znaleźć na stronach | |
183 | projektu. | |
184 | ||
185 | Wirtualizacja może być używana do uruchamiania wielu wersji lub wielu | |
186 | dystrybucji Linuksa na jednym systemie lub do testowania nie zaufanych | |
187 | aplikacji w odizolowanym środowisku. Należy zauważyć, że technologia | |
188 | Xen jest ciągle rozwijana, a ten RPM był słabo testowany. Nie należy | |
189 | być zdziwionym, jeśli ten pakiet zje dane, wypije całą kawę czy będzie | |
190 | się wyśmiewał w obecności przyjaciół. | |
191 | ||
192 | %package guest | |
193 | Summary: Xen tools for virtual machines | |
194 | Summary(pl.UTF-8): Narzędzia Xen dla maszyn virtualnych | |
195 | Group: Applications/System | |
196 | Requires: %{name}-libs-guest = %{version}-%{release} | |
197 | ||
198 | %description guest | |
199 | Xen utilities for both dom0 and domU virtual domains. | |
200 | ||
201 | %description guest -l pl.UTF-8 | |
202 | Narzędzia Xena dla maszyn wirtualnych dom0 i domU. | |
203 | ||
204 | %package libs | |
205 | Summary: Xen libraries | |
206 | Summary(pl.UTF-8): Biblioteki Xena | |
207 | Group: Libraries | |
208 | Requires: %{name}-libs-guest = %{version}-%{release} | |
209 | ||
210 | %description libs | |
211 | Xen libraries. | |
212 | ||
213 | %description libs -l pl.UTF-8 | |
214 | Biblioteki Xena. | |
215 | ||
216 | %package libs-guest | |
217 | Summary: Xen libraries for virtual machines | |
218 | Summary(pl.UTF-8): Biblioteki Xena dla maszyn wirtualnych | |
219 | Group: Libraries | |
220 | ||
221 | %description libs-guest | |
222 | Xen libraries for both dom0 and domU virtual machines. | |
223 | ||
224 | %description libs-guest -l pl.UTF-8 | |
225 | Biblioteki Xena dla maszyn wirtualnych dom0 i domU. | |
226 | ||
227 | %package devel | |
228 | Summary: Header files for Xen | |
229 | Summary(pl.UTF-8): Pliki nagłówkowe Xena | |
230 | Group: Development/Libraries | |
231 | Requires: %{name}-libs = %{version}-%{release} | |
232 | ||
233 | %description devel | |
234 | Header files for Xen. | |
235 | ||
236 | %description devel -l pl.UTF-8 | |
237 | Pliki nagłówkowe Xena. | |
238 | ||
239 | %package static | |
240 | Summary: Static Xen libraries | |
241 | Summary(pl.UTF-8): Statyczne biblioteki Xena | |
242 | Group: Development/Libraries | |
243 | Requires: %{name}-devel = %{version}-%{release} | |
244 | ||
245 | %description static | |
246 | Static Xen libraries. | |
247 | ||
248 | %description static -l pl.UTF-8 | |
249 | Statyczne biblioteki Xena. | |
250 | ||
251 | %package xend | |
252 | Summary: xend daemon | |
253 | Summary(pl.UTF-8): Demon xend | |
254 | Group: Daemons | |
255 | Requires(post,preun,postun): systemd-units >= 38 | |
256 | Requires: systemd-units >= 38 | |
257 | ||
258 | %description xend | |
259 | xend daemon. | |
260 | ||
261 | %description xend -l pl.UTF-8 | |
262 | Demon xend. | |
263 | ||
264 | %package -n ocaml-xen | |
265 | Summary: OCaml bindings for Xen | |
266 | Summary(pl.UTF-8): Wiązania OCamla dla Xena | |
267 | License: LGPL v2.1 with linking exception | |
268 | Group: Libraries | |
269 | Requires: %{name}-libs = %{version}-%{release} | |
270 | %if %{with ocaml} | |
271 | %requires_eq ocaml-runtime | |
272 | %endif | |
273 | ||
274 | %description -n ocaml-xen | |
275 | OCaml bindings for Xen. | |
276 | ||
277 | %description -n ocaml-xen -l pl.UTF-8 | |
278 | Wiązania OCamla dla Xena. | |
279 | ||
280 | %package -n ocaml-xen-devel | |
281 | Summary: OCaml bindings for Xen - development files | |
282 | Summary(pl.UTF-8): Wiązania OCamla dla Xena - pliki programistyczne | |
283 | License: LGPL v2.1 with linking exception | |
284 | Group: Development/Libraries | |
285 | Requires: ocaml-xen = %{version}-%{release} | |
286 | %if %{with ocaml} | |
287 | %requires_eq ocaml | |
288 | %endif | |
289 | ||
290 | %description -n ocaml-xen-devel | |
291 | OCaml bindings for Xen - development files. | |
292 | ||
293 | %description -n ocaml-xen-devel -l pl.UTF-8 | |
294 | Wiązania OCamla dla Xena - pliki programistyczne. | |
295 | ||
296 | %package -n python-xen | |
297 | Summary: Xen Python modules | |
298 | Summary(pl.UTF-8): Moduły Pythona dla Xena | |
299 | Group: Libraries | |
300 | Requires: %{name}-libs = %{version}-%{release} | |
301 | Conflicts: xen < 3.2.1-0.3 | |
302 | ||
303 | %description -n python-xen | |
304 | Xen Python modules. | |
305 | ||
306 | %description -n python-xen -l pl.UTF-8 | |
307 | Moduły Pythona dla Xena. | |
308 | ||
309 | %package -n python-xen-guest | |
310 | Summary: Xen Python modules for virtual machines | |
311 | Summary(pl.UTF-8): Moduły Pythona dla maszyn wirtualnych Xena | |
312 | Group: Libraries | |
313 | Requires: %{name}-libs-guest = %{version}-%{release} | |
314 | Conflicts: xen < 3.2.1-0.3 | |
315 | ||
316 | %description -n python-xen-guest | |
317 | Xen Python modules for both dom0 and domU virtual machines. | |
318 | ||
319 | %description -n python-xen-guest -l pl.UTF-8 | |
320 | Moduły Pythona dla maszyn wirtualnych dom0 i domU. | |
321 | ||
322 | %package -n bash-completion-%{name} | |
323 | Summary: bash-completion for Xen (xl) | |
324 | Summary(pl.UTF-8): Bashowe dopełnianie poleceń dla Xena (xl) | |
325 | Group: Applications/Shells | |
326 | Requires: %{name} = %{version}-%{release} | |
327 | Requires: bash-completion | |
328 | ||
329 | %description -n bash-completion-%{name} | |
330 | This package provides bash-completion for Xen (xl). | |
331 | ||
332 | %description -n bash-completion-%{name} -l pl.UTF-8 | |
333 | Ten pakiet zapewnia bashowe dopełnianie poleceń dla Xena (xl). | |
334 | ||
335 | %prep | |
336 | %setup -q -a 16 | |
337 | %patch0 -p1 | |
338 | %patch1 -p1 | |
339 | %patch2 -p1 | |
340 | %patch3 -p1 | |
341 | %patch4 -p1 | |
342 | %patch5 -p1 | |
343 | %patch6 -p1 | |
344 | %patch7 -p1 | |
345 | %patch8 -p1 | |
346 | %patch9 -p1 | |
347 | %patch10 -p1 | |
348 | ||
349 | # stubdom sources | |
350 | ln -s %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} stubdom | |
351 | ln -s %{SOURCE15} tools/firmware/etherboot/ipxe.tar.gz | |
352 | ||
353 | # do not allow fetching anything via git | |
354 | echo GIT=/bin/false >> Config.mk | |
355 | ||
356 | %build | |
357 | export CFLAGS="%{rpmcflags} -I/usr/include/ncurses" | |
358 | export CXXFLAGS="%{rpmcflags} -I/usr/include/ncurses" | |
359 | ||
360 | # NOTE: | |
361 | # - there is a quoting bug (in tools/driver/Makefile) that causes | |
362 | # openssl is used instead of gcrypt; that's OK, openssl is obligatory | |
363 | # anyway (see configure), gcrypt is optional | |
364 | # - prevent libiconv from being detected (not needed with glibc) | |
365 | cd tools | |
366 | %configure \ | |
367 | CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses" \ | |
368 | ac_cv_lib_iconv_libiconv_open=no \ | |
369 | --disable-debug | |
370 | cd .. | |
371 | ||
372 | %{__make} dist-xen dist-tools dist-docs \ | |
373 | %{!?with_ocaml:OCAML_TOOLS=n} \ | |
374 | prefix=%{_prefix} \ | |
375 | CC="%{__cc}" \ | |
376 | CXX="%{__cxx}" \ | |
377 | V=1 | |
378 | ||
379 | unset CFLAGS | |
380 | unset CXXFLAGS | |
381 | ||
382 | %{__make} -j1 dist-stubdom \ | |
383 | %{!?with_ocaml:OCAML_TOOLS=n} \ | |
384 | CC="%{__cc}" \ | |
385 | CXX="%{__cxx}" | |
386 | ||
387 | %install | |
388 | rm -rf $RPM_BUILD_ROOT | |
389 | install -d $RPM_BUILD_ROOT/etc/{xen/examples,modules-load.d,logrotate.d} \ | |
390 | $RPM_BUILD_ROOT{/usr/lib/tmpfiles.d,%{systemdunitdir},/var/log/xen/console} | |
391 | ||
392 | %{__make} -j1 install-xen install-tools install-stubdom install-docs \ | |
393 | %{!?with_ocaml:OCAML_TOOLS=n} \ | |
394 | prefix=%{_prefix} \ | |
395 | DESTDIR=$RPM_BUILD_ROOT \ | |
396 | HOTPLUGS=install-udev | |
397 | ||
398 | %if "%{_lib}" == "lib64" | |
399 | ln -s %{_prefix}/lib/%{name}/bin/qemu-dm $RPM_BUILD_ROOT%{_libdir}/%{name}/bin/qemu-dm | |
400 | %endif | |
401 | ||
402 | install %{SOURCE30} $RPM_BUILD_ROOT%{systemdunitdir}/proc-xen.mount | |
403 | install %{SOURCE31} $RPM_BUILD_ROOT%{systemdunitdir}/var-lib-xenstored.mount | |
404 | install %{SOURCE32} $RPM_BUILD_ROOT%{systemdunitdir}/blktapctrl.service | |
405 | install %{SOURCE33} $RPM_BUILD_ROOT/etc/sysconfig/blktapctrl | |
406 | install %{SOURCE34} $RPM_BUILD_ROOT%{systemdunitdir}/xenconsoled.service | |
407 | install %{SOURCE35} $RPM_BUILD_ROOT/etc/sysconfig/xenconsoled | |
408 | install %{SOURCE36} $RPM_BUILD_ROOT%{systemdunitdir}/xenstored.service | |
409 | install %{SOURCE37} $RPM_BUILD_ROOT/etc/sysconfig/xenstored | |
410 | install %{SOURCE38} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/xenstored.conf | |
411 | install %{SOURCE39} $RPM_BUILD_ROOT%{systemdunitdir}/xend.service | |
412 | install %{SOURCE40} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/xend.conf | |
413 | install %{SOURCE41} $RPM_BUILD_ROOT%{systemdunitdir}/xen-watchdog.service | |
414 | install %{SOURCE42} $RPM_BUILD_ROOT/etc/modules-load.d/xen-dom0.conf | |
415 | # sysvinit scripts | |
416 | %{__rm} $RPM_BUILD_ROOT/etc/rc.d/init.d/* | |
417 | install %{SOURCE50} $RPM_BUILD_ROOT/etc/rc.d/init.d/xend | |
418 | install %{SOURCE51} $RPM_BUILD_ROOT/etc/rc.d/init.d/xenconsoled | |
419 | install %{SOURCE52} $RPM_BUILD_ROOT/etc/rc.d/init.d/xenstored | |
420 | install %{SOURCE53} $RPM_BUILD_ROOT/etc/rc.d/init.d/xen-watchdog | |
421 | install %{SOURCE54} $RPM_BUILD_ROOT/etc/rc.d/init.d/xendomains | |
422 | install %{SOURCE55} $RPM_BUILD_ROOT/etc/logrotate.d/xen | |
423 | ||
424 | mv $RPM_BUILD_ROOT/etc/xen/{x{m,l}example*,examples} | |
425 | ||
426 | # for %%doc | |
427 | install -d _doc | |
428 | for tool in blktap blktap2 pygrub xenmon ; do | |
429 | cp -p tools/$tool/README _doc/README.$tool | |
430 | done | |
431 | cp -al tools/qemu-xen/docs _doc/qemu-xen | |
432 | ||
433 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
434 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
435 | ||
436 | %py_postclean | |
437 | ||
438 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/qemu.1 | |
439 | mv $RPM_BUILD_ROOT%{_mandir}/man1/qemu-img{,-xen}.1 | |
440 | mv $RPM_BUILD_ROOT%{_mandir}/man8/qemu-nbd{,-xen}.8 | |
441 | # seems not needed, the path is wrong anyway | |
442 | %{__rm} $RPM_BUILD_ROOT%{_prefix}/etc/qemu/target-x86_64.conf | |
443 | ||
444 | # remove unneeded files | |
445 | %{__rm} $RPM_BUILD_ROOT/boot/xen-4.2.gz | |
446 | %{__rm} $RPM_BUILD_ROOT/boot/xen-4.gz | |
447 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/xen | |
448 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/qemu | |
449 | %{__rm} $RPM_BUILD_ROOT%{_includedir}/%{name}/COPYING | |
450 | ||
451 | %clean | |
452 | rm -rf $RPM_BUILD_ROOT | |
453 | ||
454 | %post | |
455 | /sbin/chkconfig --add xen-watchdog | |
456 | /sbin/chkconfig --add xenconsoled | |
457 | /sbin/chkconfig --add xenstored | |
458 | /sbin/chkconfig --add xendomains | |
459 | %systemd_post xen-watchdog.service xenconsoled.service xenstored.service | |
460 | ||
461 | %preun | |
462 | if [ "$1" = "0" ]; then | |
463 | %service xendomains stop | |
464 | /sbin/chkconfig --del xendomains | |
465 | ||
466 | %service xenconsoled stop | |
467 | /sbin/chkconfig --del xenconsoled | |
468 | ||
469 | %service xenstored stop | |
470 | /sbin/chkconfig --del xenstored | |
471 | ||
472 | %service xen-watchdog stop | |
473 | /sbin/chkconfig --del xen-watchdog | |
474 | fi | |
475 | %systemd_preun xen-watchdog.service xenconsoled.service xenstored.service | |
476 | ||
477 | %postun | |
478 | %systemd_reload | |
479 | ||
480 | %post xend | |
481 | /sbin/chkconfig --add xend | |
482 | %systemd_post xend.service | |
483 | ||
484 | %preun xend | |
485 | if [ "$1" = "0" ]; then | |
486 | %service xend stop | |
487 | /sbin/chkconfig --del xend | |
488 | fi | |
489 | %systemd_preun xend.service | |
490 | ||
491 | %postun xend | |
492 | %systemd_reload | |
493 | ||
494 | %post libs -p /sbin/ldconfig | |
495 | %postun libs -p /sbin/ldconfig | |
496 | ||
497 | %post libs-guest -p /sbin/ldconfig | |
498 | %postun libs-guest -p /sbin/ldconfig | |
499 | ||
500 | %files | |
501 | %defattr(644,root,root,755) | |
502 | %doc COPYING README* docs/misc/* | |
503 | %doc docs/html/* | |
504 | %doc tools/qemu-xen-dir/*.html | |
505 | %doc _doc/* | |
506 | /boot/%{name}-syms-%{version} | |
507 | /boot/%{name}-%{version}.gz | |
508 | /boot/%{name}.gz | |
509 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xenconsoled | |
510 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xenstored | |
511 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xendomains | |
512 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xencommons | |
513 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/xen | |
514 | %attr(754,root,root) /etc/rc.d/init.d/xen-watchdog | |
515 | %attr(754,root,root) /etc/rc.d/init.d/xenconsoled | |
516 | %attr(754,root,root) /etc/rc.d/init.d/xenstored | |
517 | %attr(754,root,root) /etc/rc.d/init.d/xendomains | |
518 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/xen-dom0.conf | |
519 | %{systemdunitdir}/proc-xen.mount | |
520 | %{systemdunitdir}/var-lib-xenstored.mount | |
521 | %{systemdunitdir}/xen-watchdog.service | |
522 | %{systemdunitdir}/xenconsoled.service | |
523 | %{systemdunitdir}/xenstored.service | |
524 | %dir %{_sysconfdir}/xen | |
525 | %dir %{_sysconfdir}/xen/auto | |
526 | %dir %{_sysconfdir}/xen/examples | |
527 | %dir %{_sysconfdir}/xen/scripts | |
528 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/scripts/* | |
529 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/examples/* | |
530 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/README* | |
531 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/cpupool | |
532 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/xl.conf | |
533 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/xen-backend.rules | |
534 | %attr(755,root,root) %{_bindir}/pygrub | |
535 | %attr(755,root,root) %{_bindir}/qemu-img-xen | |
536 | %attr(755,root,root) %{_bindir}/qemu-nbd-xen | |
537 | %attr(755,root,root) %{_bindir}/remus | |
538 | %attr(755,root,root) %{_bindir}/xencons | |
539 | %attr(755,root,root) %{_bindir}/xentrace* | |
540 | %attr(755,root,root) %{_sbindir}/blktapctrl | |
541 | %attr(755,root,root) %{_sbindir}/flask-* | |
542 | %attr(755,root,root) %{_sbindir}/gdbsx | |
543 | %attr(755,root,root) %{_sbindir}/gtrace* | |
544 | %attr(755,root,root) %{_sbindir}/img2qcow | |
545 | %attr(755,root,root) %{_sbindir}/kdd | |
546 | %attr(755,root,root) %{_sbindir}/lock-util | |
547 | %attr(755,root,root) %{_sbindir}/qcow-create | |
548 | %attr(755,root,root) %{_sbindir}/qcow2raw | |
549 | %attr(755,root,root) %{_sbindir}/tap-ctl | |
550 | %attr(755,root,root) %{_sbindir}/tapdisk* | |
551 | %attr(755,root,root) %{_sbindir}/td-util | |
552 | %attr(755,root,root) %{_sbindir}/vhd-* | |
553 | %attr(755,root,root) %{_sbindir}/xen-* | |
554 | %attr(755,root,root) %{_sbindir}/xenbaked | |
555 | %attr(755,root,root) %{_sbindir}/xenconsoled | |
556 | %attr(755,root,root) %{_sbindir}/xenlockprof | |
557 | %attr(755,root,root) %{_sbindir}/xenmon.py | |
558 | %attr(755,root,root) %{_sbindir}/xenperf | |
559 | %attr(755,root,root) %{_sbindir}/xenpm | |
560 | %attr(755,root,root) %{_sbindir}/xenpmd | |
561 | %attr(755,root,root) %{_sbindir}/xenstored | |
562 | %attr(755,root,root) %{_sbindir}/xentop | |
563 | %attr(755,root,root) %{_sbindir}/xentrace_setmask | |
564 | %attr(755,root,root) %{_sbindir}/xenwatchdogd | |
565 | %attr(755,root,root) %{_sbindir}/xl | |
566 | %attr(755,root,root) %{_sbindir}/xsview | |
567 | %dir %{_libdir}/%{name} | |
568 | %dir %{_libdir}/%{name}/bin | |
569 | %attr(744,root,root) %{_libdir}/%{name}/bin/* | |
570 | %if "%{_lib}" != "lib" | |
571 | %dir %{_prefix}/lib/%{name} | |
572 | %dir %{_prefix}/lib/%{name}/bin | |
573 | %attr(755,root,root) %{_prefix}/lib/%{name}/bin/qemu-dm | |
574 | %attr(755,root,root) %{_prefix}/lib/%{name}/bin/stubdom-dm | |
575 | %attr(755,root,root) %{_prefix}/lib/%{name}/bin/stubdompath.sh | |
576 | %endif | |
577 | %dir %{_prefix}/lib/%{name}/boot | |
578 | %{_prefix}/lib/%{name}/boot/ioemu-stubdom.gz | |
579 | %{_prefix}/lib/%{name}/boot/pv-grub-x86_32.gz | |
580 | %ifarch %{x8664} | |
581 | %{_prefix}/lib/%{name}/boot/pv-grub-x86_64.gz | |
582 | %endif | |
583 | %{_prefix}/lib/%{name}/boot/xenstore-stubdom.gz | |
584 | %attr(744,root,root) %{_prefix}/lib/%{name}/boot/hvmloader | |
585 | %{_datadir}/xen | |
586 | %{_mandir}/man1/qemu-img-xen.1* | |
587 | %{_mandir}/man1/xentop.1* | |
588 | %{_mandir}/man1/xentrace_format.1* | |
589 | %{_mandir}/man1/xl.1* | |
590 | %{_mandir}/man1/xm.1* | |
591 | %{_mandir}/man5/xend-config.sxp.5* | |
592 | %{_mandir}/man5/xl.cfg.5* | |
593 | %{_mandir}/man5/xl.conf.5* | |
594 | %{_mandir}/man5/xlcpupool.cfg.5* | |
595 | %{_mandir}/man5/xmdomain.cfg.5* | |
596 | %{_mandir}/man8/qemu-nbd-xen.8* | |
597 | %{_mandir}/man8/xentrace.8* | |
598 | %{_sharedstatedir}/xen | |
599 | %{_sharedstatedir}/xenstored | |
600 | %dir /var/run/xenstored | |
601 | %{systemdtmpfilesdir}/xenstored.conf | |
602 | %dir %attr(0700,root,root) /var/log/xen | |
603 | %dir %attr(0700,root,root) /var/log/xen/console | |
604 | %{_datadir}/qemu-xen | |
605 | ||
606 | %files guest | |
607 | %defattr(644,root,root,755) | |
608 | %attr(755,root,root) %{_bindir}/xen-detect | |
609 | %attr(755,root,root) %{_bindir}/xenstore* | |
610 | ||
611 | %files libs | |
612 | %defattr(644,root,root,755) | |
613 | %attr(755,root,root) %{_libdir}/libblktap.so.*.*.* | |
614 | %attr(755,root,root) %ghost %{_libdir}/libblktap.so.3.0 | |
615 | %attr(755,root,root) %{_libdir}/libblktapctl.so.*.*.* | |
616 | %attr(755,root,root) %ghost %{_libdir}/libblktapctl.so.1.0 | |
617 | %attr(755,root,root) %{_libdir}/libfsimage.so.*.*.* | |
618 | %attr(755,root,root) %ghost %{_libdir}/libfsimage.so.1.0 | |
619 | %attr(755,root,root) %{_libdir}/libvhd.so.*.*.* | |
620 | %attr(755,root,root) %ghost %{_libdir}/libvhd.so.1.0 | |
621 | %attr(755,root,root) %{_libdir}/libxenctrl.so.*.*.* | |
622 | %attr(755,root,root) %ghost %{_libdir}/libxenctrl.so.4.2 | |
623 | %attr(755,root,root) %{_libdir}/libxenguest.so.*.*.* | |
624 | %attr(755,root,root) %ghost %{_libdir}/libxenguest.so.4.2 | |
625 | %attr(755,root,root) %{_libdir}/libxenlight.so.*.*.* | |
626 | %attr(755,root,root) %ghost %{_libdir}/libxenlight.so.2.0 | |
627 | %attr(755,root,root) %{_libdir}/libxenstat.so.*.* | |
628 | %attr(755,root,root) %ghost %{_libdir}/libxenstat.so.0 | |
629 | %attr(755,root,root) %{_libdir}/libxenvchan.so.*.*.* | |
630 | %attr(755,root,root) %ghost %{_libdir}/libxenvchan.so.1.0 | |
631 | %attr(755,root,root) %{_libdir}/libxlutil.so.*.*.* | |
632 | %attr(755,root,root) %ghost %{_libdir}/libxlutil.so.1.0 | |
633 | %dir %{_libdir}/fs | |
634 | %dir %{_libdir}/fs/ext2fs-lib | |
635 | %dir %{_libdir}/fs/fat | |
636 | %dir %{_libdir}/fs/iso9660 | |
637 | %dir %{_libdir}/fs/reiserfs | |
638 | %dir %{_libdir}/fs/ufs | |
639 | %dir %{_libdir}/fs/xfs | |
640 | %dir %{_libdir}/fs/zfs | |
641 | %attr(755,root,root) %{_libdir}/fs/*/fsimage.so | |
642 | ||
643 | %files libs-guest | |
644 | %defattr(644,root,root,755) | |
645 | %attr(755,root,root) %{_libdir}/libxenstore.so.*.*.* | |
646 | %attr(755,root,root) %ghost %{_libdir}/libxenstore.so.3.0 | |
647 | ||
648 | %files devel | |
649 | %defattr(644,root,root,755) | |
650 | %attr(755,root,root) %{_libdir}/libblktap.so | |
651 | %attr(755,root,root) %{_libdir}/libblktapctl.so | |
652 | %attr(755,root,root) %{_libdir}/libfsimage.so | |
653 | %attr(755,root,root) %{_libdir}/libvhd.so | |
654 | %attr(755,root,root) %{_libdir}/libxenctrl.so | |
655 | %attr(755,root,root) %{_libdir}/libxenguest.so | |
656 | %attr(755,root,root) %{_libdir}/libxenlight.so | |
657 | %attr(755,root,root) %{_libdir}/libxenstat.so | |
658 | %attr(755,root,root) %{_libdir}/libxenstore.so | |
659 | %attr(755,root,root) %{_libdir}/libxenvchan.so | |
660 | %attr(755,root,root) %{_libdir}/libxlutil.so | |
661 | %{_includedir}/_libxl_list.h | |
662 | %{_includedir}/_libxl_types.h | |
663 | %{_includedir}/_libxl_types_json.h | |
664 | %{_includedir}/blktaplib.h | |
665 | %{_includedir}/fsimage*.h | |
666 | %{_includedir}/libxenvchan.h | |
667 | %{_includedir}/libxl*.h | |
668 | %{_includedir}/xen*.h | |
669 | %{_includedir}/xs*.h | |
670 | %{_includedir}/xen | |
671 | %{_includedir}/xenstore-compat | |
672 | ||
673 | %files static | |
674 | %defattr(644,root,root,755) | |
675 | %{_libdir}/libblktap.a | |
676 | %{_libdir}/libblktapctl.a | |
677 | %{_libdir}/libvhd.a | |
678 | %{_libdir}/libxenctrl.a | |
679 | %{_libdir}/libxenguest.a | |
680 | %{_libdir}/libxenlight.a | |
681 | %{_libdir}/libxenvchan.a | |
682 | %{_libdir}/libxenstat.a | |
683 | %{_libdir}/libxenstore.a | |
684 | %{_libdir}/libxlutil.a | |
685 | ||
686 | %files xend | |
687 | %defattr(644,root,root,755) | |
688 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/blktapctrl | |
689 | %{systemdunitdir}/blktapctrl.service | |
690 | %{systemdunitdir}/xend.service | |
691 | %attr(754,root,root) %{_sysconfdir}/rc.d/init.d/xend | |
692 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/xend.rules | |
693 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/xm* | |
694 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/xend* | |
695 | %attr(755,root,root) %{_sbindir}/xend | |
696 | %attr(755,root,root) %{_sbindir}/xm | |
697 | %dir %attr(700,root,root) /var/run/xend | |
698 | %{systemdtmpfilesdir}/xend.conf | |
699 | ||
700 | %if %{with ocaml} | |
701 | %files -n ocaml-xen | |
702 | %defattr(644,root,root,755) | |
703 | %doc tools/ocaml/LICENSE | |
704 | %attr(755,root,root) %{_sbindir}/oxenstored | |
705 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/oxenstored.conf | |
706 | %dir %{_libdir}/ocaml/site-lib/xenbus | |
707 | %attr(755,root,root) %{_libdir}/ocaml/site-lib/xenbus/dllxenbus_stubs.so | |
708 | %dir %{_libdir}/ocaml/site-lib/xenctrl | |
709 | %attr(755,root,root) %{_libdir}/ocaml/site-lib/xenctrl/dllxenctrl_stubs.so | |
710 | %dir %{_libdir}/ocaml/site-lib/xeneventchn | |
711 | %attr(755,root,root) %{_libdir}/ocaml/site-lib/xeneventchn/dllxeneventchn_stubs.so | |
712 | %dir %{_libdir}/ocaml/site-lib/xenlight | |
713 | %attr(755,root,root) %{_libdir}/ocaml/site-lib/xenlight/dllxenlight_stubs.so | |
714 | %dir %{_libdir}/ocaml/site-lib/xenmmap | |
715 | %attr(755,root,root) %{_libdir}/ocaml/site-lib/xenmmap/dllxenmmap_stubs.so | |
716 | ||
717 | %files -n ocaml-xen-devel | |
718 | %defattr(644,root,root,755) | |
719 | %{_libdir}/ocaml/site-lib/xenbus/META | |
720 | %{_libdir}/ocaml/site-lib/xenbus/libxenbus_stubs.a | |
721 | %{_libdir}/ocaml/site-lib/xenbus/xenbus.a | |
722 | %{_libdir}/ocaml/site-lib/xenbus/*.cm[aixo]* | |
723 | %{_libdir}/ocaml/site-lib/xenctrl/META | |
724 | %{_libdir}/ocaml/site-lib/xenctrl/libxenctrl_stubs.a | |
725 | %{_libdir}/ocaml/site-lib/xenctrl/xenctrl.a | |
726 | %{_libdir}/ocaml/site-lib/xenctrl/xenctrl.cm[aix]* | |
727 | %{_libdir}/ocaml/site-lib/xeneventchn/META | |
728 | %{_libdir}/ocaml/site-lib/xeneventchn/libxeneventchn_stubs.a | |
729 | %{_libdir}/ocaml/site-lib/xeneventchn/xeneventchn.a | |
730 | %{_libdir}/ocaml/site-lib/xeneventchn/xeneventchn.cm[aix]* | |
731 | %{_libdir}/ocaml/site-lib/xenmmap/META | |
732 | %{_libdir}/ocaml/site-lib/xenmmap/libxenmmap_stubs.a | |
733 | %{_libdir}/ocaml/site-lib/xenmmap/xenmmap.a | |
734 | %{_libdir}/ocaml/site-lib/xenmmap/xenmmap.cm[aix]* | |
735 | %{_libdir}/ocaml/site-lib/xenlight/META | |
736 | %{_libdir}/ocaml/site-lib/xenlight/libxenlight_stubs.a | |
737 | %{_libdir}/ocaml/site-lib/xenlight/xenlight.a | |
738 | %{_libdir}/ocaml/site-lib/xenlight/xenlight.cm[aix]* | |
739 | %dir %{_libdir}/ocaml/site-lib/xenstore | |
740 | %{_libdir}/ocaml/site-lib/xenstore/META | |
741 | %{_libdir}/ocaml/site-lib/xenstore/xenstore.a | |
742 | %{_libdir}/ocaml/site-lib/xenstore/*.cm[aixo]* | |
743 | %endif | |
744 | ||
745 | %files -n python-xen | |
746 | %defattr(644,root,root,755) | |
747 | %attr(755,root,root) %{py_sitedir}/fsimage.so | |
748 | %{py_sitedir}/grub | |
749 | %attr(755,root,root) %{py_sitedir}/xen/lowlevel/checkpoint.so | |
750 | %attr(755,root,root) %{py_sitedir}/xen/lowlevel/flask.so | |
751 | %attr(755,root,root) %{py_sitedir}/xen/lowlevel/netlink.so | |
752 | %attr(755,root,root) %{py_sitedir}/xen/lowlevel/ptsname.so | |
753 | %attr(755,root,root) %{py_sitedir}/xen/lowlevel/xc.so | |
754 | %{py_sitedir}/xen/remus | |
755 | %{py_sitedir}/xen/sv | |
756 | %{py_sitedir}/xen/util | |
757 | %{py_sitedir}/xen/web | |
758 | %{py_sitedir}/xen/xend | |
759 | %{py_sitedir}/xen/xm | |
760 | %{py_sitedir}/xen/xsview | |
761 | %if "%{py_ver}" > "2.4" | |
762 | %{py_sitedir}/pygrub-0.3-py*.egg-info | |
763 | %{py_sitedir}/xen-3.0-py*.egg-info | |
764 | %endif | |
765 | ||
766 | %files -n python-xen-guest | |
767 | %defattr(644,root,root,755) | |
768 | %dir %{py_sitedir}/xen | |
769 | %{py_sitedir}/xen/__init__.py* | |
770 | %dir %{py_sitedir}/xen/lowlevel | |
771 | %{py_sitedir}/xen/lowlevel/__init__.py* | |
772 | %attr(755,root,root) %{py_sitedir}/xen/lowlevel/xs.so | |
773 | ||
774 | %files -n bash-completion-%{name} | |
775 | %defattr(644,root,root,755) | |
776 | /etc/bash_completion.d/xl.sh |