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