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