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