]> git.pld-linux.org Git - packages/xen.git/blob - xen.spec
9a54909743ebcb7df0cf74b3596fbd020cab94f5
[packages/xen.git] / xen.spec
1 #
2 # TODO:
3 #  - system ovmf, ipxe? (like system seabios)
4 #  - check if other tools/libs are not usable in domU, move them to -guest
5 #    packages if so
6 #  - pass bconds to qemu configure script (tricky, as the script is called from
7 #    Xen Makefiles)
8 #  - fix %doc - some files are installed in docdir both by make install and %d,
9 #    other are installed once
10 #  - mini-os objects are relinked on install (because of .PHONY rules used to make them)
11 #
12 # Conditional build:
13 %bcond_without  qemu_traditional        # without qemu-xen-traditional
14 %bcond_without  opengl                  # OpenGL support in Xen qemu
15 %bcond_without  sdl                     # SDL support in Xen qemu
16 %bcond_without  bluetooth               # bluetooth support in Xen qemu
17 %bcond_without  brlapi                  # brlapi support in Xen qemu
18 %bcond_with     golang                  # Go library
19 %bcond_without  ocaml                   # Ocaml libraries for Xen tools
20 %bcond_without  pv_grub                 # pv-grub (deprecated)
21 %bcond_with     python2                 # CPython 2.x module instead of 3.x
22 %bcond_without  efi                     # EFI hypervisor
23 %bcond_without  hypervisor              # Xen hypervisor build
24 %bcond_without  stubdom                 # stubdom build
25 %bcond_without  xsm                     # XSM security module (by default, Flask)
26 %bcond_without  systemd                 # systemd
27
28 %ifnarch %{x8664} %{arm}
29 %undefine       with_hypervisor
30 %endif
31 %ifnarch %{x8664}
32 %undefine       with_efi
33 %endif
34 %ifnarch %{ix86} %{x8664}
35 %undefine       with_stubdom
36 %endif
37
38 # from ./stubdom/configure.ac
39 %define polarssl_version        1.1.4
40 %define tpm_emulator_version    0.7.4
41 %define gmp_version             4.3.2
42
43 %define xen_extfiles_url        https://xenbits.xensource.com/xen-extfiles
44 Summary:        Xen - a virtual machine monitor
45 Summary(pl.UTF-8):      Xen - monitor maszyny wirtualnej
46 Name:           xen
47 Version:        4.16.2
48 Release:        2
49 License:        GPL v2, interface parts on BSD-like
50 Group:          Applications/System
51 # for available versions see https://xenproject.org/xen-project-archives/
52 Source0:        https://downloads.xenproject.org/release/xen/%{version}/%{name}-%{version}.tar.gz
53 # Source0-md5:  6bd720f53e3c34a35cb8a8897a561e18
54 # used by stubdoms
55 Source10:       %{xen_extfiles_url}/lwip-1.3.0.tar.gz
56 # Source10-md5: 36cc57650cffda9a0269493be2a169bb
57 Source11:       %{xen_extfiles_url}/newlib-1.16.0.tar.gz
58 # Source11-md5: bf8f1f9e3ca83d732c00a79a6ef29bc4
59 Source12:       %{xen_extfiles_url}/zlib-1.2.3.tar.gz
60 # Source12-md5: debc62758716a169df9f62e6ab2bc634
61 Source13:       %{xen_extfiles_url}/pciutils-2.2.9.tar.bz2
62 # Source13-md5: cec05e7785497c5e19da2f114b934ffd
63 Source14:       %{xen_extfiles_url}/grub-0.97.tar.gz
64 # Source14-md5: cd3f3eb54446be6003156158d51f4884
65 Source15:       %{xen_extfiles_url}/ipxe-git-3c040ad387099483102708bb1839110bc788cefb.tar.gz
66 # Source15-md5: 23ba00d5e2c5b4343d12665af73e1cb5
67 Source17:       %{xen_extfiles_url}/polarssl-%{polarssl_version}-gpl.tgz
68 # Source17-md5: 7b72caf22b01464ee7d6165f2fd85f44
69 Source18:       %{xen_extfiles_url}/tpm_emulator-%{tpm_emulator_version}.tar.gz
70 # Source18-md5: e26becb8a6a2b6695f6b3e8097593db8
71 Source19:       https://ftp.gnu.org/gnu/gmp/gmp-%{gmp_version}.tar.bz2
72 # Source19-md5: dd60683d7057917e34630b4a787932e8
73 Source35:       xenconsoled.sysconfig
74 Source37:       xenstored.sysconfig
75 Source38:       xenstored.tmpfiles
76 # sysvinit scripts
77 Source46:       xen-qemu-dom0-disk-backend.init
78 Source51:       xenconsoled.init
79 Source52:       xenstored.init
80 Source53:       xen-watchdog.init
81 Source54:       xendomains.init
82 Source55:       xen.logrotate
83 Source56:       xen.tmpfiles
84 Source57:       xen.cfg
85 Source58:       xen.efi-boot-update
86 Source59:       vif-openvswitch
87 Source60:       xen-init-list
88 Source61:       xen-toolstack
89 # shebang patch for python2-only scripts
90 Patch0:         %{name}-python_scripts.patch
91 Patch1:         %{name}-symbols.patch
92 Patch2:         %{name}-link.patch
93 Patch3:         pygrubfix.patch
94 # Warning: this disables ingress filtering implemented in xen scripts!
95 Patch4:         %{name}-net-disable-iptables-on-bridge.patch
96 Patch5:         %{name}-qemu.patch
97 Patch6:         %{name}-doc.patch
98 Patch7:         %{name}-paths.patch
99 Patch8:         %{name}-no_fetcher.patch
100 Patch9:         %{name}-no_Werror.patch
101 Patch10:        %{name}-stubdom-build.patch
102 Patch12:        %{name}-systemd.patch
103 Patch14:        gcc9.patch
104 Patch15:        gcc10.patch
105 Patch16:        ocaml-4.12.patch
106 Patch17:        %{name}-golang-32bit.patch
107 Patch18:        %{name}-gcc12.patch
108 Patch19:        gcc13.patch
109 Patch20:        python-fixes.patch
110 URL:            http://www.xen.org/products/xenhyp.html
111 BuildRequires:  autoconf >= 2.67
112 %ifarch %{ix86} %{x8664}
113 BuildRequires:  acpica
114 BuildRequires:  bcc
115 BuildRequires:  bin86
116 %endif
117 %{?with_efi:BuildRequires:      binutils >= 3:2.23.51.0.3-2}
118 BuildRequires:  bzip2-devel
119 %if %{with xsm}
120 BuildRequires:  checkpolicy
121 %endif
122 # tpm_emulator uses cmake
123 BuildRequires:  cmake >= 2.4
124 BuildRequires:  e2fsprogs-devel
125 BuildRequires:  fig2dev
126 BuildRequires:  gcc >= 6:4.8
127 %ifarch %{x8664}
128 BuildRequires:  gcc-multilib-32 >= 6:4.1
129 %endif
130 BuildRequires:  gettext-tools
131 %{?with_golang:BuildRequires:   golang >= 1.11.1}
132 BuildRequires:  libaio-devel
133 %ifarch %{arm} aarch64
134 BuildRequires:  libfdt-devel >= 1.4.0
135 %endif
136 BuildRequires:  libnl-devel >= 3.2.8
137 BuildRequires:  libuuid-devel
138 BuildRequires:  lzo-devel >= 2
139 BuildRequires:  ncurses-devel
140 %if %{with ocaml}
141 BuildRequires:  ocaml >= 1:4.02.0
142 BuildRequires:  ocaml-findlib
143 %endif
144 BuildRequires:  pandoc
145 BuildRequires:  perl-base
146 BuildRequires:  perl-tools-pod
147 BuildRequires:  pkgconfig
148 %if %{with python2}
149 BuildRequires:  python-devel >= 1:2.7
150 BuildRequires:  python-markdown
151 %else
152 BuildRequires:  python3-devel >= 1:3.2
153 BuildRequires:  python3-markdown
154 %endif
155 BuildRequires:  rpm-pythonprov
156 BuildRequires:  rpmbuild(macros) >= 1.647
157 BuildRequires:  seabios
158 %{?with_systemd:BuildRequires:  systemd-devel >= 1:209}
159 BuildRequires:  texlive-dvips
160 BuildRequires:  texlive-latex-psnfss
161 BuildRequires:  texlive-xetex
162 BuildRequires:  which
163 BuildRequires:  xz-devel
164 BuildRequires:  yajl-devel
165 BuildRequires:  zlib-devel
166 BuildRequires:  zstd-devel
167 %if %{with qemu_traditional}
168 %{?with_opengl:BuildRequires:   OpenGL-devel}
169 %{?with_sdl:BuildRequires:      SDL-devel >= 1.2.1}
170 %{?with_bluetooth:BuildRequires:        bluez-libs-devel}
171 %{?with_brlapi:BuildRequires:   brlapi-devel}
172 BuildRequires:  gnutls-devel
173 BuildRequires:  pciutils-devel
174 BuildRequires:  pixman-devel >= 0.21.8
175 BuildRequires:  vde2-devel
176 # for xfsctl (<xfs/xfs.h>)
177 BuildRequires:  xfsprogs-devel
178 BuildRequires:  xorg-lib-libX11-devel
179 BuildRequires:  xorg-lib-libXext-devel
180 %endif
181 %if %{with qemu_traditional}
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}
188 %endif
189 Requires(post,preun):   /sbin/chkconfig
190 Requires(post,preun,postun):    systemd-units >= 38
191 Requires:       %{name}-libs = %{version}-%{release}
192 Requires:       ZopeInterface
193 Requires:       bridge-utils
194 Requires:       coreutils
195 Requires:       diffutils
196 Requires:       gawk
197 Requires:       iptables
198 Requires:       losetup
199 Requires:       net-tools
200 %if %{with python2}
201 Requires:       python-%{name} = %{version}-%{release}
202 %else
203 Requires:       python3-%{name} = %{version}-%{release}
204 %endif
205 Requires:       rc-scripts
206 Requires:       sed
207 Requires:       systemd-units >= 38
208 Requires:       util-linux
209 Requires:       which
210 Requires:       %{name}-guest = %{version}-%{release}
211 %ifarch %{ix86} %{x8664}
212 # for HVM
213 Suggests:       qemu-system-x86
214 %endif
215 Obsoletes:      xen-doc < 3
216 Obsoletes:      xen-udev < 4.1.2-2
217 Obsoletes:      xen-xend < 4.5
218 ExclusiveArch:  %{ix86} %{x8664} %{arm} aarch64
219 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
220
221 # some PPC/SPARC boot images in ELF format
222 %define         _noautostrip    .*%{_datadir}/\\(xen\\|qemu-xen\\)/qemu/\\(openbios-.*\\|palcode-clipper\\|s390-ccw.img\\)
223
224 %description
225 This package contains the Xen hypervisor and Xen tools, needed to run
226 virtual machines on x86 systems, together with the kernel-xen*
227 packages. Information on how to use Xen can be found at the Xen
228 project pages.
229
230 Virtualisation can be used to run multiple versions or multiple Linux
231 distributions on one system, or to test untrusted applications in a
232 sandboxed environment. Note that the Xen technology is still in
233 development, and this RPM has received extremely little testing. Don't
234 be surprised if this RPM eats your data, drinks your coffee or makes
235 fun of you in front of your friends.
236
237 %description -l pl.UTF-8
238 Ten pakiet zawiera nadzorcÄ™ oraz narzÄ™dzia Xen, potrzebne do
239 uruchamiania wirtualnych maszyn w systemach x86, wraz z pakietami
240 kernel-xen*. Informacje jak używać Xena można znaleźć na stronach
241 projektu.
242
243 Wirtualizacja może być używana do uruchamiania wielu wersji lub wielu
244 dystrybucji Linuksa na jednym systemie lub do testowania nie zaufanych
245 aplikacji w odizolowanym Å›rodowisku. Należy zauważyć, Å¼e technologia
246 Xen jest ciÄ…gle rozwijana, a ten RPM byÅ‚ sÅ‚abo testowany. Nie należy
247 być zdziwionym, jeÅ›li ten pakiet zje dane, wypije caÅ‚Ä… kawÄ™ czy bÄ™dzie
248 siÄ™ wyÅ›miewaÅ‚ w obecnoÅ›ci przyjaciół.
249
250 %package guest
251 Summary:        Xen tools for virtual machines
252 Summary(pl.UTF-8):      NarzÄ™dzia Xen dla maszyn virtualnych
253 Group:          Applications/System
254 Requires:       %{name}-libs-guest = %{version}-%{release}
255
256 %description guest
257 Xen utilities for both dom0 and domU virtual domains.
258
259 %description guest -l pl.UTF-8
260 NarzÄ™dzia Xena dla maszyn wirtualnych dom0 i domU.
261
262 %package libs
263 Summary:        Xen libraries
264 Summary(pl.UTF-8):      Biblioteki Xena
265 Group:          Libraries
266 Requires:       %{name}-libs-guest = %{version}-%{release}
267 Requires:       libnl >= 3.2.8
268
269 %description libs
270 Xen libraries.
271
272 %description libs -l pl.UTF-8
273 Biblioteki Xena.
274
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
286 %package devel
287 Summary:        Header files for Xen
288 Summary(pl.UTF-8):      Pliki nagłówkowe Xena
289 Group:          Development/Libraries
290 Requires:       %{name}-libs = %{version}-%{release}
291
292 %description devel
293 Header files for Xen.
294
295 %description devel -l pl.UTF-8
296 Pliki nagłówkowe Xena.
297
298 %package static
299 Summary:        Static Xen libraries
300 Summary(pl.UTF-8):      Statyczne biblioteki Xena
301 Group:          Development/Libraries
302 Requires:       %{name}-devel = %{version}-%{release}
303
304 %description static
305 Static Xen libraries.
306
307 %description static -l pl.UTF-8
308 Statyczne biblioteki Xena.
309
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}
316 %if %{with ocaml}
317 %requires_eq    ocaml-runtime
318 %endif
319
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}
332 %if %{with ocaml}
333 %requires_eq    ocaml
334 %endif
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
342 %package -n python-xen
343 Summary:        Xen Python modules
344 Summary(pl.UTF-8):      ModuÅ‚y Pythona dla Xena
345 Group:          Libraries
346 Requires:       %{name}-libs = %{version}-%{release}
347 Conflicts:      xen < 3.2.1-0.3
348
349 %description -n python-xen
350 Xen Python modules.
351
352 %description -n python-xen -l pl.UTF-8
353 ModuÅ‚y Pythona dla Xena.
354
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
368 %package -n python3-xen
369 Summary:        Xen Python 3 modules
370 Summary(pl.UTF-8):      ModuÅ‚y Pythona 3 dla Xena
371 Group:          Libraries
372 Requires:       %{name}-libs = %{version}-%{release}
373 Obsoletes:      python-xen < %{version}-%{release}
374
375 %description -n python3-xen
376 Xen Python 3 modules.
377
378 %description -n python3-xen -l pl.UTF-8
379 ModuÅ‚y Pythona 3 dla Xena.
380
381 %package -n python3-xen-guest
382 Summary:        Xen Python 3 modules for virtual machines
383 Summary(pl.UTF-8):      ModuÅ‚y Pythona 3 dla maszyn wirtualnych Xena
384 Group:          Libraries
385 Requires:       %{name}-libs-guest = %{version}-%{release}
386 Obsoletes:      python-xen-guest < %{version}-%{release}
387
388 %description -n python3-xen-guest
389 Xen Python 3 modules for both dom0 and domU virtual machines.
390
391 %description -n python3-xen-guest -l pl.UTF-8
392 ModuÅ‚y Pythona 3 dla maszyn wirtualnych dom0 i domU.
393
394 %package -n bash-completion-%{name}
395 Summary:        bash-completion for Xen (xl)
396 Summary(pl.UTF-8):      Bashowe dopeÅ‚nianie poleceÅ„ dla Xena (xl)
397 Group:          Applications/Shells
398 Requires:       %{name} = %{version}-%{release}
399 Requires:       bash-completion
400
401 %description -n bash-completion-%{name}
402 This package provides bash-completion for Xen (xl).
403
404 %description -n bash-completion-%{name} -l pl.UTF-8
405 Ten pakiet zapewnia bashowe dopeÅ‚nianie poleceÅ„ dla Xena (xl).
406
407 %package efi
408 Summary:        Xen hypervisor binary for EFI
409 Summary(pl.UTF-8):      Hipernadzorca Xen dla EFI
410 Group:          Applications/System
411 Requires:       %{name}-libs-guest = %{version}-%{release}
412
413 %description efi
414 Xen hypervisor EFI binary, which can be booted directly from (U)EFI
415 firmware without help from any additional bootloader.
416
417 %description efi -l pl.UTF-8
418 Nadzorca Xen w postaci, która może być uruchomiona wprost z firmware
419 (U)EFI, bez potrzeby oddzielnego bootloadera.
420
421 %prep
422 %setup -q
423 %patch0 -p1
424 %patch1 -p1
425 %patch2 -p1
426 %patch3 -p1
427 %patch4 -p1
428 %patch5 -p1
429 %patch6 -p1
430 %patch7 -p1
431 %patch8 -p1
432 %patch9 -p1
433 %patch10 -p1
434 %patch12 -p1
435 %patch14 -p1
436 %if %(echo %{cc_version} | cut -d. -f1) >= 10
437 # -Wno-error=enum-conversion requires gcc 10
438 %patch15 -p1
439 %endif
440 %patch16 -p1
441 %ifarch %{ix86} %{arm}
442 %patch17 -p1
443 %endif
444 %patch18 -p1
445 %patch19 -p1
446 %patch20 -p1
447
448 # stubdom sources
449 ln -s %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} stubdom
450 ln -s %{SOURCE17} %{SOURCE18} %{SOURCE19} stubdom
451 ln -s %{SOURCE15} tools/firmware/etherboot/ipxe.tar.gz
452
453 %if %{with python2}
454 %{__sed} -i -e '1s,/usr/bin/env python$,%{__python},' \
455 %else
456 %{__sed} -i -e '1s,/usr/bin/env python$,%{__python3},; 1s,/usr/bin/python2$,%{__python3},' \
457 %endif
458         tools/misc/xencov_split \
459         tools/misc/xenpvnetboot \
460         tools/pygrub/src/pygrub \
461         tools/python/scripts/{convert-legacy-stream,verify-stream-v2} \
462         tools/xenmon/xenmon.py \
463         tools/xentrace/xentrace_format
464
465 # do not allow fetching anything via git
466 echo GIT=/bin/false >> Config.mk
467
468 %build
469 # based on the 'autoconf.sh' from the sources
470 %{__autoconf}
471 cd tools
472 %{__autoconf}
473 %{__autoheader}
474 cd ../stubdom
475 %{__autoconf}
476 cd ../docs
477 %{__autoconf}
478 cd ..
479
480 # if gold is used then bioses and grub doesn't build
481 install -d our-ld
482 ln -f -s /usr/bin/ld.bfd our-ld/ld
483 export PATH=$(pwd)/our-ld:$PATH
484
485 # NOTE on ac_cv_*:
486 # - use openssl (libcrypto) instead of libgcrypt as openssl is obligatory anyway
487 # - prevent libiconv from being detected (not needed with glibc)
488
489 %configure \
490         CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses" \
491         %{?with_python2:PYTHON=%{__python}} \
492         ac_cv_lib_gcrypt_gcry_md_hash_buffer=no \
493         ac_cv_lib_iconv_libiconv_open=no \
494         --disable-debug \
495         %{!?with_golang:--disable-golang} \
496         %{?with_pv_grub:--enable-pv-grub} \
497         %{__enable_disable qemu_traditional qemu-traditional} \
498         --with-system-seabios=/usr/share/seabios/bios.bin \
499 %ifarch %{x8664}
500         --with-system-qemu=/usr/bin/qemu-system-x86_64 \
501 %else
502         --with-system-qemu=/usr/bin/qemu-system-i386 \
503 %endif
504 %if %{with systemd}
505         --with-systemd=%{systemdunitdir}
506 %else
507         --disable-systemd
508 %endif
509 export EXTRA_CFLAGS_XEN_TOOLS="%{rpmcflags} -I/usr/include/ncurses"
510 export EXTRA_CFLAGS_QEMU_TRADITIONAL="%{rpmcflags} -I/usr/include/ncurses"
511 export EXTRA_CFLAGS_QEMU_XEN="%{rpmcflags} -I/usr/include/ncurses"
512
513 %{__make} dist-xen dist-tools dist-docs \
514 %ifarch %{ix86}
515         XEN_COMPILE_ARCH=x86_32 \
516 %endif
517 %ifarch %{x8664}
518         XEN_COMPILE_ARCH=x86_64 \
519 %endif
520         %{!?with_ocaml:OCAML_TOOLS=n} \
521         XSM_ENABLE=%{?with_xsm:y}%{!?with_xsm:n} \
522         CC="%{__cc}" \
523         CXX="%{__cxx}" \
524         V=1
525
526 %if %{with stubdom}
527 %{__make} dist-stubdom \
528 %ifarch %{ix86}
529         XEN_COMPILE_ARCH=x86_32 \
530 %endif
531 %ifarch %{x8664}
532         XEN_COMPILE_ARCH=x86_64 \
533 %endif
534         %{!?with_ocaml:OCAML_TOOLS=n} \
535         XSM_ENABLE=%{?with_xsm:y}%{!?with_xsm:n} \
536         CC="%{__cc}" \
537         CXX="%{__cxx}" \
538         V=1
539 %endif
540
541 %install
542 rm -rf $RPM_BUILD_ROOT
543 install -d $RPM_BUILD_ROOT/etc/{xen/examples,modules-load.d,logrotate.d} \
544         $RPM_BUILD_ROOT{%{systemdtmpfilesdir},%{systemdunitdir},/var/log/xen/console}
545
546 %if %{with efi}
547 install -d $RPM_BUILD_ROOT/etc/efi-boot/update.d
548 %endif
549
550 %{__make} install-xen install-tools %{?with_stubdom:install-stubdom} install-docs \
551 %ifarch %{ix86}
552         XEN_COMPILE_ARCH=x86_32 \
553 %endif
554 %ifarch %{x8664}
555         XEN_COMPILE_ARCH=x86_64 \
556 %endif
557         %{!?with_ocaml:OCAML_TOOLS=n} \
558         XSM_ENABLE=%{?with_xsm:y}%{!?with_xsm:n} \
559         DESTDIR=$RPM_BUILD_ROOT \
560         HOTPLUGS=install-udev
561
562 install %{SOURCE35} $RPM_BUILD_ROOT/etc/sysconfig/xenconsoled
563 install %{SOURCE37} $RPM_BUILD_ROOT/etc/sysconfig/xenstored
564
565 # sysvinit scripts
566 %{__rm} $RPM_BUILD_ROOT/etc/rc.d/init.d/*
567 %{__rm} $RPM_BUILD_ROOT/etc/sysconfig/xencommons
568 install %{SOURCE51} $RPM_BUILD_ROOT/etc/rc.d/init.d/xenconsoled
569 install %{SOURCE52} $RPM_BUILD_ROOT/etc/rc.d/init.d/xenstored
570 install %{SOURCE53} $RPM_BUILD_ROOT/etc/rc.d/init.d/xen-watchdog
571 install %{SOURCE54} $RPM_BUILD_ROOT/etc/rc.d/init.d/xendomains
572 install %{SOURCE46} $RPM_BUILD_ROOT/etc/rc.d/init.d/xen-qemu-dom0-disk-backend
573 install %{SOURCE55} $RPM_BUILD_ROOT/etc/logrotate.d/xen
574 install %{SOURCE56} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/xen.conf
575 install -d $RPM_BUILD_ROOT/var/run/xenstored
576 install %{SOURCE38} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/xenstored.conf
577
578 install %{SOURCE60} $RPM_BUILD_ROOT%{_libexecdir}/%{name}/bin/xen-init-list
579 install %{SOURCE61} $RPM_BUILD_ROOT%{_libexecdir}/%{name}/bin/xen-toolstack
580
581 %{__sed} -E -i -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \
582         $RPM_BUILD_ROOT%{_libexecdir}/%{name}/bin/pygrub
583
584 %if %{with efi}
585 install %{SOURCE57} $RPM_BUILD_ROOT/etc/efi-boot/xen.cfg
586 sed -e's;@libdir@;%{_libdir};g' -e's;@target_cpu@;%{_target_cpu};g' \
587                         %{SOURCE58} > $RPM_BUILD_ROOT/etc/efi-boot/update.d/xen.conf
588 %endif
589
590 %{__mv} $RPM_BUILD_ROOT/etc/xen/{xlexample*,examples}
591
592 install %{SOURCE59} $RPM_BUILD_ROOT%{_sysconfdir}/xen/scripts/vif-openvswitch
593
594 # for %%doc
595 install -d _doc
596 cp -p tools/pygrub/README _doc/README.pygrub
597
598 %if %{with python2}
599 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
600 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
601
602 %py_postclean
603 %else
604 %py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
605 %py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
606 %endif
607
608 # remove unneeded files
609 %if %{with hypervisor}
610 %{__mv} xen/xen-syms $RPM_BUILD_ROOT/boot/%{name}-syms-%{version}
611 %{__rm} $RPM_BUILD_ROOT/boot/xen-4.16.gz
612 %{__rm} $RPM_BUILD_ROOT/boot/xen-4.gz
613 %endif
614 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/xen
615 %{__rm} $RPM_BUILD_ROOT%{_includedir}/%{name}/COPYING
616
617 %clean
618 rm -rf $RPM_BUILD_ROOT
619
620 %post
621 /sbin/chkconfig --add xen-watchdog
622 /sbin/chkconfig --add xenconsoled
623 /sbin/chkconfig --add xenstored
624 /sbin/chkconfig --add xendomains
625 /sbin/chkconfig --add xen-qemu-dom0-disk-backend
626 NORESTART=1
627 %systemd_post xen-watchdog.service xenconsoled.service xenstored.service xendomains.service xen-qemu-dom0-disk-backend.service
628
629 %preun
630 if [ "$1" = "0" ]; then
631         %service xendomains stop
632         /sbin/chkconfig --del xendomains
633
634         %service xenconsoled stop
635         /sbin/chkconfig --del xenconsoled
636
637         %service xenstored stop
638         /sbin/chkconfig --del xenstored
639
640         %service xen-watchdog stop
641         /sbin/chkconfig --del xen-watchdog
642
643         %service xen-qemu-dom0-disk-backend stop
644         /sbin/chkconfig --del xen-qemu-dom0-disk-backend
645 fi
646 %systemd_preun xen-watchdog.service xenconsoled.service xenstored.service xendomains.service xen-qemu-dom0-disk-backend.service
647
648 %postun
649 %systemd_reload
650
651 %post   libs -p /sbin/ldconfig
652 %postun libs -p /sbin/ldconfig
653
654 %post   libs-guest -p /sbin/ldconfig
655 %postun libs-guest -p /sbin/ldconfig
656
657 %post efi
658 [ -x /sbin/efi-boot-update ] && /sbin/efi-boot-update --auto || :
659
660 %files
661 %defattr(644,root,root,755)
662 %doc COPYING README* docs/misc/* docs/html/* _doc/*
663 %if %{with hypervisor}
664 /boot/%{name}-syms-%{version}
665 /boot/%{name}-%{version}.config
666 /boot/%{name}-%{version}.gz
667 /boot/%{name}.gz
668 %endif
669 %if %{with xsm}
670 /boot/xenpolicy-%{version}
671 %endif
672 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xenconsoled
673 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xenstored
674 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xendomains
675 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/xen
676 %attr(754,root,root) /etc/rc.d/init.d/xen-watchdog
677 %attr(754,root,root) /etc/rc.d/init.d/xenconsoled
678 %attr(754,root,root) /etc/rc.d/init.d/xenstored
679 %attr(754,root,root) /etc/rc.d/init.d/xendomains
680 %attr(754,root,root) /etc/rc.d/init.d/xen-qemu-dom0-disk-backend
681 %if %{with systemd}
682 %{_prefix}/lib/modules-load.d/xen.conf
683 %{systemdunitdir}/proc-xen.mount
684 %{systemdunitdir}/var-lib-xenstored.mount
685 %{systemdunitdir}/xen-init-dom0.service
686 %{systemdunitdir}/xen-watchdog.service
687 %{systemdunitdir}/xenconsoled.service
688 %{systemdunitdir}/xenstored.service
689 %{systemdunitdir}/xendriverdomain.service
690 %{systemdunitdir}/xendomains.service
691 %{systemdunitdir}/xen-qemu-dom0-disk-backend.service
692 %endif
693 %dir %{_sysconfdir}/xen
694 %dir %{_sysconfdir}/xen/auto
695 %dir %{_sysconfdir}/xen/examples
696 %dir %{_sysconfdir}/xen/scripts
697 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/scripts/*
698 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/examples/*
699 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/README*
700 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/cpupool
701 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/xl.conf
702 %attr(755,root,root) %{_bindir}/pygrub
703 %if %{with qemu_traditional}
704 %attr(755,root,root) %{_bindir}/qemu-img-xen
705 %attr(755,root,root) %{_bindir}/qemu-nbd-xen
706 %endif
707 %attr(755,root,root) %{_bindir}/vchan-socket-proxy
708 %attr(755,root,root) %{_bindir}/xen-cpuid
709 %attr(755,root,root) %{_bindir}/xenalyze
710 %attr(755,root,root) %{_bindir}/xencov_split
711 %attr(755,root,root) %{_bindir}/xentrace_format
712 %if %{with xsm}
713 %attr(755,root,root) %{_sbindir}/flask-*
714 %endif
715 %attr(755,root,root) %{_sbindir}/gdbsx
716 %attr(755,root,root) %{_sbindir}/xen-*
717 %attr(755,root,root) %{_sbindir}/xenbaked
718 %attr(755,root,root) %{_sbindir}/xenconsoled
719 %attr(755,root,root) %{_sbindir}/xencov
720 %attr(755,root,root) %{_sbindir}/xenhypfs
721 %attr(755,root,root) %{_sbindir}/xenlockprof
722 %attr(755,root,root) %{_sbindir}/xenmon
723 %attr(755,root,root) %{_sbindir}/xenperf
724 %attr(755,root,root) %{_sbindir}/xenpm
725 %attr(755,root,root) %{_sbindir}/xenpmd
726 %attr(755,root,root) %{_sbindir}/xenstored
727 %attr(755,root,root) %{_sbindir}/xentop
728 %attr(755,root,root) %{_sbindir}/xentrace
729 %attr(755,root,root) %{_sbindir}/xentrace_setmask
730 %attr(755,root,root) %{_sbindir}/xentrace_setsize
731 %attr(755,root,root) %{_sbindir}/xenwatchdogd
732 %attr(755,root,root) %{_sbindir}/xl
733 %dir %{_libexecdir}/%{name}
734 %dir %{_libexecdir}/%{name}/bin
735 %attr(744,root,root) %{_libexecdir}/%{name}/bin/*
736 %dir %{_libexecdir}/%{name}/boot
737 %if %{with stubdom}
738 %if %{with qemu_traditional}
739 %{_libexecdir}/%{name}/boot/ioemu-stubdom.gz
740 %endif
741 %if %{with pv_grub}
742 %ifarch %{ix86} %{x8664}
743 %{_libexecdir}/%{name}/boot/pv-grub-x86_32.gz
744 %endif
745 %ifarch %{x8664}
746 %{_libexecdir}/%{name}/boot/pv-grub-x86_64.gz
747 %endif
748 %endif
749 %{_libexecdir}/%{name}/boot/vtpm-stubdom.gz
750 %{_libexecdir}/%{name}/boot/vtpmmgr-stubdom.gz
751 %{_libexecdir}/%{name}/boot/xenstore-stubdom.gz
752 %{_libexecdir}/%{name}/boot/xenstorepvh-stubdom.gz
753 %endif
754 %{_libexecdir}/%{name}/boot/ipxe.bin
755 %ifarch %{x8664}
756 %{_libexecdir}/%{name}/boot/xen-shim
757 %endif
758 %attr(744,root,root) %{_libexecdir}/%{name}/boot/hvmloader
759 %{_mandir}/man1/xenhypfs.1*
760 %{_mandir}/man1/xentop.1*
761 %{_mandir}/man1/xentrace_format.1*
762 %{_mandir}/man1/xl.1*
763 %{_mandir}/man5/xl.cfg.5*
764 %{_mandir}/man5/xl.conf.5*
765 %{_mandir}/man5/xl-disk-configuration.5*
766 %{_mandir}/man5/xl-network-configuration.5*
767 %{_mandir}/man5/xl-pci-configuration.5*
768 %{_mandir}/man5/xlcpupool.cfg.5*
769 %{_mandir}/man7/xen-pci-device-reservations.7*
770 %{_mandir}/man7/xen-pv-channel.7*
771 %{_mandir}/man7/xen-tscmode.7*
772 %{_mandir}/man7/xen-vbd-interface.7*
773 %{_mandir}/man7/xen-vtpm.7*
774 %{_mandir}/man7/xen-vtpmmgr.7*
775 %{_mandir}/man7/xl-numa-placement.7*
776 %{_mandir}/man8/xentrace.8*
777 %{_sharedstatedir}/xen
778 %{_sharedstatedir}/xenstored
779 %dir /var/run/xenstored
780 %{systemdtmpfilesdir}/xen.conf
781 %{systemdtmpfilesdir}/xenstored.conf
782 %dir %attr(0700,root,root) /var/log/xen
783 %dir %attr(0700,root,root) /var/log/xen/console
784 %if %{with qemu_traditional}
785 %{_datadir}/xen
786 %endif
787
788 %files guest
789 %defattr(644,root,root,755)
790 %attr(755,root,root) %{_bindir}/xen-detect
791 %attr(755,root,root) %{_bindir}/xenstore
792 %attr(755,root,root) %{_bindir}/xenstore-chmod
793 %attr(755,root,root) %{_bindir}/xenstore-control
794 %attr(755,root,root) %{_bindir}/xenstore-exists
795 %attr(755,root,root) %{_bindir}/xenstore-list
796 %attr(755,root,root) %{_bindir}/xenstore-ls
797 %attr(755,root,root) %{_bindir}/xenstore-read
798 %attr(755,root,root) %{_bindir}/xenstore-rm
799 %attr(755,root,root) %{_bindir}/xenstore-watch
800 %attr(755,root,root) %{_bindir}/xenstore-write
801 %{_mandir}/man1/xenstore.1*
802 %{_mandir}/man1/xenstore-chmod.1*
803 %{_mandir}/man1/xenstore-ls.1*
804 %{_mandir}/man1/xenstore-read.1*
805 %{_mandir}/man1/xenstore-write.1*
806
807 %files libs
808 %defattr(644,root,root,755)
809 %attr(755,root,root) %{_libdir}/libxenfsimage.so.*.*.*
810 %attr(755,root,root) %ghost %{_libdir}/libxenfsimage.so.4.16
811 %attr(755,root,root) %{_libdir}/libxencall.so.*.*
812 %attr(755,root,root) %ghost %{_libdir}/libxencall.so.1
813 %attr(755,root,root) %{_libdir}/libxenctrl.so.*.*.*
814 %attr(755,root,root) %ghost %{_libdir}/libxenctrl.so.4.16
815 %attr(755,root,root) %{_libdir}/libxendevicemodel.so.*.*
816 %attr(755,root,root) %ghost %{_libdir}/libxendevicemodel.so.1
817 %attr(755,root,root) %{_libdir}/libxenevtchn.so.*.*
818 %attr(755,root,root) %ghost %{_libdir}/libxenevtchn.so.1
819 %attr(755,root,root) %{_libdir}/libxenforeignmemory.so.*.*
820 %attr(755,root,root) %ghost %{_libdir}/libxenforeignmemory.so.1
821 %attr(755,root,root) %{_libdir}/libxengnttab.so.*.*
822 %attr(755,root,root) %ghost %{_libdir}/libxengnttab.so.1
823 %attr(755,root,root) %{_libdir}/libxenguest.so.*.*.*
824 %attr(755,root,root) %ghost %{_libdir}/libxenguest.so.4.16
825 %attr(755,root,root) %{_libdir}/libxenhypfs.so.*.*
826 %attr(755,root,root) %ghost %{_libdir}/libxenhypfs.so.1
827 %attr(755,root,root) %{_libdir}/libxenlight.so.*.*.*
828 %attr(755,root,root) %ghost %{_libdir}/libxenlight.so.4.16
829 %attr(755,root,root) %{_libdir}/libxenstat.so.*.*.*
830 %attr(755,root,root) %ghost %{_libdir}/libxenstat.so.4.16
831 %attr(755,root,root) %{_libdir}/libxentoolcore.so.*.*
832 %attr(755,root,root) %ghost %{_libdir}/libxentoolcore.so.1
833 %attr(755,root,root) %{_libdir}/libxentoollog.so.*.*
834 %attr(755,root,root) %ghost %{_libdir}/libxentoollog.so.1
835 %attr(755,root,root) %{_libdir}/libxenvchan.so.*.*.*
836 %attr(755,root,root) %ghost %{_libdir}/libxenvchan.so.4.16
837 %attr(755,root,root) %{_libdir}/libxlutil.so.*.*.*
838 %attr(755,root,root) %ghost %{_libdir}/libxlutil.so.4.16
839 %dir %{_libdir}/xenfsimage
840 %dir %{_libdir}/xenfsimage/ext2fs-lib
841 %dir %{_libdir}/xenfsimage/fat
842 %dir %{_libdir}/xenfsimage/iso9660
843 %dir %{_libdir}/xenfsimage/reiserfs
844 %dir %{_libdir}/xenfsimage/ufs
845 %dir %{_libdir}/xenfsimage/xfs
846 %dir %{_libdir}/xenfsimage/zfs
847 %attr(755,root,root) %{_libdir}/xenfsimage/*/fsimage.so
848
849 %files libs-guest
850 %defattr(644,root,root,755)
851 %attr(755,root,root) %{_libdir}/libxenstore.so.*.*
852 %attr(755,root,root) %ghost %{_libdir}/libxenstore.so.4
853
854 %files devel
855 %defattr(644,root,root,755)
856 %attr(755,root,root) %{_libdir}/libxenfsimage.so
857 %attr(755,root,root) %{_libdir}/libxencall.so
858 %attr(755,root,root) %{_libdir}/libxenctrl.so
859 %attr(755,root,root) %{_libdir}/libxendevicemodel.so
860 %attr(755,root,root) %{_libdir}/libxenevtchn.so
861 %attr(755,root,root) %{_libdir}/libxenforeignmemory.so
862 %attr(755,root,root) %{_libdir}/libxengnttab.so
863 %attr(755,root,root) %{_libdir}/libxenguest.so
864 %attr(755,root,root) %{_libdir}/libxenhypfs.so
865 %attr(755,root,root) %{_libdir}/libxenlight.so
866 %attr(755,root,root) %{_libdir}/libxenstat.so
867 %attr(755,root,root) %{_libdir}/libxenstore.so
868 %attr(755,root,root) %{_libdir}/libxentoolcore.so
869 %attr(755,root,root) %{_libdir}/libxentoollog.so
870 %attr(755,root,root) %{_libdir}/libxenvchan.so
871 %attr(755,root,root) %{_libdir}/libxlutil.so
872 %{_includedir}/_libxl_list.h
873 %{_includedir}/_libxl_types.h
874 %{_includedir}/_libxl_types_json.h
875 %{_includedir}/libxenvchan.h
876 %{_includedir}/libxl*.h
877 %{_includedir}/xen*.h
878 %{_includedir}/xs*.h
879 %{_includedir}/xen
880 %{_includedir}/xenstore-compat
881 %{_pkgconfigdir}/xencall.pc
882 %{_pkgconfigdir}/xencontrol.pc
883 %{_pkgconfigdir}/xendevicemodel.pc
884 %{_pkgconfigdir}/xenevtchn.pc
885 %{_pkgconfigdir}/xenforeignmemory.pc
886 %{_pkgconfigdir}/xengnttab.pc
887 %{_pkgconfigdir}/xenguest.pc
888 %{_pkgconfigdir}/xenhypfs.pc
889 %{_pkgconfigdir}/xenlight.pc
890 %{_pkgconfigdir}/xenstat.pc
891 %{_pkgconfigdir}/xenstore.pc
892 %{_pkgconfigdir}/xentoolcore.pc
893 %{_pkgconfigdir}/xentoollog.pc
894 %{_pkgconfigdir}/xenvchan.pc
895 %{_pkgconfigdir}/xlutil.pc
896
897 %files static
898 %defattr(644,root,root,755)
899 %{_libdir}/libxencall.a
900 %{_libdir}/libxenctrl.a
901 %{_libdir}/libxendevicemodel.a
902 %{_libdir}/libxenevtchn.a
903 %{_libdir}/libxenforeignmemory.a
904 %{_libdir}/libxengnttab.a
905 %{_libdir}/libxenguest.a
906 %{_libdir}/libxenhypfs.a
907 %{_libdir}/libxenlight.a
908 %{_libdir}/libxenvchan.a
909 %{_libdir}/libxenstat.a
910 %{_libdir}/libxenstore.a
911 %{_libdir}/libxentoolcore.a
912 %{_libdir}/libxentoollog.a
913 %{_libdir}/libxlutil.a
914
915 # -n golang-xen
916 # XXX: location?
917 #%{_datadir}/gocode/src/golang.xenproject.org/xenlight
918
919 %if %{with ocaml}
920 %files -n ocaml-xen
921 %defattr(644,root,root,755)
922 %doc tools/ocaml/LICENSE
923 %attr(755,root,root) %{_sbindir}/oxenstored
924 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/oxenstored.conf
925 %dir %{_libdir}/ocaml/xenbus
926 %attr(755,root,root) %{_libdir}/ocaml/xenbus/dllxenbus_stubs.so
927 %dir %{_libdir}/ocaml/xenctrl
928 %attr(755,root,root) %{_libdir}/ocaml/xenctrl/dllxenctrl_stubs.so
929 %dir %{_libdir}/ocaml/xeneventchn
930 %attr(755,root,root) %{_libdir}/ocaml/xeneventchn/dllxeneventchn_stubs.so
931 %dir %{_libdir}/ocaml/xenlight
932 %attr(755,root,root) %{_libdir}/ocaml/xenlight/dllxenlight_stubs.so
933 %dir %{_libdir}/ocaml/xenmmap
934 %attr(755,root,root) %{_libdir}/ocaml/xenmmap/dllxenmmap_stubs.so
935 %dir %{_libdir}/ocaml/xentoollog
936 %attr(755,root,root) %{_libdir}/ocaml/xentoollog/dllxentoollog_stubs.so
937
938 %files -n ocaml-xen-devel
939 %defattr(644,root,root,755)
940 %{_libdir}/ocaml/xenbus/META
941 %{_libdir}/ocaml/xenbus/libxenbus_stubs.a
942 %{_libdir}/ocaml/xenbus/xenbus.a
943 %{_libdir}/ocaml/xenbus/*.cm[aixo]*
944 %{_libdir}/ocaml/xenctrl/META
945 %{_libdir}/ocaml/xenctrl/libxenctrl_stubs.a
946 %{_libdir}/ocaml/xenctrl/xenctrl.a
947 %{_libdir}/ocaml/xenctrl/xenctrl.cm[aix]*
948 %{_libdir}/ocaml/xeneventchn/META
949 %{_libdir}/ocaml/xeneventchn/libxeneventchn_stubs.a
950 %{_libdir}/ocaml/xeneventchn/xeneventchn.a
951 %{_libdir}/ocaml/xeneventchn/xeneventchn.cm[aix]*
952 %{_libdir}/ocaml/xenmmap/META
953 %{_libdir}/ocaml/xenmmap/libxenmmap_stubs.a
954 %{_libdir}/ocaml/xenmmap/xenmmap.a
955 %{_libdir}/ocaml/xenmmap/xenmmap.cm[aix]*
956 %{_libdir}/ocaml/xenlight/META
957 %{_libdir}/ocaml/xenlight/libxenlight_stubs.a
958 %{_libdir}/ocaml/xenlight/xenlight.a
959 %{_libdir}/ocaml/xenlight/xenlight.cm[aix]*
960 %dir %{_libdir}/ocaml/xenstore
961 %{_libdir}/ocaml/xenstore/META
962 %{_libdir}/ocaml/xenstore/xenstore.a
963 %{_libdir}/ocaml/xenstore/*.cm[aixo]*
964 %{_libdir}/ocaml/xentoollog/META
965 %{_libdir}/ocaml/xentoollog/libxentoollog_stubs.a
966 %{_libdir}/ocaml/xentoollog/xentoollog.a
967 %{_libdir}/ocaml/xentoollog/*.cm[aixo]*
968 %endif
969
970 %if %{with python2}
971 %files -n python-xen
972 %defattr(644,root,root,755)
973 %attr(755,root,root) %{py_sitedir}/xenfsimage.so
974 %dir %{py_sitedir}/xen
975 %{py_sitedir}/xen/util.py[co]
976 %dir %{py_sitedir}/xen/lowlevel
977 %attr(755,root,root) %{py_sitedir}/xen/lowlevel/xc.so
978 %{py_sitedir}/xen/migration
979 %{py_sitedir}/grub
980 %{py_sitedir}/pygrub-*-py*.egg-info
981 %{py_sitedir}/xen-*-py*.egg-info
982
983 %files -n python-xen-guest
984 %defattr(644,root,root,755)
985 %dir %{py_sitedir}/xen
986 %{py_sitedir}/xen/__init__.py[co]
987 %dir %{py_sitedir}/xen/lowlevel
988 %{py_sitedir}/xen/lowlevel/__init__.py[co]
989 %attr(755,root,root) %{py_sitedir}/xen/lowlevel/xs.so
990
991 %else
992
993 %files -n python3-xen
994 %defattr(644,root,root,755)
995 %attr(755,root,root) %{py3_sitedir}/xenfsimage.cpython-*.so
996 %dir %{py3_sitedir}/xen
997 %dir %{py3_sitedir}/xen/__pycache__
998 %{py3_sitedir}/xen/util.py
999 %{py3_sitedir}/xen/__pycache__/util.cpython-*.py[co]
1000 %dir %{py3_sitedir}/xen/lowlevel
1001 %attr(755,root,root) %{py3_sitedir}/xen/lowlevel/xc.cpython-*.so
1002 %{py3_sitedir}/xen/migration
1003 %{py3_sitedir}/grub
1004 %{py3_sitedir}/pygrub-*-py*.egg-info
1005 %{py3_sitedir}/xen-*-py*.egg-info
1006
1007 %files -n python3-xen-guest
1008 %defattr(644,root,root,755)
1009 %dir %{py3_sitedir}/xen
1010 %dir %{py3_sitedir}/xen/__pycache__
1011 %{py3_sitedir}/xen/__init__.py*
1012 %{py3_sitedir}/xen/__pycache__/__init__.cpython-*.py[co]
1013 %dir %{py3_sitedir}/xen/lowlevel
1014 %{py3_sitedir}/xen/lowlevel/__init__.py
1015 %{py3_sitedir}/xen/lowlevel/__pycache__
1016 %attr(755,root,root) %{py3_sitedir}/xen/lowlevel/xs.cpython-*.so
1017 %endif
1018
1019 %files -n bash-completion-%{name}
1020 %defattr(644,root,root,755)
1021 /etc/bash_completion.d/xl
1022
1023 %if %{with efi}
1024 %files efi
1025 %defattr(644,root,root,755)
1026 %dir %{_libdir}/efi
1027 %{_libdir}/efi/*.efi
1028 %attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/xen.cfg
1029 %attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/efi-boot/update.d/xen.conf
1030 %endif
This page took 0.121624 seconds and 3 git commands to generate.