3 %bcond_without sdl # SDL UI and audio support
4 %bcond_without glx # OpenGL/GLX support
5 %bcond_without ceph # Ceph/RBD support
6 %bcond_without glusterfs # GlusterFS backend
7 %bcond_without rdma # RDMA-based migration support
8 %bcond_with gtk2 # GTK+ 2.x instead of 3.x
9 %bcond_without spice # SPICE support
10 %bcond_with esd # EsounD audio support
11 %bcond_without oss # OSS audio support
12 %bcond_without pulseaudio # PulseAudio audio support
13 %bcond_without xen # Xen backend driver support
15 Summary: QEMU CPU Emulator
16 Summary(pl.UTF-8): QEMU - emulator procesora
21 Group: Applications/Emulators
22 Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.bz2
23 # Source0-md5: 9541063d999cf9659ed7fdce71314f31
24 Source2: %{name}.binfmt
25 # Loads kvm kernel modules at boot
26 Source3: kvm-modules-load.conf
31 Source6: ksm.sysconfig
33 Source8: ksmtuned.service
35 Source10: ksmtuned.conf
36 Source11: %{name}-guest-agent.service
37 Source12: 99-%{name}-guest-agent.rules
38 Patch0: %{name}-cflags.patch
39 Patch1: vgabios-widescreens.patch
40 Patch2: %{name}-whitelist.patch
41 Patch3: %{name}-system-libcacard.patch
43 Patch5: %{name}-xattr.patch
44 Patch6: libjpeg-boolean.patch
45 # Proof of concept, for reference, do not remove
46 Patch400: %{name}-kde_virtual_workspaces_hack.patch
47 URL: http://www.qemu-project.org/
48 %{?with_opengl:BuildRequires: OpenGL-GLX-devel}
49 %{?with_sdl:BuildRequires: SDL-devel >= 1.2.1}
50 BuildRequires: alsa-lib-devel
52 BuildRequires: bluez-libs-devel
53 BuildRequires: brlapi-devel
54 %{?with_ceph:BuildRequires: ceph-devel}
55 BuildRequires: curl-devel
56 BuildRequires: cyrus-sasl-devel >= 2
57 %{?with_esd:BuildRequires: esound-devel}
58 BuildRequires: glib2-devel >= 1:2.12
59 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
60 BuildRequires: gnutls-devel
61 BuildRequires: libaio-devel
62 BuildRequires: libcacard-devel
63 BuildRequires: libcap-devel
64 BuildRequires: libcap-ng-devel
65 BuildRequires: libfdt-devel
66 %{?with_rdma:BuildRequires: libibverbs-devel}
67 BuildRequires: libiscsi-devel
68 BuildRequires: libjpeg-devel
69 BuildRequires: libpng-devel
70 %{?with_rdma:BuildRequires: librdmacm-devel}
71 BuildRequires: libseccomp-devel
72 BuildRequires: libssh2-devel >= 1.2.8
73 # for usb passthrough, when available
74 #BuildRequires: libusb-devel >= 1.0.13
75 BuildRequires: libuuid-devel
76 BuildRequires: ncurses-devel
77 BuildRequires: nss-devel >= 3.12.8
78 BuildRequires: perl-Encode
79 BuildRequires: perl-tools-pod
80 BuildRequires: pkgconfig
81 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
82 BuildRequires: rpmbuild(macros) >= 1.644
83 BuildRequires: sed >= 4.0
85 BuildRequires: spice-protocol >= 0.12.0
86 BuildRequires: spice-server-devel >= 0.12.0
88 BuildRequires: texi2html
89 BuildRequires: texinfo
90 BuildRequires: usbredir-devel >= 0.6
91 BuildRequires: vde2-devel
93 %{?with_xen:BuildRequires: xen-devel >= 3.4}
94 BuildRequires: xfsprogs-devel
95 BuildRequires: xorg-lib-libX11-devel
96 BuildRequires: zlib-devel
98 BuildRequires: gtk+2-devel >= 2:2.18.0
99 BuildRequires: vte0-devel >= 0.24.0
101 BuildRequires: gtk+3-devel >= 3.0.0
102 BuildRequires: vte-devel >= 0.32.0
104 Requires: %{name}-img = %{version}-%{release}
105 Requires: %{name}-system-alpha = %{version}-%{release}
106 Requires: %{name}-system-arm = %{version}-%{release}
107 Requires: %{name}-system-cris = %{version}-%{release}
108 Requires: %{name}-system-lm32 = %{version}-%{release}
109 Requires: %{name}-system-m68k = %{version}-%{release}
110 Requires: %{name}-system-microblaze = %{version}-%{release}
111 Requires: %{name}-system-mips = %{version}-%{release}
112 Requires: %{name}-system-moxie = %{version}-%{release}
113 Requires: %{name}-system-or32 = %{version}-%{release}
114 Requires: %{name}-system-ppc = %{version}-%{release}
115 Requires: %{name}-system-s390x = %{version}-%{release}
116 Requires: %{name}-system-sh4 = %{version}-%{release}
117 Requires: %{name}-system-sparc = %{version}-%{release}
118 Requires: %{name}-system-unicore32 = %{version}-%{release}
119 Requires: %{name}-system-x86 = %{version}-%{release}
120 Requires: %{name}-system-xtensa = %{version}-%{release}
121 Requires: %{name}-user = %{version}-%{release}
123 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
125 %define systempkg_req \
126 Requires: SDL >= 1.2.1 \
127 Requires: usbredir >= 0.6 \
129 Requires: gtk+2 >= 2:2.18.0 \
130 Requires: vte0 >= 0.24.0 \
132 Requires: gtk+3 >= 3.0.0 \
133 Requires: vte >= 0.32.0 \
136 # some PPC/SPARC boot image in ELF format
137 %define _noautostrip .*%{_datadir}/qemu/.*-.*
140 QEMU is a FAST! processor emulator. By using dynamic translation it
141 achieves a reasonnable speed while being easy to port on new host
142 CPUs. QEMU has two operating modes:
144 - User mode emulation. In this mode, QEMU can launch Linux processes
145 compiled for one CPU on another CPU. Linux system calls are converted
146 because of endianness and 32/64 bit mismatches. Wine (Windows
147 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
149 - Full system emulation. In this mode, QEMU emulates a full system,
150 including a processor and various peripherials. It can also be used to
151 provide virtual hosting of several virtual PC on a single server.
153 %description -l pl.UTF-8
154 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
155 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
156 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
158 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
159 procesy linuksowe skompilowane dla jednego procesora na innym
160 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
161 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
162 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
165 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
166 włączając w to procesor i różne urządzenia peryferyjne. Może być także
167 używane do wirtualnego hostowania kilku wirtualnych pecetów na
168 pojedynczym serwerze.
171 Summary: QEMU common files needed by all QEMU targets
172 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
173 Group: Development/Tools
174 Requires(post,preun,postun): systemd-units >= 38
175 Requires(postun): /usr/sbin/groupdel
176 Requires(postun): /usr/sbin/userdel
177 Requires(pre): /bin/id
178 Requires(pre): /usr/bin/getgid
179 Requires(pre): /usr/sbin/groupadd
180 Requires(pre): /usr/sbin/useradd
181 Requires: glib2 >= 1:2.12
182 Requires: libssh2 >= 1.2.8
183 Requires: systemd-units >= 38
184 Provides: group(qemu)
186 Obsoletes: qemu-kvm-common
187 Conflicts: qemu < 1.0-2
190 QEMU is a generic and open source processor emulator which achieves a
191 good emulation speed by using dynamic translation.
193 This package provides the common files needed by all QEMU targets.
195 %description common -l pl.UTF-8
196 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
197 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
199 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
203 Summary: QEMU command line tool for manipulating disk images
204 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
205 Group: Development/Tools
206 Obsoletes: qemu-kvm-img
207 Conflicts: qemu < 1.0-2
210 This package provides a command line tool for manipulating disk
213 %description img -l pl.UTF-8
214 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
218 Summary: QEMU user mode emulation of qemu targets
219 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
220 Group: Development/Tools
221 Requires: %{name}-common = %{version}-%{release}
222 Requires(post,postun): systemd-units >= 38
223 Requires: systemd-units >= 38
224 Obsoletes: qemu-kvm-user
227 QEMU is a generic and open source processor emulator which achieves a
228 good emulation speed by using dynamic translation.
230 This package provides the user mode emulation of QEMU targets.
232 %description user -l pl.UTF-8
233 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
234 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
236 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
238 %package system-alpha
239 Summary: QEMU system emulator for Alpha
240 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
241 Group: Development/Tools
242 Requires: %{name}-common = %{version}-%{release}
244 Obsoletes: qemu-kvm-system-alpha
246 %description system-alpha
247 QEMU is a generic and open source processor emulator which achieves a
248 good emulation speed by using dynamic translation.
250 This package provides the system emulator with Alpha CPU.
252 %description system-alpha -l pl.UTF-8
253 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
254 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
256 Ten pakiet zawiera emulator systemu z procesorem Alpha.
259 Summary: QEMU system emulator for ARM
260 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
261 Group: Development/Tools
262 Requires: %{name}-common = %{version}-%{release}
264 Obsoletes: qemu-kvm-system-arm
266 %description system-arm
267 QEMU is a generic and open source processor emulator which achieves a
268 good emulation speed by using dynamic translation.
270 This package provides the system emulator for ARM.
272 %description system-arm -l pl.UTF-8
273 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
274 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
276 Ten pakiet zawiera emulator systemu z procesorem ARM.
279 Summary: QEMU system emulator for CRIS
280 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
281 Group: Development/Tools
282 Requires: %{name}-common = %{version}-%{release}
284 Obsoletes: qemu-kvm-system-cris
286 %description system-cris
287 QEMU is a generic and open source processor emulator which achieves a
288 good emulation speed by using dynamic translation.
290 This package provides the system emulator with CRIS CPU.
292 %description system-cris -l pl.UTF-8
293 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
294 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
296 Ten pakiet zawiera emulator systemu z procesorem CRIS.
299 Summary: QEMU system emulator for LM32
300 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
301 Group: Development/Tools
302 Requires: %{name}-common = %{version}-%{release}
304 Obsoletes: qemu-kvm-system-lm32
306 %description system-lm32
307 QEMU is a generic and open source processor emulator which achieves a
308 good emulation speed by using dynamic translation.
310 This package provides the system emulator with LM32 CPU.
312 %description system-lm32 -l pl.UTF-8
313 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
314 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
316 Ten pakiet zawiera emulator systemu z procesorem LM32.
319 Summary: QEMU system emulator for m68k
320 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
321 Group: Development/Tools
322 Requires: %{name}-common = %{version}-%{release}
324 Obsoletes: qemu-kvm-system-m68k
326 %description system-m68k
327 QEMU is a generic and open source processor emulator which achieves a
328 good emulation speed by using dynamic translation.
330 This package provides the system emulator with m68k CPU.
332 %description system-m68k -l pl.UTF-8
333 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
334 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
336 Ten pakiet zawiera emulator systemu z procesorem m68k.
338 %package system-microblaze
339 Summary: QEMU system emulator for MicroBlaze
340 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
341 Group: Development/Tools
342 Requires: %{name}-common = %{version}-%{release}
344 Obsoletes: qemu-kvm-system-microblaze
346 %description system-microblaze
347 QEMU is a generic and open source processor emulator which achieves a
348 good emulation speed by using dynamic translation.
350 This package provides the system emulator with MicroBlaze CPU.
352 %description system-microblaze -l pl.UTF-8
353 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
354 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
356 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
359 Summary: QEMU system emulator for MIPS
360 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
361 Group: Development/Tools
362 Requires: %{name}-common = %{version}-%{release}
364 Obsoletes: qemu-kvm-system-mips
366 %description system-mips
367 QEMU is a generic and open source processor emulator which achieves a
368 good emulation speed by using dynamic translation.
370 This package provides the system emulator with MIPS CPU.
372 %description system-mips -l pl.UTF-8
373 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
374 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
376 Ten pakiet zawiera emulator systemu z procesorem MIPS.
378 %package system-moxie
379 Summary: QEMU system emulator for Moxie
380 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
381 Group: Development/Tools
382 Requires: %{name}-common = %{version}-%{release}
385 %description system-moxie
386 QEMU is a generic and open source processor emulator which achieves a
387 good emulation speed by using dynamic translation.
389 This package provides the system emulator with Moxie CPU.
391 %description system-moxie -l pl.UTF-8
392 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
393 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
395 Ten pakiet zawiera emulator systemu z procesorem Moxie.
398 Summary: QEMU system emulator for OpenRISC
399 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
400 Group: Development/Tools
401 Requires: %{name}-common = %{version}-%{release}
403 Obsoletes: qemu-kvm-system-or32
405 %description system-or32
406 QEMU is a generic and open source processor emulator which achieves a
407 good emulation speed by using dynamic translation.
409 This package provides the system emulator with OpenRISC CPU.
411 %description system-or32 -l pl.UTF-8
412 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
413 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
415 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
418 Summary: QEMU system emulator for PowerPC
419 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
420 Group: Development/Tools
421 Requires: %{name}-common = %{version}-%{release}
423 Obsoletes: qemu-kvm-system-ppc
425 %description system-ppc
426 QEMU is a generic and open source processor emulator which achieves a
427 good emulation speed by using dynamic translation.
429 This package provides the system emulator with PowerPC CPU.
431 %description system-ppc -l pl.UTF-8
432 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
433 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
435 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
437 %package system-s390x
438 Summary: QEMU system emulator for S390
439 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
440 Group: Development/Tools
441 Requires: %{name}-common = %{version}-%{release}
443 Obsoletes: qemu-kvm-system-s390x
445 %description system-s390x
446 QEMU is a generic and open source processor emulator which achieves a
447 good emulation speed by using dynamic translation.
449 This package provides the system emulator with S390 CPU.
451 %description system-s390x -l pl.UTF-8
452 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
453 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
455 Ten pakiet zawiera emulator systemu z procesorem S390.
458 Summary: QEMU system emulator for SH4
459 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
460 Group: Development/Tools
461 Requires: %{name}-common = %{version}-%{release}
463 Obsoletes: qemu-kvm-system-sh4
465 %description system-sh4
466 QEMU is a generic and open source processor emulator which achieves a
467 good emulation speed by using dynamic translation.
469 This package provides the system emulator with SH4 CPU.
471 %description system-sh4 -l pl.UTF-8
472 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
473 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
475 Ten pakiet zawiera emulator systemu z procesorem SH4.
477 %package system-sparc
478 Summary: QEMU system emulator for SPARC
479 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
480 Group: Development/Tools
481 Requires: %{name}-common = %{version}-%{release}
483 Obsoletes: qemu-kvm-system-sparc
485 %description system-sparc
486 QEMU is a generic and open source processor emulator which achieves a
487 good emulation speed by using dynamic translation.
489 This package provides the system emulator with SPARC/SPARC64 CPU.
491 %description system-sparc -l pl.UTF-8
492 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
493 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
495 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
497 %package system-unicore32
498 Summary: QEMU system emulator for UniCore32
499 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
500 Group: Development/Tools
501 Requires: %{name}-common = %{version}-%{release}
503 Obsoletes: qemu-kvm-system-unicore32
505 %description system-unicore32
506 QEMU is a generic and open source processor emulator which achieves a
507 good emulation speed by using dynamic translation.
509 This package provides the system emulator with UniCore32 CPU.
511 %description system-unicore32 -l pl.UTF-8
512 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
513 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
515 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
518 Summary: QEMU system emulator for x86
519 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
520 Group: Development/Tools
521 Requires: %{name}-common = %{version}-%{release}
524 Obsoletes: qemu-kvm-system-x86
526 %description system-x86
527 QEMU is a generic and open source processor emulator which achieves a
528 good emulation speed by using dynamic translation.
530 %description system-x86 -l pl.UTF-8
531 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
532 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
534 %package system-xtensa
535 Summary: QEMU system emulator for Xtensa
536 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
537 Group: Development/Tools
538 Requires: %{name}-common = %{version}-%{release}
540 Obsoletes: qemu-kvm-system-xtensa
542 %description system-xtensa
543 QEMU is a generic and open source processor emulator which achieves a
544 good emulation speed by using dynamic translation.
546 This package provides the system emulator with Xtensa CPU.
548 %description system-xtensa -l pl.UTF-8
549 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
550 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
552 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
555 Summary: QEMU guest agent
556 Summary(pl.UTF-8): Agent gościa QEMU
558 Requires(post,preun,postun): systemd-units >= 38
559 Requires: glib2 >= 1:2.12
560 Requires: systemd-units >= 38
561 Obsoletes: qemu-kvm-guest-agent
563 %description guest-agent
564 QEMU is a generic and open source processor emulator which achieves a
565 good emulation speed by using dynamic translation.
567 This package provides an agent to run inside guests, which
568 communicates with the host over a virtio-serial channel named
569 "org.qemu.guest_agent.0".
571 This package does not need to be installed on the host OS.
573 %description guest-agent -l pl.UTF-8
574 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
575 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
577 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
578 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
579 "org.qemu.guest_agent.0".
581 Ten pakiet nie musi być zainstalowany w systemie hosta.
593 %{__mv} libcacard libcacard-use-system-lib
595 # workaround for conflict with alsa/error.h
596 ln -s ../error.h qapi/error.h
600 --extra-cflags="%{rpmcflags} -I/usr/include/ncurses" \
601 --extra-ldflags="%{rpmldflags}" \
602 --prefix=%{_prefix} \
603 --sysconfdir=%{_sysconfdir} \
605 --host-cc="%{__cc}" \
615 %{__enable_disable glusterfs} \
617 %{__enable_disable glx} \
618 %{__enable_disable ceph rbd} \
619 %{__enable_disable rdma} \
620 %{__enable_disable sdl} \
622 %{__enable_disable spice} \
623 --enable-smartcard-nss \
634 %{__enable_disable xen} \
635 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
636 --interp-prefix=%{_libdir}/qemu/lib-%%M \
637 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
639 # note: CONFIG_QEMU_HELPERDIR is used when compiling, libexecdir when installing;
640 # --libexecdir in configure is nop
643 CONFIG_QEMU_HELPERDIR="%{_libdir}"
645 # rebuild patched vesa tables with additional widescreen modes.
646 %{__make} -C roms/vgabios stdvga-bios
648 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
651 rm -rf $RPM_BUILD_ROOT
652 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
653 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
654 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
657 DESTDIR=$RPM_BUILD_ROOT \
658 libexecdir=%{_libdir}
660 install -d $RPM_BUILD_ROOT%{_sysconfdir}
661 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
666 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
668 %ifarch %{ix86} %{x8664}
669 install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
670 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
671 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
674 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
675 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
676 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
678 install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
679 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
680 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
682 # For the qemu-guest-agent subpackage install the systemd
683 # service and udev rules.
684 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
685 install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
688 %ifnarch %{ix86} %{x8664}
697 %ifnarch sparc sparc64
704 test $i = dummy && continue
705 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i.conf
709 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
710 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
712 # install patched vesa tables with additional widescreen modes.
713 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
715 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
716 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
720 rm -rf $RPM_BUILD_ROOT
724 %groupadd -g 276 qemu
725 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
728 %systemd_post ksm.service
729 %systemd_post ksmtuned.service
732 %systemd_preun ksm.service
733 %systemd_preun ksmtuned.service
736 if [ "$1" = "0" ]; then
743 %triggerpostun common -- qemu-common < 1.6.1-4
744 %systemd_trigger ksm.service
745 %systemd_trigger ksmtuned.service
748 %systemd_service_restart systemd-binfmt.service
751 %systemd_service_restart systemd-binfmt.service
757 %systemd_preun qemu-guest-agent.service
763 %defattr(644,root,root,755)
765 %files common -f %{name}.lang
766 %defattr(644,root,root,755)
767 %doc README qemu-doc.html qemu-tech.html qmp-commands.txt
768 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
769 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu/target-*.conf
770 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
771 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
772 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
773 %{systemdunitdir}/ksm.service
774 %{systemdunitdir}/ksmtuned.service
775 %dir %{_sysconfdir}/qemu
776 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
777 %attr(755,root,root) %{_bindir}/qemu-nbd
778 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
779 %attr(755,root,root) %{_sbindir}/ksmctl
780 %attr(755,root,root) %{_sbindir}/ksmtuned
781 %{_mandir}/man1/qemu.1*
782 %{_mandir}/man1/virtfs-proxy-helper.1*
783 %{_mandir}/man8/qemu-nbd.8*
785 %dir %{_datadir}/qemu
786 %{_datadir}/%{name}/keymaps
787 %{_datadir}/%{name}/qemu-icon.bmp
788 # various bios images
789 %{_datadir}/%{name}/*.aml
790 %{_datadir}/%{name}/*.bin
791 %{_datadir}/%{name}/*.rom
792 %{_datadir}/%{name}/*.dtb
793 %{_datadir}/%{name}/qemu_logo_no_text.svg
794 %{_datadir}/%{name}/openbios-ppc
795 %{_datadir}/%{name}/openbios-sparc*
796 %{_datadir}/%{name}/palcode-clipper
797 %{_datadir}/%{name}/s390-ccw.img
800 %defattr(644,root,root,755)
801 %attr(755,root,root) %{_bindir}/qemu-img
802 %{_mandir}/man1/qemu-img.1*
805 %defattr(644,root,root,755)
806 /usr/lib/binfmt.d/qemu-*.conf
807 %attr(755,root,root) %{_bindir}/qemu-alpha
808 %attr(755,root,root) %{_bindir}/qemu-arm
809 %attr(755,root,root) %{_bindir}/qemu-armeb
810 %attr(755,root,root) %{_bindir}/qemu-cris
811 %attr(755,root,root) %{_bindir}/qemu-i386
812 %attr(755,root,root) %{_bindir}/qemu-io
813 %attr(755,root,root) %{_bindir}/qemu-m68k
814 %attr(755,root,root) %{_bindir}/qemu-microblaze
815 %attr(755,root,root) %{_bindir}/qemu-microblazeel
816 %attr(755,root,root) %{_bindir}/qemu-mips
817 %attr(755,root,root) %{_bindir}/qemu-mipsel
818 %attr(755,root,root) %{_bindir}/qemu-mips64
819 %attr(755,root,root) %{_bindir}/qemu-mips64el
820 %attr(755,root,root) %{_bindir}/qemu-mipsn32
821 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
822 %attr(755,root,root) %{_bindir}/qemu-or32
823 %attr(755,root,root) %{_bindir}/qemu-ppc
824 %attr(755,root,root) %{_bindir}/qemu-ppc64
825 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
826 %attr(755,root,root) %{_bindir}/qemu-s390x
827 %attr(755,root,root) %{_bindir}/qemu-sh4
828 %attr(755,root,root) %{_bindir}/qemu-sh4eb
829 %attr(755,root,root) %{_bindir}/qemu-sparc
830 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
831 %attr(755,root,root) %{_bindir}/qemu-sparc64
832 %attr(755,root,root) %{_bindir}/qemu-unicore32
833 %attr(755,root,root) %{_bindir}/qemu-x86_64
836 %defattr(644,root,root,755)
837 %attr(755,root,root) %{_bindir}/qemu-system-alpha
840 %defattr(644,root,root,755)
841 %attr(755,root,root) %{_bindir}/qemu-system-arm
844 %defattr(644,root,root,755)
845 %attr(755,root,root) %{_bindir}/qemu-system-cris
848 %defattr(644,root,root,755)
849 %attr(755,root,root) %{_bindir}/qemu-system-lm32
852 %defattr(644,root,root,755)
853 %attr(755,root,root) %{_bindir}/qemu-system-m68k
855 %files system-microblaze
856 %defattr(644,root,root,755)
857 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
858 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
861 %defattr(644,root,root,755)
862 %attr(755,root,root) %{_bindir}/qemu-system-mips
863 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
864 %attr(755,root,root) %{_bindir}/qemu-system-mips64
865 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
868 %defattr(644,root,root,755)
869 %attr(755,root,root) %{_bindir}/qemu-system-moxie
872 %defattr(644,root,root,755)
873 %attr(755,root,root) %{_bindir}/qemu-system-or32
876 %defattr(644,root,root,755)
877 %attr(755,root,root) %{_bindir}/qemu-system-ppc
878 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
879 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
882 %defattr(644,root,root,755)
883 %attr(755,root,root) %{_bindir}/qemu-system-s390x
886 %defattr(644,root,root,755)
887 %attr(755,root,root) %{_bindir}/qemu-system-sh4
888 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
891 %defattr(644,root,root,755)
892 %attr(755,root,root) %{_bindir}/qemu-system-sparc
893 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
895 %files system-unicore32
896 %defattr(644,root,root,755)
897 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
900 %defattr(644,root,root,755)
901 %attr(755,root,root) %{_bindir}/qemu-system-i386
902 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
903 %ifarch %{ix86} %{x8664}
904 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
905 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
906 %attr(755,root,root) %{_bindir}/kvm_stat
910 %defattr(644,root,root,755)
911 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
912 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
915 %defattr(644,root,root,755)
916 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
917 %{systemdunitdir}/qemu-guest-agent.service
918 %attr(755,root,root) %{_bindir}/qemu-ga