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