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