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