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