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