]>
Commit | Line | Data |
---|---|---|
2f3b83cd | 1 | # |
403a0e9f | 2 | # TODO: |
2b6f92d1 | 3 | # - system ovmf, ipxe? (like system seabios) |
263a9ffc JK |
4 | # - check if other tools/libs are not usable in domU, move them to -guest |
5 | # packages if so | |
7f699907 JK |
6 | # - pass bconds to qemu configure script (tricky, as the script is called from |
7 | # Xen Makefiles) | |
9d5c1e3f JK |
8 | # - fix %doc - some files are installed in docdir both by make install and %d, |
9 | # other are installed once | |
33ce8ee4 | 10 | # - mini-os objects are relinked on install (because of .PHONY rules used to make them) |
b650a78f | 11 | # |
732e4a65 | 12 | # Conditional build: |
32d7e160 JB |
13 | %bcond_without qemu_traditional # without qemu-xen-traditional |
14 | %bcond_without opengl # OpenGL support in Xen qemu | |
15 | %bcond_without sdl # SDL support in Xen qemu | |
16 | %bcond_without bluetooth # bluetooth support in Xen qemu | |
17 | %bcond_without brlapi # brlapi support in Xen qemu | |
a61f3252 | 18 | %bcond_with golang # Go library |
32d7e160 | 19 | %bcond_without ocaml # Ocaml libraries for Xen tools |
11aefea4 | 20 | %bcond_with python2 # CPython 2.x module instead of 3.x |
32d7e160 JB |
21 | %bcond_without efi # EFI hypervisor |
22 | %bcond_without hypervisor # Xen hypervisor build | |
23 | %bcond_without stubdom # stubdom build | |
24 | %bcond_without xsm # XSM security module (by default, Flask) | |
695d15a0 | 25 | |
57359e3c | 26 | %ifnarch %{x8664} %{arm} |
695d15a0 JB |
27 | %undefine with_hypervisor |
28 | %endif | |
0c4e0eaf | 29 | %ifnarch %{x8664} |
2c37e39c JK |
30 | %undefine with_efi |
31 | %endif | |
695d15a0 JB |
32 | %ifnarch %{ix86} %{x8664} |
33 | %undefine with_stubdom | |
34 | %endif | |
2c37e39c | 35 | |
a32594c7 JK |
36 | # from ./stubdom/configure.ac |
37 | %define polarssl_version 1.1.4 | |
38 | %define tpm_emulator_version 0.7.4 | |
39 | %define gmp_version 4.3.2 | |
40 | ||
76ba9680 | 41 | %define xen_extfiles_url https://xenbits.xensource.com/xen-extfiles |
adbb6385 | 42 | Summary: Xen - a virtual machine monitor |
a1a3c257 | 43 | Summary(pl.UTF-8): Xen - monitor maszyny wirtualnej |
fda6847b | 44 | Name: xen |
29ac5186 | 45 | Version: 4.14.5 |
291271b4 | 46 | Release: 1 |
e6e7d0de | 47 | License: GPL v2, interface parts on BSD-like |
129858a4 | 48 | Group: Applications/System |
57359e3c JB |
49 | # for available versions see https://www.xenproject.org/developers/teams/hypervisor.html |
50 | Source0: https://downloads.xenproject.org/release/xen/%{version}/%{name}-%{version}.tar.gz | |
29ac5186 | 51 | # Source0-md5: 6e1fa9a902bc760bb00a5bdeef9389ae |
c1281a11 | 52 | # used by stubdoms |
94b34ae4 | 53 | Source10: %{xen_extfiles_url}/lwip-1.3.0.tar.gz |
c1281a11 | 54 | # Source10-md5: 36cc57650cffda9a0269493be2a169bb |
94b34ae4 | 55 | Source11: %{xen_extfiles_url}/newlib-1.16.0.tar.gz |
c1281a11 | 56 | # Source11-md5: bf8f1f9e3ca83d732c00a79a6ef29bc4 |
94b34ae4 | 57 | Source12: %{xen_extfiles_url}/zlib-1.2.3.tar.gz |
c1281a11 | 58 | # Source12-md5: debc62758716a169df9f62e6ab2bc634 |
94b34ae4 | 59 | Source13: %{xen_extfiles_url}/pciutils-2.2.9.tar.bz2 |
c1281a11 | 60 | # Source13-md5: cec05e7785497c5e19da2f114b934ffd |
94b34ae4 | 61 | Source14: %{xen_extfiles_url}/grub-0.97.tar.gz |
c1281a11 | 62 | # Source14-md5: cd3f3eb54446be6003156158d51f4884 |
76ba9680 | 63 | Source15: %{xen_extfiles_url}/ipxe-git-1dd56dbd11082fb622c2ed21cfaced4f47d798a6.tar.gz |
f487e205 | 64 | # Source15-md5: b3ab0488a989a089207302111d12e1a0 |
a32594c7 JK |
65 | Source17: %{xen_extfiles_url}/polarssl-%{polarssl_version}-gpl.tgz |
66 | # Source17-md5: 7b72caf22b01464ee7d6165f2fd85f44 | |
76ba9680 | 67 | Source18: %{xen_extfiles_url}/tpm_emulator-%{tpm_emulator_version}.tar.gz |
a32594c7 | 68 | # Source18-md5: e26becb8a6a2b6695f6b3e8097593db8 |
098fad19 | 69 | Source19: https://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2 |
a32594c7 | 70 | # Source19-md5: dd60683d7057917e34630b4a787932e8 |
2e8b91a6 | 71 | Source35: xenconsoled.sysconfig |
2e8b91a6 JR |
72 | Source37: xenstored.sysconfig |
73 | Source38: xenstored.tmpfiles | |
2e8b91a6 | 74 | # sysvinit scripts |
40222f4e | 75 | Source46: xen-qemu-dom0-disk-backend.init |
2e8b91a6 JR |
76 | Source51: xenconsoled.init |
77 | Source52: xenstored.init | |
78 | Source53: xen-watchdog.init | |
79 | Source54: xendomains.init | |
80 | Source55: xen.logrotate | |
5c00ee35 | 81 | Source56: xen.tmpfiles |
06e5dbe4 JK |
82 | Source57: xen.cfg |
83 | Source58: xen.efi-boot-update | |
2ea512d8 | 84 | Source59: vif-openvswitch |
e9dbc551 JR |
85 | Source60: xen-init-list |
86 | Source61: xen-toolstack | |
11aefea4 | 87 | # shebang patch for python2-only scripts |
47d65e01 | 88 | Patch0: %{name}-python_scripts.patch |
e9753e37 | 89 | Patch1: %{name}-symbols.patch |
9178a513 | 90 | Patch2: %{name}-link.patch |
7f699907 | 91 | Patch3: pygrubfix.patch |
bf4f47e8 | 92 | # Warning: this disables ingress filtering implemented in xen scripts! |
36ddb7bd JR |
93 | Patch4: %{name}-net-disable-iptables-on-bridge.patch |
94 | Patch5: %{name}-qemu.patch | |
95 | Patch6: %{name}-doc.patch | |
96 | Patch7: %{name}-paths.patch | |
97 | Patch8: %{name}-no_fetcher.patch | |
98 | Patch9: %{name}-no_Werror.patch | |
99 | Patch10: %{name}-stubdom-build.patch | |
100 | Patch11: link.patch | |
101 | Patch12: %{name}-systemd.patch | |
102 | Patch13: sysmacros.patch | |
103 | Patch14: gcc9.patch | |
104 | Patch15: gcc10.patch | |
9157dbbf | 105 | Patch16: ocaml-4.12.patch |
a61f3252 | 106 | Patch17: %{name}-golang-32bit.patch |
7f699907 | 107 | URL: http://www.xen.org/products/xenhyp.html |
32d7e160 | 108 | BuildRequires: autoconf >= 2.67 |
1c511a89 | 109 | %ifarch %{ix86} %{x8664} |
24d6dc2b | 110 | BuildRequires: acpica |
2e8b91a6 | 111 | BuildRequires: bcc |
695d15a0 | 112 | BuildRequires: bin86 |
1c511a89 | 113 | %endif |
c306fd7f | 114 | %{?with_efi:BuildRequires: binutils >= 3:2.23.51.0.3-2} |
1c511a89 | 115 | BuildRequires: bzip2-devel |
c40b7d13 JK |
116 | %if %{with xsm} |
117 | BuildRequires: checkpolicy | |
118 | %endif | |
57359e3c JB |
119 | # tpm_emulator uses cmake |
120 | BuildRequires: cmake >= 2.4 | |
d9ee3ddc | 121 | BuildRequires: e2fsprogs-devel |
57359e3c | 122 | BuildRequires: fig2dev |
a61f3252 | 123 | BuildRequires: gcc >= 6:4.8 |
3bf78b17 JK |
124 | %ifarch %{x8664} |
125 | BuildRequires: gcc-multilib-32 >= 6:4.1 | |
126 | %endif | |
77856a37 | 127 | BuildRequires: gettext-tools |
a61f3252 | 128 | %{?with_golang:BuildRequires: golang >= 1.11} |
1c511a89 | 129 | BuildRequires: libaio-devel |
57359e3c JB |
130 | %ifarch %{arm} aarch64 |
131 | BuildRequires: libfdt-devel >= 1.4.0 | |
32d7e160 | 132 | %endif |
32d7e160 | 133 | BuildRequires: libnl-devel >= 3.2.8 |
1c511a89 JB |
134 | BuildRequires: libuuid-devel |
135 | BuildRequires: lzo-devel >= 2 | |
403a0e9f | 136 | BuildRequires: ncurses-devel |
732e4a65 | 137 | %if %{with ocaml} |
2b6f92d1 | 138 | BuildRequires: ocaml >= 4.02.0 |
732e4a65 | 139 | BuildRequires: ocaml-findlib |
732e4a65 | 140 | %endif |
9178a513 | 141 | BuildRequires: pandoc |
1c511a89 | 142 | BuildRequires: perl-base |
695d15a0 | 143 | BuildRequires: perl-tools-pod |
abdd4c6d | 144 | BuildRequires: pkgconfig |
11aefea4 | 145 | %if %{with python2} |
a61f3252 | 146 | BuildRequires: python-devel >= 1:2.7 |
9178a513 | 147 | BuildRequires: python-markdown |
11aefea4 JB |
148 | %else |
149 | BuildRequires: python3-devel >= 1:3.2 | |
150 | BuildRequires: python3-markdown | |
151 | %endif | |
48c47956 | 152 | BuildRequires: rpm-pythonprov |
5db31b25 | 153 | BuildRequires: rpmbuild(macros) >= 1.647 |
fdc4685d | 154 | BuildRequires: seabios |
7f699907 | 155 | BuildRequires: texlive-dvips |
f03e6adf | 156 | BuildRequires: texlive-latex-psnfss |
55fc09d2 | 157 | BuildRequires: texlive-xetex |
12f352e2 | 158 | BuildRequires: which |
32d7e160 JB |
159 | BuildRequires: xz-devel |
160 | BuildRequires: yajl-devel | |
161 | BuildRequires: zlib-devel | |
25d0da1e | 162 | %if %{with qemu_traditional} |
32d7e160 JB |
163 | %{?with_opengl:BuildRequires: OpenGL-devel} |
164 | %{?with_sdl:BuildRequires: SDL-devel >= 1.2.1} | |
165 | %{?with_bluetooth:BuildRequires: bluez-libs-devel} | |
166 | %{?with_brlapi:BuildRequires: brlapi-devel} | |
2b6f92d1 JB |
167 | BuildRequires: gnutls-devel |
168 | BuildRequires: pciutils-devel | |
57359e3c | 169 | BuildRequires: pixman-devel >= 0.21.8 |
32d7e160 | 170 | BuildRequires: vde2-devel |
57359e3c JB |
171 | # for xfsctl (<xfs/xfs.h>) |
172 | BuildRequires: xfsprogs-devel | |
04f24179 JB |
173 | BuildRequires: xorg-lib-libX11-devel |
174 | BuildRequires: xorg-lib-libXext-devel | |
25d0da1e | 175 | %endif |
25d0da1e | 176 | %if %{with qemu_traditional} |
1c511a89 JB |
177 | # FIXME: see qemu configure comments on top of spec |
178 | %{!?with_opengl:BuildConflicts: OpenGL-devel} | |
179 | %{!?with_sdl:BuildConflicts: SDL-devel} | |
180 | %{!?with_sdl:BuildConflicts: SDL-devel} | |
181 | %{!?with_bluetooth:BuildConflicts: bluez-libs-devel} | |
182 | %{!?with_brlapi:BuildConflicts: brlapi-devel} | |
25d0da1e | 183 | %endif |
129858a4 | 184 | Requires(post,preun): /sbin/chkconfig |
c2ee841b | 185 | Requires(post,preun,postun): systemd-units >= 38 |
9f9b2612 | 186 | Requires: %{name}-libs = %{version}-%{release} |
53503036 JB |
187 | Requires: ZopeInterface |
188 | Requires: bridge-utils | |
e77e45ff AM |
189 | Requires: coreutils |
190 | Requires: diffutils | |
d78769bd | 191 | Requires: gawk |
e77e45ff | 192 | Requires: iptables |
53503036 | 193 | Requires: losetup |
e77e45ff | 194 | Requires: net-tools |
11aefea4 | 195 | %if %{with python2} |
8e6e2740 | 196 | Requires: python-%{name} = %{version}-%{release} |
11aefea4 JB |
197 | %else |
198 | Requires: python3-%{name} = %{version}-%{release} | |
199 | %endif | |
129858a4 | 200 | Requires: rc-scripts |
e77e45ff | 201 | Requires: sed |
5db31b25 | 202 | Requires: systemd-units >= 38 |
a674a8b2 | 203 | Requires: util-linux |
e77e45ff | 204 | Requires: which |
263a9ffc | 205 | Requires: %{name}-guest = %{version}-%{release} |
25d0da1e JK |
206 | %ifarch %{ix86} %{x8664} |
207 | # for HVM | |
208 | Suggests: qemu-system-x86 | |
209 | %endif | |
13e39cc4 JB |
210 | Obsoletes: xen-doc < 3 |
211 | Obsoletes: xen-udev < 4.1.2-2 | |
212 | Obsoletes: xen-xend < 4.5 | |
57359e3c | 213 | ExclusiveArch: %{ix86} %{x8664} %{arm} aarch64 |
fda6847b AM |
214 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
215 | ||
02272923 | 216 | # some PPC/SPARC boot images in ELF format |
32d7e160 | 217 | %define _noautostrip .*%{_datadir}/\\(xen\\|qemu-xen\\)/qemu/\\(openbios-.*\\|palcode-clipper\\|s390-ccw.img\\) |
8f12ec8f | 218 | |
fda6847b AM |
219 | %description |
220 | This package contains the Xen hypervisor and Xen tools, needed to run | |
221 | virtual machines on x86 systems, together with the kernel-xen* | |
222 | packages. Information on how to use Xen can be found at the Xen | |
223 | project pages. | |
224 | ||
225 | Virtualisation can be used to run multiple versions or multiple Linux | |
226 | distributions on one system, or to test untrusted applications in a | |
227 | sandboxed environment. Note that the Xen technology is still in | |
228 | development, and this RPM has received extremely little testing. Don't | |
229 | be surprised if this RPM eats your data, drinks your coffee or makes | |
230 | fun of you in front of your friends. | |
231 | ||
d2a30a0d | 232 | %description -l pl.UTF-8 |
3615a8c8 | 233 | Ten pakiet zawiera nadzorcę oraz narzędzia Xen, potrzebne do |
adbb6385 | 234 | uruchamiania wirtualnych maszyn w systemach x86, wraz z pakietami |
3615a8c8 | 235 | kernel-xen*. Informacje jak używać Xena można znaleźć na stronach |
adbb6385 JB |
236 | projektu. |
237 | ||
3615a8c8 | 238 | Wirtualizacja może być używana do uruchamiania wielu wersji lub wielu |
dcba01a0 | 239 | dystrybucji Linuksa na jednym systemie lub do testowania nie zaufanych |
3615a8c8 ER |
240 | aplikacji w odizolowanym środowisku. Należy zauważyć, że technologia |
241 | Xen jest ciągle rozwijana, a ten RPM był słabo testowany. Nie należy | |
242 | być zdziwionym, jeśli ten pakiet zje dane, wypije całą kawę czy będzie | |
243 | się wyśmiewał w obecności przyjaciół. | |
403a0e9f | 244 | |
263a9ffc JK |
245 | %package guest |
246 | Summary: Xen tools for virtual machines | |
247 | Summary(pl.UTF-8): Narzędzia Xen dla maszyn virtualnych | |
248 | Group: Applications/System | |
249 | Requires: %{name}-libs-guest = %{version}-%{release} | |
250 | ||
251 | %description guest | |
252 | Xen utilities for both dom0 and domU virtual domains. | |
253 | ||
254 | %description guest -l pl.UTF-8 | |
255 | Narzędzia Xena dla maszyn wirtualnych dom0 i domU. | |
256 | ||
26412ee3 | 257 | %package libs |
e6e7d0de JB |
258 | Summary: Xen libraries |
259 | Summary(pl.UTF-8): Biblioteki Xena | |
26412ee3 | 260 | Group: Libraries |
a2f5a84a | 261 | Requires: %{name}-libs-guest = %{version}-%{release} |
57359e3c | 262 | Requires: libnl >= 3.2.8 |
26412ee3 JB |
263 | |
264 | %description libs | |
e6e7d0de | 265 | Xen libraries. |
26412ee3 JB |
266 | |
267 | %description libs -l pl.UTF-8 | |
e6e7d0de | 268 | Biblioteki Xena. |
26412ee3 | 269 | |
263a9ffc JK |
270 | %package libs-guest |
271 | Summary: Xen libraries for virtual machines | |
272 | Summary(pl.UTF-8): Biblioteki Xena dla maszyn wirtualnych | |
273 | Group: Libraries | |
274 | ||
275 | %description libs-guest | |
276 | Xen libraries for both dom0 and domU virtual machines. | |
277 | ||
278 | %description libs-guest -l pl.UTF-8 | |
279 | Biblioteki Xena dla maszyn wirtualnych dom0 i domU. | |
280 | ||
403a0e9f | 281 | %package devel |
e6e7d0de JB |
282 | Summary: Header files for Xen |
283 | Summary(pl.UTF-8): Pliki nagłówkowe Xena | |
403a0e9f | 284 | Group: Development/Libraries |
9f9b2612 | 285 | Requires: %{name}-libs = %{version}-%{release} |
403a0e9f AM |
286 | |
287 | %description devel | |
e6e7d0de | 288 | Header files for Xen. |
6eccf3e8 | 289 | |
d2a30a0d | 290 | %description devel -l pl.UTF-8 |
e6e7d0de | 291 | Pliki nagłówkowe Xena. |
403a0e9f AM |
292 | |
293 | %package static | |
e6e7d0de JB |
294 | Summary: Static Xen libraries |
295 | Summary(pl.UTF-8): Statyczne biblioteki Xena | |
403a0e9f | 296 | Group: Development/Libraries |
9f9b2612 | 297 | Requires: %{name}-devel = %{version}-%{release} |
403a0e9f AM |
298 | |
299 | %description static | |
e6e7d0de | 300 | Static Xen libraries. |
adbb6385 | 301 | |
d2a30a0d | 302 | %description static -l pl.UTF-8 |
e6e7d0de | 303 | Statyczne biblioteki Xena. |
6eccf3e8 | 304 | |
e6e7d0de JB |
305 | %package -n ocaml-xen |
306 | Summary: OCaml bindings for Xen | |
307 | Summary(pl.UTF-8): Wiązania OCamla dla Xena | |
308 | License: LGPL v2.1 with linking exception | |
309 | Group: Libraries | |
310 | Requires: %{name}-libs = %{version}-%{release} | |
1d76ff09 | 311 | %if %{with ocaml} |
e6e7d0de | 312 | %requires_eq ocaml-runtime |
1d76ff09 | 313 | %endif |
f249176d | 314 | |
e6e7d0de JB |
315 | %description -n ocaml-xen |
316 | OCaml bindings for Xen. | |
317 | ||
318 | %description -n ocaml-xen -l pl.UTF-8 | |
319 | Wiązania OCamla dla Xena. | |
320 | ||
321 | %package -n ocaml-xen-devel | |
322 | Summary: OCaml bindings for Xen - development files | |
323 | Summary(pl.UTF-8): Wiązania OCamla dla Xena - pliki programistyczne | |
324 | License: LGPL v2.1 with linking exception | |
325 | Group: Development/Libraries | |
326 | Requires: ocaml-xen = %{version}-%{release} | |
1d76ff09 | 327 | %if %{with ocaml} |
e6e7d0de | 328 | %requires_eq ocaml |
1d76ff09 | 329 | %endif |
e6e7d0de JB |
330 | |
331 | %description -n ocaml-xen-devel | |
332 | OCaml bindings for Xen - development files. | |
333 | ||
334 | %description -n ocaml-xen-devel -l pl.UTF-8 | |
335 | Wiązania OCamla dla Xena - pliki programistyczne. | |
336 | ||
5dd334af | 337 | %package -n python-xen |
e6e7d0de JB |
338 | Summary: Xen Python modules |
339 | Summary(pl.UTF-8): Moduły Pythona dla Xena | |
5dd334af | 340 | Group: Libraries |
e6e7d0de | 341 | Requires: %{name}-libs = %{version}-%{release} |
e35fda92 | 342 | Conflicts: xen < 3.2.1-0.3 |
5dd334af JB |
343 | |
344 | %description -n python-xen | |
e6e7d0de | 345 | Xen Python modules. |
5dd334af JB |
346 | |
347 | %description -n python-xen -l pl.UTF-8 | |
e6e7d0de | 348 | Moduły Pythona dla Xena. |
5dd334af | 349 | |
263a9ffc JK |
350 | %package -n python-xen-guest |
351 | Summary: Xen Python modules for virtual machines | |
352 | Summary(pl.UTF-8): Moduły Pythona dla maszyn wirtualnych Xena | |
353 | Group: Libraries | |
354 | Requires: %{name}-libs-guest = %{version}-%{release} | |
355 | Conflicts: xen < 3.2.1-0.3 | |
356 | ||
357 | %description -n python-xen-guest | |
358 | Xen Python modules for both dom0 and domU virtual machines. | |
359 | ||
360 | %description -n python-xen-guest -l pl.UTF-8 | |
361 | Moduły Pythona dla maszyn wirtualnych dom0 i domU. | |
362 | ||
11aefea4 JB |
363 | %package -n python3-xen |
364 | Summary: Xen Python 3 modules | |
365 | Summary(pl.UTF-8): Moduły Pythona 3 dla Xena | |
366 | Group: Libraries | |
367 | Requires: %{name}-libs = %{version}-%{release} | |
368 | Obsoletes: python-xen < %{version}-%{release} | |
369 | ||
370 | %description -n python3-xen | |
371 | Xen Python 3 modules. | |
372 | ||
373 | %description -n python3-xen -l pl.UTF-8 | |
374 | Moduły Pythona 3 dla Xena. | |
375 | ||
376 | %package -n python3-xen-guest | |
377 | Summary: Xen Python 3 modules for virtual machines | |
378 | Summary(pl.UTF-8): Moduły Pythona 3 dla maszyn wirtualnych Xena | |
379 | Group: Libraries | |
380 | Requires: %{name}-libs-guest = %{version}-%{release} | |
381 | Obsoletes: python-xen-guest < %{version}-%{release} | |
382 | ||
383 | %description -n python3-xen-guest | |
384 | Xen Python 3 modules for both dom0 and domU virtual machines. | |
385 | ||
386 | %description -n python3-xen-guest -l pl.UTF-8 | |
387 | Moduły Pythona 3 dla maszyn wirtualnych dom0 i domU. | |
388 | ||
e9753e37 | 389 | %package -n bash-completion-%{name} |
32d7e160 | 390 | Summary: bash-completion for Xen (xl) |
e6e7d0de | 391 | Summary(pl.UTF-8): Bashowe dopełnianie poleceń dla Xena (xl) |
32d7e160 JB |
392 | Group: Applications/Shells |
393 | Requires: %{name} = %{version}-%{release} | |
394 | Requires: bash-completion | |
e9753e37 MM |
395 | |
396 | %description -n bash-completion-%{name} | |
e6e7d0de | 397 | This package provides bash-completion for Xen (xl). |
94b34ae4 JB |
398 | |
399 | %description -n bash-completion-%{name} -l pl.UTF-8 | |
e6e7d0de | 400 | Ten pakiet zapewnia bashowe dopełnianie poleceń dla Xena (xl). |
e9753e37 | 401 | |
2c37e39c JK |
402 | %package efi |
403 | Summary: Xen hypervisor binary for EFI | |
f8df531d | 404 | Summary(pl.UTF-8): Hipernadzorca Xen dla EFI |
2c37e39c JK |
405 | Group: Applications/System |
406 | Requires: %{name}-libs-guest = %{version}-%{release} | |
407 | ||
408 | %description efi | |
409 | Xen hypervisor EFI binary, which can be booted directly from (U)EFI | |
410 | firmware without help from any additional bootloader. | |
411 | ||
412 | %description efi -l pl.UTF-8 | |
413 | Nadzorca Xen w postaci, która może być uruchomiona wprost z firmware | |
414 | (U)EFI, bez potrzeby oddzielnego bootloadera. | |
415 | ||
fda6847b | 416 | %prep |
fdc4685d | 417 | %setup -q |
47d65e01 | 418 | %patch0 -p1 |
7f699907 JK |
419 | %patch1 -p1 |
420 | %patch2 -p1 | |
421 | %patch3 -p1 | |
9178a513 | 422 | %patch4 -p1 |
36ddb7bd JR |
423 | %patch5 -p1 |
424 | %patch6 -p1 | |
7f699907 | 425 | %patch7 -p1 |
36ddb7bd JR |
426 | %patch8 -p1 |
427 | %patch9 -p1 | |
6ca9eddd | 428 | %patch10 -p1 |
36ddb7bd | 429 | %patch11 -p1 |
30059e8d | 430 | %patch12 -p1 |
7abe351d | 431 | %patch13 -p1 |
0f2742aa | 432 | %patch14 -p1 |
2b6f92d1 JB |
433 | %if %(echo %{cc_version} | cut -d. -f1) >= 10 |
434 | # -Wno-error=enum-conversion requires gcc 10 | |
78fdf904 | 435 | %patch15 -p1 |
2b6f92d1 | 436 | %endif |
9157dbbf | 437 | %patch16 -p1 |
a61f3252 JB |
438 | %ifarch %{ix86} %{arm} |
439 | %patch17 -p1 | |
440 | %endif | |
c1281a11 ER |
441 | |
442 | # stubdom sources | |
443 | ln -s %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} stubdom | |
a32594c7 | 444 | ln -s %{SOURCE17} %{SOURCE18} %{SOURCE19} stubdom |
c1281a11 | 445 | ln -s %{SOURCE15} tools/firmware/etherboot/ipxe.tar.gz |
fda6847b | 446 | |
11aefea4 JB |
447 | |
448 | %if %{with python2} | |
449 | %{__sed} -i -e '1s,/usr/bin/env python$,%{__python},' \ | |
450 | %else | |
451 | %{__sed} -i -e '1s,/usr/bin/env python$,%{__python3},' \ | |
452 | %endif | |
453 | tools/pygrub/src/pygrub \ | |
454 | tools/python/scripts/{convert-legacy-stream,verify-stream-v2} \ | |
455 | tools/xenmon/xenmon.py | |
456 | ||
7f699907 JK |
457 | # do not allow fetching anything via git |
458 | echo GIT=/bin/false >> Config.mk | |
459 | ||
fda6847b | 460 | %build |
0f2742aa JK |
461 | # based on the 'autoconf.sh' from the sources |
462 | %{__autoconf} | |
463 | cd tools | |
464 | %{__autoconf} | |
465 | %{__autoheader} | |
466 | cd ../stubdom | |
467 | %{__autoconf} | |
468 | cd ../docs | |
469 | %{__autoconf} | |
470 | cd .. | |
471 | ||
053d5886 JR |
472 | # if gold is used then bioses and grub doesn't build |
473 | install -d our-ld | |
bb96a194 | 474 | ln -f -s /usr/bin/ld.bfd our-ld/ld |
053d5886 JR |
475 | export PATH=$(pwd)/our-ld:$PATH |
476 | ||
32d7e160 JB |
477 | # NOTE on ac_cv_*: |
478 | # - use openssl (libcrypto) instead of libgcrypt as openssl is obligatory anyway | |
1c511a89 | 479 | # - prevent libiconv from being detected (not needed with glibc) |
36ddb7bd | 480 | |
bf4f47e8 | 481 | %configure \ |
1c511a89 | 482 | CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses" \ |
11aefea4 | 483 | %{?with_python2:PYTHON=%{__python}} \ |
32d7e160 | 484 | ac_cv_lib_gcrypt_gcry_md_hash_buffer=no \ |
1c511a89 | 485 | ac_cv_lib_iconv_libiconv_open=no \ |
32d7e160 | 486 | --disable-debug \ |
a61f3252 | 487 | %{!?with_golang:--disable-golang} \ |
32d7e160 | 488 | %{__enable_disable qemu_traditional qemu-traditional} \ |
fdc4685d | 489 | --with-system-seabios=/usr/share/seabios/bios.bin \ |
25d0da1e JK |
490 | %ifarch %{x8664} |
491 | --with-system-qemu=/usr/bin/qemu-system-x86_64 \ | |
492 | %else | |
493 | --with-system-qemu=/usr/bin/qemu-system-i386 \ | |
494 | %endif | |
32d7e160 | 495 | --with-systemd=%{systemdunitdir} |
bf4f47e8 | 496 | |
36ddb7bd JR |
497 | export EXTRA_CFLAGS_XEN_TOOLS="%{rpmcflags} -I/usr/include/ncurses" |
498 | export EXTRA_CFLAGS_QEMU_TRADITIONAL="%{rpmcflags} -I/usr/include/ncurses" | |
499 | export EXTRA_CFLAGS_QEMU_XEN="%{rpmcflags} -I/usr/include/ncurses" | |
500 | ||
501 | %{__make} dist-xen dist-tools dist-docs \ | |
04306e6b JR |
502 | %ifarch %{ix86} |
503 | XEN_COMPILE_ARCH=x86_32 \ | |
504 | %endif | |
505 | %ifarch %{x8664} | |
506 | XEN_COMPILE_ARCH=x86_64 \ | |
507 | %endif | |
732e4a65 | 508 | %{!?with_ocaml:OCAML_TOOLS=n} \ |
25d0da1e | 509 | XSM_ENABLE=%{?with_xsm:y}%{!?with_xsm:n} \ |
2e8b91a6 | 510 | CC="%{__cc}" \ |
04f24179 JB |
511 | CXX="%{__cxx}" \ |
512 | V=1 | |
2e8b91a6 | 513 | |
695d15a0 | 514 | %if %{with stubdom} |
36ddb7bd | 515 | %{__make} dist-stubdom \ |
04306e6b JR |
516 | %ifarch %{ix86} |
517 | XEN_COMPILE_ARCH=x86_32 \ | |
518 | %endif | |
519 | %ifarch %{x8664} | |
520 | XEN_COMPILE_ARCH=x86_64 \ | |
521 | %endif | |
732e4a65 | 522 | %{!?with_ocaml:OCAML_TOOLS=n} \ |
25d0da1e | 523 | XSM_ENABLE=%{?with_xsm:y}%{!?with_xsm:n} \ |
403a0e9f | 524 | CC="%{__cc}" \ |
7d9b5837 JB |
525 | CXX="%{__cxx}" \ |
526 | V=1 | |
695d15a0 | 527 | %endif |
fda6847b AM |
528 | |
529 | %install | |
530 | rm -rf $RPM_BUILD_ROOT | |
245547b2 | 531 | install -d $RPM_BUILD_ROOT/etc/{xen/examples,modules-load.d,logrotate.d} \ |
695d15a0 | 532 | $RPM_BUILD_ROOT{%{systemdtmpfilesdir},%{systemdunitdir},/var/log/xen/console} |
adbb6385 | 533 | |
695d15a0 JB |
534 | %if %{with efi} |
535 | install -d $RPM_BUILD_ROOT/etc/efi-boot/update.d | |
536 | %endif | |
537 | ||
36ddb7bd | 538 | %{__make} install-xen install-tools %{?with_stubdom:install-stubdom} install-docs \ |
04306e6b JR |
539 | %ifarch %{ix86} |
540 | XEN_COMPILE_ARCH=x86_32 \ | |
541 | %endif | |
542 | %ifarch %{x8664} | |
543 | XEN_COMPILE_ARCH=x86_64 \ | |
544 | %endif | |
732e4a65 | 545 | %{!?with_ocaml:OCAML_TOOLS=n} \ |
25d0da1e | 546 | XSM_ENABLE=%{?with_xsm:y}%{!?with_xsm:n} \ |
9e5cb9d3 JB |
547 | DESTDIR=$RPM_BUILD_ROOT \ |
548 | HOTPLUGS=install-udev | |
403a0e9f | 549 | |
4a5ac969 | 550 | install %{SOURCE35} $RPM_BUILD_ROOT/etc/sysconfig/xenconsoled |
4a5ac969 | 551 | install %{SOURCE37} $RPM_BUILD_ROOT/etc/sysconfig/xenstored |
88d6a3ef | 552 | |
2e8b91a6 JR |
553 | # sysvinit scripts |
554 | %{__rm} $RPM_BUILD_ROOT/etc/rc.d/init.d/* | |
85e6438c | 555 | %{__rm} $RPM_BUILD_ROOT/etc/sysconfig/xencommons |
2e8b91a6 JR |
556 | install %{SOURCE51} $RPM_BUILD_ROOT/etc/rc.d/init.d/xenconsoled |
557 | install %{SOURCE52} $RPM_BUILD_ROOT/etc/rc.d/init.d/xenstored | |
558 | install %{SOURCE53} $RPM_BUILD_ROOT/etc/rc.d/init.d/xen-watchdog | |
559 | install %{SOURCE54} $RPM_BUILD_ROOT/etc/rc.d/init.d/xendomains | |
b3e9565a | 560 | install %{SOURCE46} $RPM_BUILD_ROOT/etc/rc.d/init.d/xen-qemu-dom0-disk-backend |
245547b2 | 561 | install %{SOURCE55} $RPM_BUILD_ROOT/etc/logrotate.d/xen |
99724523 | 562 | install %{SOURCE56} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/xen.conf |
32d7e160 JB |
563 | install -d $RPM_BUILD_ROOT/var/run/xenstored |
564 | install %{SOURCE38} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/xenstored.conf | |
2e8b91a6 | 565 | |
6f09bc96 JR |
566 | install %{SOURCE60} $RPM_BUILD_ROOT%{_libexecdir}/%{name}/bin/xen-init-list |
567 | install %{SOURCE61} $RPM_BUILD_ROOT%{_libexecdir}/%{name}/bin/xen-toolstack | |
568 | ||
569 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \ | |
570 | $RPM_BUILD_ROOT%{_libexecdir}/%{name}/bin/pygrub | |
e9dbc551 | 571 | |
06e5dbe4 JK |
572 | %if %{with efi} |
573 | install %{SOURCE57} $RPM_BUILD_ROOT/etc/efi-boot/xen.cfg | |
574 | sed -e's;@libdir@;%{_libdir};g' -e's;@target_cpu@;%{_target_cpu};g' \ | |
575 | %{SOURCE58} > $RPM_BUILD_ROOT/etc/efi-boot/update.d/xen.conf | |
576 | %endif | |
577 | ||
88d6a3ef | 578 | %{__mv} $RPM_BUILD_ROOT/etc/xen/{xlexample*,examples} |
fda6847b | 579 | |
2ea512d8 JR |
580 | install %{SOURCE59} $RPM_BUILD_ROOT%{_sysconfdir}/xen/scripts/vif-openvswitch |
581 | ||
7f699907 JK |
582 | # for %%doc |
583 | install -d _doc | |
6f09bc96 | 584 | cp -p tools/pygrub/README _doc/README.pygrub |
67494ff6 | 585 | |
11aefea4 | 586 | %if %{with python2} |
90eccaeb ER |
587 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
588 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
589 | ||
590 | %py_postclean | |
11aefea4 JB |
591 | %else |
592 | %py3_comp $RPM_BUILD_ROOT%{py3_sitedir} | |
593 | %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir} | |
594 | %endif | |
e9753e37 | 595 | |
86497794 | 596 | # remove unneeded files |
695d15a0 | 597 | %if %{with hypervisor} |
36341d10 | 598 | %{__mv} xen/xen-syms $RPM_BUILD_ROOT/boot/%{name}-syms-%{version} |
a61f3252 | 599 | %{__rm} $RPM_BUILD_ROOT/boot/xen-4.14.gz |
e9753e37 | 600 | %{__rm} $RPM_BUILD_ROOT/boot/xen-4.gz |
695d15a0 | 601 | %endif |
8641374c | 602 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/xen |
e9753e37 | 603 | %{__rm} $RPM_BUILD_ROOT%{_includedir}/%{name}/COPYING |
d26491b9 | 604 | |
fda6847b AM |
605 | %clean |
606 | rm -rf $RPM_BUILD_ROOT | |
607 | ||
403a0e9f | 608 | %post |
90a21d83 | 609 | /sbin/chkconfig --add xen-watchdog |
2e8b91a6 JR |
610 | /sbin/chkconfig --add xenconsoled |
611 | /sbin/chkconfig --add xenstored | |
403a0e9f | 612 | /sbin/chkconfig --add xendomains |
b3e9565a | 613 | /sbin/chkconfig --add xen-qemu-dom0-disk-backend |
287e6685 | 614 | NORESTART=1 |
b3e9565a | 615 | %systemd_post xen-watchdog.service xenconsoled.service xenstored.service xendomains.service xen-qemu-dom0-disk-backend.service |
403a0e9f | 616 | |
403a0e9f | 617 | %preun |
e9753e37 MM |
618 | if [ "$1" = "0" ]; then |
619 | %service xendomains stop | |
620 | /sbin/chkconfig --del xendomains | |
621 | ||
2e8b91a6 JR |
622 | %service xenconsoled stop |
623 | /sbin/chkconfig --del xenconsoled | |
624 | ||
625 | %service xenstored stop | |
626 | /sbin/chkconfig --del xenstored | |
90a21d83 MM |
627 | |
628 | %service xen-watchdog stop | |
629 | /sbin/chkconfig --del xen-watchdog | |
b3e9565a JK |
630 | |
631 | %service xen-qemu-dom0-disk-backend stop | |
632 | /sbin/chkconfig --del xen-qemu-dom0-disk-backend | |
e9753e37 | 633 | fi |
b3e9565a | 634 | %systemd_preun xen-watchdog.service xenconsoled.service xenstored.service xendomains.service xen-qemu-dom0-disk-backend.service |
e9753e37 | 635 | |
5db31b25 JR |
636 | %postun |
637 | %systemd_reload | |
638 | ||
26412ee3 JB |
639 | %post libs -p /sbin/ldconfig |
640 | %postun libs -p /sbin/ldconfig | |
641 | ||
263a9ffc JK |
642 | %post libs-guest -p /sbin/ldconfig |
643 | %postun libs-guest -p /sbin/ldconfig | |
644 | ||
f276cc13 JK |
645 | %post efi |
646 | [ -x /sbin/efi-boot-update ] && /sbin/efi-boot-update --auto || : | |
647 | ||
fda6847b AM |
648 | %files |
649 | %defattr(644,root,root,755) | |
695d15a0 JB |
650 | %doc COPYING README* docs/misc/* docs/html/* _doc/* |
651 | %if %{with hypervisor} | |
98fa2458 | 652 | /boot/%{name}-syms-%{version} |
6f09bc96 | 653 | /boot/%{name}-%{version}.config |
98fa2458 | 654 | /boot/%{name}-%{version}.gz |
fda6847b | 655 | /boot/%{name}.gz |
695d15a0 | 656 | %endif |
c40b7d13 | 657 | %if %{with xsm} |
32d7e160 | 658 | /boot/xenpolicy-%{version} |
c40b7d13 | 659 | %endif |
6ca9eddd JR |
660 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xenconsoled |
661 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xenstored | |
662 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xendomains | |
245547b2 | 663 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/xen |
90a21d83 | 664 | %attr(754,root,root) /etc/rc.d/init.d/xen-watchdog |
2e8b91a6 JR |
665 | %attr(754,root,root) /etc/rc.d/init.d/xenconsoled |
666 | %attr(754,root,root) /etc/rc.d/init.d/xenstored | |
e9753e37 | 667 | %attr(754,root,root) /etc/rc.d/init.d/xendomains |
b3e9565a | 668 | %attr(754,root,root) /etc/rc.d/init.d/xen-qemu-dom0-disk-backend |
32d7e160 | 669 | %{_prefix}/lib/modules-load.d/xen.conf |
2e8b91a6 JR |
670 | %{systemdunitdir}/proc-xen.mount |
671 | %{systemdunitdir}/var-lib-xenstored.mount | |
32d7e160 | 672 | %{systemdunitdir}/xen-init-dom0.service |
2e8b91a6 JR |
673 | %{systemdunitdir}/xen-watchdog.service |
674 | %{systemdunitdir}/xenconsoled.service | |
675 | %{systemdunitdir}/xenstored.service | |
9178a513 | 676 | %{systemdunitdir}/xendriverdomain.service |
e9dbc551 | 677 | %{systemdunitdir}/xendomains.service |
b3e9565a | 678 | %{systemdunitdir}/xen-qemu-dom0-disk-backend.service |
403a0e9f | 679 | %dir %{_sysconfdir}/xen |
403a0e9f | 680 | %dir %{_sysconfdir}/xen/auto |
e9753e37 | 681 | %dir %{_sysconfdir}/xen/examples |
403a0e9f AM |
682 | %dir %{_sysconfdir}/xen/scripts |
683 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/scripts/* | |
e9753e37 MM |
684 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/examples/* |
685 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/README* | |
686 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/cpupool | |
687 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/xl.conf | |
94b34ae4 | 688 | %attr(755,root,root) %{_bindir}/pygrub |
25d0da1e | 689 | %if %{with qemu_traditional} |
94b34ae4 JB |
690 | %attr(755,root,root) %{_bindir}/qemu-img-xen |
691 | %attr(755,root,root) %{_bindir}/qemu-nbd-xen | |
25d0da1e | 692 | %endif |
a61f3252 | 693 | %attr(755,root,root) %{_bindir}/vchan-socket-proxy |
9178a513 | 694 | %attr(755,root,root) %{_bindir}/xen-cpuid |
16d5148e | 695 | %attr(755,root,root) %{_bindir}/xenalyze |
94b34ae4 | 696 | %attr(755,root,root) %{_bindir}/xencons |
695d15a0 | 697 | %attr(755,root,root) %{_bindir}/xencov_split |
16d5148e | 698 | %attr(755,root,root) %{_bindir}/xentrace_format |
25d0da1e | 699 | %if %{with xsm} |
94b34ae4 | 700 | %attr(755,root,root) %{_sbindir}/flask-* |
25d0da1e | 701 | %endif |
94b34ae4 | 702 | %attr(755,root,root) %{_sbindir}/gdbsx |
94b34ae4 JB |
703 | %attr(755,root,root) %{_sbindir}/xen-* |
704 | %attr(755,root,root) %{_sbindir}/xenbaked | |
705 | %attr(755,root,root) %{_sbindir}/xenconsoled | |
695d15a0 | 706 | %attr(755,root,root) %{_sbindir}/xencov |
a61f3252 | 707 | %attr(755,root,root) %{_sbindir}/xenhypfs |
94b34ae4 | 708 | %attr(755,root,root) %{_sbindir}/xenlockprof |
6f09bc96 | 709 | %attr(755,root,root) %{_sbindir}/xenmon |
94b34ae4 JB |
710 | %attr(755,root,root) %{_sbindir}/xenperf |
711 | %attr(755,root,root) %{_sbindir}/xenpm | |
712 | %attr(755,root,root) %{_sbindir}/xenpmd | |
713 | %attr(755,root,root) %{_sbindir}/xenstored | |
714 | %attr(755,root,root) %{_sbindir}/xentop | |
16d5148e | 715 | %attr(755,root,root) %{_sbindir}/xentrace |
94b34ae4 | 716 | %attr(755,root,root) %{_sbindir}/xentrace_setmask |
16d5148e | 717 | %attr(755,root,root) %{_sbindir}/xentrace_setsize |
94b34ae4 | 718 | %attr(755,root,root) %{_sbindir}/xenwatchdogd |
e9753e37 | 719 | %attr(755,root,root) %{_sbindir}/xl |
6f09bc96 JR |
720 | %dir %{_libexecdir}/%{name} |
721 | %dir %{_libexecdir}/%{name}/bin | |
722 | %attr(744,root,root) %{_libexecdir}/%{name}/bin/* | |
723 | %dir %{_libexecdir}/%{name}/boot | |
695d15a0 | 724 | %if %{with stubdom} |
25d0da1e | 725 | %if %{with qemu_traditional} |
6f09bc96 | 726 | %{_libexecdir}/%{name}/boot/ioemu-stubdom.gz |
25d0da1e | 727 | %endif |
695d15a0 | 728 | %ifarch %{ix86} %{x8664} |
6f09bc96 | 729 | %{_libexecdir}/%{name}/boot/pv-grub-x86_32.gz |
695d15a0 | 730 | %endif |
10a7e15f | 731 | %ifarch %{x8664} |
6f09bc96 | 732 | %{_libexecdir}/%{name}/boot/pv-grub-x86_64.gz |
10a7e15f | 733 | %endif |
6f09bc96 JR |
734 | %{_libexecdir}/%{name}/boot/vtpm-stubdom.gz |
735 | %{_libexecdir}/%{name}/boot/vtpmmgr-stubdom.gz | |
736 | %{_libexecdir}/%{name}/boot/xenstore-stubdom.gz | |
695d15a0 | 737 | %endif |
6f09bc96 | 738 | %{_libexecdir}/%{name}/boot/ipxe.bin |
04306e6b | 739 | %ifarch %{x8664} |
6f09bc96 | 740 | %{_libexecdir}/%{name}/boot/xen-shim |
04306e6b | 741 | %endif |
6f09bc96 | 742 | %attr(744,root,root) %{_libexecdir}/%{name}/boot/hvmloader |
a61f3252 | 743 | %{_mandir}/man1/xenhypfs.1* |
94b34ae4 JB |
744 | %{_mandir}/man1/xentop.1* |
745 | %{_mandir}/man1/xentrace_format.1* | |
7f699907 | 746 | %{_mandir}/man1/xl.1* |
7f699907 JK |
747 | %{_mandir}/man5/xl.cfg.5* |
748 | %{_mandir}/man5/xl.conf.5* | |
9178a513 JB |
749 | %{_mandir}/man5/xl-disk-configuration.5* |
750 | %{_mandir}/man5/xl-network-configuration.5* | |
7f699907 | 751 | %{_mandir}/man5/xlcpupool.cfg.5* |
9178a513 JB |
752 | %{_mandir}/man7/xen-pci-device-reservations.7* |
753 | %{_mandir}/man7/xen-pv-channel.7* | |
754 | %{_mandir}/man7/xen-tscmode.7* | |
755 | %{_mandir}/man7/xen-vbd-interface.7* | |
756 | %{_mandir}/man7/xen-vtpm.7* | |
757 | %{_mandir}/man7/xen-vtpmmgr.7* | |
758 | %{_mandir}/man7/xl-numa-placement.7* | |
94b34ae4 | 759 | %{_mandir}/man8/xentrace.8* |
47d65e01 JK |
760 | %{_sharedstatedir}/xen |
761 | %{_sharedstatedir}/xenstored | |
47d65e01 | 762 | %dir /var/run/xenstored |
5c00ee35 | 763 | %{systemdtmpfilesdir}/xen.conf |
32d7e160 | 764 | %{systemdtmpfilesdir}/xenstored.conf |
ba7770de JR |
765 | %dir %attr(0700,root,root) /var/log/xen |
766 | %dir %attr(0700,root,root) /var/log/xen/console | |
25d0da1e JK |
767 | %if %{with qemu_traditional} |
768 | %{_datadir}/xen | |
769 | %endif | |
403a0e9f | 770 | |
263a9ffc JK |
771 | %files guest |
772 | %defattr(644,root,root,755) | |
773 | %attr(755,root,root) %{_bindir}/xen-detect | |
88d6a3ef JR |
774 | %attr(755,root,root) %{_bindir}/xenstore |
775 | %attr(755,root,root) %{_bindir}/xenstore-chmod | |
776 | %attr(755,root,root) %{_bindir}/xenstore-control | |
777 | %attr(755,root,root) %{_bindir}/xenstore-exists | |
778 | %attr(755,root,root) %{_bindir}/xenstore-list | |
779 | %attr(755,root,root) %{_bindir}/xenstore-ls | |
780 | %attr(755,root,root) %{_bindir}/xenstore-read | |
781 | %attr(755,root,root) %{_bindir}/xenstore-rm | |
782 | %attr(755,root,root) %{_bindir}/xenstore-watch | |
783 | %attr(755,root,root) %{_bindir}/xenstore-write | |
784 | %{_mandir}/man1/xenstore.1* | |
785 | %{_mandir}/man1/xenstore-chmod.1* | |
786 | %{_mandir}/man1/xenstore-ls.1* | |
6f09bc96 JR |
787 | %{_mandir}/man1/xenstore-read.1* |
788 | %{_mandir}/man1/xenstore-write.1* | |
263a9ffc | 789 | |
26412ee3 | 790 | %files libs |
403a0e9f | 791 | %defattr(644,root,root,755) |
6f09bc96 | 792 | %attr(755,root,root) %{_libdir}/libxenfsimage.so.*.*.* |
a61f3252 | 793 | %attr(755,root,root) %ghost %{_libdir}/libxenfsimage.so.4.14 |
9178a513 JB |
794 | %attr(755,root,root) %{_libdir}/libxencall.so.*.* |
795 | %attr(755,root,root) %ghost %{_libdir}/libxencall.so.1 | |
94b34ae4 | 796 | %attr(755,root,root) %{_libdir}/libxenctrl.so.*.*.* |
a61f3252 | 797 | %attr(755,root,root) %ghost %{_libdir}/libxenctrl.so.4.14 |
9178a513 JB |
798 | %attr(755,root,root) %{_libdir}/libxendevicemodel.so.*.* |
799 | %attr(755,root,root) %ghost %{_libdir}/libxendevicemodel.so.1 | |
800 | %attr(755,root,root) %{_libdir}/libxenevtchn.so.*.* | |
801 | %attr(755,root,root) %ghost %{_libdir}/libxenevtchn.so.1 | |
802 | %attr(755,root,root) %{_libdir}/libxenforeignmemory.so.*.* | |
803 | %attr(755,root,root) %ghost %{_libdir}/libxenforeignmemory.so.1 | |
804 | %attr(755,root,root) %{_libdir}/libxengnttab.so.*.* | |
805 | %attr(755,root,root) %ghost %{_libdir}/libxengnttab.so.1 | |
94b34ae4 | 806 | %attr(755,root,root) %{_libdir}/libxenguest.so.*.*.* |
a61f3252 JB |
807 | %attr(755,root,root) %ghost %{_libdir}/libxenguest.so.4.14 |
808 | %attr(755,root,root) %{_libdir}/libxenhypfs.so.*.* | |
809 | %attr(755,root,root) %ghost %{_libdir}/libxenhypfs.so.1 | |
94b34ae4 | 810 | %attr(755,root,root) %{_libdir}/libxenlight.so.*.*.* |
a61f3252 | 811 | %attr(755,root,root) %ghost %{_libdir}/libxenlight.so.4.14 |
6f09bc96 | 812 | %attr(755,root,root) %{_libdir}/libxenstat.so.*.*.* |
a61f3252 | 813 | %attr(755,root,root) %ghost %{_libdir}/libxenstat.so.4.14 |
6f09bc96 JR |
814 | %attr(755,root,root) %{_libdir}/libxentoolcore.so.*.* |
815 | %attr(755,root,root) %ghost %{_libdir}/libxentoolcore.so.1 | |
9178a513 JB |
816 | %attr(755,root,root) %{_libdir}/libxentoollog.so.*.* |
817 | %attr(755,root,root) %ghost %{_libdir}/libxentoollog.so.1 | |
7f699907 | 818 | %attr(755,root,root) %{_libdir}/libxenvchan.so.*.*.* |
a61f3252 | 819 | %attr(755,root,root) %ghost %{_libdir}/libxenvchan.so.4.14 |
94b34ae4 | 820 | %attr(755,root,root) %{_libdir}/libxlutil.so.*.*.* |
a61f3252 | 821 | %attr(755,root,root) %ghost %{_libdir}/libxlutil.so.4.14 |
6f09bc96 JR |
822 | %dir %{_libdir}/xenfsimage |
823 | %dir %{_libdir}/xenfsimage/ext2fs-lib | |
824 | %dir %{_libdir}/xenfsimage/fat | |
825 | %dir %{_libdir}/xenfsimage/iso9660 | |
826 | %dir %{_libdir}/xenfsimage/reiserfs | |
827 | %dir %{_libdir}/xenfsimage/ufs | |
828 | %dir %{_libdir}/xenfsimage/xfs | |
829 | %dir %{_libdir}/xenfsimage/zfs | |
830 | %attr(755,root,root) %{_libdir}/xenfsimage/*/fsimage.so | |
26412ee3 | 831 | |
263a9ffc JK |
832 | %files libs-guest |
833 | %defattr(644,root,root,755) | |
834 | %attr(755,root,root) %{_libdir}/libxenstore.so.*.*.* | |
835 | %attr(755,root,root) %ghost %{_libdir}/libxenstore.so.3.0 | |
836 | ||
5dd334af JB |
837 | %files devel |
838 | %defattr(644,root,root,755) | |
6f09bc96 | 839 | %attr(755,root,root) %{_libdir}/libxenfsimage.so |
9178a513 | 840 | %attr(755,root,root) %{_libdir}/libxencall.so |
94b34ae4 | 841 | %attr(755,root,root) %{_libdir}/libxenctrl.so |
9178a513 JB |
842 | %attr(755,root,root) %{_libdir}/libxendevicemodel.so |
843 | %attr(755,root,root) %{_libdir}/libxenevtchn.so | |
844 | %attr(755,root,root) %{_libdir}/libxenforeignmemory.so | |
845 | %attr(755,root,root) %{_libdir}/libxengnttab.so | |
94b34ae4 | 846 | %attr(755,root,root) %{_libdir}/libxenguest.so |
a61f3252 | 847 | %attr(755,root,root) %{_libdir}/libxenhypfs.so |
94b34ae4 | 848 | %attr(755,root,root) %{_libdir}/libxenlight.so |
7f699907 | 849 | %attr(755,root,root) %{_libdir}/libxenstat.so |
94b34ae4 | 850 | %attr(755,root,root) %{_libdir}/libxenstore.so |
6f09bc96 | 851 | %attr(755,root,root) %{_libdir}/libxentoolcore.so |
9178a513 | 852 | %attr(755,root,root) %{_libdir}/libxentoollog.so |
7f699907 | 853 | %attr(755,root,root) %{_libdir}/libxenvchan.so |
94b34ae4 | 854 | %attr(755,root,root) %{_libdir}/libxlutil.so |
7f699907 | 855 | %{_includedir}/_libxl_list.h |
94b34ae4 | 856 | %{_includedir}/_libxl_types.h |
7f699907 | 857 | %{_includedir}/_libxl_types_json.h |
7f699907 | 858 | %{_includedir}/libxenvchan.h |
94b34ae4 JB |
859 | %{_includedir}/libxl*.h |
860 | %{_includedir}/xen*.h | |
861 | %{_includedir}/xs*.h | |
862 | %{_includedir}/xen | |
7f699907 | 863 | %{_includedir}/xenstore-compat |
9178a513 JB |
864 | %{_pkgconfigdir}/xencall.pc |
865 | %{_pkgconfigdir}/xencontrol.pc | |
866 | %{_pkgconfigdir}/xendevicemodel.pc | |
867 | %{_pkgconfigdir}/xenevtchn.pc | |
868 | %{_pkgconfigdir}/xenforeignmemory.pc | |
869 | %{_pkgconfigdir}/xengnttab.pc | |
870 | %{_pkgconfigdir}/xenguest.pc | |
a61f3252 | 871 | %{_pkgconfigdir}/xenhypfs.pc |
9178a513 JB |
872 | %{_pkgconfigdir}/xenlight.pc |
873 | %{_pkgconfigdir}/xenstat.pc | |
874 | %{_pkgconfigdir}/xenstore.pc | |
6f09bc96 | 875 | %{_pkgconfigdir}/xentoolcore.pc |
9178a513 JB |
876 | %{_pkgconfigdir}/xentoollog.pc |
877 | %{_pkgconfigdir}/xenvchan.pc | |
878 | %{_pkgconfigdir}/xlutil.pc | |
5dd334af JB |
879 | |
880 | %files static | |
881 | %defattr(644,root,root,755) | |
9178a513 | 882 | %{_libdir}/libxencall.a |
94b34ae4 | 883 | %{_libdir}/libxenctrl.a |
9178a513 JB |
884 | %{_libdir}/libxendevicemodel.a |
885 | %{_libdir}/libxenevtchn.a | |
886 | %{_libdir}/libxenforeignmemory.a | |
887 | %{_libdir}/libxengnttab.a | |
94b34ae4 | 888 | %{_libdir}/libxenguest.a |
a61f3252 | 889 | %{_libdir}/libxenhypfs.a |
94b34ae4 | 890 | %{_libdir}/libxenlight.a |
7f699907 JK |
891 | %{_libdir}/libxenvchan.a |
892 | %{_libdir}/libxenstat.a | |
94b34ae4 | 893 | %{_libdir}/libxenstore.a |
6f09bc96 | 894 | %{_libdir}/libxentoolcore.a |
9178a513 | 895 | %{_libdir}/libxentoollog.a |
94b34ae4 | 896 | %{_libdir}/libxlutil.a |
5dd334af | 897 | |
a61f3252 JB |
898 | # -n golang-xen |
899 | # XXX: location? | |
900 | #%{_datadir}/gocode/src/golang.xenproject.org/xenlight | |
901 | ||
e6e7d0de JB |
902 | %if %{with ocaml} |
903 | %files -n ocaml-xen | |
904 | %defattr(644,root,root,755) | |
905 | %doc tools/ocaml/LICENSE | |
906 | %attr(755,root,root) %{_sbindir}/oxenstored | |
7f699907 | 907 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/oxenstored.conf |
1fdd9919 JR |
908 | %dir %{_libdir}/ocaml/xenbus |
909 | %attr(755,root,root) %{_libdir}/ocaml/xenbus/dllxenbus_stubs.so | |
910 | %dir %{_libdir}/ocaml/xenctrl | |
911 | %attr(755,root,root) %{_libdir}/ocaml/xenctrl/dllxenctrl_stubs.so | |
912 | %dir %{_libdir}/ocaml/xeneventchn | |
913 | %attr(755,root,root) %{_libdir}/ocaml/xeneventchn/dllxeneventchn_stubs.so | |
914 | %dir %{_libdir}/ocaml/xenlight | |
915 | %attr(755,root,root) %{_libdir}/ocaml/xenlight/dllxenlight_stubs.so | |
916 | %dir %{_libdir}/ocaml/xenmmap | |
917 | %attr(755,root,root) %{_libdir}/ocaml/xenmmap/dllxenmmap_stubs.so | |
918 | %dir %{_libdir}/ocaml/xentoollog | |
919 | %attr(755,root,root) %{_libdir}/ocaml/xentoollog/dllxentoollog_stubs.so | |
e6e7d0de JB |
920 | |
921 | %files -n ocaml-xen-devel | |
922 | %defattr(644,root,root,755) | |
1fdd9919 JR |
923 | %{_libdir}/ocaml/xenbus/META |
924 | %{_libdir}/ocaml/xenbus/libxenbus_stubs.a | |
925 | %{_libdir}/ocaml/xenbus/xenbus.a | |
926 | %{_libdir}/ocaml/xenbus/*.cm[aixo]* | |
927 | %{_libdir}/ocaml/xenctrl/META | |
928 | %{_libdir}/ocaml/xenctrl/libxenctrl_stubs.a | |
929 | %{_libdir}/ocaml/xenctrl/xenctrl.a | |
930 | %{_libdir}/ocaml/xenctrl/xenctrl.cm[aix]* | |
931 | %{_libdir}/ocaml/xeneventchn/META | |
932 | %{_libdir}/ocaml/xeneventchn/libxeneventchn_stubs.a | |
933 | %{_libdir}/ocaml/xeneventchn/xeneventchn.a | |
934 | %{_libdir}/ocaml/xeneventchn/xeneventchn.cm[aix]* | |
935 | %{_libdir}/ocaml/xenmmap/META | |
936 | %{_libdir}/ocaml/xenmmap/libxenmmap_stubs.a | |
937 | %{_libdir}/ocaml/xenmmap/xenmmap.a | |
938 | %{_libdir}/ocaml/xenmmap/xenmmap.cm[aix]* | |
939 | %{_libdir}/ocaml/xenlight/META | |
940 | %{_libdir}/ocaml/xenlight/libxenlight_stubs.a | |
941 | %{_libdir}/ocaml/xenlight/xenlight.a | |
942 | %{_libdir}/ocaml/xenlight/xenlight.cm[aix]* | |
943 | %dir %{_libdir}/ocaml/xenstore | |
944 | %{_libdir}/ocaml/xenstore/META | |
945 | %{_libdir}/ocaml/xenstore/xenstore.a | |
946 | %{_libdir}/ocaml/xenstore/*.cm[aixo]* | |
947 | %{_libdir}/ocaml/xentoollog/META | |
948 | %{_libdir}/ocaml/xentoollog/libxentoollog_stubs.a | |
949 | %{_libdir}/ocaml/xentoollog/xentoollog.a | |
950 | %{_libdir}/ocaml/xentoollog/*.cm[aixo]* | |
e6e7d0de JB |
951 | %endif |
952 | ||
11aefea4 | 953 | %if %{with python2} |
8e6e2740 ER |
954 | %files -n python-xen |
955 | %defattr(644,root,root,755) | |
6f09bc96 | 956 | %attr(755,root,root) %{py_sitedir}/xenfsimage.so |
88d6a3ef | 957 | %dir %{py_sitedir}/xen |
a61f3252 | 958 | %{py_sitedir}/xen/util.py[co] |
32d7e160 | 959 | %dir %{py_sitedir}/xen/lowlevel |
263a9ffc | 960 | %attr(755,root,root) %{py_sitedir}/xen/lowlevel/xc.so |
16d5148e | 961 | %{py_sitedir}/xen/migration |
32d7e160 | 962 | %{py_sitedir}/grub |
a61f3252 JB |
963 | %{py_sitedir}/pygrub-*-py*.egg-info |
964 | %{py_sitedir}/xen-*-py*.egg-info | |
e9753e37 | 965 | |
263a9ffc JK |
966 | %files -n python-xen-guest |
967 | %defattr(644,root,root,755) | |
968 | %dir %{py_sitedir}/xen | |
11aefea4 | 969 | %{py_sitedir}/xen/__init__.py[co] |
263a9ffc | 970 | %dir %{py_sitedir}/xen/lowlevel |
11aefea4 | 971 | %{py_sitedir}/xen/lowlevel/__init__.py[co] |
263a9ffc JK |
972 | %attr(755,root,root) %{py_sitedir}/xen/lowlevel/xs.so |
973 | ||
11aefea4 JB |
974 | %else |
975 | ||
976 | %files -n python3-xen | |
977 | %defattr(644,root,root,755) | |
978 | %attr(755,root,root) %{py3_sitedir}/xenfsimage.cpython-*.so | |
979 | %dir %{py3_sitedir}/xen | |
980 | %dir %{py3_sitedir}/xen/__pycache__ | |
981 | %{py3_sitedir}/xen/util.py | |
982 | %{py3_sitedir}/xen/__pycache__/util.cpython-*.py[co] | |
983 | %dir %{py3_sitedir}/xen/lowlevel | |
984 | %attr(755,root,root) %{py3_sitedir}/xen/lowlevel/xc.cpython-*.so | |
985 | %{py3_sitedir}/xen/migration | |
986 | %{py3_sitedir}/grub | |
987 | %{py3_sitedir}/pygrub-*-py*.egg-info | |
988 | %{py3_sitedir}/xen-*-py*.egg-info | |
989 | ||
990 | %files -n python3-xen-guest | |
991 | %defattr(644,root,root,755) | |
992 | %dir %{py3_sitedir}/xen | |
993 | %dir %{py3_sitedir}/xen/__pycache__ | |
994 | %{py3_sitedir}/xen/__init__.py* | |
995 | %{py3_sitedir}/xen/__pycache__/__init__.cpython-*.py[co] | |
996 | %dir %{py3_sitedir}/xen/lowlevel | |
997 | %{py3_sitedir}/xen/lowlevel/__init__.py | |
998 | %{py3_sitedir}/xen/lowlevel/__pycache__ | |
999 | %attr(755,root,root) %{py3_sitedir}/xen/lowlevel/xs.cpython-*.so | |
1000 | %endif | |
1001 | ||
e9753e37 MM |
1002 | %files -n bash-completion-%{name} |
1003 | %defattr(644,root,root,755) | |
94b34ae4 | 1004 | /etc/bash_completion.d/xl.sh |
2c37e39c JK |
1005 | |
1006 | %if %{with efi} | |
1007 | %files efi | |
1008 | %defattr(644,root,root,755) | |
1009 | %dir %{_libdir}/efi | |
1010 | %{_libdir}/efi/*.efi | |
06e5dbe4 JK |
1011 | %attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/xen.cfg |
1012 | %attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.d/xen.conf | |
2c37e39c | 1013 | %endif |