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