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