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