3 %bcond_without sdl # SDL UI and audio support
4 %bcond_without ceph # Ceph/RBD support
5 %bcond_without glusterfs # GlusterFS backend
6 %bcond_without rdma # RDMA-based migration support
7 %bcond_with gtk2 # GTK+ 2.x instead of 3.x
8 %bcond_without gtk3 # Do not build GTK+ UI
9 %bcond_without vte # VTE support in GTK+ UI
10 %bcond_without spice # SPICE support
11 %bcond_with esd # EsounD audio support
12 %bcond_without oss # OSS audio support
13 %bcond_without pulseaudio # PulseAudio audio support
14 %bcond_without xen # Xen backend driver support
15 %bcond_without bluetooth # bluetooth support
16 %bcond_without brlapi # brlapi support
17 %bcond_without smartcard # smartcard-nss support
18 %bcond_without iscsi # iscsi support
19 %bcond_without libnfs # NFS support
20 %bcond_without seccomp # seccomp support
21 %bcond_without usbredir # usb network redirection support
22 %bcond_without system_seabios # system seabios binary
23 %bcond_without snappy # snappy compression library
24 %bcond_with lttng # lttng-ust trace backend support
25 %bcond_with systemtap # SystemTap/dtrace trace backend support
35 Summary: QEMU CPU Emulator
36 Summary(pl.UTF-8): QEMU - emulator procesora
41 Group: Applications/Emulators
42 Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.bz2
43 # Source0-md5: 2fab3ea4460de9b57192e5b8b311f221
44 Source2: %{name}.binfmt
45 # Loads kvm kernel modules at boot
46 Source3: kvm-modules-load.conf
51 Source6: ksm.sysconfig
53 Source8: ksmtuned.service
55 Source10: ksmtuned.conf
56 Source11: %{name}-guest-agent.service
57 Source12: 99-%{name}-guest-agent.rules
58 Patch0: %{name}-cflags.patch
59 Patch1: vgabios-widescreens.patch
60 Patch2: %{name}-whitelist.patch
61 Patch3: %{name}-system-libcacard.patch
62 Patch4: %{name}-xattr.patch
63 Patch5: libjpeg-boolean.patch
65 # Proof of concept, for reference, do not remove
66 Patch400: %{name}-kde_virtual_workspaces_hack.patch
67 URL: http://www.qemu-project.org/
68 %{?with_opengl:BuildRequires: OpenGL-GLX-devel}
69 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
70 BuildRequires: alsa-lib-devel
71 BuildRequires: bcc >= 0.16.21-2
72 %{?with_bluetooth:BuildRequires: bluez-libs-devel}
73 %{?with_brlapi:BuildRequires: brlapi-devel}
74 %{?with_ceph:BuildRequires: ceph-devel}
75 BuildRequires: curl-devel
76 BuildRequires: cyrus-sasl-devel >= 2
77 %{?with_esd:BuildRequires: esound-devel}
78 BuildRequires: glib2-devel >= 1:2.12
79 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
80 BuildRequires: gnutls-devel > 2.10.0
81 BuildRequires: libaio-devel
82 %{?with_smartcard:BuildRequires: libcacard-devel}
83 BuildRequires: libcap-devel
84 BuildRequires: libcap-ng-devel
85 BuildRequires: libfdt-devel
86 %{?with_rdma:BuildRequires: libibverbs-devel}
87 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
88 BuildRequires: libjpeg-devel
89 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
90 BuildRequires: libpng-devel
91 %{?with_rdma:BuildRequires: librdmacm-devel}
92 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.1.1}
93 BuildRequires: libssh2-devel >= 1.2.8
94 BuildRequires: libusb-devel >= 1.0.13
95 BuildRequires: libuuid-devel
96 %{?with_lttng:BuildRequires: lttng-ust-devel}
97 BuildRequires: lzo-devel >= 2
98 BuildRequires: ncurses-devel
99 %{?with_smartcard:BuildRequires: nss-devel >= 3.12.8}
100 BuildRequires: perl-Encode
101 BuildRequires: perl-tools-pod
102 BuildRequires: pkgconfig
103 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
104 BuildRequires: rpmbuild(macros) >= 1.644
105 %{?with_system_seabios:BuildRequires: seabios}
106 BuildRequires: sed >= 4.0
107 %{?with_snappy:BuildRequires: snappy-devel}
109 BuildRequires: spice-protocol >= 0.12.3
110 BuildRequires: spice-server-devel >= 0.12.0
112 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
113 BuildRequires: texi2html
114 BuildRequires: texinfo
115 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
116 %{?with_lttng:BuildRequires: userspace-rcu-devel}
117 BuildRequires: vde2-devel
119 %{?with_xen:BuildRequires: xen-devel >= 3.4}
120 BuildRequires: xfsprogs-devel
121 BuildRequires: xorg-lib-libX11-devel
122 BuildRequires: zlib-devel
124 BuildRequires: gtk+2-devel >= 2:2.18.0
125 %{?with_vte:BuildRequires: vte0-devel >= 0.24.0}
128 BuildRequires: gtk+3-devel >= 3.0.0
129 %{?with_vte:BuildRequires: vte2.90-devel >= 0.32.0}
131 Requires: %{name}-img = %{version}-%{release}
132 Requires: %{name}-system-aarch64 = %{version}-%{release}
133 Requires: %{name}-system-alpha = %{version}-%{release}
134 Requires: %{name}-system-arm = %{version}-%{release}
135 Requires: %{name}-system-cris = %{version}-%{release}
136 Requires: %{name}-system-lm32 = %{version}-%{release}
137 Requires: %{name}-system-m68k = %{version}-%{release}
138 Requires: %{name}-system-microblaze = %{version}-%{release}
139 Requires: %{name}-system-mips = %{version}-%{release}
140 Requires: %{name}-system-moxie = %{version}-%{release}
141 Requires: %{name}-system-or32 = %{version}-%{release}
142 Requires: %{name}-system-ppc = %{version}-%{release}
143 Requires: %{name}-system-s390x = %{version}-%{release}
144 Requires: %{name}-system-sh4 = %{version}-%{release}
145 Requires: %{name}-system-sparc = %{version}-%{release}
146 Requires: %{name}-system-tricore = %{version}-%{release}
147 Requires: %{name}-system-unicore32 = %{version}-%{release}
148 Requires: %{name}-system-x86 = %{version}-%{release}
149 Requires: %{name}-system-xtensa = %{version}-%{release}
150 Requires: %{name}-user = %{version}-%{release}
152 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
154 %define systempkg_req \
158 %if %{with seccomp} \
159 Requires: libseccomp >= 2.1.0 \
161 Requires: libusb >= 1.0.13 \
162 %if %{with usbredir} \
163 Requires: usbredir >= 0.6 \
166 Requires: gtk+2 >= 2:2.18.0 \
167 %{?with_vte:Requires: vte0 >= 0.24.0} \
170 Requires: gtk+3 >= 3.0.0 \
171 %{?with_vte:Requires: vte2.90 >= 0.32.0} \
174 # don't strip/chrpath anything in there; these are boot images, roms etc
175 %define _noautostrip .*%{_datadir}/qemu/.*
176 %define _noautochrpath .*%{_datadir}/qemu/.*
179 QEMU is a FAST! processor emulator. By using dynamic translation it
180 achieves a reasonnable speed while being easy to port on new host
181 CPUs. QEMU has two operating modes:
183 - User mode emulation. In this mode, QEMU can launch Linux processes
184 compiled for one CPU on another CPU. Linux system calls are converted
185 because of endianness and 32/64 bit mismatches. Wine (Windows
186 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
188 - Full system emulation. In this mode, QEMU emulates a full system,
189 including a processor and various peripherials. It can also be used to
190 provide virtual hosting of several virtual PC on a single server.
192 %description -l pl.UTF-8
193 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
194 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
195 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
197 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
198 procesy linuksowe skompilowane dla jednego procesora na innym
199 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
200 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
201 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
204 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
205 włączając w to procesor i różne urządzenia peryferyjne. Może być także
206 używane do wirtualnego hostowania kilku wirtualnych pecetów na
207 pojedynczym serwerze.
210 Summary: QEMU common files needed by all QEMU targets
211 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
212 Group: Development/Tools
213 Requires(post,preun,postun): systemd-units >= 38
214 Requires(postun): /usr/sbin/groupdel
215 Requires(postun): /usr/sbin/userdel
216 Requires(pre): /bin/id
217 Requires(pre): /usr/bin/getgid
218 Requires(pre): /usr/sbin/groupadd
219 Requires(pre): /usr/sbin/useradd
220 Requires: glib2 >= 1:2.12
221 %{?with_libnfs:Requires: libnfs >= 1.9.3}
222 Requires: libssh2 >= 1.2.8
223 Requires: systemd-units >= 38
224 Provides: group(qemu)
226 Obsoletes: qemu-kvm-common
227 Conflicts: qemu < 1.0-2
230 QEMU is a generic and open source processor emulator which achieves a
231 good emulation speed by using dynamic translation.
233 This package provides the common files needed by all QEMU targets.
235 %description common -l pl.UTF-8
236 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
237 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
239 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
243 Summary: QEMU command line tool for manipulating disk images
244 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
245 Group: Development/Tools
246 Obsoletes: qemu-kvm-img
247 Conflicts: qemu < 1.0-2
250 This package provides a command line tool for manipulating disk
253 %description img -l pl.UTF-8
254 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
258 Summary: QEMU user mode emulation of qemu targets
259 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
260 Group: Development/Tools
261 Requires: %{name}-common = %{version}-%{release}
262 Requires(post,postun): systemd-units >= 38
263 Requires: systemd-units >= 38
264 Obsoletes: qemu-kvm-user
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 user mode emulation of QEMU targets.
272 %description user -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 udostępnia emulację trybu użytkownika środowisk QEMU.
278 %package system-aarch64
279 Summary: QEMU system emulator for AArch64
280 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
281 Group: Development/Tools
282 Requires: %{name}-common = %{version}-%{release}
284 Obsoletes: qemu-kvm-system-aarch64
286 %description system-aarch64
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 AArch64 CPU.
292 %description system-aarch64 -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 AArch64.
298 %package system-alpha
299 Summary: QEMU system emulator for Alpha
300 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
301 Group: Development/Tools
302 Requires: %{name}-common = %{version}-%{release}
304 Obsoletes: qemu-kvm-system-alpha
306 %description system-alpha
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 Alpha CPU.
312 %description system-alpha -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 Alpha.
319 Summary: QEMU system emulator for ARM
320 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
321 Group: Development/Tools
322 Requires: %{name}-common = %{version}-%{release}
324 Obsoletes: qemu-kvm-system-arm
326 %description system-arm
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 for ARM.
332 %description system-arm -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 ARM.
339 Summary: QEMU system emulator for CRIS
340 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
341 Group: Development/Tools
342 Requires: %{name}-common = %{version}-%{release}
344 Obsoletes: qemu-kvm-system-cris
346 %description system-cris
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 CRIS CPU.
352 %description system-cris -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 CRIS.
359 Summary: QEMU system emulator for LM32
360 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
361 Group: Development/Tools
362 Requires: %{name}-common = %{version}-%{release}
364 Obsoletes: qemu-kvm-system-lm32
366 %description system-lm32
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 LM32 CPU.
372 %description system-lm32 -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 LM32.
379 Summary: QEMU system emulator for m68k
380 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
381 Group: Development/Tools
382 Requires: %{name}-common = %{version}-%{release}
384 Obsoletes: qemu-kvm-system-m68k
386 %description system-m68k
387 QEMU is a generic and open source processor emulator which achieves a
388 good emulation speed by using dynamic translation.
390 This package provides the system emulator with m68k CPU.
392 %description system-m68k -l pl.UTF-8
393 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
394 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
396 Ten pakiet zawiera emulator systemu z procesorem m68k.
398 %package system-microblaze
399 Summary: QEMU system emulator for MicroBlaze
400 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
401 Group: Development/Tools
402 Requires: %{name}-common = %{version}-%{release}
404 Obsoletes: qemu-kvm-system-microblaze
406 %description system-microblaze
407 QEMU is a generic and open source processor emulator which achieves a
408 good emulation speed by using dynamic translation.
410 This package provides the system emulator with MicroBlaze CPU.
412 %description system-microblaze -l pl.UTF-8
413 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
414 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
416 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
419 Summary: QEMU system emulator for MIPS
420 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
421 Group: Development/Tools
422 Requires: %{name}-common = %{version}-%{release}
424 Obsoletes: qemu-kvm-system-mips
426 %description system-mips
427 QEMU is a generic and open source processor emulator which achieves a
428 good emulation speed by using dynamic translation.
430 This package provides the system emulator with MIPS CPU.
432 %description system-mips -l pl.UTF-8
433 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
434 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
436 Ten pakiet zawiera emulator systemu z procesorem MIPS.
438 %package system-moxie
439 Summary: QEMU system emulator for Moxie
440 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
441 Group: Development/Tools
442 Requires: %{name}-common = %{version}-%{release}
445 %description system-moxie
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 Moxie CPU.
451 %description system-moxie -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 Moxie.
458 Summary: QEMU system emulator for OpenRISC
459 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
460 Group: Development/Tools
461 Requires: %{name}-common = %{version}-%{release}
463 Obsoletes: qemu-kvm-system-or32
465 %description system-or32
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 OpenRISC CPU.
471 %description system-or32 -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 OpenRISC.
478 Summary: QEMU system emulator for PowerPC
479 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
480 Group: Development/Tools
481 Requires: %{name}-common = %{version}-%{release}
483 Obsoletes: qemu-kvm-system-ppc
485 %description system-ppc
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 PowerPC CPU.
491 %description system-ppc -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 PowerPC.
497 %package system-s390x
498 Summary: QEMU system emulator for S390
499 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
500 Group: Development/Tools
501 Requires: %{name}-common = %{version}-%{release}
503 Obsoletes: qemu-kvm-system-s390x
505 %description system-s390x
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 S390 CPU.
511 %description system-s390x -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 S390.
518 Summary: QEMU system emulator for SH4
519 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
520 Group: Development/Tools
521 Requires: %{name}-common = %{version}-%{release}
523 Obsoletes: qemu-kvm-system-sh4
525 %description system-sh4
526 QEMU is a generic and open source processor emulator which achieves a
527 good emulation speed by using dynamic translation.
529 This package provides the system emulator with SH4 CPU.
531 %description system-sh4 -l pl.UTF-8
532 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
533 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
535 Ten pakiet zawiera emulator systemu z procesorem SH4.
537 %package system-sparc
538 Summary: QEMU system emulator for SPARC
539 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
540 Group: Development/Tools
541 Requires: %{name}-common = %{version}-%{release}
543 Obsoletes: qemu-kvm-system-sparc
545 %description system-sparc
546 QEMU is a generic and open source processor emulator which achieves a
547 good emulation speed by using dynamic translation.
549 This package provides the system emulator with SPARC/SPARC64 CPU.
551 %description system-sparc -l pl.UTF-8
552 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
553 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
555 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
557 %package system-tricore
558 Summary: QEMU system emulator for TriCore
559 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
560 Group: Development/Tools
561 Requires: %{name}-common = %{version}-%{release}
564 %description system-tricore
565 QEMU is a generic and open source processor emulator which achieves a
566 good emulation speed by using dynamic translation.
568 This package provides the system emulator with TriCore CPU.
570 %description system-sparc -l pl.UTF-8
571 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
572 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
574 Ten pakiet zawiera emulator systemu z procesorem TriCore.
576 %package system-unicore32
577 Summary: QEMU system emulator for UniCore32
578 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
579 Group: Development/Tools
580 Requires: %{name}-common = %{version}-%{release}
582 Obsoletes: qemu-kvm-system-unicore32
584 %description system-unicore32
585 QEMU is a generic and open source processor emulator which achieves a
586 good emulation speed by using dynamic translation.
588 This package provides the system emulator with UniCore32 CPU.
590 %description system-unicore32 -l pl.UTF-8
591 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
592 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
594 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
597 Summary: QEMU system emulator for x86
598 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
599 Group: Development/Tools
600 Requires: %{name}-common = %{version}-%{release}
601 %{?with_system_seabios:Requires: seabios}
604 Obsoletes: qemu-kvm-system-x86
606 %description system-x86
607 QEMU is a generic and open source processor emulator which achieves a
608 good emulation speed by using dynamic translation.
610 %description system-x86 -l pl.UTF-8
611 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
612 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
614 %package system-xtensa
615 Summary: QEMU system emulator for Xtensa
616 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
617 Group: Development/Tools
618 Requires: %{name}-common = %{version}-%{release}
620 Obsoletes: qemu-kvm-system-xtensa
622 %description system-xtensa
623 QEMU is a generic and open source processor emulator which achieves a
624 good emulation speed by using dynamic translation.
626 This package provides the system emulator with Xtensa CPU.
628 %description system-xtensa -l pl.UTF-8
629 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
630 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
632 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
635 Summary: QEMU guest agent
636 Summary(pl.UTF-8): Agent gościa QEMU
638 Requires(post,preun,postun): systemd-units >= 38
639 Requires: glib2 >= 1:2.12
640 Requires: systemd-units >= 38
641 Obsoletes: qemu-kvm-guest-agent
643 %description guest-agent
644 QEMU is a generic and open source processor emulator which achieves a
645 good emulation speed by using dynamic translation.
647 This package provides an agent to run inside guests, which
648 communicates with the host over a virtio-serial channel named
649 "org.qemu.guest_agent.0".
651 This package does not need to be installed on the host OS.
653 %description guest-agent -l pl.UTF-8
654 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
655 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
657 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
658 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
659 "org.qemu.guest_agent.0".
661 Ten pakiet nie musi być zainstalowany w systemie hosta.
663 %package module-block-curl
664 Summary: QEMU module for 'curl' block devices
665 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
666 Group: Development/Tools
667 Requires: %{name}-common = %{version}-%{release}
669 %description module-block-curl
670 'curl' block device support for QEMU.
672 %description module-block-curl -l pl.UTF-8
673 Moduł QEMU dla urządeń blokowych typu 'curl'.
675 %package module-block-gluster
676 Summary: QEMU module for 'gluster' block devices
677 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
678 Group: Development/Tools
679 Requires: %{name}-common = %{version}-%{release}
680 Requires: glusterfs-libs >= 3.4
682 %description module-block-gluster
683 'gluster' block device support for QEMU.
685 %description module-block-gluster -l pl.UTF-8
686 Moduł QEMU dla urządeń blokowych typu 'gluster'.
688 %package module-block-iscsi
689 Summary: QEMU module for 'iscsi' block devices
690 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
691 Group: Development/Tools
692 Requires: %{name}-common = %{version}-%{release}
693 Requires: libiscsi >= 1.9.0
695 %description module-block-iscsi
696 'iscsi' block device support for QEMU.
698 %description module-block-iscsi -l pl.UTF-8
699 Moduł QEMU dla urządeń blokowych typu 'iscsi'.
701 %package module-block-rbd
702 Summary: QEMU module for 'rbd' block devices
703 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
704 Group: Development/Tools
705 Requires: %{name}-common = %{version}-%{release}
707 %description module-block-rbd
708 'rbd' block device support for QEMU.
710 %description module-block-rbd -l pl.UTF-8
711 Moduł QEMU dla urządeń blokowych typu 'rbd'.
713 %package module-block-ssh
714 Summary: QEMU module for 'ssh' block devices
715 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
716 Group: Development/Tools
717 Requires: %{name}-common = %{version}-%{release}
719 %description module-block-ssh
720 'ssh' block device support for QEMU.
722 %description module-block-ssh -l pl.UTF-8
723 Moduł QEMU dla urządeń blokowych typu 'ssh'.
735 %{__mv} libcacard libcacard-use-system-lib
737 # workaround for conflict with alsa/error.h
738 ln -s ../error.h qapi/error.h
742 --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
743 --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
744 --prefix=%{_prefix} \
745 --libdir=%{_libdir} \
746 --libexecdir=%{_libexecdir} \
747 --sysconfdir=%{_sysconfdir} \
749 --host-cc="%{__cc}" \
752 %{__enable_disable bluetooth bluez} \
753 %{__enable_disable brlapi} \
759 %{__enable_disable glusterfs} \
760 %{__enable_disable iscsi libiscsi} \
761 %{__enable_disable ceph rbd} \
762 %{__enable_disable rdma} \
763 %{__enable_disable sdl} \
765 %{__enable_disable seccomp} \
766 %{__enable_disable spice} \
767 %{__enable_disable smartcard smartcard-nss} \
769 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
770 %{__enable_disable usbredir usb-redir} \
778 %{!?with_vte:--disable-vte} \
780 %{__enable_disable xen} \
783 %{__enable_disable libnfs} \
785 %{__enable_disable snappy} \
787 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
788 --interp-prefix=%{_libdir}/qemu/lib-%%M \
789 %if %{without gtk2} && %{without gtk3}
792 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
797 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
799 # rebuild patched vesa tables with additional widescreen modes.
800 %{__make} -C roms/vgabios stdvga-bios
802 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
805 rm -rf $RPM_BUILD_ROOT
806 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
807 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
808 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
811 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
812 DESTDIR=$RPM_BUILD_ROOT
814 install -d $RPM_BUILD_ROOT%{_sysconfdir}
815 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
820 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
822 %ifarch %{ix86} %{x8664} x32
823 install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
824 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
825 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
828 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
829 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
830 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
832 install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
833 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
834 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
836 # For the qemu-guest-agent subpackage install the systemd
837 # service and udev rules.
838 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
839 install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
842 %ifnarch %{ix86} %{x8664} x32
851 %ifnarch sparc sparc64
858 test $i = dummy && continue
859 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i.conf
863 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
864 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
866 # install patched vesa tables with additional widescreen modes.
867 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
869 %if %{with system_seabios}
870 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
871 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
872 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
874 if [ -e "/usr/share/seabios/$bn" ] ; then
875 ln -sf "/usr/share/seabios/$bn" "$f"
880 %if %{with gtk2} || %{with gtk3}
881 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
882 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
889 rm -rf $RPM_BUILD_ROOT
893 %groupadd -g 276 qemu
894 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
897 %systemd_post ksm.service
898 %systemd_post ksmtuned.service
901 %systemd_preun ksm.service
902 %systemd_preun ksmtuned.service
905 if [ "$1" = "0" ]; then
912 %triggerpostun common -- qemu-common < 1.6.1-4
913 %systemd_trigger ksm.service
914 %systemd_trigger ksmtuned.service
917 %systemd_service_restart systemd-binfmt.service
920 %systemd_service_restart systemd-binfmt.service
926 %systemd_preun qemu-guest-agent.service
932 %defattr(644,root,root,755)
934 %files common -f %{name}.lang
935 %defattr(644,root,root,755)
936 %doc README qemu-doc.html qemu-tech.html qmp-commands.txt
937 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
938 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu/target-*.conf
939 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
940 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
941 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
942 %{systemdunitdir}/ksm.service
943 %{systemdunitdir}/ksmtuned.service
944 %dir %{_sysconfdir}/qemu
945 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
946 %attr(755,root,root) %{_bindir}/qemu-nbd
947 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
948 %attr(755,root,root) %{_sbindir}/ksmctl
949 %attr(755,root,root) %{_sbindir}/ksmtuned
950 %{_mandir}/man1/qemu.1*
951 %{_mandir}/man1/virtfs-proxy-helper.1*
952 %{_mandir}/man8/qemu-nbd.8*
954 %dir %{_datadir}/qemu
955 %{_datadir}/%{name}/keymaps
956 %{_datadir}/%{name}/qemu-icon.bmp
957 %{_datadir}/%{name}/trace-events
959 # various bios images
960 # all should be probably moved to the right system subpackage
961 %{_datadir}/%{name}/QEMU,cgthree.bin
962 %{_datadir}/%{name}/QEMU,tcx.bin
963 %{_datadir}/%{name}/bamboo.dtb
964 %{_datadir}/%{name}/efi-e1000.rom
965 %{_datadir}/%{name}/efi-eepro100.rom
966 %{_datadir}/%{name}/efi-ne2k_pci.rom
967 %{_datadir}/%{name}/efi-pcnet.rom
968 %{_datadir}/%{name}/efi-rtl8139.rom
969 %{_datadir}/%{name}/efi-virtio.rom
970 %{_datadir}/%{name}/kvmvapic.bin
971 %{_datadir}/%{name}/linuxboot.bin
972 %{_datadir}/%{name}/multiboot.bin
973 %{_datadir}/%{name}/openbios-ppc
974 %{_datadir}/%{name}/openbios-sparc*
975 %{_datadir}/%{name}/palcode-clipper
976 %{_datadir}/%{name}/petalogix-ml605.dtb
977 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
978 %{_datadir}/%{name}/ppc_rom.bin
979 %{_datadir}/%{name}/pxe-e1000.rom
980 %{_datadir}/%{name}/pxe-eepro100.rom
981 %{_datadir}/%{name}/pxe-ne2k_pci.rom
982 %{_datadir}/%{name}/pxe-pcnet.rom
983 %{_datadir}/%{name}/pxe-rtl8139.rom
984 %{_datadir}/%{name}/pxe-virtio.rom
985 %{_datadir}/%{name}/qemu_logo_no_text.svg
986 %{_datadir}/%{name}/s390-ccw.img
987 %{_datadir}/%{name}/s390-zipl.rom
988 %{_datadir}/%{name}/sgabios.bin
989 %{_datadir}/%{name}/slof.bin
990 %{_datadir}/%{name}/spapr-rtas.bin
991 %{_datadir}/%{name}/vgabios-cirrus.bin
992 %{_datadir}/%{name}/vgabios-qxl.bin
993 %{_datadir}/%{name}/vgabios-stdvga.bin
994 %{_datadir}/%{name}/vgabios-vmware.bin
995 %{_datadir}/%{name}/vgabios.bin
997 %dir %{_libdir}/%{name}
1000 %defattr(644,root,root,755)
1001 %attr(755,root,root) %{_bindir}/qemu-img
1002 %{_mandir}/man1/qemu-img.1*
1005 %defattr(644,root,root,755)
1006 /usr/lib/binfmt.d/qemu-*.conf
1007 %attr(755,root,root) %{_bindir}/qemu-aarch64
1008 %attr(755,root,root) %{_bindir}/qemu-alpha
1009 %attr(755,root,root) %{_bindir}/qemu-arm
1010 %attr(755,root,root) %{_bindir}/qemu-armeb
1011 %attr(755,root,root) %{_bindir}/qemu-cris
1012 %attr(755,root,root) %{_bindir}/qemu-i386
1013 %attr(755,root,root) %{_bindir}/qemu-io
1014 %attr(755,root,root) %{_bindir}/qemu-m68k
1015 %attr(755,root,root) %{_bindir}/qemu-microblaze
1016 %attr(755,root,root) %{_bindir}/qemu-microblazeel
1017 %attr(755,root,root) %{_bindir}/qemu-mips
1018 %attr(755,root,root) %{_bindir}/qemu-mipsel
1019 %attr(755,root,root) %{_bindir}/qemu-mips64
1020 %attr(755,root,root) %{_bindir}/qemu-mips64el
1021 %attr(755,root,root) %{_bindir}/qemu-mipsn32
1022 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
1023 %attr(755,root,root) %{_bindir}/qemu-or32
1024 %attr(755,root,root) %{_bindir}/qemu-ppc
1025 %attr(755,root,root) %{_bindir}/qemu-ppc64
1026 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
1027 %attr(755,root,root) %{_bindir}/qemu-ppc64le
1028 %attr(755,root,root) %{_bindir}/qemu-s390x
1029 %attr(755,root,root) %{_bindir}/qemu-sh4
1030 %attr(755,root,root) %{_bindir}/qemu-sh4eb
1031 %attr(755,root,root) %{_bindir}/qemu-sparc
1032 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
1033 %attr(755,root,root) %{_bindir}/qemu-sparc64
1034 %attr(755,root,root) %{_bindir}/qemu-unicore32
1035 %attr(755,root,root) %{_bindir}/qemu-x86_64
1037 %files system-aarch64
1038 %defattr(644,root,root,755)
1039 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1042 %defattr(644,root,root,755)
1043 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1046 %defattr(644,root,root,755)
1047 %attr(755,root,root) %{_bindir}/qemu-system-arm
1050 %defattr(644,root,root,755)
1051 %attr(755,root,root) %{_bindir}/qemu-system-cris
1054 %defattr(644,root,root,755)
1055 %attr(755,root,root) %{_bindir}/qemu-system-lm32
1058 %defattr(644,root,root,755)
1059 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1061 %files system-microblaze
1062 %defattr(644,root,root,755)
1063 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1064 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1067 %defattr(644,root,root,755)
1068 %attr(755,root,root) %{_bindir}/qemu-system-mips
1069 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1070 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1071 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1074 %defattr(644,root,root,755)
1075 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1078 %defattr(644,root,root,755)
1079 %attr(755,root,root) %{_bindir}/qemu-system-or32
1082 %defattr(644,root,root,755)
1083 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1084 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1085 #%attr(755,root,root) %{_bindir}/qemu-system-ppc64le
1086 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
1087 %{_datadir}/%{name}/u-boot.e500
1090 %defattr(644,root,root,755)
1091 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1094 %defattr(644,root,root,755)
1095 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1096 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1099 %defattr(644,root,root,755)
1100 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1101 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1103 %files system-tricore
1104 %defattr(644,root,root,755)
1105 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1107 %files system-unicore32
1108 %defattr(644,root,root,755)
1109 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1112 %defattr(644,root,root,755)
1113 %attr(755,root,root) %{_bindir}/qemu-system-i386
1114 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1115 %ifarch %{ix86} %{x8664} x32
1116 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1117 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
1118 %attr(755,root,root) %{_bindir}/kvm_stat
1120 %{_datadir}/%{name}/bios.bin
1121 %{_datadir}/%{name}/bios-256k.bin
1122 %{_datadir}/%{name}/acpi-dsdt.aml
1123 %{_datadir}/%{name}/q35-acpi-dsdt.aml
1125 %files system-xtensa
1126 %defattr(644,root,root,755)
1127 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1128 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1131 %defattr(644,root,root,755)
1132 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
1133 %{systemdunitdir}/qemu-guest-agent.service
1134 %attr(755,root,root) %{_bindir}/qemu-ga
1136 %files module-block-curl
1137 %defattr(644,root,root,755)
1138 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1140 %if %{with glusterfs}
1141 %files module-block-gluster
1142 %defattr(644,root,root,755)
1143 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1147 %files module-block-iscsi
1148 %defattr(644,root,root,755)
1149 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1153 %files module-block-rbd
1154 %defattr(644,root,root,755)
1155 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1158 %files module-block-ssh
1159 %defattr(644,root,root,755)
1160 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so