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