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