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