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