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