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