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_with 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
32 Summary: QEMU CPU Emulator
33 Summary(pl.UTF-8): QEMU - emulator procesora
38 Group: Applications/Emulators
39 Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.bz2
40 # Source0-md5: 2fab3ea4460de9b57192e5b8b311f221
41 Source2: %{name}.binfmt
42 # Loads kvm kernel modules at boot
43 Source3: kvm-modules-load.conf
47 Source6: ksm.sysconfig
50 Source10: ksmtuned.conf
51 Patch0: %{name}-cflags.patch
52 Patch1: vgabios-widescreens.patch
53 Patch2: %{name}-whitelist.patch
54 Patch3: %{name}-system-libcacard.patch
55 Patch4: %{name}-xattr.patch
56 Patch5: libjpeg-boolean.patch
57 Patch6: CVE-2015-3456.patch
58 # Proof of concept, for reference, do not remove
59 Patch400: %{name}-kde_virtual_workspaces_hack.patch
60 URL: http://www.qemu-project.org/
61 BuildRequires: OpenGL-GLX-devel
62 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
63 BuildRequires: alsa-lib-devel
64 BuildRequires: bcc >= 0.16.21-2
65 %{?with_bluetooth:BuildRequires: bluez-libs-devel}
66 %{?with_brlapi:BuildRequires: brlapi-devel}
67 BuildRequires: bzip2-devel
68 %{?with_ceph:BuildRequires: ceph-devel}
69 BuildRequires: curl-devel
70 BuildRequires: cyrus-sasl-devel >= 2
71 %{?with_esd:BuildRequires: esound-devel}
72 BuildRequires: glib2-devel >= 1:2.12
73 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
74 BuildRequires: gnutls-devel > 2.10.0
75 BuildRequires: libaio-devel
76 %{?with_smartcard:BuildRequires: libcacard-devel}
77 BuildRequires: libcap-devel
78 BuildRequires: libcap-ng-devel
79 BuildRequires: libfdt-devel
80 %{?with_rdma:BuildRequires: libibverbs-devel}
81 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
82 BuildRequires: libjpeg-devel
83 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
84 BuildRequires: libpng-devel
85 %{?with_rdma:BuildRequires: librdmacm-devel}
86 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.1.1}
87 BuildRequires: libssh2-devel >= 1.2.8
88 BuildRequires: libusb-devel >= 1.0.13
89 BuildRequires: libuuid-devel
90 %{?with_lttng:BuildRequires: lttng-ust-devel}
91 BuildRequires: lzo-devel >= 2
92 BuildRequires: ncurses-devel
93 %{?with_smartcard:BuildRequires: nss-devel >= 3.12.8}
94 BuildRequires: numactl-devel
95 BuildRequires: perl-Encode
96 BuildRequires: perl-tools-pod
97 BuildRequires: pixman-devel >= 0.21.8
98 BuildRequires: pkgconfig
99 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
100 BuildRequires: rpmbuild(macros) >= 1.644
101 %{?with_system_seabios:BuildRequires: seabios}
102 BuildRequires: sed >= 4.0
103 %{?with_snappy:BuildRequires: snappy-devel}
105 BuildRequires: spice-protocol >= 0.12.3
106 BuildRequires: spice-server-devel >= 0.12.0
108 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
109 BuildRequires: texi2html
110 BuildRequires: texinfo
111 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
112 %{?with_lttng:BuildRequires: userspace-rcu-devel}
113 BuildRequires: vde2-devel
115 %{?with_xen:BuildRequires: xen-devel >= 3.4}
116 BuildRequires: xfsprogs-devel
117 BuildRequires: xorg-lib-libX11-devel
118 BuildRequires: zlib-devel
120 BuildRequires: gtk+2-devel >= 2:2.18.0
121 %{?with_vte:BuildRequires: vte0-devel >= 0.24.0}
124 BuildRequires: gtk+3-devel >= 3.0.0
125 %{?with_vte:BuildRequires: vte2.90-devel >= 0.32.0}
127 Requires: %{name}-img = %{version}-%{release}
128 Requires: %{name}-system-aarch64 = %{version}-%{release}
129 Requires: %{name}-system-alpha = %{version}-%{release}
130 Requires: %{name}-system-arm = %{version}-%{release}
131 Requires: %{name}-system-cris = %{version}-%{release}
132 Requires: %{name}-system-lm32 = %{version}-%{release}
133 Requires: %{name}-system-m68k = %{version}-%{release}
134 Requires: %{name}-system-microblaze = %{version}-%{release}
135 Requires: %{name}-system-mips = %{version}-%{release}
136 Requires: %{name}-system-moxie = %{version}-%{release}
137 Requires: %{name}-system-or32 = %{version}-%{release}
138 Requires: %{name}-system-ppc = %{version}-%{release}
139 Requires: %{name}-system-s390x = %{version}-%{release}
140 Requires: %{name}-system-sh4 = %{version}-%{release}
141 Requires: %{name}-system-sparc = %{version}-%{release}
142 Requires: %{name}-system-tricore = %{version}-%{release}
143 Requires: %{name}-system-unicore32 = %{version}-%{release}
144 Requires: %{name}-system-x86 = %{version}-%{release}
145 Requires: %{name}-system-xtensa = %{version}-%{release}
146 Requires: %{name}-user = %{version}-%{release}
148 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
150 %define systempkg_req \
154 %if %{with seccomp} \
155 Requires: libseccomp >= 2.1.0 \
157 Requires: libusb >= 1.0.13 \
158 Requires: pixman >= 0.21.8 \
159 %if %{with usbredir} \
160 Requires: usbredir >= 0.6 \
163 Requires: gtk+2 >= 2:2.18.0 \
164 %{?with_vte:Requires: vte0 >= 0.24.0} \
167 Requires: gtk+3 >= 3.0.0 \
168 %{?with_vte:Requires: vte2.90 >= 0.32.0} \
171 # don't strip/chrpath anything in there; these are boot images, roms etc
172 %define _noautostrip .*%{_datadir}/qemu/.*
173 %define _noautochrpath .*%{_datadir}/qemu/.*
176 QEMU is a FAST! processor emulator. By using dynamic translation it
177 achieves a reasonnable speed while being easy to port on new host
178 CPUs. QEMU has two operating modes:
180 - User mode emulation. In this mode, QEMU can launch Linux processes
181 compiled for one CPU on another CPU. Linux system calls are converted
182 because of endianness and 32/64 bit mismatches. Wine (Windows
183 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
185 - Full system emulation. In this mode, QEMU emulates a full system,
186 including a processor and various peripherials. It can also be used to
187 provide virtual hosting of several virtual PC on a single server.
189 %description -l pl.UTF-8
190 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
191 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
192 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
194 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
195 procesy linuksowe skompilowane dla jednego procesora na innym
196 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
197 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
198 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
201 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
202 włączając w to procesor i różne urządzenia peryferyjne. Może być także
203 używane do wirtualnego hostowania kilku wirtualnych pecetów na
204 pojedynczym serwerze.
207 Summary: QEMU common files needed by all QEMU targets
208 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
209 Group: Development/Tools
210 Requires(postun): /usr/sbin/groupdel
211 Requires(postun): /usr/sbin/userdel
212 Requires(pre): /bin/id
213 Requires(pre): /usr/bin/getgid
214 Requires(pre): /usr/sbin/groupadd
215 Requires(pre): /usr/sbin/useradd
216 Requires: glib2 >= 1:2.12
217 %{?with_libnfs:Requires: libnfs >= 1.9.3}
218 Requires: libssh2 >= 1.2.8
219 Provides: group(qemu)
221 Obsoletes: qemu-kvm-common
222 Conflicts: qemu < 1.0-2
225 QEMU is a generic and open source processor emulator which achieves a
226 good emulation speed by using dynamic translation.
228 This package provides the common files needed by all QEMU targets.
230 %description common -l pl.UTF-8
231 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
232 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
234 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
238 Summary: QEMU command line tool for manipulating disk images
239 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
240 Group: Development/Tools
241 Obsoletes: qemu-kvm-img
242 Conflicts: qemu < 1.0-2
245 This package provides a command line tool for manipulating disk
248 %description img -l pl.UTF-8
249 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
253 Summary: QEMU user mode emulation of qemu targets
254 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
255 Group: Development/Tools
256 Requires: %{name}-common = %{version}-%{release}
257 Obsoletes: qemu-kvm-user
260 QEMU is a generic and open source processor emulator which achieves a
261 good emulation speed by using dynamic translation.
263 This package provides the user mode emulation of QEMU targets.
265 %description user -l pl.UTF-8
266 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
267 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
269 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
271 %package system-aarch64
272 Summary: QEMU system emulator for AArch64
273 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
274 Group: Development/Tools
275 Requires: %{name}-common = %{version}-%{release}
277 Obsoletes: qemu-kvm-system-aarch64
279 %description system-aarch64
280 QEMU is a generic and open source processor emulator which achieves a
281 good emulation speed by using dynamic translation.
283 This package provides the system emulator with AArch64 CPU.
285 %description system-aarch64 -l pl.UTF-8
286 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
287 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
289 Ten pakiet zawiera emulator systemu z procesorem AArch64.
291 %package system-alpha
292 Summary: QEMU system emulator for Alpha
293 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
294 Group: Development/Tools
295 Requires: %{name}-common = %{version}-%{release}
297 Obsoletes: qemu-kvm-system-alpha
299 %description system-alpha
300 QEMU is a generic and open source processor emulator which achieves a
301 good emulation speed by using dynamic translation.
303 This package provides the system emulator with Alpha CPU.
305 %description system-alpha -l pl.UTF-8
306 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
307 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
309 Ten pakiet zawiera emulator systemu z procesorem Alpha.
312 Summary: QEMU system emulator for ARM
313 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
314 Group: Development/Tools
315 Requires: %{name}-common = %{version}-%{release}
317 Obsoletes: qemu-kvm-system-arm
319 %description system-arm
320 QEMU is a generic and open source processor emulator which achieves a
321 good emulation speed by using dynamic translation.
323 This package provides the system emulator for ARM.
325 %description system-arm -l pl.UTF-8
326 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
327 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
329 Ten pakiet zawiera emulator systemu z procesorem ARM.
332 Summary: QEMU system emulator for CRIS
333 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
334 Group: Development/Tools
335 Requires: %{name}-common = %{version}-%{release}
337 Obsoletes: qemu-kvm-system-cris
339 %description system-cris
340 QEMU is a generic and open source processor emulator which achieves a
341 good emulation speed by using dynamic translation.
343 This package provides the system emulator with CRIS CPU.
345 %description system-cris -l pl.UTF-8
346 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
347 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
349 Ten pakiet zawiera emulator systemu z procesorem CRIS.
352 Summary: QEMU system emulator for LM32
353 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
354 Group: Development/Tools
355 Requires: %{name}-common = %{version}-%{release}
357 Obsoletes: qemu-kvm-system-lm32
359 %description system-lm32
360 QEMU is a generic and open source processor emulator which achieves a
361 good emulation speed by using dynamic translation.
363 This package provides the system emulator with LM32 CPU.
365 %description system-lm32 -l pl.UTF-8
366 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
367 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
369 Ten pakiet zawiera emulator systemu z procesorem LM32.
372 Summary: QEMU system emulator for m68k
373 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
374 Group: Development/Tools
375 Requires: %{name}-common = %{version}-%{release}
377 Obsoletes: qemu-kvm-system-m68k
379 %description system-m68k
380 QEMU is a generic and open source processor emulator which achieves a
381 good emulation speed by using dynamic translation.
383 This package provides the system emulator with m68k CPU.
385 %description system-m68k -l pl.UTF-8
386 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
387 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
389 Ten pakiet zawiera emulator systemu z procesorem m68k.
391 %package system-microblaze
392 Summary: QEMU system emulator for MicroBlaze
393 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
394 Group: Development/Tools
395 Requires: %{name}-common = %{version}-%{release}
397 Obsoletes: qemu-kvm-system-microblaze
399 %description system-microblaze
400 QEMU is a generic and open source processor emulator which achieves a
401 good emulation speed by using dynamic translation.
403 This package provides the system emulator with MicroBlaze CPU.
405 %description system-microblaze -l pl.UTF-8
406 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
407 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
409 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
412 Summary: QEMU system emulator for MIPS
413 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
414 Group: Development/Tools
415 Requires: %{name}-common = %{version}-%{release}
417 Obsoletes: qemu-kvm-system-mips
419 %description system-mips
420 QEMU is a generic and open source processor emulator which achieves a
421 good emulation speed by using dynamic translation.
423 This package provides the system emulator with MIPS CPU.
425 %description system-mips -l pl.UTF-8
426 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
427 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
429 Ten pakiet zawiera emulator systemu z procesorem MIPS.
431 %package system-moxie
432 Summary: QEMU system emulator for Moxie
433 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
434 Group: Development/Tools
435 Requires: %{name}-common = %{version}-%{release}
438 %description system-moxie
439 QEMU is a generic and open source processor emulator which achieves a
440 good emulation speed by using dynamic translation.
442 This package provides the system emulator with Moxie CPU.
444 %description system-moxie -l pl.UTF-8
445 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
446 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
448 Ten pakiet zawiera emulator systemu z procesorem Moxie.
451 Summary: QEMU system emulator for OpenRISC
452 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
453 Group: Development/Tools
454 Requires: %{name}-common = %{version}-%{release}
456 Obsoletes: qemu-kvm-system-or32
458 %description system-or32
459 QEMU is a generic and open source processor emulator which achieves a
460 good emulation speed by using dynamic translation.
462 This package provides the system emulator with OpenRISC CPU.
464 %description system-or32 -l pl.UTF-8
465 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
466 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
468 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
471 Summary: QEMU system emulator for PowerPC
472 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
473 Group: Development/Tools
474 Requires: %{name}-common = %{version}-%{release}
476 Obsoletes: qemu-kvm-system-ppc
478 %description system-ppc
479 QEMU is a generic and open source processor emulator which achieves a
480 good emulation speed by using dynamic translation.
482 This package provides the system emulator with PowerPC CPU.
484 %description system-ppc -l pl.UTF-8
485 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
486 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
488 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
490 %package system-s390x
491 Summary: QEMU system emulator for S390
492 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
493 Group: Development/Tools
494 Requires: %{name}-common = %{version}-%{release}
496 Obsoletes: qemu-kvm-system-s390x
498 %description system-s390x
499 QEMU is a generic and open source processor emulator which achieves a
500 good emulation speed by using dynamic translation.
502 This package provides the system emulator with S390 CPU.
504 %description system-s390x -l pl.UTF-8
505 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
506 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
508 Ten pakiet zawiera emulator systemu z procesorem S390.
511 Summary: QEMU system emulator for SH4
512 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
513 Group: Development/Tools
514 Requires: %{name}-common = %{version}-%{release}
516 Obsoletes: qemu-kvm-system-sh4
518 %description system-sh4
519 QEMU is a generic and open source processor emulator which achieves a
520 good emulation speed by using dynamic translation.
522 This package provides the system emulator with SH4 CPU.
524 %description system-sh4 -l pl.UTF-8
525 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
526 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
528 Ten pakiet zawiera emulator systemu z procesorem SH4.
530 %package system-sparc
531 Summary: QEMU system emulator for SPARC
532 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
533 Group: Development/Tools
534 Requires: %{name}-common = %{version}-%{release}
536 Obsoletes: qemu-kvm-system-sparc
538 %description system-sparc
539 QEMU is a generic and open source processor emulator which achieves a
540 good emulation speed by using dynamic translation.
542 This package provides the system emulator with SPARC/SPARC64 CPU.
544 %description system-sparc -l pl.UTF-8
545 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
546 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
548 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
550 %package system-tricore
551 Summary: QEMU system emulator for TriCore
552 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
553 Group: Development/Tools
554 Requires: %{name}-common = %{version}-%{release}
557 %description system-tricore
558 QEMU is a generic and open source processor emulator which achieves a
559 good emulation speed by using dynamic translation.
561 This package provides the system emulator with TriCore CPU.
563 %description system-sparc -l pl.UTF-8
564 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
565 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
567 Ten pakiet zawiera emulator systemu z procesorem TriCore.
569 %package system-unicore32
570 Summary: QEMU system emulator for UniCore32
571 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
572 Group: Development/Tools
573 Requires: %{name}-common = %{version}-%{release}
575 Obsoletes: qemu-kvm-system-unicore32
577 %description system-unicore32
578 QEMU is a generic and open source processor emulator which achieves a
579 good emulation speed by using dynamic translation.
581 This package provides the system emulator with UniCore32 CPU.
583 %description system-unicore32 -l pl.UTF-8
584 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
585 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
587 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
590 Summary: QEMU system emulator for x86
591 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
592 Group: Development/Tools
593 Requires: %{name}-common = %{version}-%{release}
594 %{?with_system_seabios:Requires: seabios}
597 Obsoletes: qemu-kvm-system-x86
599 %description system-x86
600 QEMU is a generic and open source processor emulator which achieves a
601 good emulation speed by using dynamic translation.
603 %description system-x86 -l pl.UTF-8
604 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
605 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
607 %package system-xtensa
608 Summary: QEMU system emulator for Xtensa
609 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
610 Group: Development/Tools
611 Requires: %{name}-common = %{version}-%{release}
613 Obsoletes: qemu-kvm-system-xtensa
615 %description system-xtensa
616 QEMU is a generic and open source processor emulator which achieves a
617 good emulation speed by using dynamic translation.
619 This package provides the system emulator with Xtensa CPU.
621 %description system-xtensa -l pl.UTF-8
622 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
623 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
625 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
628 Summary: QEMU guest agent
629 Summary(pl.UTF-8): Agent gościa QEMU
631 Requires: glib2 >= 1:2.12
632 Obsoletes: qemu-kvm-guest-agent
634 %description guest-agent
635 QEMU is a generic and open source processor emulator which achieves a
636 good emulation speed by using dynamic translation.
638 This package provides an agent to run inside guests, which
639 communicates with the host over a virtio-serial channel named
640 "org.qemu.guest_agent.0".
642 This package does not need to be installed on the host OS.
644 %description guest-agent -l pl.UTF-8
645 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
646 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
648 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
649 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
650 "org.qemu.guest_agent.0".
652 Ten pakiet nie musi być zainstalowany w systemie hosta.
654 %package module-block-curl
655 Summary: QEMU module for 'curl' block devices
656 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
657 Group: Development/Tools
658 Requires: %{name}-common = %{version}-%{release}
660 %description module-block-curl
661 'curl' block device support for QEMU.
663 %description module-block-curl -l pl.UTF-8
664 Moduł QEMU dla urządeń blokowych typu 'curl'.
666 %package module-block-gluster
667 Summary: QEMU module for 'gluster' block devices
668 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
669 Group: Development/Tools
670 Requires: %{name}-common = %{version}-%{release}
671 Requires: glusterfs-libs >= 3.4
673 %description module-block-gluster
674 'gluster' block device support for QEMU.
676 %description module-block-gluster -l pl.UTF-8
677 Moduł QEMU dla urządeń blokowych typu 'gluster'.
679 %package module-block-iscsi
680 Summary: QEMU module for 'iscsi' block devices
681 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
682 Group: Development/Tools
683 Requires: %{name}-common = %{version}-%{release}
684 Requires: libiscsi >= 1.9.0
686 %description module-block-iscsi
687 'iscsi' block device support for QEMU.
689 %description module-block-iscsi -l pl.UTF-8
690 Moduł QEMU dla urządeń blokowych typu 'iscsi'.
692 %package module-block-rbd
693 Summary: QEMU module for 'rbd' block devices
694 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
695 Group: Development/Tools
696 Requires: %{name}-common = %{version}-%{release}
698 %description module-block-rbd
699 'rbd' block device support for QEMU.
701 %description module-block-rbd -l pl.UTF-8
702 Moduł QEMU dla urządeń blokowych typu 'rbd'.
704 %package module-block-ssh
705 Summary: QEMU module for 'ssh' block devices
706 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
707 Group: Development/Tools
708 Requires: %{name}-common = %{version}-%{release}
710 %description module-block-ssh
711 'ssh' block device support for QEMU.
713 %description module-block-ssh -l pl.UTF-8
714 Moduł QEMU dla urządeń blokowych typu 'ssh'.
726 %{__mv} libcacard libcacard-use-system-lib
728 # workaround for conflict with alsa/error.h
729 ln -s ../error.h qapi/error.h
733 --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
734 --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
735 --prefix=%{_prefix} \
736 --libdir=%{_libdir} \
737 --libexecdir=%{_libexecdir} \
738 --sysconfdir=%{_sysconfdir} \
740 --host-cc="%{__cc}" \
743 %{__enable_disable bluetooth bluez} \
744 %{__enable_disable brlapi} \
750 %{__enable_disable glusterfs} \
751 %{__enable_disable iscsi libiscsi} \
752 %{__enable_disable ceph rbd} \
753 %{__enable_disable rdma} \
754 %{__enable_disable sdl} \
756 %{__enable_disable seccomp} \
757 %{__enable_disable spice} \
758 %{__enable_disable smartcard smartcard-nss} \
760 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
761 %{__enable_disable usbredir usb-redir} \
769 %{!?with_vte:--disable-vte} \
771 %{__enable_disable xen} \
774 %{__enable_disable libnfs} \
776 %{__enable_disable snappy} \
778 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
779 --interp-prefix=%{_libdir}/qemu/lib-%%M \
780 %if %{without gtk2} && %{without gtk3}
783 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
788 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
790 # rebuild patched vesa tables with additional widescreen modes.
791 %{__make} -C roms/vgabios stdvga-bios
793 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
796 rm -rf $RPM_BUILD_ROOT
797 install -d $RPM_BUILD_ROOT/usr/lib/binfmt.d \
798 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
799 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
802 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
803 DESTDIR=$RPM_BUILD_ROOT
805 install -d $RPM_BUILD_ROOT%{_sysconfdir}
806 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
811 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
813 %ifarch %{ix86} %{x8664}
814 install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
815 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
816 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
819 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
820 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
822 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
823 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
826 %ifnarch %{ix86} %{x8664}
835 %ifnarch sparc sparc64
842 test $i = dummy && continue
843 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i.conf
847 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
848 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
850 # install patched vesa tables with additional widescreen modes.
851 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
853 %if %{with system_seabios}
854 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
855 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
856 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
858 if [ -e "/usr/share/seabios/$bn" ] ; then
859 ln -sf "/usr/share/seabios/$bn" "$f"
864 %if %{with gtk2} || %{with gtk3}
865 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
866 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
873 rm -rf $RPM_BUILD_ROOT
877 %groupadd -g 276 qemu
878 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
881 if [ "$1" = "0" ]; then
888 %defattr(644,root,root,755)
890 %files common -f %{name}.lang
891 %defattr(644,root,root,755)
892 %doc LICENSE README qemu-doc.html qemu-tech.html qmp-commands.txt
893 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
894 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu/target-*.conf
895 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
896 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
897 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
898 %dir %{_sysconfdir}/qemu
899 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
900 %attr(755,root,root) %{_bindir}/qemu-nbd
901 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
902 %attr(755,root,root) %{_sbindir}/ksmctl
903 %attr(755,root,root) %{_sbindir}/ksmtuned
904 %{_mandir}/man1/qemu.1*
905 %{_mandir}/man1/virtfs-proxy-helper.1*
906 %{_mandir}/man8/qemu-nbd.8*
908 %dir %{_datadir}/qemu
909 %{_datadir}/%{name}/keymaps
910 %{_datadir}/%{name}/qemu-icon.bmp
911 %{_datadir}/%{name}/trace-events
913 # various bios images
914 # all should be probably moved to the right system subpackage
915 %{_datadir}/%{name}/QEMU,cgthree.bin
916 %{_datadir}/%{name}/QEMU,tcx.bin
917 %{_datadir}/%{name}/bamboo.dtb
918 %{_datadir}/%{name}/efi-e1000.rom
919 %{_datadir}/%{name}/efi-eepro100.rom
920 %{_datadir}/%{name}/efi-ne2k_pci.rom
921 %{_datadir}/%{name}/efi-pcnet.rom
922 %{_datadir}/%{name}/efi-rtl8139.rom
923 %{_datadir}/%{name}/efi-virtio.rom
924 %{_datadir}/%{name}/kvmvapic.bin
925 %{_datadir}/%{name}/linuxboot.bin
926 %{_datadir}/%{name}/multiboot.bin
927 %{_datadir}/%{name}/openbios-ppc
928 %{_datadir}/%{name}/openbios-sparc*
929 %{_datadir}/%{name}/palcode-clipper
930 %{_datadir}/%{name}/petalogix-ml605.dtb
931 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
932 %{_datadir}/%{name}/ppc_rom.bin
933 %{_datadir}/%{name}/pxe-e1000.rom
934 %{_datadir}/%{name}/pxe-eepro100.rom
935 %{_datadir}/%{name}/pxe-ne2k_pci.rom
936 %{_datadir}/%{name}/pxe-pcnet.rom
937 %{_datadir}/%{name}/pxe-rtl8139.rom
938 %{_datadir}/%{name}/pxe-virtio.rom
939 %{_datadir}/%{name}/qemu_logo_no_text.svg
940 %{_datadir}/%{name}/s390-ccw.img
941 %{_datadir}/%{name}/s390-zipl.rom
942 %{_datadir}/%{name}/sgabios.bin
943 %{_datadir}/%{name}/slof.bin
944 %{_datadir}/%{name}/spapr-rtas.bin
945 %{_datadir}/%{name}/vgabios-cirrus.bin
946 %{_datadir}/%{name}/vgabios-qxl.bin
947 %{_datadir}/%{name}/vgabios-stdvga.bin
948 %{_datadir}/%{name}/vgabios-vmware.bin
949 %{_datadir}/%{name}/vgabios.bin
951 %dir %{_libdir}/%{name}
954 %defattr(644,root,root,755)
955 %attr(755,root,root) %{_bindir}/qemu-img
956 %{_mandir}/man1/qemu-img.1*
959 %defattr(644,root,root,755)
960 /usr/lib/binfmt.d/qemu-*.conf
961 %attr(755,root,root) %{_bindir}/qemu-aarch64
962 %attr(755,root,root) %{_bindir}/qemu-alpha
963 %attr(755,root,root) %{_bindir}/qemu-arm
964 %attr(755,root,root) %{_bindir}/qemu-armeb
965 %attr(755,root,root) %{_bindir}/qemu-cris
966 %attr(755,root,root) %{_bindir}/qemu-i386
967 %attr(755,root,root) %{_bindir}/qemu-io
968 %attr(755,root,root) %{_bindir}/qemu-m68k
969 %attr(755,root,root) %{_bindir}/qemu-microblaze
970 %attr(755,root,root) %{_bindir}/qemu-microblazeel
971 %attr(755,root,root) %{_bindir}/qemu-mips
972 %attr(755,root,root) %{_bindir}/qemu-mipsel
973 %attr(755,root,root) %{_bindir}/qemu-mips64
974 %attr(755,root,root) %{_bindir}/qemu-mips64el
975 %attr(755,root,root) %{_bindir}/qemu-mipsn32
976 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
977 %attr(755,root,root) %{_bindir}/qemu-or32
978 %attr(755,root,root) %{_bindir}/qemu-ppc
979 %attr(755,root,root) %{_bindir}/qemu-ppc64
980 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
981 %attr(755,root,root) %{_bindir}/qemu-ppc64le
982 %attr(755,root,root) %{_bindir}/qemu-s390x
983 %attr(755,root,root) %{_bindir}/qemu-sh4
984 %attr(755,root,root) %{_bindir}/qemu-sh4eb
985 %attr(755,root,root) %{_bindir}/qemu-sparc
986 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
987 %attr(755,root,root) %{_bindir}/qemu-sparc64
988 %attr(755,root,root) %{_bindir}/qemu-unicore32
989 %attr(755,root,root) %{_bindir}/qemu-x86_64
991 %files system-aarch64
992 %defattr(644,root,root,755)
993 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
996 %defattr(644,root,root,755)
997 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1000 %defattr(644,root,root,755)
1001 %attr(755,root,root) %{_bindir}/qemu-system-arm
1004 %defattr(644,root,root,755)
1005 %attr(755,root,root) %{_bindir}/qemu-system-cris
1008 %defattr(644,root,root,755)
1009 %attr(755,root,root) %{_bindir}/qemu-system-lm32
1012 %defattr(644,root,root,755)
1013 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1015 %files system-microblaze
1016 %defattr(644,root,root,755)
1017 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1018 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1021 %defattr(644,root,root,755)
1022 %attr(755,root,root) %{_bindir}/qemu-system-mips
1023 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1024 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1025 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1028 %defattr(644,root,root,755)
1029 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1032 %defattr(644,root,root,755)
1033 %attr(755,root,root) %{_bindir}/qemu-system-or32
1036 %defattr(644,root,root,755)
1037 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1038 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1039 #%attr(755,root,root) %{_bindir}/qemu-system-ppc64le
1040 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
1041 %{_datadir}/%{name}/u-boot.e500
1044 %defattr(644,root,root,755)
1045 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1048 %defattr(644,root,root,755)
1049 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1050 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1053 %defattr(644,root,root,755)
1054 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1055 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1057 %files system-tricore
1058 %defattr(644,root,root,755)
1059 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1061 %files system-unicore32
1062 %defattr(644,root,root,755)
1063 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1066 %defattr(644,root,root,755)
1067 %attr(755,root,root) %{_bindir}/qemu-system-i386
1068 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1069 %ifarch %{ix86} %{x8664}
1070 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1071 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
1072 %attr(755,root,root) %{_bindir}/kvm_stat
1074 %{_datadir}/%{name}/bios.bin
1075 %{_datadir}/%{name}/bios-256k.bin
1076 %{_datadir}/%{name}/acpi-dsdt.aml
1077 %{_datadir}/%{name}/q35-acpi-dsdt.aml
1079 %files system-xtensa
1080 %defattr(644,root,root,755)
1081 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1082 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1085 %defattr(644,root,root,755)
1086 %attr(755,root,root) %{_bindir}/qemu-ga
1088 %files module-block-curl
1089 %defattr(644,root,root,755)
1090 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1092 %if %{with glusterfs}
1093 %files module-block-gluster
1094 %defattr(644,root,root,755)
1095 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1099 %files module-block-iscsi
1100 %defattr(644,root,root,755)
1101 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1105 %files module-block-rbd
1106 %defattr(644,root,root,755)
1107 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1110 %files module-block-ssh
1111 %defattr(644,root,root,755)
1112 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so