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