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