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