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