1 # TODO: archipelago (libxseg) on bcond (GPL v3 vs v2-only conflict)
4 %bcond_without sdl # SDL UI and audio 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 gtk3 # Do not build GTK+ UI
10 %bcond_without vte # VTE support in GTK+ UI
11 %bcond_without spice # SPICE support
12 %bcond_with esd # EsounD audio support
13 %bcond_without oss # OSS audio support
14 %bcond_without pulseaudio # PulseAudio audio support
15 %bcond_without xen # Xen backend driver support
16 %bcond_without bluetooth # bluetooth support
17 %bcond_without brlapi # brlapi support
18 %bcond_without smartcard # smartcard-nss support
19 %bcond_without iscsi # iscsi support
20 %bcond_without libnfs # NFS support
21 %bcond_without seccomp # seccomp support
22 %bcond_without usbredir # usb network redirection support
23 %bcond_without system_seabios # system seabios binary
24 %bcond_without snappy # snappy compression library
25 %bcond_with lttng # lttng-ust trace backend support
26 %bcond_with systemtap # SystemTap/dtrace trace backend support
36 Summary: QEMU CPU Emulator
37 Summary(pl.UTF-8): QEMU - emulator procesora
42 Group: Applications/Emulators
43 Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.bz2
44 # Source0-md5: 2fab3ea4460de9b57192e5b8b311f221
45 Source2: %{name}.binfmt
46 # Loads kvm kernel modules at boot
47 Source3: kvm-modules-load.conf
52 Source6: ksm.sysconfig
54 Source8: ksmtuned.service
56 Source10: ksmtuned.conf
57 Source11: %{name}-guest-agent.service
58 Source12: 99-%{name}-guest-agent.rules
59 Patch0: %{name}-cflags.patch
60 Patch1: vgabios-widescreens.patch
61 Patch2: %{name}-whitelist.patch
62 Patch3: %{name}-system-libcacard.patch
63 Patch4: %{name}-xattr.patch
64 Patch5: libjpeg-boolean.patch
66 Patch7: CVE-2015-3456.patch
67 # Proof of concept, for reference, do not remove
68 Patch400: %{name}-kde_virtual_workspaces_hack.patch
69 URL: http://www.qemu-project.org/
70 BuildRequires: OpenGL-GLX-devel
71 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
72 BuildRequires: alsa-lib-devel
73 BuildRequires: bcc >= 0.16.21-2
74 %{?with_bluetooth:BuildRequires: bluez-libs-devel}
75 %{?with_brlapi:BuildRequires: brlapi-devel}
76 BuildRequires: bzip2-devel
77 %{?with_ceph:BuildRequires: ceph-devel}
78 BuildRequires: curl-devel
79 BuildRequires: cyrus-sasl-devel >= 2
80 %{?with_esd:BuildRequires: esound-devel}
81 BuildRequires: glib2-devel >= 1:2.12
82 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
83 BuildRequires: gnutls-devel > 2.10.0
84 BuildRequires: libaio-devel
85 %{?with_smartcard:BuildRequires: libcacard-devel}
86 BuildRequires: libcap-devel
87 BuildRequires: libcap-ng-devel
88 BuildRequires: libfdt-devel
89 %{?with_rdma:BuildRequires: libibverbs-devel}
90 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
91 BuildRequires: libjpeg-devel
92 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
93 BuildRequires: libpng-devel
94 %{?with_rdma:BuildRequires: librdmacm-devel}
95 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.1.1}
96 BuildRequires: libssh2-devel >= 1.2.8
97 BuildRequires: libusb-devel >= 1.0.13
98 BuildRequires: libuuid-devel
99 %{?with_lttng:BuildRequires: lttng-ust-devel}
100 BuildRequires: lzo-devel >= 2
101 BuildRequires: ncurses-devel
102 %{?with_smartcard:BuildRequires: nss-devel >= 3.12.8}
103 BuildRequires: numactl-devel
104 BuildRequires: perl-Encode
105 BuildRequires: perl-tools-pod
106 BuildRequires: pixman-devel >= 0.21.8
107 BuildRequires: pkgconfig
108 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
109 BuildRequires: rpmbuild(macros) >= 1.644
110 %{?with_system_seabios:BuildRequires: seabios}
111 BuildRequires: sed >= 4.0
112 %{?with_snappy:BuildRequires: snappy-devel}
114 BuildRequires: spice-protocol >= 0.12.3
115 BuildRequires: spice-server-devel >= 0.12.0
117 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
118 BuildRequires: texi2html
119 BuildRequires: texinfo
120 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
121 %{?with_lttng:BuildRequires: userspace-rcu-devel}
122 BuildRequires: vde2-devel
124 %{?with_xen:BuildRequires: xen-devel >= 3.4}
125 BuildRequires: xfsprogs-devel
126 BuildRequires: xorg-lib-libX11-devel
127 BuildRequires: zlib-devel
129 BuildRequires: gtk+2-devel >= 2:2.18.0
130 %{?with_vte:BuildRequires: vte0-devel >= 0.24.0}
133 BuildRequires: gtk+3-devel >= 3.0.0
134 %{?with_vte:BuildRequires: vte2.90-devel >= 0.32.0}
136 Requires: %{name}-img = %{version}-%{release}
137 Requires: %{name}-system-aarch64 = %{version}-%{release}
138 Requires: %{name}-system-alpha = %{version}-%{release}
139 Requires: %{name}-system-arm = %{version}-%{release}
140 Requires: %{name}-system-cris = %{version}-%{release}
141 Requires: %{name}-system-lm32 = %{version}-%{release}
142 Requires: %{name}-system-m68k = %{version}-%{release}
143 Requires: %{name}-system-microblaze = %{version}-%{release}
144 Requires: %{name}-system-mips = %{version}-%{release}
145 Requires: %{name}-system-moxie = %{version}-%{release}
146 Requires: %{name}-system-or32 = %{version}-%{release}
147 Requires: %{name}-system-ppc = %{version}-%{release}
148 Requires: %{name}-system-s390x = %{version}-%{release}
149 Requires: %{name}-system-sh4 = %{version}-%{release}
150 Requires: %{name}-system-sparc = %{version}-%{release}
151 Requires: %{name}-system-tricore = %{version}-%{release}
152 Requires: %{name}-system-unicore32 = %{version}-%{release}
153 Requires: %{name}-system-x86 = %{version}-%{release}
154 Requires: %{name}-system-xtensa = %{version}-%{release}
155 Requires: %{name}-user = %{version}-%{release}
157 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
159 %define systempkg_req \
163 %if %{with seccomp} \
164 Requires: libseccomp >= 2.1.0 \
166 Requires: libusb >= 1.0.13 \
167 Requires: pixman >= 0.21.8 \
168 %if %{with usbredir} \
169 Requires: usbredir >= 0.6 \
172 Requires: gtk+2 >= 2:2.18.0 \
173 %{?with_vte:Requires: vte0 >= 0.24.0} \
176 Requires: gtk+3 >= 3.0.0 \
177 %{?with_vte:Requires: vte2.90 >= 0.32.0} \
180 # don't strip/chrpath anything in there; these are boot images, roms etc
181 %define _noautostrip .*%{_datadir}/qemu/.*
182 %define _noautochrpath .*%{_datadir}/qemu/.*
185 QEMU is a FAST! processor emulator. By using dynamic translation it
186 achieves a reasonnable speed while being easy to port on new host
187 CPUs. QEMU has two operating modes:
189 - User mode emulation. In this mode, QEMU can launch Linux processes
190 compiled for one CPU on another CPU. Linux system calls are converted
191 because of endianness and 32/64 bit mismatches. Wine (Windows
192 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
194 - Full system emulation. In this mode, QEMU emulates a full system,
195 including a processor and various peripherials. It can also be used to
196 provide virtual hosting of several virtual PC on a single server.
198 %description -l pl.UTF-8
199 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
200 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
201 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
203 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
204 procesy linuksowe skompilowane dla jednego procesora na innym
205 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
206 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
207 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
210 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
211 włączając w to procesor i różne urządzenia peryferyjne. Może być także
212 używane do wirtualnego hostowania kilku wirtualnych pecetów na
213 pojedynczym serwerze.
216 Summary: QEMU common files needed by all QEMU targets
217 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
218 Group: Development/Tools
219 Requires(post,preun,postun): systemd-units >= 38
220 Requires(postun): /usr/sbin/groupdel
221 Requires(postun): /usr/sbin/userdel
222 Requires(pre): /bin/id
223 Requires(pre): /usr/bin/getgid
224 Requires(pre): /usr/sbin/groupadd
225 Requires(pre): /usr/sbin/useradd
226 Requires: glib2 >= 1:2.12
227 %{?with_libnfs:Requires: libnfs >= 1.9.3}
228 Requires: libssh2 >= 1.2.8
229 Requires: systemd-units >= 38
230 Provides: group(qemu)
232 Obsoletes: qemu-kvm-common
233 Conflicts: qemu < 1.0-2
236 QEMU is a generic and open source processor emulator which achieves a
237 good emulation speed by using dynamic translation.
239 This package provides the common files needed by all QEMU targets.
241 %description common -l pl.UTF-8
242 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
243 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
245 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
249 Summary: QEMU command line tool for manipulating disk images
250 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
251 Group: Development/Tools
252 Obsoletes: qemu-kvm-img
253 Conflicts: qemu < 1.0-2
256 This package provides a command line tool for manipulating disk
259 %description img -l pl.UTF-8
260 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
264 Summary: QEMU user mode emulation of qemu targets
265 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
266 Group: Development/Tools
267 Requires: %{name}-common = %{version}-%{release}
268 Requires(post,postun): systemd-units >= 38
269 Requires: systemd-units >= 38
270 Obsoletes: qemu-kvm-user
273 QEMU is a generic and open source processor emulator which achieves a
274 good emulation speed by using dynamic translation.
276 This package provides the user mode emulation of QEMU targets.
278 %description user -l pl.UTF-8
279 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
280 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
282 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
284 %package system-aarch64
285 Summary: QEMU system emulator for AArch64
286 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
287 Group: Development/Tools
288 Requires: %{name}-common = %{version}-%{release}
290 Obsoletes: qemu-kvm-system-aarch64
292 %description system-aarch64
293 QEMU is a generic and open source processor emulator which achieves a
294 good emulation speed by using dynamic translation.
296 This package provides the system emulator with AArch64 CPU.
298 %description system-aarch64 -l pl.UTF-8
299 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
300 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
302 Ten pakiet zawiera emulator systemu z procesorem AArch64.
304 %package system-alpha
305 Summary: QEMU system emulator for Alpha
306 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
307 Group: Development/Tools
308 Requires: %{name}-common = %{version}-%{release}
310 Obsoletes: qemu-kvm-system-alpha
312 %description system-alpha
313 QEMU is a generic and open source processor emulator which achieves a
314 good emulation speed by using dynamic translation.
316 This package provides the system emulator with Alpha CPU.
318 %description system-alpha -l pl.UTF-8
319 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
320 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
322 Ten pakiet zawiera emulator systemu z procesorem Alpha.
325 Summary: QEMU system emulator for ARM
326 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
327 Group: Development/Tools
328 Requires: %{name}-common = %{version}-%{release}
330 Obsoletes: qemu-kvm-system-arm
332 %description system-arm
333 QEMU is a generic and open source processor emulator which achieves a
334 good emulation speed by using dynamic translation.
336 This package provides the system emulator for ARM.
338 %description system-arm -l pl.UTF-8
339 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
340 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
342 Ten pakiet zawiera emulator systemu z procesorem ARM.
345 Summary: QEMU system emulator for CRIS
346 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
347 Group: Development/Tools
348 Requires: %{name}-common = %{version}-%{release}
350 Obsoletes: qemu-kvm-system-cris
352 %description system-cris
353 QEMU is a generic and open source processor emulator which achieves a
354 good emulation speed by using dynamic translation.
356 This package provides the system emulator with CRIS CPU.
358 %description system-cris -l pl.UTF-8
359 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
360 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
362 Ten pakiet zawiera emulator systemu z procesorem CRIS.
365 Summary: QEMU system emulator for LM32
366 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
367 Group: Development/Tools
368 Requires: %{name}-common = %{version}-%{release}
370 Obsoletes: qemu-kvm-system-lm32
372 %description system-lm32
373 QEMU is a generic and open source processor emulator which achieves a
374 good emulation speed by using dynamic translation.
376 This package provides the system emulator with LM32 CPU.
378 %description system-lm32 -l pl.UTF-8
379 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
380 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
382 Ten pakiet zawiera emulator systemu z procesorem LM32.
385 Summary: QEMU system emulator for m68k
386 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
387 Group: Development/Tools
388 Requires: %{name}-common = %{version}-%{release}
390 Obsoletes: qemu-kvm-system-m68k
392 %description system-m68k
393 QEMU is a generic and open source processor emulator which achieves a
394 good emulation speed by using dynamic translation.
396 This package provides the system emulator with m68k CPU.
398 %description system-m68k -l pl.UTF-8
399 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
400 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
402 Ten pakiet zawiera emulator systemu z procesorem m68k.
404 %package system-microblaze
405 Summary: QEMU system emulator for MicroBlaze
406 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
407 Group: Development/Tools
408 Requires: %{name}-common = %{version}-%{release}
410 Obsoletes: qemu-kvm-system-microblaze
412 %description system-microblaze
413 QEMU is a generic and open source processor emulator which achieves a
414 good emulation speed by using dynamic translation.
416 This package provides the system emulator with MicroBlaze CPU.
418 %description system-microblaze -l pl.UTF-8
419 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
420 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
422 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
425 Summary: QEMU system emulator for MIPS
426 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
427 Group: Development/Tools
428 Requires: %{name}-common = %{version}-%{release}
430 Obsoletes: qemu-kvm-system-mips
432 %description system-mips
433 QEMU is a generic and open source processor emulator which achieves a
434 good emulation speed by using dynamic translation.
436 This package provides the system emulator with MIPS CPU.
438 %description system-mips -l pl.UTF-8
439 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
440 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
442 Ten pakiet zawiera emulator systemu z procesorem MIPS.
444 %package system-moxie
445 Summary: QEMU system emulator for Moxie
446 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
447 Group: Development/Tools
448 Requires: %{name}-common = %{version}-%{release}
451 %description system-moxie
452 QEMU is a generic and open source processor emulator which achieves a
453 good emulation speed by using dynamic translation.
455 This package provides the system emulator with Moxie CPU.
457 %description system-moxie -l pl.UTF-8
458 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
459 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
461 Ten pakiet zawiera emulator systemu z procesorem Moxie.
464 Summary: QEMU system emulator for OpenRISC
465 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
466 Group: Development/Tools
467 Requires: %{name}-common = %{version}-%{release}
469 Obsoletes: qemu-kvm-system-or32
471 %description system-or32
472 QEMU is a generic and open source processor emulator which achieves a
473 good emulation speed by using dynamic translation.
475 This package provides the system emulator with OpenRISC CPU.
477 %description system-or32 -l pl.UTF-8
478 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
479 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
481 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
484 Summary: QEMU system emulator for PowerPC
485 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
486 Group: Development/Tools
487 Requires: %{name}-common = %{version}-%{release}
489 Obsoletes: qemu-kvm-system-ppc
491 %description system-ppc
492 QEMU is a generic and open source processor emulator which achieves a
493 good emulation speed by using dynamic translation.
495 This package provides the system emulator with PowerPC CPU.
497 %description system-ppc -l pl.UTF-8
498 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
499 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
501 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
503 %package system-s390x
504 Summary: QEMU system emulator for S390
505 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
506 Group: Development/Tools
507 Requires: %{name}-common = %{version}-%{release}
509 Obsoletes: qemu-kvm-system-s390x
511 %description system-s390x
512 QEMU is a generic and open source processor emulator which achieves a
513 good emulation speed by using dynamic translation.
515 This package provides the system emulator with S390 CPU.
517 %description system-s390x -l pl.UTF-8
518 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
519 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
521 Ten pakiet zawiera emulator systemu z procesorem S390.
524 Summary: QEMU system emulator for SH4
525 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
526 Group: Development/Tools
527 Requires: %{name}-common = %{version}-%{release}
529 Obsoletes: qemu-kvm-system-sh4
531 %description system-sh4
532 QEMU is a generic and open source processor emulator which achieves a
533 good emulation speed by using dynamic translation.
535 This package provides the system emulator with SH4 CPU.
537 %description system-sh4 -l pl.UTF-8
538 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
539 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
541 Ten pakiet zawiera emulator systemu z procesorem SH4.
543 %package system-sparc
544 Summary: QEMU system emulator for SPARC
545 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
546 Group: Development/Tools
547 Requires: %{name}-common = %{version}-%{release}
549 Obsoletes: qemu-kvm-system-sparc
551 %description system-sparc
552 QEMU is a generic and open source processor emulator which achieves a
553 good emulation speed by using dynamic translation.
555 This package provides the system emulator with SPARC/SPARC64 CPU.
557 %description system-sparc -l pl.UTF-8
558 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
559 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
561 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
563 %package system-tricore
564 Summary: QEMU system emulator for TriCore
565 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
566 Group: Development/Tools
567 Requires: %{name}-common = %{version}-%{release}
570 %description system-tricore
571 QEMU is a generic and open source processor emulator which achieves a
572 good emulation speed by using dynamic translation.
574 This package provides the system emulator with TriCore CPU.
576 %description system-sparc -l pl.UTF-8
577 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
578 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
580 Ten pakiet zawiera emulator systemu z procesorem TriCore.
582 %package system-unicore32
583 Summary: QEMU system emulator for UniCore32
584 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
585 Group: Development/Tools
586 Requires: %{name}-common = %{version}-%{release}
588 Obsoletes: qemu-kvm-system-unicore32
590 %description system-unicore32
591 QEMU is a generic and open source processor emulator which achieves a
592 good emulation speed by using dynamic translation.
594 This package provides the system emulator with UniCore32 CPU.
596 %description system-unicore32 -l pl.UTF-8
597 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
598 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
600 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
603 Summary: QEMU system emulator for x86
604 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
605 Group: Development/Tools
606 Requires: %{name}-common = %{version}-%{release}
607 %{?with_system_seabios:Requires: seabios}
610 Obsoletes: qemu-kvm-system-x86
612 %description system-x86
613 QEMU is a generic and open source processor emulator which achieves a
614 good emulation speed by using dynamic translation.
616 %description system-x86 -l pl.UTF-8
617 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
618 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
620 %package system-xtensa
621 Summary: QEMU system emulator for Xtensa
622 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
623 Group: Development/Tools
624 Requires: %{name}-common = %{version}-%{release}
626 Obsoletes: qemu-kvm-system-xtensa
628 %description system-xtensa
629 QEMU is a generic and open source processor emulator which achieves a
630 good emulation speed by using dynamic translation.
632 This package provides the system emulator with Xtensa CPU.
634 %description system-xtensa -l pl.UTF-8
635 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
636 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
638 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
641 Summary: QEMU guest agent
642 Summary(pl.UTF-8): Agent gościa QEMU
644 Requires(post,preun,postun): systemd-units >= 38
645 Requires: glib2 >= 1:2.12
646 Requires: systemd-units >= 38
647 Obsoletes: qemu-kvm-guest-agent
649 %description guest-agent
650 QEMU is a generic and open source processor emulator which achieves a
651 good emulation speed by using dynamic translation.
653 This package provides an agent to run inside guests, which
654 communicates with the host over a virtio-serial channel named
655 "org.qemu.guest_agent.0".
657 This package does not need to be installed on the host OS.
659 %description guest-agent -l pl.UTF-8
660 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
661 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
663 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
664 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
665 "org.qemu.guest_agent.0".
667 Ten pakiet nie musi być zainstalowany w systemie hosta.
669 %package module-block-curl
670 Summary: QEMU module for 'curl' block devices
671 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
672 Group: Development/Tools
673 Requires: %{name}-common = %{version}-%{release}
675 %description module-block-curl
676 'curl' block device support for QEMU.
678 %description module-block-curl -l pl.UTF-8
679 Moduł QEMU dla urządeń blokowych typu 'curl'.
681 %package module-block-gluster
682 Summary: QEMU module for 'gluster' block devices
683 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
684 Group: Development/Tools
685 Requires: %{name}-common = %{version}-%{release}
686 Requires: glusterfs-libs >= 3.4
688 %description module-block-gluster
689 'gluster' block device support for QEMU.
691 %description module-block-gluster -l pl.UTF-8
692 Moduł QEMU dla urządeń blokowych typu 'gluster'.
694 %package module-block-iscsi
695 Summary: QEMU module for 'iscsi' block devices
696 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
697 Group: Development/Tools
698 Requires: %{name}-common = %{version}-%{release}
699 Requires: libiscsi >= 1.9.0
701 %description module-block-iscsi
702 'iscsi' block device support for QEMU.
704 %description module-block-iscsi -l pl.UTF-8
705 Moduł QEMU dla urządeń blokowych typu 'iscsi'.
707 %package module-block-rbd
708 Summary: QEMU module for 'rbd' block devices
709 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
710 Group: Development/Tools
711 Requires: %{name}-common = %{version}-%{release}
713 %description module-block-rbd
714 'rbd' block device support for QEMU.
716 %description module-block-rbd -l pl.UTF-8
717 Moduł QEMU dla urządeń blokowych typu 'rbd'.
719 %package module-block-ssh
720 Summary: QEMU module for 'ssh' block devices
721 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
722 Group: Development/Tools
723 Requires: %{name}-common = %{version}-%{release}
725 %description module-block-ssh
726 'ssh' block device support for QEMU.
728 %description module-block-ssh -l pl.UTF-8
729 Moduł QEMU dla urządeń blokowych typu 'ssh'.
742 %{__mv} libcacard libcacard-use-system-lib
744 # workaround for conflict with alsa/error.h
745 ln -s ../error.h qapi/error.h
749 --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
750 --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
751 --prefix=%{_prefix} \
752 --libdir=%{_libdir} \
753 --libexecdir=%{_libexecdir} \
754 --sysconfdir=%{_sysconfdir} \
756 --host-cc="%{__cc}" \
759 %{__enable_disable bluetooth bluez} \
760 %{__enable_disable brlapi} \
766 %{__enable_disable glusterfs} \
767 %{__enable_disable iscsi libiscsi} \
768 %{__enable_disable ceph rbd} \
769 %{__enable_disable rdma} \
770 %{__enable_disable sdl} \
772 %{__enable_disable seccomp} \
773 %{__enable_disable spice} \
774 %{__enable_disable smartcard smartcard-nss} \
776 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
777 %{__enable_disable usbredir usb-redir} \
785 %{!?with_vte:--disable-vte} \
787 %{__enable_disable xen} \
790 %{__enable_disable libnfs} \
792 %{__enable_disable snappy} \
794 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
795 --interp-prefix=%{_libdir}/qemu/lib-%%M \
796 %if %{without gtk2} && %{without gtk3}
799 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
804 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
806 # rebuild patched vesa tables with additional widescreen modes.
807 %{__make} -C roms/vgabios stdvga-bios
809 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
812 rm -rf $RPM_BUILD_ROOT
813 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
814 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
815 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
818 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
819 DESTDIR=$RPM_BUILD_ROOT
821 install -d $RPM_BUILD_ROOT%{_sysconfdir}
822 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
827 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
829 %ifarch %{ix86} %{x8664} x32
830 install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
831 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
832 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
835 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
836 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
837 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
839 install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
840 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
841 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
843 # For the qemu-guest-agent subpackage install the systemd
844 # service and udev rules.
845 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
846 install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
849 %ifnarch %{ix86} %{x8664} x32
858 %ifnarch sparc sparc64
865 test $i = dummy && continue
866 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i.conf
870 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
871 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
873 # install patched vesa tables with additional widescreen modes.
874 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
876 %if %{with system_seabios}
877 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
878 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
879 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
881 if [ -e "/usr/share/seabios/$bn" ] ; then
882 ln -sf "/usr/share/seabios/$bn" "$f"
887 %if %{with gtk2} || %{with gtk3}
888 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
889 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
896 rm -rf $RPM_BUILD_ROOT
900 %groupadd -g 276 qemu
901 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
904 %systemd_post ksm.service
905 %systemd_post ksmtuned.service
908 %systemd_preun ksm.service
909 %systemd_preun ksmtuned.service
912 if [ "$1" = "0" ]; then
919 %triggerpostun common -- qemu-common < 1.6.1-4
920 %systemd_trigger ksm.service
921 %systemd_trigger ksmtuned.service
924 %systemd_service_restart systemd-binfmt.service
927 %systemd_service_restart systemd-binfmt.service
933 %systemd_preun qemu-guest-agent.service
939 %defattr(644,root,root,755)
941 %files common -f %{name}.lang
942 %defattr(644,root,root,755)
943 %doc LICENSE README qemu-doc.html qemu-tech.html qmp-commands.txt
944 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
945 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu/target-*.conf
946 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
947 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
948 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
949 %{systemdunitdir}/ksm.service
950 %{systemdunitdir}/ksmtuned.service
951 %dir %{_sysconfdir}/qemu
952 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
953 %attr(755,root,root) %{_bindir}/qemu-nbd
954 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
955 %attr(755,root,root) %{_sbindir}/ksmctl
956 %attr(755,root,root) %{_sbindir}/ksmtuned
957 %{_mandir}/man1/qemu.1*
958 %{_mandir}/man1/virtfs-proxy-helper.1*
959 %{_mandir}/man8/qemu-nbd.8*
961 %dir %{_datadir}/qemu
962 %{_datadir}/%{name}/keymaps
963 %{_datadir}/%{name}/qemu-icon.bmp
964 %{_datadir}/%{name}/trace-events
966 # various bios images
967 # all should be probably moved to the right system subpackage
968 %{_datadir}/%{name}/QEMU,cgthree.bin
969 %{_datadir}/%{name}/QEMU,tcx.bin
970 %{_datadir}/%{name}/bamboo.dtb
971 %{_datadir}/%{name}/efi-e1000.rom
972 %{_datadir}/%{name}/efi-eepro100.rom
973 %{_datadir}/%{name}/efi-ne2k_pci.rom
974 %{_datadir}/%{name}/efi-pcnet.rom
975 %{_datadir}/%{name}/efi-rtl8139.rom
976 %{_datadir}/%{name}/efi-virtio.rom
977 %{_datadir}/%{name}/kvmvapic.bin
978 %{_datadir}/%{name}/linuxboot.bin
979 %{_datadir}/%{name}/multiboot.bin
980 %{_datadir}/%{name}/openbios-ppc
981 %{_datadir}/%{name}/openbios-sparc*
982 %{_datadir}/%{name}/palcode-clipper
983 %{_datadir}/%{name}/petalogix-ml605.dtb
984 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
985 %{_datadir}/%{name}/ppc_rom.bin
986 %{_datadir}/%{name}/pxe-e1000.rom
987 %{_datadir}/%{name}/pxe-eepro100.rom
988 %{_datadir}/%{name}/pxe-ne2k_pci.rom
989 %{_datadir}/%{name}/pxe-pcnet.rom
990 %{_datadir}/%{name}/pxe-rtl8139.rom
991 %{_datadir}/%{name}/pxe-virtio.rom
992 %{_datadir}/%{name}/qemu_logo_no_text.svg
993 %{_datadir}/%{name}/s390-ccw.img
994 %{_datadir}/%{name}/s390-zipl.rom
995 %{_datadir}/%{name}/sgabios.bin
996 %{_datadir}/%{name}/slof.bin
997 %{_datadir}/%{name}/spapr-rtas.bin
998 %{_datadir}/%{name}/vgabios-cirrus.bin
999 %{_datadir}/%{name}/vgabios-qxl.bin
1000 %{_datadir}/%{name}/vgabios-stdvga.bin
1001 %{_datadir}/%{name}/vgabios-vmware.bin
1002 %{_datadir}/%{name}/vgabios.bin
1004 %dir %{_libdir}/%{name}
1007 %defattr(644,root,root,755)
1008 %attr(755,root,root) %{_bindir}/qemu-img
1009 %{_mandir}/man1/qemu-img.1*
1012 %defattr(644,root,root,755)
1013 /usr/lib/binfmt.d/qemu-*.conf
1014 %attr(755,root,root) %{_bindir}/qemu-aarch64
1015 %attr(755,root,root) %{_bindir}/qemu-alpha
1016 %attr(755,root,root) %{_bindir}/qemu-arm
1017 %attr(755,root,root) %{_bindir}/qemu-armeb
1018 %attr(755,root,root) %{_bindir}/qemu-cris
1019 %attr(755,root,root) %{_bindir}/qemu-i386
1020 %attr(755,root,root) %{_bindir}/qemu-io
1021 %attr(755,root,root) %{_bindir}/qemu-m68k
1022 %attr(755,root,root) %{_bindir}/qemu-microblaze
1023 %attr(755,root,root) %{_bindir}/qemu-microblazeel
1024 %attr(755,root,root) %{_bindir}/qemu-mips
1025 %attr(755,root,root) %{_bindir}/qemu-mipsel
1026 %attr(755,root,root) %{_bindir}/qemu-mips64
1027 %attr(755,root,root) %{_bindir}/qemu-mips64el
1028 %attr(755,root,root) %{_bindir}/qemu-mipsn32
1029 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
1030 %attr(755,root,root) %{_bindir}/qemu-or32
1031 %attr(755,root,root) %{_bindir}/qemu-ppc
1032 %attr(755,root,root) %{_bindir}/qemu-ppc64
1033 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
1034 %attr(755,root,root) %{_bindir}/qemu-ppc64le
1035 %attr(755,root,root) %{_bindir}/qemu-s390x
1036 %attr(755,root,root) %{_bindir}/qemu-sh4
1037 %attr(755,root,root) %{_bindir}/qemu-sh4eb
1038 %attr(755,root,root) %{_bindir}/qemu-sparc
1039 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
1040 %attr(755,root,root) %{_bindir}/qemu-sparc64
1041 %attr(755,root,root) %{_bindir}/qemu-unicore32
1042 %attr(755,root,root) %{_bindir}/qemu-x86_64
1044 %files system-aarch64
1045 %defattr(644,root,root,755)
1046 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1049 %defattr(644,root,root,755)
1050 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1053 %defattr(644,root,root,755)
1054 %attr(755,root,root) %{_bindir}/qemu-system-arm
1057 %defattr(644,root,root,755)
1058 %attr(755,root,root) %{_bindir}/qemu-system-cris
1061 %defattr(644,root,root,755)
1062 %attr(755,root,root) %{_bindir}/qemu-system-lm32
1065 %defattr(644,root,root,755)
1066 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1068 %files system-microblaze
1069 %defattr(644,root,root,755)
1070 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1071 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1074 %defattr(644,root,root,755)
1075 %attr(755,root,root) %{_bindir}/qemu-system-mips
1076 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1077 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1078 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1081 %defattr(644,root,root,755)
1082 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1085 %defattr(644,root,root,755)
1086 %attr(755,root,root) %{_bindir}/qemu-system-or32
1089 %defattr(644,root,root,755)
1090 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1091 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1092 #%attr(755,root,root) %{_bindir}/qemu-system-ppc64le
1093 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
1094 %{_datadir}/%{name}/u-boot.e500
1097 %defattr(644,root,root,755)
1098 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1101 %defattr(644,root,root,755)
1102 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1103 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1106 %defattr(644,root,root,755)
1107 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1108 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1110 %files system-tricore
1111 %defattr(644,root,root,755)
1112 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1114 %files system-unicore32
1115 %defattr(644,root,root,755)
1116 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1119 %defattr(644,root,root,755)
1120 %attr(755,root,root) %{_bindir}/qemu-system-i386
1121 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1122 %ifarch %{ix86} %{x8664} x32
1123 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1124 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
1125 %attr(755,root,root) %{_bindir}/kvm_stat
1127 %{_datadir}/%{name}/bios.bin
1128 %{_datadir}/%{name}/bios-256k.bin
1129 %{_datadir}/%{name}/acpi-dsdt.aml
1130 %{_datadir}/%{name}/q35-acpi-dsdt.aml
1132 %files system-xtensa
1133 %defattr(644,root,root,755)
1134 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1135 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1138 %defattr(644,root,root,755)
1139 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
1140 %{systemdunitdir}/qemu-guest-agent.service
1141 %attr(755,root,root) %{_bindir}/qemu-ga
1143 %files module-block-curl
1144 %defattr(644,root,root,755)
1145 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1147 %if %{with glusterfs}
1148 %files module-block-gluster
1149 %defattr(644,root,root,755)
1150 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1154 %files module-block-iscsi
1155 %defattr(644,root,root,755)
1156 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1160 %files module-block-rbd
1161 %defattr(644,root,root,755)
1162 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1165 %files module-block-ssh
1166 %defattr(644,root,root,755)
1167 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so