]>
Commit | Line | Data |
---|---|---|
2f3b83cd | 1 | # |
403a0e9f | 2 | # TODO: |
e9753e37 | 3 | # - most of the qemu config options aren't detected (curses, NPTL, vde, fdt) |
b650a78f | 4 | # |
732e4a65 JR |
5 | # |
6 | # Conditional build: | |
e6e7d0de | 7 | %bcond_without ocaml # build Ocaml libraries for Xen tools |
732e4a65 | 8 | # |
c1281a11 | 9 | %define xen_extfiles_url http://xenbits.xensource.com/xen-extfiles |
adbb6385 | 10 | Summary: Xen - a virtual machine monitor |
a1a3c257 | 11 | Summary(pl.UTF-8): Xen - monitor maszyny wirtualnej |
fda6847b | 12 | Name: xen |
e9753e37 | 13 | Version: 4.1.2 |
944e4f79 | 14 | Release: 4 |
e6e7d0de | 15 | License: GPL v2, interface parts on BSD-like |
129858a4 | 16 | Group: Applications/System |
98fa2458 | 17 | Source0: http://bits.xensource.com/oss-xen/release/%{version}/%{name}-%{version}.tar.gz |
e9753e37 | 18 | # Source0-md5: 73561faf3c1b5e36ec5c089b5db848ad |
c1281a11 | 19 | # used by stubdoms |
94b34ae4 | 20 | Source10: %{xen_extfiles_url}/lwip-1.3.0.tar.gz |
c1281a11 | 21 | # Source10-md5: 36cc57650cffda9a0269493be2a169bb |
94b34ae4 | 22 | Source11: %{xen_extfiles_url}/newlib-1.16.0.tar.gz |
c1281a11 | 23 | # Source11-md5: bf8f1f9e3ca83d732c00a79a6ef29bc4 |
94b34ae4 | 24 | Source12: %{xen_extfiles_url}/zlib-1.2.3.tar.gz |
c1281a11 | 25 | # Source12-md5: debc62758716a169df9f62e6ab2bc634 |
94b34ae4 | 26 | Source13: %{xen_extfiles_url}/pciutils-2.2.9.tar.bz2 |
c1281a11 | 27 | # Source13-md5: cec05e7785497c5e19da2f114b934ffd |
94b34ae4 | 28 | Source14: %{xen_extfiles_url}/grub-0.97.tar.gz |
c1281a11 | 29 | # Source14-md5: cd3f3eb54446be6003156158d51f4884 |
94b34ae4 | 30 | Source15: %{xen_extfiles_url}/ipxe-git-v1.0.0.tar.gz |
c1281a11 | 31 | # Source15-md5: fb7df96781d337899066d82059346885 |
2e8b91a6 JR |
32 | Source30: proc-xen.mount |
33 | Source31: var-lib-xenstored.mount | |
34 | Source32: blktapctrl.service | |
35 | Source33: blktapctrl.sysconfig | |
36 | Source34: xenconsoled.service | |
37 | Source35: xenconsoled.sysconfig | |
38 | Source36: xenstored.service | |
39 | Source37: xenstored.sysconfig | |
40 | Source38: xenstored.tmpfiles | |
41 | Source39: xend.service | |
42 | Source40: xend.tmpfiles | |
43 | Source41: xen-watchdog.service | |
36106ee8 | 44 | Source42: xen-dom0-modules-load.conf |
2e8b91a6 JR |
45 | # sysvinit scripts |
46 | Source50: xend.init | |
47 | Source51: xenconsoled.init | |
48 | Source52: xenstored.init | |
49 | Source53: xen-watchdog.init | |
50 | Source54: xendomains.init | |
51 | Source55: xen.logrotate | |
47d65e01 | 52 | Patch0: %{name}-python_scripts.patch |
e9753e37 MM |
53 | Patch1: %{name}-symbols.patch |
54 | Patch2: %{name}-curses.patch | |
6ca9eddd JR |
55 | Patch3: %{name}-xz.patch |
56 | Patch4: pygrubfix.patch | |
57 | Patch5: pygrubfix2.patch | |
58 | Patch6: qemu-xen-4.1-testing.git-3cf61880403b4e484539596a95937cc066243388.patch | |
59 | Patch7: xen-4.1-testing.23190.patch | |
60 | Patch8: xend.catchbt.patch | |
61 | Patch9: xend.empty.xml.patch | |
62 | Patch10: xend-pci-loop.patch | |
63 | Patch11: xen-dumpdir.patch | |
94ddf9c9 | 64 | Patch12: xen-net-disable-iptables-on-bridge.patch |
78c13f9d | 65 | Patch13: xen-configure-xend.patch |
7f560d13 | 66 | Patch14: xen-initscript.patch |
6ca9eddd JR |
67 | # stubdom patch |
68 | Patch100: grub-ext4-support.patch | |
67494ff6 | 69 | URL: http://www.cl.cam.ac.uk/Research/SRG/netos/xen/index.html |
04f24179 | 70 | BuildRequires: OpenGL-devel |
abdd4c6d | 71 | BuildRequires: SDL-devel |
24d6dc2b | 72 | BuildRequires: acpica |
2e8b91a6 | 73 | BuildRequires: bcc |
04f24179 JB |
74 | BuildRequires: bluez-libs-devel |
75 | BuildRequires: brlapi-devel | |
39eabac9 | 76 | BuildRequires: curl-devel |
d9ee3ddc | 77 | BuildRequires: e2fsprogs-devel |
fc7816dc | 78 | BuildRequires: gcc >= 5:3.4 |
abdd4c6d | 79 | BuildRequires: gettext-devel |
04f24179 | 80 | BuildRequires: gnutls-devel |
47d65e01 | 81 | BuildRequires: latex2html |
403a0e9f | 82 | BuildRequires: libidn-devel |
403a0e9f | 83 | BuildRequires: ncurses-devel |
732e4a65 JR |
84 | %if %{with ocaml} |
85 | BuildRequires: ocaml >= 3.04-7 | |
86 | BuildRequires: ocaml-findlib | |
732e4a65 | 87 | %endif |
42bff0c7 | 88 | BuildRequires: pciutils-devel |
abdd4c6d | 89 | BuildRequires: pkgconfig |
53503036 | 90 | BuildRequires: python-devel |
48c47956 | 91 | BuildRequires: rpm-pythonprov |
5db31b25 | 92 | BuildRequires: rpmbuild(macros) >= 1.647 |
e9753e37 | 93 | #BuildRequires: texlive-dvips |
abdd4c6d | 94 | #BuildRequires: texlive-latex-data |
f03e6adf | 95 | BuildRequires: texlive-latex-psnfss |
53503036 | 96 | BuildRequires: transfig |
12f352e2 | 97 | BuildRequires: which |
04f24179 JB |
98 | BuildRequires: xorg-lib-libX11-devel |
99 | BuildRequires: xorg-lib-libXext-devel | |
53503036 | 100 | BuildRequires: zlib-devel |
129858a4 | 101 | Requires(post,preun): /sbin/chkconfig |
c2ee841b | 102 | Requires(post,preun,postun): systemd-units >= 38 |
9f9b2612 | 103 | Requires: %{name}-libs = %{version}-%{release} |
53503036 JB |
104 | Requires: ZopeInterface |
105 | Requires: bridge-utils | |
e77e45ff AM |
106 | Requires: coreutils |
107 | Requires: diffutils | |
d78769bd | 108 | Requires: gawk |
e77e45ff | 109 | Requires: iptables |
53503036 | 110 | Requires: losetup |
e77e45ff | 111 | Requires: net-tools |
8e6e2740 | 112 | Requires: python-%{name} = %{version}-%{release} |
129858a4 | 113 | Requires: rc-scripts |
e77e45ff | 114 | Requires: sed |
5db31b25 | 115 | Requires: systemd-units >= 38 |
a674a8b2 | 116 | Requires: util-linux |
e77e45ff | 117 | Requires: which |
cef7399d | 118 | Obsoletes: xen-doc |
2e8b91a6 | 119 | Obsoletes: xen-udev |
971d1e2c | 120 | ExclusiveArch: %{ix86} %{x8664} |
fda6847b AM |
121 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
122 | ||
8f12ec8f | 123 | # some PPC/SPARC boot image in ELF format |
7fb9617b | 124 | %define _noautostrip .*%{_datadir}/xen/qemu/openbios-.* |
8f12ec8f | 125 | |
fda6847b AM |
126 | %description |
127 | This package contains the Xen hypervisor and Xen tools, needed to run | |
128 | virtual machines on x86 systems, together with the kernel-xen* | |
129 | packages. Information on how to use Xen can be found at the Xen | |
130 | project pages. | |
131 | ||
132 | Virtualisation can be used to run multiple versions or multiple Linux | |
133 | distributions on one system, or to test untrusted applications in a | |
134 | sandboxed environment. Note that the Xen technology is still in | |
135 | development, and this RPM has received extremely little testing. Don't | |
136 | be surprised if this RPM eats your data, drinks your coffee or makes | |
137 | fun of you in front of your friends. | |
138 | ||
d2a30a0d | 139 | %description -l pl.UTF-8 |
3615a8c8 | 140 | Ten pakiet zawiera nadzorcę oraz narzędzia Xen, potrzebne do |
adbb6385 | 141 | uruchamiania wirtualnych maszyn w systemach x86, wraz z pakietami |
3615a8c8 | 142 | kernel-xen*. Informacje jak używać Xena można znaleźć na stronach |
adbb6385 JB |
143 | projektu. |
144 | ||
3615a8c8 | 145 | Wirtualizacja może być używana do uruchamiania wielu wersji lub wielu |
dcba01a0 | 146 | dystrybucji Linuksa na jednym systemie lub do testowania nie zaufanych |
3615a8c8 ER |
147 | aplikacji w odizolowanym środowisku. Należy zauważyć, że technologia |
148 | Xen jest ciągle rozwijana, a ten RPM był słabo testowany. Nie należy | |
149 | być zdziwionym, jeśli ten pakiet zje dane, wypije całą kawę czy będzie | |
150 | się wyśmiewał w obecności przyjaciół. | |
403a0e9f | 151 | |
26412ee3 | 152 | %package libs |
e6e7d0de JB |
153 | Summary: Xen libraries |
154 | Summary(pl.UTF-8): Biblioteki Xena | |
26412ee3 JB |
155 | Group: Libraries |
156 | ||
157 | %description libs | |
e6e7d0de | 158 | Xen libraries. |
26412ee3 JB |
159 | |
160 | %description libs -l pl.UTF-8 | |
e6e7d0de | 161 | Biblioteki Xena. |
26412ee3 | 162 | |
403a0e9f | 163 | %package devel |
e6e7d0de JB |
164 | Summary: Header files for Xen |
165 | Summary(pl.UTF-8): Pliki nagłówkowe Xena | |
403a0e9f | 166 | Group: Development/Libraries |
9f9b2612 | 167 | Requires: %{name}-libs = %{version}-%{release} |
403a0e9f AM |
168 | |
169 | %description devel | |
e6e7d0de | 170 | Header files for Xen. |
6eccf3e8 | 171 | |
d2a30a0d | 172 | %description devel -l pl.UTF-8 |
e6e7d0de | 173 | Pliki nagłówkowe Xena. |
403a0e9f AM |
174 | |
175 | %package static | |
e6e7d0de JB |
176 | Summary: Static Xen libraries |
177 | Summary(pl.UTF-8): Statyczne biblioteki Xena | |
403a0e9f | 178 | Group: Development/Libraries |
9f9b2612 | 179 | Requires: %{name}-devel = %{version}-%{release} |
403a0e9f AM |
180 | |
181 | %description static | |
e6e7d0de | 182 | Static Xen libraries. |
adbb6385 | 183 | |
d2a30a0d | 184 | %description static -l pl.UTF-8 |
e6e7d0de | 185 | Statyczne biblioteki Xena. |
6eccf3e8 | 186 | |
e9753e37 MM |
187 | %package xend |
188 | Summary: xend daemon | |
189 | Summary(pl.UTF-8): Demon xend | |
190 | Group: Daemons | |
c2ee841b | 191 | Requires(post,preun,postun): systemd-units >= 38 |
5db31b25 | 192 | Requires: systemd-units >= 38 |
e9753e37 MM |
193 | |
194 | %description xend | |
195 | xend daemon. | |
196 | ||
197 | %description xend -l pl.UTF-8 | |
198 | Demon xend. | |
199 | ||
e6e7d0de JB |
200 | %package -n ocaml-xen |
201 | Summary: OCaml bindings for Xen | |
202 | Summary(pl.UTF-8): Wiązania OCamla dla Xena | |
203 | License: LGPL v2.1 with linking exception | |
204 | Group: Libraries | |
205 | Requires: %{name}-libs = %{version}-%{release} | |
1d76ff09 | 206 | %if %{with ocaml} |
e6e7d0de JB |
207 | %requires_eq ocaml-runtime |
208 | ||
1d76ff09 | 209 | %endif |
e6e7d0de JB |
210 | %description -n ocaml-xen |
211 | OCaml bindings for Xen. | |
212 | ||
213 | %description -n ocaml-xen -l pl.UTF-8 | |
214 | Wiązania OCamla dla Xena. | |
215 | ||
216 | %package -n ocaml-xen-devel | |
217 | Summary: OCaml bindings for Xen - development files | |
218 | Summary(pl.UTF-8): Wiązania OCamla dla Xena - pliki programistyczne | |
219 | License: LGPL v2.1 with linking exception | |
220 | Group: Development/Libraries | |
221 | Requires: ocaml-xen = %{version}-%{release} | |
1d76ff09 | 222 | %if %{with ocaml} |
e6e7d0de | 223 | %requires_eq ocaml |
1d76ff09 | 224 | %endif |
e6e7d0de JB |
225 | |
226 | %description -n ocaml-xen-devel | |
227 | OCaml bindings for Xen - development files. | |
228 | ||
229 | %description -n ocaml-xen-devel -l pl.UTF-8 | |
230 | Wiązania OCamla dla Xena - pliki programistyczne. | |
231 | ||
5dd334af | 232 | %package -n python-xen |
e6e7d0de JB |
233 | Summary: Xen Python modules |
234 | Summary(pl.UTF-8): Moduły Pythona dla Xena | |
5dd334af | 235 | Group: Libraries |
e6e7d0de | 236 | Requires: %{name}-libs = %{version}-%{release} |
e35fda92 | 237 | Conflicts: xen < 3.2.1-0.3 |
5dd334af JB |
238 | |
239 | %description -n python-xen | |
e6e7d0de | 240 | Xen Python modules. |
5dd334af JB |
241 | |
242 | %description -n python-xen -l pl.UTF-8 | |
e6e7d0de | 243 | Moduły Pythona dla Xena. |
5dd334af | 244 | |
e9753e37 | 245 | %package -n bash-completion-%{name} |
e6e7d0de JB |
246 | Summary: bash-completion for Xen (xl) |
247 | Summary(pl.UTF-8): Bashowe dopełnianie poleceń dla Xena (xl) | |
e9753e37 MM |
248 | Group: Applications/Shells |
249 | Requires: %{name} = %{version}-%{release} | |
250 | Requires: bash-completion | |
251 | ||
252 | %description -n bash-completion-%{name} | |
e6e7d0de | 253 | This package provides bash-completion for Xen (xl). |
94b34ae4 JB |
254 | |
255 | %description -n bash-completion-%{name} -l pl.UTF-8 | |
e6e7d0de | 256 | Ten pakiet zapewnia bashowe dopełnianie poleceń dla Xena (xl). |
e9753e37 | 257 | |
fda6847b | 258 | %prep |
98fa2458 | 259 | %setup -q |
47d65e01 JK |
260 | %patch0 -p1 |
261 | %patch1 -p1 | |
42bff0c7 | 262 | %patch2 -p1 |
6ca9eddd | 263 | %patch3 -p1 |
53ff2d70 | 264 | %patch4 -p1 |
6ca9eddd JR |
265 | %patch5 -p1 |
266 | %patch6 -p1 | |
267 | %patch7 -p1 | |
268 | %patch8 -p1 | |
269 | %patch9 -p1 | |
270 | %patch10 -p1 | |
271 | %patch11 -p1 | |
94ddf9c9 | 272 | %patch12 -p1 |
78c13f9d | 273 | %patch13 -p1 |
7f560d13 | 274 | %patch14 -p1 |
4015585b | 275 | |
c1281a11 ER |
276 | %{__rm} -v tools/check/*.orig |
277 | ||
278 | # stubdom sources | |
279 | ln -s %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} stubdom | |
6ca9eddd | 280 | ln -s %{PATCH100} stubdom/grub.patches/99grub-ext4-support.patch |
c1281a11 | 281 | ln -s %{SOURCE15} tools/firmware/etherboot/ipxe.tar.gz |
fda6847b AM |
282 | |
283 | %build | |
2e8b91a6 JR |
284 | export CFLAGS="%{rpmcflags} -I/usr/include/ncurses" |
285 | export CXXFLAGS="%{rpmcflags} -I/usr/include/ncurses" | |
286 | ||
287 | %{__make} dist-xen dist-tools dist-docs \ | |
732e4a65 | 288 | %{!?with_ocaml:OCAML_TOOLS=n} \ |
2e8b91a6 JR |
289 | prefix=%{_prefix} \ |
290 | CC="%{__cc}" \ | |
04f24179 JB |
291 | CXX="%{__cxx}" \ |
292 | V=1 | |
2e8b91a6 JR |
293 | |
294 | unset CFLAGS | |
295 | unset CXXFLAGS | |
296 | %{__make} -j1 dist-stubdom \ | |
732e4a65 | 297 | %{!?with_ocaml:OCAML_TOOLS=n} \ |
403a0e9f | 298 | CC="%{__cc}" \ |
da88b5cd | 299 | CXX="%{__cxx}" |
fda6847b AM |
300 | |
301 | %install | |
302 | rm -rf $RPM_BUILD_ROOT | |
245547b2 | 303 | install -d $RPM_BUILD_ROOT/etc/{xen/examples,modules-load.d,logrotate.d} \ |
ba7770de | 304 | $RPM_BUILD_ROOT{/usr/lib/tmpfiles.d,%{systemdunitdir},/var/log/xen/console} |
adbb6385 | 305 | |
2e8b91a6 | 306 | %{__make} -j1 install-xen install-tools install-stubdom install-docs \ |
732e4a65 | 307 | %{!?with_ocaml:OCAML_TOOLS=n} \ |
2e8b91a6 | 308 | prefix=%{_prefix} \ |
9e5cb9d3 JB |
309 | DESTDIR=$RPM_BUILD_ROOT \ |
310 | HOTPLUGS=install-udev | |
403a0e9f | 311 | |
a1283e56 JR |
312 | %if "%{_lib}" == "lib64" |
313 | ln -s %{_prefix}/lib/%{name}/bin/qemu-dm $RPM_BUILD_ROOT%{_libdir}/%{name}/bin/qemu-dm | |
314 | %endif | |
315 | ||
2e8b91a6 JR |
316 | install %{SOURCE30} $RPM_BUILD_ROOT%{systemdunitdir}/proc-xen.mount |
317 | install %{SOURCE31} $RPM_BUILD_ROOT%{systemdunitdir}/var-lib-xenstored.mount | |
5db31b25 JR |
318 | install %{SOURCE32} $RPM_BUILD_ROOT%{systemdunitdir}/blktapctrl.service |
319 | install %{SOURCE33} $RPM_BUILD_ROOT/etc/sysconfig/blktapctrl | |
2e8b91a6 | 320 | install %{SOURCE34} $RPM_BUILD_ROOT%{systemdunitdir}/xenconsoled.service |
4a5ac969 | 321 | install %{SOURCE35} $RPM_BUILD_ROOT/etc/sysconfig/xenconsoled |
2e8b91a6 | 322 | install %{SOURCE36} $RPM_BUILD_ROOT%{systemdunitdir}/xenstored.service |
4a5ac969 | 323 | install %{SOURCE37} $RPM_BUILD_ROOT/etc/sysconfig/xenstored |
2e8b91a6 JR |
324 | install %{SOURCE38} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/xenstored.conf |
325 | install %{SOURCE39} $RPM_BUILD_ROOT%{systemdunitdir}/xend.service | |
326 | install %{SOURCE40} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/xend.conf | |
327 | install %{SOURCE41} $RPM_BUILD_ROOT%{systemdunitdir}/xen-watchdog.service | |
36106ee8 | 328 | install %{SOURCE42} $RPM_BUILD_ROOT/etc/modules-load.d/xen-dom0.conf |
2e8b91a6 JR |
329 | # sysvinit scripts |
330 | %{__rm} $RPM_BUILD_ROOT/etc/rc.d/init.d/* | |
331 | install %{SOURCE50} $RPM_BUILD_ROOT/etc/rc.d/init.d/xend | |
332 | install %{SOURCE51} $RPM_BUILD_ROOT/etc/rc.d/init.d/xenconsoled | |
333 | install %{SOURCE52} $RPM_BUILD_ROOT/etc/rc.d/init.d/xenstored | |
334 | install %{SOURCE53} $RPM_BUILD_ROOT/etc/rc.d/init.d/xen-watchdog | |
335 | install %{SOURCE54} $RPM_BUILD_ROOT/etc/rc.d/init.d/xendomains | |
245547b2 | 336 | install %{SOURCE55} $RPM_BUILD_ROOT/etc/logrotate.d/xen |
2e8b91a6 | 337 | |
e9753e37 | 338 | mv $RPM_BUILD_ROOT/etc/xen/{xmexample*,examples} |
fda6847b | 339 | |
c1281a11 ER |
340 | cp -p tools/blktap/README{,.blktap} |
341 | cp -p tools/xenmon/README{,.xenmon} | |
67494ff6 | 342 | |
90eccaeb ER |
343 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
344 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
345 | ||
346 | %py_postclean | |
e9753e37 | 347 | |
86497794 | 348 | # remove unneeded files |
e9753e37 MM |
349 | %{__rm} $RPM_BUILD_ROOT/boot/xen-4.1.gz |
350 | %{__rm} $RPM_BUILD_ROOT/boot/xen-4.gz | |
8641374c | 351 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/xen |
e9753e37 | 352 | %{__rm} $RPM_BUILD_ROOT%{_includedir}/%{name}/COPYING |
d26491b9 | 353 | |
fda6847b AM |
354 | %clean |
355 | rm -rf $RPM_BUILD_ROOT | |
356 | ||
403a0e9f | 357 | %post |
90a21d83 | 358 | /sbin/chkconfig --add xen-watchdog |
2e8b91a6 JR |
359 | /sbin/chkconfig --add xenconsoled |
360 | /sbin/chkconfig --add xenstored | |
403a0e9f | 361 | /sbin/chkconfig --add xendomains |
5db31b25 | 362 | %systemd_post xen-watchdog.service xenconsoled.service xenstored.service |
403a0e9f | 363 | |
403a0e9f | 364 | %preun |
e9753e37 MM |
365 | if [ "$1" = "0" ]; then |
366 | %service xendomains stop | |
367 | /sbin/chkconfig --del xendomains | |
368 | ||
2e8b91a6 JR |
369 | %service xenconsoled stop |
370 | /sbin/chkconfig --del xenconsoled | |
371 | ||
372 | %service xenstored stop | |
373 | /sbin/chkconfig --del xenstored | |
90a21d83 MM |
374 | |
375 | %service xen-watchdog stop | |
376 | /sbin/chkconfig --del xen-watchdog | |
e9753e37 | 377 | fi |
5db31b25 | 378 | %systemd_preun xen-watchdog.service xenconsoled.service xenstored.service |
e9753e37 | 379 | |
5db31b25 JR |
380 | %postun |
381 | %systemd_reload | |
382 | ||
383 | %post xend | |
e9753e37 | 384 | /sbin/chkconfig --add xend |
5db31b25 | 385 | %systemd_post xend.service |
e9753e37 MM |
386 | |
387 | %preun xend | |
403a0e9f | 388 | if [ "$1" = "0" ]; then |
129858a4 | 389 | %service xend stop |
403a0e9f | 390 | /sbin/chkconfig --del xend |
e9753e37 | 391 | fi |
5db31b25 JR |
392 | %systemd_preun xend.service |
393 | ||
394 | %postun xend | |
395 | %systemd_reload | |
129858a4 | 396 | |
26412ee3 JB |
397 | %post libs -p /sbin/ldconfig |
398 | %postun libs -p /sbin/ldconfig | |
399 | ||
fda6847b AM |
400 | %files |
401 | %defattr(644,root,root,755) | |
e9753e37 | 402 | %doc COPYING README* docs/misc/* |
47d65e01 | 403 | %doc docs/html/* |
e9753e37 MM |
404 | %doc tools/blktap/README.blktap tools/xenmon/README.xenmon |
405 | %doc tools/ioemu-dir/*.html | |
98fa2458 AM |
406 | /boot/%{name}-syms-%{version} |
407 | /boot/%{name}-%{version}.gz | |
fda6847b | 408 | /boot/%{name}.gz |
6ca9eddd JR |
409 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xenconsoled |
410 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xenstored | |
411 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xendomains | |
245547b2 | 412 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/xen |
90a21d83 | 413 | %attr(754,root,root) /etc/rc.d/init.d/xen-watchdog |
2e8b91a6 JR |
414 | %attr(754,root,root) /etc/rc.d/init.d/xenconsoled |
415 | %attr(754,root,root) /etc/rc.d/init.d/xenstored | |
e9753e37 | 416 | %attr(754,root,root) /etc/rc.d/init.d/xendomains |
36106ee8 | 417 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/xen-dom0.conf |
2e8b91a6 JR |
418 | %{systemdunitdir}/proc-xen.mount |
419 | %{systemdunitdir}/var-lib-xenstored.mount | |
2e8b91a6 JR |
420 | %{systemdunitdir}/xen-watchdog.service |
421 | %{systemdunitdir}/xenconsoled.service | |
422 | %{systemdunitdir}/xenstored.service | |
403a0e9f | 423 | %dir %{_sysconfdir}/xen |
403a0e9f | 424 | %dir %{_sysconfdir}/xen/auto |
e9753e37 | 425 | %dir %{_sysconfdir}/xen/examples |
403a0e9f AM |
426 | %dir %{_sysconfdir}/xen/scripts |
427 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/scripts/* | |
e9753e37 MM |
428 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/examples/* |
429 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/README* | |
430 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/cpupool | |
431 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/xl.conf | |
eb3891cc | 432 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/xen-backend.rules |
94b34ae4 JB |
433 | %attr(755,root,root) %{_bindir}/pygrub |
434 | %attr(755,root,root) %{_bindir}/qemu-img-xen | |
435 | %attr(755,root,root) %{_bindir}/qemu-nbd-xen | |
436 | %attr(755,root,root) %{_bindir}/remus | |
437 | %attr(755,root,root) %{_bindir}/xen-detect | |
438 | %attr(755,root,root) %{_bindir}/xencons | |
439 | %attr(755,root,root) %{_bindir}/xenstore* | |
440 | %attr(755,root,root) %{_bindir}/xentrace* | |
441 | %attr(755,root,root) %{_sbindir}/blktapctrl | |
442 | %attr(755,root,root) %{_sbindir}/flask-* | |
443 | %attr(755,root,root) %{_sbindir}/gdbsx | |
444 | %attr(755,root,root) %{_sbindir}/gtrace* | |
445 | %attr(755,root,root) %{_sbindir}/img2qcow | |
446 | %attr(755,root,root) %{_sbindir}/kdd | |
447 | %attr(755,root,root) %{_sbindir}/lock-util | |
448 | %attr(755,root,root) %{_sbindir}/qcow-create | |
449 | %attr(755,root,root) %{_sbindir}/qcow2raw | |
450 | %attr(755,root,root) %{_sbindir}/tap-ctl | |
451 | %attr(755,root,root) %{_sbindir}/tapdisk* | |
452 | %attr(755,root,root) %{_sbindir}/td-util | |
453 | %attr(755,root,root) %{_sbindir}/vhd-* | |
454 | %attr(755,root,root) %{_sbindir}/xen-* | |
455 | %attr(755,root,root) %{_sbindir}/xenbaked | |
456 | %attr(755,root,root) %{_sbindir}/xenconsoled | |
457 | %attr(755,root,root) %{_sbindir}/xenlockprof | |
458 | %attr(755,root,root) %{_sbindir}/xenmon.py | |
459 | %attr(755,root,root) %{_sbindir}/xenpaging | |
460 | %attr(755,root,root) %{_sbindir}/xenperf | |
461 | %attr(755,root,root) %{_sbindir}/xenpm | |
462 | %attr(755,root,root) %{_sbindir}/xenpmd | |
463 | %attr(755,root,root) %{_sbindir}/xenstored | |
464 | %attr(755,root,root) %{_sbindir}/xentop | |
465 | %attr(755,root,root) %{_sbindir}/xentrace_setmask | |
466 | %attr(755,root,root) %{_sbindir}/xenwatchdogd | |
e9753e37 MM |
467 | %attr(755,root,root) %{_sbindir}/xl |
468 | %attr(755,root,root) %{_sbindir}/xsview | |
47d65e01 JK |
469 | %dir %{_libdir}/%{name} |
470 | %dir %{_libdir}/%{name}/bin | |
471 | %attr(744,root,root) %{_libdir}/%{name}/bin/* | |
38e9ca75 | 472 | %if "%{_lib}" != "lib" |
81c76053 | 473 | %dir %{_prefix}/lib/%{name} |
2e8b91a6 JR |
474 | %dir %{_prefix}/lib/%{name}/bin |
475 | %attr(755,root,root) %{_prefix}/lib/%{name}/bin/qemu-dm | |
476 | %attr(755,root,root) %{_prefix}/lib/%{name}/bin/stubdom-dm | |
477 | %attr(755,root,root) %{_prefix}/lib/%{name}/bin/stubdompath.sh | |
38e9ca75 | 478 | %endif |
81c76053 | 479 | %dir %{_prefix}/lib/%{name}/boot |
2e8b91a6 JR |
480 | %{_prefix}/lib/%{name}/boot/ioemu-stubdom.gz |
481 | %{_prefix}/lib/%{name}/boot/pv-grub-x86_32.gz | |
10a7e15f | 482 | %ifarch %{x8664} |
2e8b91a6 | 483 | %{_prefix}/lib/%{name}/boot/pv-grub-x86_64.gz |
10a7e15f | 484 | %endif |
2e8b91a6 | 485 | %attr(744,root,root) %{_prefix}/lib/%{name}/boot/hvmloader |
47d65e01 | 486 | %{_datadir}/xen |
94b34ae4 JB |
487 | %{_mandir}/man1/xentop.1* |
488 | %{_mandir}/man1/xentrace_format.1* | |
489 | %{_mandir}/man1/xm.1* | |
490 | %{_mandir}/man5/xend-config.sxp.5* | |
491 | %{_mandir}/man5/xmdomain.cfg.5* | |
492 | %{_mandir}/man8/xentrace.8* | |
47d65e01 JK |
493 | %{_sharedstatedir}/xen |
494 | %{_sharedstatedir}/xenstored | |
47d65e01 | 495 | %dir /var/run/xenstored |
2e8b91a6 | 496 | %{systemdtmpfilesdir}/xenstored.conf |
ba7770de JR |
497 | %dir %attr(0700,root,root) /var/log/xen |
498 | %dir %attr(0700,root,root) /var/log/xen/console | |
403a0e9f | 499 | |
26412ee3 | 500 | %files libs |
403a0e9f | 501 | %defattr(644,root,root,755) |
94b34ae4 JB |
502 | %attr(755,root,root) %{_libdir}/libblktap.so.*.*.* |
503 | %attr(755,root,root) %ghost %{_libdir}/libblktap.so.3.0 | |
504 | %attr(755,root,root) %{_libdir}/libblktapctl.so.*.*.* | |
505 | %attr(755,root,root) %ghost %{_libdir}/libblktapctl.so.1.0 | |
506 | %attr(755,root,root) %{_libdir}/libflask.so.*.*.* | |
507 | %attr(755,root,root) %ghost %{_libdir}/libflask.so.1.0 | |
508 | %attr(755,root,root) %{_libdir}/libfsimage.so.*.*.* | |
509 | %attr(755,root,root) %ghost %{_libdir}/libfsimage.so.1.0 | |
510 | %attr(755,root,root) %{_libdir}/libvhd.so.*.*.* | |
511 | %attr(755,root,root) %ghost %{_libdir}/libvhd.so.1.0 | |
512 | %attr(755,root,root) %{_libdir}/libxenctrl.so.*.*.* | |
513 | %attr(755,root,root) %ghost %{_libdir}/libxenctrl.so.4.0 | |
514 | %attr(755,root,root) %{_libdir}/libxenguest.so.*.*.* | |
515 | %attr(755,root,root) %ghost %{_libdir}/libxenguest.so.4.0 | |
516 | %attr(755,root,root) %{_libdir}/libxenlight.so.*.*.* | |
517 | %attr(755,root,root) %ghost %{_libdir}/libxenlight.so.1.0 | |
518 | %attr(755,root,root) %{_libdir}/libxenstore.so.*.*.* | |
519 | %attr(755,root,root) %ghost %{_libdir}/libxenstore.so.3.0 | |
520 | %attr(755,root,root) %{_libdir}/libxlutil.so.*.*.* | |
521 | %attr(755,root,root) %ghost %{_libdir}/libxlutil.so.1.0 | |
4015585b | 522 | %dir %{_libdir}/fs |
d9ee3ddc | 523 | %dir %{_libdir}/fs/ext2fs-lib |
2f3b83cd AG |
524 | %dir %{_libdir}/fs/fat |
525 | %dir %{_libdir}/fs/iso9660 | |
4015585b | 526 | %dir %{_libdir}/fs/reiserfs |
527 | %dir %{_libdir}/fs/ufs | |
20aeda6e | 528 | %dir %{_libdir}/fs/zfs |
94b34ae4 | 529 | %attr(755,root,root) %{_libdir}/fs/*/fsimage.so |
26412ee3 | 530 | |
5dd334af JB |
531 | %files devel |
532 | %defattr(644,root,root,755) | |
94b34ae4 JB |
533 | %attr(755,root,root) %{_libdir}/libblktap.so |
534 | %attr(755,root,root) %{_libdir}/libblktapctl.so | |
535 | %attr(755,root,root) %{_libdir}/libflask.so | |
536 | %attr(755,root,root) %{_libdir}/libfsimage.so | |
537 | %attr(755,root,root) %{_libdir}/libvhd.so | |
538 | %attr(755,root,root) %{_libdir}/libxenctrl.so | |
539 | %attr(755,root,root) %{_libdir}/libxenguest.so | |
540 | %attr(755,root,root) %{_libdir}/libxenlight.so | |
541 | %attr(755,root,root) %{_libdir}/libxenstore.so | |
542 | %attr(755,root,root) %{_libdir}/libxlutil.so | |
543 | %{_includedir}/_libxl_types.h | |
544 | %{_includedir}/blktaplib.h | |
545 | %{_includedir}/fsimage*.h | |
546 | %{_includedir}/libxl*.h | |
547 | %{_includedir}/xen*.h | |
548 | %{_includedir}/xs*.h | |
549 | %{_includedir}/xen | |
5dd334af JB |
550 | |
551 | %files static | |
552 | %defattr(644,root,root,755) | |
94b34ae4 JB |
553 | %{_libdir}/libblktap.a |
554 | %{_libdir}/libblktapctl.a | |
555 | %{_libdir}/libflask.a | |
556 | %{_libdir}/libvhd.a | |
557 | %{_libdir}/libxenctrl.a | |
558 | %{_libdir}/libxenguest.a | |
559 | %{_libdir}/libxenlight.a | |
560 | %{_libdir}/libxenstore.a | |
561 | %{_libdir}/libxlutil.a | |
5dd334af | 562 | |
e9753e37 MM |
563 | %files xend |
564 | %defattr(644,root,root,755) | |
5db31b25 JR |
565 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/blktapctrl |
566 | %{systemdunitdir}/blktapctrl.service | |
2e8b91a6 | 567 | %{systemdunitdir}/xend.service |
6ca9eddd | 568 | %attr(754,root,root) %{_sysconfdir}/rc.d/init.d/xend |
eb3891cc | 569 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/xend.rules |
e9753e37 MM |
570 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/xm* |
571 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/xend* | |
572 | %attr(755,root,root) %{_sbindir}/xend | |
573 | %attr(755,root,root) %{_sbindir}/xm | |
574 | %dir %attr(700,root,root) /var/run/xend | |
2e8b91a6 | 575 | %{systemdtmpfilesdir}/xend.conf |
e9753e37 | 576 | |
e6e7d0de JB |
577 | %if %{with ocaml} |
578 | %files -n ocaml-xen | |
579 | %defattr(644,root,root,755) | |
580 | %doc tools/ocaml/LICENSE | |
581 | %attr(755,root,root) %{_sbindir}/oxenstored | |
582 | %dir %{_libdir}/ocaml/site-lib/eventchn | |
583 | %attr(755,root,root) %{_libdir}/ocaml/site-lib/eventchn/dlleventchn_stubs.so | |
584 | %dir %{_libdir}/ocaml/site-lib/log | |
585 | %attr(755,root,root) %{_libdir}/ocaml/site-lib/log/dllsyslog_stubs.so | |
586 | %dir %{_libdir}/ocaml/site-lib/mmap | |
587 | %attr(755,root,root) %{_libdir}/ocaml/site-lib/mmap/dllmmap_stubs.so | |
588 | %dir %{_libdir}/ocaml/site-lib/xb | |
589 | %attr(755,root,root) %{_libdir}/ocaml/site-lib/xb/dllxb_stubs.so | |
590 | %dir %{_libdir}/ocaml/site-lib/xc | |
591 | %attr(755,root,root) %{_libdir}/ocaml/site-lib/xc/dllxc_stubs.so | |
592 | %dir %{_libdir}/ocaml/site-lib/xl | |
593 | %attr(755,root,root) %{_libdir}/ocaml/site-lib/xl/dllxl_stubs.so | |
594 | ||
595 | %files -n ocaml-xen-devel | |
596 | %defattr(644,root,root,755) | |
597 | %{_libdir}/ocaml/site-lib/eventchn/META | |
598 | %{_libdir}/ocaml/site-lib/eventchn/libeventchn_stubs.a | |
599 | %{_libdir}/ocaml/site-lib/eventchn/eventchn.a | |
600 | %{_libdir}/ocaml/site-lib/eventchn/eventchn.cm[aix]* | |
601 | %{_libdir}/ocaml/site-lib/log/META | |
602 | %{_libdir}/ocaml/site-lib/log/libsyslog_stubs.a | |
603 | %{_libdir}/ocaml/site-lib/log/log.a | |
604 | %{_libdir}/ocaml/site-lib/log/*.cm[aix]* | |
605 | %{_libdir}/ocaml/site-lib/mmap/META | |
606 | %{_libdir}/ocaml/site-lib/mmap/libmmap_stubs.a | |
607 | %{_libdir}/ocaml/site-lib/mmap/mmap.a | |
608 | %{_libdir}/ocaml/site-lib/mmap/mmap.cm[aix]* | |
609 | %dir %{_libdir}/ocaml/site-lib/uuid | |
610 | %{_libdir}/ocaml/site-lib/uuid/META | |
611 | %{_libdir}/ocaml/site-lib/uuid/uuid.a | |
612 | %{_libdir}/ocaml/site-lib/uuid/uuid.cm[aix]* | |
613 | %{_libdir}/ocaml/site-lib/xb/META | |
614 | %{_libdir}/ocaml/site-lib/xb/libxb_stubs.a | |
615 | %{_libdir}/ocaml/site-lib/xb/xb.a | |
616 | %{_libdir}/ocaml/site-lib/xb/*.cm[aix]* | |
617 | %{_libdir}/ocaml/site-lib/xc/META | |
618 | %{_libdir}/ocaml/site-lib/xc/libxc_stubs.a | |
619 | %{_libdir}/ocaml/site-lib/xc/xc.a | |
620 | %{_libdir}/ocaml/site-lib/xc/xc.cm[aix]* | |
621 | %{_libdir}/ocaml/site-lib/xl/META | |
622 | %{_libdir}/ocaml/site-lib/xl/libxl_stubs.a | |
623 | %{_libdir}/ocaml/site-lib/xl/xl.a | |
624 | %{_libdir}/ocaml/site-lib/xl/xl.cm[aix]* | |
625 | %dir %{_libdir}/ocaml/site-lib/xs | |
626 | %{_libdir}/ocaml/site-lib/xs/META | |
627 | %{_libdir}/ocaml/site-lib/xs/xs.a | |
628 | %{_libdir}/ocaml/site-lib/xs/*.cm[aix]* | |
629 | %{_libdir}/ocaml/site-lib/xs/xs*.mli | |
630 | %endif | |
631 | ||
8e6e2740 ER |
632 | %files -n python-xen |
633 | %defattr(644,root,root,755) | |
5dd334af | 634 | %attr(755,root,root) %{py_sitedir}/fsimage.so |
8e6e2740 ER |
635 | %{py_sitedir}/grub |
636 | %dir %{py_sitedir}/xen | |
637 | %dir %{py_sitedir}/xen/lowlevel | |
638 | %{py_sitedir}/xen/lowlevel/*.py* | |
639 | %attr(755,root,root) %{py_sitedir}/xen/lowlevel/*.so | |
e9753e37 | 640 | %{py_sitedir}/xen/remus |
8e6e2740 ER |
641 | %{py_sitedir}/xen/sv |
642 | %{py_sitedir}/xen/util | |
643 | %{py_sitedir}/xen/web | |
644 | %{py_sitedir}/xen/xend | |
645 | %{py_sitedir}/xen/xm | |
646 | %{py_sitedir}/xen/xsview | |
647 | %{py_sitedir}/xen/*.py* | |
648 | %if "%{py_ver}" > "2.4" | |
94b34ae4 JB |
649 | %{py_sitedir}/pygrub-0.3-py*.egg-info |
650 | %{py_sitedir}/xen-3.0-py*.egg-info | |
8e6e2740 | 651 | %endif |
e9753e37 MM |
652 | |
653 | %files -n bash-completion-%{name} | |
654 | %defattr(644,root,root,755) | |
94b34ae4 | 655 | /etc/bash_completion.d/xl.sh |