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