]>
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 |
a86b887e | 15 | Release: 1 |
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 ER |
20 | # used by stubdoms |
21 | Source10: %{xen_extfiles_url}/lwip-1.3.0.tar.gz | |
22 | # Source10-md5: 36cc57650cffda9a0269493be2a169bb | |
23 | Source11: %{xen_extfiles_url}/newlib-1.16.0.tar.gz | |
24 | # Source11-md5: bf8f1f9e3ca83d732c00a79a6ef29bc4 | |
25 | Source12: %{xen_extfiles_url}/zlib-1.2.3.tar.gz | |
26 | # Source12-md5: debc62758716a169df9f62e6ab2bc634 | |
27 | Source13: %{xen_extfiles_url}/pciutils-2.2.9.tar.bz2 | |
28 | # Source13-md5: cec05e7785497c5e19da2f114b934ffd | |
29 | Source14: %{xen_extfiles_url}/grub-0.97.tar.gz | |
30 | # Source14-md5: cd3f3eb54446be6003156158d51f4884 | |
31 | Source15: %{xen_extfiles_url}/ipxe-git-v1.0.0.tar.gz | |
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 MM |
206 | %package -n bash-completion-%{name} |
207 | Summary: bash-completion for xen | |
208 | Group: Applications/Shells | |
209 | Requires: %{name} = %{version}-%{release} | |
210 | Requires: bash-completion | |
211 | ||
212 | %description -n bash-completion-%{name} | |
213 | This package provides bash-completion for xen. | |
214 | ||
fda6847b | 215 | %prep |
98fa2458 | 216 | %setup -q |
47d65e01 JK |
217 | %patch0 -p1 |
218 | %patch1 -p1 | |
42bff0c7 | 219 | %patch2 -p1 |
6ca9eddd | 220 | %patch3 -p1 |
53ff2d70 | 221 | %patch4 -p1 |
6ca9eddd JR |
222 | %patch5 -p1 |
223 | %patch6 -p1 | |
224 | %patch7 -p1 | |
225 | %patch8 -p1 | |
226 | %patch9 -p1 | |
227 | %patch10 -p1 | |
228 | %patch11 -p1 | |
94ddf9c9 | 229 | %patch12 -p1 |
78c13f9d | 230 | %patch13 -p1 |
7f560d13 | 231 | %patch14 -p1 |
4015585b | 232 | |
c1281a11 ER |
233 | %{__rm} -v tools/check/*.orig |
234 | ||
235 | # stubdom sources | |
236 | ln -s %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} stubdom | |
6ca9eddd | 237 | ln -s %{PATCH100} stubdom/grub.patches/99grub-ext4-support.patch |
c1281a11 | 238 | ln -s %{SOURCE15} tools/firmware/etherboot/ipxe.tar.gz |
fda6847b AM |
239 | |
240 | %build | |
2e8b91a6 JR |
241 | export CFLAGS="%{rpmcflags} -I/usr/include/ncurses" |
242 | export CXXFLAGS="%{rpmcflags} -I/usr/include/ncurses" | |
243 | ||
244 | %{__make} dist-xen dist-tools dist-docs \ | |
732e4a65 | 245 | %{!?with_ocaml:OCAML_TOOLS=n} \ |
2e8b91a6 JR |
246 | prefix=%{_prefix} \ |
247 | CC="%{__cc}" \ | |
248 | CXX="%{__cxx}" | |
249 | ||
250 | unset CFLAGS | |
251 | unset CXXFLAGS | |
252 | %{__make} -j1 dist-stubdom \ | |
732e4a65 | 253 | %{!?with_ocaml:OCAML_TOOLS=n} \ |
403a0e9f | 254 | CC="%{__cc}" \ |
da88b5cd | 255 | CXX="%{__cxx}" |
fda6847b AM |
256 | |
257 | %install | |
258 | rm -rf $RPM_BUILD_ROOT | |
245547b2 | 259 | install -d $RPM_BUILD_ROOT/etc/{xen/examples,modules-load.d,logrotate.d} \ |
2e8b91a6 | 260 | $RPM_BUILD_ROOT{/usr/lib/tmpfiles.d,%{systemdunitdir}} |
adbb6385 | 261 | |
2e8b91a6 | 262 | %{__make} -j1 install-xen install-tools install-stubdom install-docs \ |
732e4a65 | 263 | %{!?with_ocaml:OCAML_TOOLS=n} \ |
2e8b91a6 | 264 | prefix=%{_prefix} \ |
e9753e37 | 265 | DESTDIR=$RPM_BUILD_ROOT |
403a0e9f | 266 | |
a1283e56 JR |
267 | %if "%{_lib}" == "lib64" |
268 | ln -s %{_prefix}/lib/%{name}/bin/qemu-dm $RPM_BUILD_ROOT%{_libdir}/%{name}/bin/qemu-dm | |
269 | %endif | |
270 | ||
2e8b91a6 JR |
271 | install %{SOURCE30} $RPM_BUILD_ROOT%{systemdunitdir}/proc-xen.mount |
272 | install %{SOURCE31} $RPM_BUILD_ROOT%{systemdunitdir}/var-lib-xenstored.mount | |
5db31b25 JR |
273 | install %{SOURCE32} $RPM_BUILD_ROOT%{systemdunitdir}/blktapctrl.service |
274 | install %{SOURCE33} $RPM_BUILD_ROOT/etc/sysconfig/blktapctrl | |
2e8b91a6 | 275 | install %{SOURCE34} $RPM_BUILD_ROOT%{systemdunitdir}/xenconsoled.service |
4a5ac969 | 276 | install %{SOURCE35} $RPM_BUILD_ROOT/etc/sysconfig/xenconsoled |
2e8b91a6 | 277 | install %{SOURCE36} $RPM_BUILD_ROOT%{systemdunitdir}/xenstored.service |
4a5ac969 | 278 | install %{SOURCE37} $RPM_BUILD_ROOT/etc/sysconfig/xenstored |
2e8b91a6 JR |
279 | install %{SOURCE38} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/xenstored.conf |
280 | install %{SOURCE39} $RPM_BUILD_ROOT%{systemdunitdir}/xend.service | |
281 | install %{SOURCE40} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/xend.conf | |
282 | install %{SOURCE41} $RPM_BUILD_ROOT%{systemdunitdir}/xen-watchdog.service | |
36106ee8 | 283 | install %{SOURCE42} $RPM_BUILD_ROOT/etc/modules-load.d/xen-dom0.conf |
2e8b91a6 JR |
284 | # sysvinit scripts |
285 | %{__rm} $RPM_BUILD_ROOT/etc/rc.d/init.d/* | |
286 | install %{SOURCE50} $RPM_BUILD_ROOT/etc/rc.d/init.d/xend | |
287 | install %{SOURCE51} $RPM_BUILD_ROOT/etc/rc.d/init.d/xenconsoled | |
288 | install %{SOURCE52} $RPM_BUILD_ROOT/etc/rc.d/init.d/xenstored | |
289 | install %{SOURCE53} $RPM_BUILD_ROOT/etc/rc.d/init.d/xen-watchdog | |
290 | install %{SOURCE54} $RPM_BUILD_ROOT/etc/rc.d/init.d/xendomains | |
245547b2 | 291 | install %{SOURCE55} $RPM_BUILD_ROOT/etc/logrotate.d/xen |
2e8b91a6 | 292 | |
e9753e37 | 293 | mv $RPM_BUILD_ROOT/etc/xen/{xmexample*,examples} |
fda6847b | 294 | |
c1281a11 ER |
295 | cp -p tools/blktap/README{,.blktap} |
296 | cp -p tools/xenmon/README{,.xenmon} | |
67494ff6 | 297 | |
90eccaeb ER |
298 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} |
299 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
300 | ||
301 | %py_postclean | |
e9753e37 | 302 | |
86497794 | 303 | # remove unneeded files |
e9753e37 MM |
304 | %{__rm} $RPM_BUILD_ROOT/boot/xen-4.1.gz |
305 | %{__rm} $RPM_BUILD_ROOT/boot/xen-4.gz | |
8641374c | 306 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/xen |
e9753e37 | 307 | %{__rm} $RPM_BUILD_ROOT%{_includedir}/%{name}/COPYING |
d26491b9 | 308 | |
fda6847b AM |
309 | %clean |
310 | rm -rf $RPM_BUILD_ROOT | |
311 | ||
403a0e9f | 312 | %post |
90a21d83 | 313 | /sbin/chkconfig --add xen-watchdog |
2e8b91a6 JR |
314 | /sbin/chkconfig --add xenconsoled |
315 | /sbin/chkconfig --add xenstored | |
403a0e9f | 316 | /sbin/chkconfig --add xendomains |
5db31b25 | 317 | %systemd_post xen-watchdog.service xenconsoled.service xenstored.service |
403a0e9f | 318 | |
403a0e9f | 319 | %preun |
e9753e37 MM |
320 | if [ "$1" = "0" ]; then |
321 | %service xendomains stop | |
322 | /sbin/chkconfig --del xendomains | |
323 | ||
2e8b91a6 JR |
324 | %service xenconsoled stop |
325 | /sbin/chkconfig --del xenconsoled | |
326 | ||
327 | %service xenstored stop | |
328 | /sbin/chkconfig --del xenstored | |
90a21d83 MM |
329 | |
330 | %service xen-watchdog stop | |
331 | /sbin/chkconfig --del xen-watchdog | |
e9753e37 | 332 | fi |
5db31b25 | 333 | %systemd_preun xen-watchdog.service xenconsoled.service xenstored.service |
e9753e37 | 334 | |
5db31b25 JR |
335 | %postun |
336 | %systemd_reload | |
337 | ||
338 | %post xend | |
e9753e37 | 339 | /sbin/chkconfig --add xend |
5db31b25 | 340 | %systemd_post xend.service |
e9753e37 MM |
341 | |
342 | %preun xend | |
403a0e9f | 343 | if [ "$1" = "0" ]; then |
129858a4 | 344 | %service xend stop |
403a0e9f | 345 | /sbin/chkconfig --del xend |
e9753e37 | 346 | fi |
5db31b25 JR |
347 | %systemd_preun xend.service |
348 | ||
349 | %postun xend | |
350 | %systemd_reload | |
129858a4 | 351 | |
26412ee3 JB |
352 | %post libs -p /sbin/ldconfig |
353 | %postun libs -p /sbin/ldconfig | |
354 | ||
fda6847b AM |
355 | %files |
356 | %defattr(644,root,root,755) | |
e9753e37 | 357 | %doc COPYING README* docs/misc/* |
47d65e01 | 358 | %doc docs/html/* |
e9753e37 MM |
359 | %doc tools/blktap/README.blktap tools/xenmon/README.xenmon |
360 | %doc tools/ioemu-dir/*.html | |
98fa2458 AM |
361 | /boot/%{name}-syms-%{version} |
362 | /boot/%{name}-%{version}.gz | |
fda6847b | 363 | /boot/%{name}.gz |
6ca9eddd JR |
364 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xenconsoled |
365 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xenstored | |
366 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/xendomains | |
245547b2 | 367 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/xen |
90a21d83 | 368 | %attr(754,root,root) /etc/rc.d/init.d/xen-watchdog |
2e8b91a6 JR |
369 | %attr(754,root,root) /etc/rc.d/init.d/xenconsoled |
370 | %attr(754,root,root) /etc/rc.d/init.d/xenstored | |
e9753e37 | 371 | %attr(754,root,root) /etc/rc.d/init.d/xendomains |
36106ee8 | 372 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/xen-dom0.conf |
2e8b91a6 JR |
373 | %{systemdunitdir}/proc-xen.mount |
374 | %{systemdunitdir}/var-lib-xenstored.mount | |
2e8b91a6 JR |
375 | %{systemdunitdir}/xen-watchdog.service |
376 | %{systemdunitdir}/xenconsoled.service | |
377 | %{systemdunitdir}/xenstored.service | |
403a0e9f | 378 | %dir %{_sysconfdir}/xen |
403a0e9f | 379 | %dir %{_sysconfdir}/xen/auto |
e9753e37 | 380 | %dir %{_sysconfdir}/xen/examples |
403a0e9f AM |
381 | %dir %{_sysconfdir}/xen/scripts |
382 | %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/scripts/* | |
e9753e37 MM |
383 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/examples/* |
384 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/README* | |
385 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/cpupool | |
386 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/xl.conf | |
2e8b91a6 | 387 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/* |
403a0e9f | 388 | %attr(755,root,root) %{_bindir}/* |
e9753e37 MM |
389 | %attr(755,root,root) %{_sbindir}/[bfgikloqtv]* |
390 | %attr(755,root,root) %{_sbindir}/xen??* | |
391 | %attr(755,root,root) %{_sbindir}/xl | |
392 | %attr(755,root,root) %{_sbindir}/xsview | |
47d65e01 JK |
393 | %dir %{_libdir}/%{name} |
394 | %dir %{_libdir}/%{name}/bin | |
395 | %attr(744,root,root) %{_libdir}/%{name}/bin/* | |
38e9ca75 | 396 | %if "%{_lib}" != "lib" |
81c76053 | 397 | %dir %{_prefix}/lib/%{name} |
2e8b91a6 JR |
398 | %dir %{_prefix}/lib/%{name}/bin |
399 | %attr(755,root,root) %{_prefix}/lib/%{name}/bin/qemu-dm | |
400 | %attr(755,root,root) %{_prefix}/lib/%{name}/bin/stubdom-dm | |
401 | %attr(755,root,root) %{_prefix}/lib/%{name}/bin/stubdompath.sh | |
38e9ca75 | 402 | %endif |
81c76053 | 403 | %dir %{_prefix}/lib/%{name}/boot |
2e8b91a6 JR |
404 | %{_prefix}/lib/%{name}/boot/ioemu-stubdom.gz |
405 | %{_prefix}/lib/%{name}/boot/pv-grub-x86_32.gz | |
10a7e15f | 406 | %ifarch %{x8664} |
2e8b91a6 | 407 | %{_prefix}/lib/%{name}/boot/pv-grub-x86_64.gz |
10a7e15f | 408 | %endif |
2e8b91a6 | 409 | %attr(744,root,root) %{_prefix}/lib/%{name}/boot/hvmloader |
47d65e01 | 410 | %{_datadir}/xen |
403a0e9f | 411 | %{_mandir}/man?/* |
47d65e01 JK |
412 | %{_sharedstatedir}/xen |
413 | %{_sharedstatedir}/xenstored | |
47d65e01 | 414 | %dir /var/run/xenstored |
2e8b91a6 | 415 | %{systemdtmpfilesdir}/xenstored.conf |
403a0e9f | 416 | |
26412ee3 | 417 | %files libs |
403a0e9f | 418 | %defattr(644,root,root,755) |
26412ee3 | 419 | %attr(755,root,root) %{_libdir}/lib*.so.* |
4015585b | 420 | %dir %{_libdir}/fs |
d9ee3ddc | 421 | %dir %{_libdir}/fs/ext2fs-lib |
2f3b83cd AG |
422 | %dir %{_libdir}/fs/fat |
423 | %dir %{_libdir}/fs/iso9660 | |
4015585b | 424 | %dir %{_libdir}/fs/reiserfs |
425 | %dir %{_libdir}/fs/ufs | |
20aeda6e | 426 | %dir %{_libdir}/fs/zfs |
4015585b | 427 | %attr(755,root,root) %{_libdir}/fs/*/*.so |
26412ee3 | 428 | |
5dd334af JB |
429 | %files devel |
430 | %defattr(644,root,root,755) | |
431 | %attr(755,root,root) %{_libdir}/lib*.so | |
432 | %{_includedir}/* | |
433 | ||
434 | %files static | |
435 | %defattr(644,root,root,755) | |
436 | %{_libdir}/lib*.a | |
437 | ||
e9753e37 MM |
438 | %files xend |
439 | %defattr(644,root,root,755) | |
5db31b25 JR |
440 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/blktapctrl |
441 | %{systemdunitdir}/blktapctrl.service | |
2e8b91a6 | 442 | %{systemdunitdir}/xend.service |
6ca9eddd | 443 | %attr(754,root,root) %{_sysconfdir}/rc.d/init.d/xend |
e9753e37 MM |
444 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/xm* |
445 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xen/xend* | |
446 | %attr(755,root,root) %{_sbindir}/xend | |
447 | %attr(755,root,root) %{_sbindir}/xm | |
448 | %dir %attr(700,root,root) /var/run/xend | |
2e8b91a6 | 449 | %{systemdtmpfilesdir}/xend.conf |
e9753e37 | 450 | |
8e6e2740 ER |
451 | %files -n python-xen |
452 | %defattr(644,root,root,755) | |
5dd334af | 453 | %attr(755,root,root) %{py_sitedir}/fsimage.so |
8e6e2740 ER |
454 | %{py_sitedir}/grub |
455 | %dir %{py_sitedir}/xen | |
456 | %dir %{py_sitedir}/xen/lowlevel | |
457 | %{py_sitedir}/xen/lowlevel/*.py* | |
458 | %attr(755,root,root) %{py_sitedir}/xen/lowlevel/*.so | |
e9753e37 | 459 | %{py_sitedir}/xen/remus |
8e6e2740 ER |
460 | %{py_sitedir}/xen/sv |
461 | %{py_sitedir}/xen/util | |
462 | %{py_sitedir}/xen/web | |
463 | %{py_sitedir}/xen/xend | |
464 | %{py_sitedir}/xen/xm | |
465 | %{py_sitedir}/xen/xsview | |
466 | %{py_sitedir}/xen/*.py* | |
467 | %if "%{py_ver}" > "2.4" | |
468 | %{py_sitedir}/*.egg-info | |
469 | %endif | |
e9753e37 MM |
470 | |
471 | %files -n bash-completion-%{name} | |
472 | %defattr(644,root,root,755) | |
473 | /etc/bash_completion.d/* |