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 # Loads kvm kernel modules at boot
42 Source3: kvm-modules-load.conf
46 Source6: ksm.sysconfig
49 Source10: ksmtuned.conf
50 Patch0: %{name}-cflags.patch
51 Patch1: vgabios-widescreens.patch
52 Patch2: %{name}-whitelist.patch
53 Patch3: %{name}-system-libcacard.patch
54 Patch4: %{name}-xattr.patch
55 Patch5: libjpeg-boolean.patch
56 Patch6: CVE-2015-3456.patch
57 # Proof of concept, for reference, do not remove
58 Patch400: %{name}-kde_virtual_workspaces_hack.patch
59 URL: http://www.qemu-project.org/
60 BuildRequires: OpenGL-GLX-devel
61 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
62 BuildRequires: alsa-lib-devel
63 BuildRequires: bcc >= 0.16.21-2
64 %{?with_bluetooth:BuildRequires: bluez-libs-devel}
65 %{?with_brlapi:BuildRequires: brlapi-devel}
66 BuildRequires: bzip2-devel
67 %{?with_ceph:BuildRequires: ceph-devel}
68 BuildRequires: curl-devel
69 BuildRequires: cyrus-sasl-devel >= 2
70 %{?with_esd:BuildRequires: esound-devel}
71 BuildRequires: glib2-devel >= 1:2.12
72 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
73 BuildRequires: gnutls-devel > 2.10.0
74 BuildRequires: libaio-devel
75 %{?with_smartcard:BuildRequires: libcacard-devel}
76 BuildRequires: libcap-devel
77 BuildRequires: libcap-ng-devel
78 BuildRequires: libfdt-devel
79 %{?with_rdma:BuildRequires: libibverbs-devel}
80 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
81 BuildRequires: libjpeg-devel
82 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
83 BuildRequires: libpng-devel
84 %{?with_rdma:BuildRequires: librdmacm-devel}
85 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.1.1}
86 BuildRequires: libssh2-devel >= 1.2.8
87 BuildRequires: libusb-devel >= 1.0.13
88 BuildRequires: libuuid-devel
89 %{?with_lttng:BuildRequires: lttng-ust-devel}
90 BuildRequires: lzo-devel >= 2
91 BuildRequires: ncurses-devel
92 %{?with_smartcard:BuildRequires: nss-devel >= 3.12.8}
93 BuildRequires: numactl-devel
94 BuildRequires: perl-Encode
95 BuildRequires: perl-tools-pod
96 BuildRequires: pixman-devel >= 0.21.8
97 BuildRequires: pkgconfig
98 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
99 BuildRequires: rpmbuild(macros) >= 1.644
100 %{?with_system_seabios:BuildRequires: seabios}
101 BuildRequires: sed >= 4.0
102 %{?with_snappy:BuildRequires: snappy-devel}
104 BuildRequires: spice-protocol >= 0.12.3
105 BuildRequires: spice-server-devel >= 0.12.0
107 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
108 BuildRequires: texi2html
109 BuildRequires: texinfo
110 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
111 %{?with_lttng:BuildRequires: userspace-rcu-devel}
112 BuildRequires: vde2-devel
114 %{?with_xen:BuildRequires: xen-devel >= 3.4}
115 BuildRequires: xfsprogs-devel
116 BuildRequires: xorg-lib-libX11-devel
117 BuildRequires: zlib-devel
119 BuildRequires: gtk+2-devel >= 2:2.18.0
120 %{?with_vte:BuildRequires: vte0-devel >= 0.24.0}
123 BuildRequires: gtk+3-devel >= 3.0.0
124 %{?with_vte:BuildRequires: vte2.90-devel >= 0.32.0}
126 Requires: %{name}-img = %{version}-%{release}
127 Requires: %{name}-system-aarch64 = %{version}-%{release}
128 Requires: %{name}-system-alpha = %{version}-%{release}
129 Requires: %{name}-system-arm = %{version}-%{release}
130 Requires: %{name}-system-cris = %{version}-%{release}
131 Requires: %{name}-system-lm32 = %{version}-%{release}
132 Requires: %{name}-system-m68k = %{version}-%{release}
133 Requires: %{name}-system-microblaze = %{version}-%{release}
134 Requires: %{name}-system-mips = %{version}-%{release}
135 Requires: %{name}-system-moxie = %{version}-%{release}
136 Requires: %{name}-system-or32 = %{version}-%{release}
137 Requires: %{name}-system-ppc = %{version}-%{release}
138 Requires: %{name}-system-s390x = %{version}-%{release}
139 Requires: %{name}-system-sh4 = %{version}-%{release}
140 Requires: %{name}-system-sparc = %{version}-%{release}
141 Requires: %{name}-system-tricore = %{version}-%{release}
142 Requires: %{name}-system-unicore32 = %{version}-%{release}
143 Requires: %{name}-system-x86 = %{version}-%{release}
144 Requires: %{name}-system-xtensa = %{version}-%{release}
145 Requires: %{name}-user = %{version}-%{release}
147 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
149 %define systempkg_req \
153 %if %{with seccomp} \
154 Requires: libseccomp >= 2.1.0 \
156 Requires: libusb >= 1.0.13 \
157 Requires: pixman >= 0.21.8 \
158 %if %{with usbredir} \
159 Requires: usbredir >= 0.6 \
162 Requires: gtk+2 >= 2:2.18.0 \
163 %{?with_vte:Requires: vte0 >= 0.24.0} \
166 Requires: gtk+3 >= 3.0.0 \
167 %{?with_vte:Requires: vte2.90 >= 0.32.0} \
170 # don't strip/chrpath anything in there; these are boot images, roms etc
171 %define _noautostrip .*%{_datadir}/qemu/.*
172 %define _noautochrpath .*%{_datadir}/qemu/.*
175 QEMU is a FAST! processor emulator. By using dynamic translation it
176 achieves a reasonnable speed while being easy to port on new host
177 CPUs. QEMU has two operating modes:
179 - User mode emulation. In this mode, QEMU can launch Linux processes
180 compiled for one CPU on another CPU. Linux system calls are converted
181 because of endianness and 32/64 bit mismatches. Wine (Windows
182 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
184 - Full system emulation. In this mode, QEMU emulates a full system,
185 including a processor and various peripherials. It can also be used to
186 provide virtual hosting of several virtual PC on a single server.
188 %description -l pl.UTF-8
189 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
190 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
191 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
193 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
194 procesy linuksowe skompilowane dla jednego procesora na innym
195 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
196 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
197 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
200 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
201 włączając w to procesor i różne urządzenia peryferyjne. Może być także
202 używane do wirtualnego hostowania kilku wirtualnych pecetów na
203 pojedynczym serwerze.
206 Summary: QEMU common files needed by all QEMU targets
207 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
208 Group: Development/Tools
209 Requires(postun): /usr/sbin/groupdel
210 Requires(postun): /usr/sbin/userdel
211 Requires(pre): /bin/id
212 Requires(pre): /usr/bin/getgid
213 Requires(pre): /usr/sbin/groupadd
214 Requires(pre): /usr/sbin/useradd
215 Requires: glib2 >= 1:2.12
216 %{?with_libnfs:Requires: libnfs >= 1.9.3}
217 Requires: libssh2 >= 1.2.8
218 Provides: group(qemu)
220 Obsoletes: qemu-kvm-common
221 Conflicts: qemu < 1.0-2
224 QEMU is a generic and open source processor emulator which achieves a
225 good emulation speed by using dynamic translation.
227 This package provides the common files needed by all QEMU targets.
229 %description common -l pl.UTF-8
230 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
231 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
233 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
237 Summary: QEMU command line tool for manipulating disk images
238 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
239 Group: Development/Tools
240 Obsoletes: qemu-kvm-img
241 Conflicts: qemu < 1.0-2
244 This package provides a command line tool for manipulating disk
247 %description img -l pl.UTF-8
248 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
252 Summary: QEMU user mode emulation of qemu targets
253 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
254 Group: Development/Tools
255 Requires: %{name}-common = %{version}-%{release}
256 Obsoletes: qemu-kvm-user
259 QEMU is a generic and open source processor emulator which achieves a
260 good emulation speed by using dynamic translation.
262 This package provides the user mode emulation of QEMU targets.
264 %description user -l pl.UTF-8
265 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
266 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
268 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
270 %package system-aarch64
271 Summary: QEMU system emulator for AArch64
272 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
273 Group: Development/Tools
274 Requires: %{name}-common = %{version}-%{release}
276 Obsoletes: qemu-kvm-system-aarch64
278 %description system-aarch64
279 QEMU is a generic and open source processor emulator which achieves a
280 good emulation speed by using dynamic translation.
282 This package provides the system emulator with AArch64 CPU.
284 %description system-aarch64 -l pl.UTF-8
285 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
286 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
288 Ten pakiet zawiera emulator systemu z procesorem AArch64.
290 %package system-alpha
291 Summary: QEMU system emulator for Alpha
292 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
293 Group: Development/Tools
294 Requires: %{name}-common = %{version}-%{release}
296 Obsoletes: qemu-kvm-system-alpha
298 %description system-alpha
299 QEMU is a generic and open source processor emulator which achieves a
300 good emulation speed by using dynamic translation.
302 This package provides the system emulator with Alpha CPU.
304 %description system-alpha -l pl.UTF-8
305 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
306 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
308 Ten pakiet zawiera emulator systemu z procesorem Alpha.
311 Summary: QEMU system emulator for ARM
312 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
313 Group: Development/Tools
314 Requires: %{name}-common = %{version}-%{release}
316 Obsoletes: qemu-kvm-system-arm
318 %description system-arm
319 QEMU is a generic and open source processor emulator which achieves a
320 good emulation speed by using dynamic translation.
322 This package provides the system emulator for ARM.
324 %description system-arm -l pl.UTF-8
325 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
326 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
328 Ten pakiet zawiera emulator systemu z procesorem ARM.
331 Summary: QEMU system emulator for CRIS
332 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
333 Group: Development/Tools
334 Requires: %{name}-common = %{version}-%{release}
336 Obsoletes: qemu-kvm-system-cris
338 %description system-cris
339 QEMU is a generic and open source processor emulator which achieves a
340 good emulation speed by using dynamic translation.
342 This package provides the system emulator with CRIS CPU.
344 %description system-cris -l pl.UTF-8
345 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
346 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
348 Ten pakiet zawiera emulator systemu z procesorem CRIS.
351 Summary: QEMU system emulator for LM32
352 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
353 Group: Development/Tools
354 Requires: %{name}-common = %{version}-%{release}
356 Obsoletes: qemu-kvm-system-lm32
358 %description system-lm32
359 QEMU is a generic and open source processor emulator which achieves a
360 good emulation speed by using dynamic translation.
362 This package provides the system emulator with LM32 CPU.
364 %description system-lm32 -l pl.UTF-8
365 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
366 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
368 Ten pakiet zawiera emulator systemu z procesorem LM32.
371 Summary: QEMU system emulator for m68k
372 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
373 Group: Development/Tools
374 Requires: %{name}-common = %{version}-%{release}
376 Obsoletes: qemu-kvm-system-m68k
378 %description system-m68k
379 QEMU is a generic and open source processor emulator which achieves a
380 good emulation speed by using dynamic translation.
382 This package provides the system emulator with m68k CPU.
384 %description system-m68k -l pl.UTF-8
385 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
386 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
388 Ten pakiet zawiera emulator systemu z procesorem m68k.
390 %package system-microblaze
391 Summary: QEMU system emulator for MicroBlaze
392 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
393 Group: Development/Tools
394 Requires: %{name}-common = %{version}-%{release}
396 Obsoletes: qemu-kvm-system-microblaze
398 %description system-microblaze
399 QEMU is a generic and open source processor emulator which achieves a
400 good emulation speed by using dynamic translation.
402 This package provides the system emulator with MicroBlaze CPU.
404 %description system-microblaze -l pl.UTF-8
405 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
406 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
408 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
411 Summary: QEMU system emulator for MIPS
412 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
413 Group: Development/Tools
414 Requires: %{name}-common = %{version}-%{release}
416 Obsoletes: qemu-kvm-system-mips
418 %description system-mips
419 QEMU is a generic and open source processor emulator which achieves a
420 good emulation speed by using dynamic translation.
422 This package provides the system emulator with MIPS CPU.
424 %description system-mips -l pl.UTF-8
425 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
426 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
428 Ten pakiet zawiera emulator systemu z procesorem MIPS.
430 %package system-moxie
431 Summary: QEMU system emulator for Moxie
432 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
433 Group: Development/Tools
434 Requires: %{name}-common = %{version}-%{release}
437 %description system-moxie
438 QEMU is a generic and open source processor emulator which achieves a
439 good emulation speed by using dynamic translation.
441 This package provides the system emulator with Moxie CPU.
443 %description system-moxie -l pl.UTF-8
444 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
445 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
447 Ten pakiet zawiera emulator systemu z procesorem Moxie.
450 Summary: QEMU system emulator for OpenRISC
451 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
452 Group: Development/Tools
453 Requires: %{name}-common = %{version}-%{release}
455 Obsoletes: qemu-kvm-system-or32
457 %description system-or32
458 QEMU is a generic and open source processor emulator which achieves a
459 good emulation speed by using dynamic translation.
461 This package provides the system emulator with OpenRISC CPU.
463 %description system-or32 -l pl.UTF-8
464 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
465 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
467 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
470 Summary: QEMU system emulator for PowerPC
471 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
472 Group: Development/Tools
473 Requires: %{name}-common = %{version}-%{release}
475 Obsoletes: qemu-kvm-system-ppc
477 %description system-ppc
478 QEMU is a generic and open source processor emulator which achieves a
479 good emulation speed by using dynamic translation.
481 This package provides the system emulator with PowerPC CPU.
483 %description system-ppc -l pl.UTF-8
484 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
485 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
487 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
489 %package system-s390x
490 Summary: QEMU system emulator for S390
491 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
492 Group: Development/Tools
493 Requires: %{name}-common = %{version}-%{release}
495 Obsoletes: qemu-kvm-system-s390x
497 %description system-s390x
498 QEMU is a generic and open source processor emulator which achieves a
499 good emulation speed by using dynamic translation.
501 This package provides the system emulator with S390 CPU.
503 %description system-s390x -l pl.UTF-8
504 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
505 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
507 Ten pakiet zawiera emulator systemu z procesorem S390.
510 Summary: QEMU system emulator for SH4
511 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
512 Group: Development/Tools
513 Requires: %{name}-common = %{version}-%{release}
515 Obsoletes: qemu-kvm-system-sh4
517 %description system-sh4
518 QEMU is a generic and open source processor emulator which achieves a
519 good emulation speed by using dynamic translation.
521 This package provides the system emulator with SH4 CPU.
523 %description system-sh4 -l pl.UTF-8
524 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
525 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
527 Ten pakiet zawiera emulator systemu z procesorem SH4.
529 %package system-sparc
530 Summary: QEMU system emulator for SPARC
531 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
532 Group: Development/Tools
533 Requires: %{name}-common = %{version}-%{release}
535 Obsoletes: qemu-kvm-system-sparc
537 %description system-sparc
538 QEMU is a generic and open source processor emulator which achieves a
539 good emulation speed by using dynamic translation.
541 This package provides the system emulator with SPARC/SPARC64 CPU.
543 %description system-sparc -l pl.UTF-8
544 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
545 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
547 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
549 %package system-tricore
550 Summary: QEMU system emulator for TriCore
551 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
552 Group: Development/Tools
553 Requires: %{name}-common = %{version}-%{release}
556 %description system-tricore
557 QEMU is a generic and open source processor emulator which achieves a
558 good emulation speed by using dynamic translation.
560 This package provides the system emulator with TriCore CPU.
562 %description system-sparc -l pl.UTF-8
563 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
564 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
566 Ten pakiet zawiera emulator systemu z procesorem TriCore.
568 %package system-unicore32
569 Summary: QEMU system emulator for UniCore32
570 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
571 Group: Development/Tools
572 Requires: %{name}-common = %{version}-%{release}
574 Obsoletes: qemu-kvm-system-unicore32
576 %description system-unicore32
577 QEMU is a generic and open source processor emulator which achieves a
578 good emulation speed by using dynamic translation.
580 This package provides the system emulator with UniCore32 CPU.
582 %description system-unicore32 -l pl.UTF-8
583 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
584 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
586 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
589 Summary: QEMU system emulator for x86
590 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
591 Group: Development/Tools
592 Requires: %{name}-common = %{version}-%{release}
593 %{?with_system_seabios:Requires: seabios}
596 Obsoletes: qemu-kvm-system-x86
598 %description system-x86
599 QEMU is a generic and open source processor emulator which achieves a
600 good emulation speed by using dynamic translation.
602 %description system-x86 -l pl.UTF-8
603 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
604 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
606 %package system-xtensa
607 Summary: QEMU system emulator for Xtensa
608 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
609 Group: Development/Tools
610 Requires: %{name}-common = %{version}-%{release}
612 Obsoletes: qemu-kvm-system-xtensa
614 %description system-xtensa
615 QEMU is a generic and open source processor emulator which achieves a
616 good emulation speed by using dynamic translation.
618 This package provides the system emulator with Xtensa CPU.
620 %description system-xtensa -l pl.UTF-8
621 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
622 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
624 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
627 Summary: QEMU guest agent
628 Summary(pl.UTF-8): Agent gościa QEMU
630 Requires: glib2 >= 1:2.12
631 Obsoletes: qemu-kvm-guest-agent
633 %description guest-agent
634 QEMU is a generic and open source processor emulator which achieves a
635 good emulation speed by using dynamic translation.
637 This package provides an agent to run inside guests, which
638 communicates with the host over a virtio-serial channel named
639 "org.qemu.guest_agent.0".
641 This package does not need to be installed on the host OS.
643 %description guest-agent -l pl.UTF-8
644 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
645 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
647 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
648 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
649 "org.qemu.guest_agent.0".
651 Ten pakiet nie musi być zainstalowany w systemie hosta.
653 %package module-block-curl
654 Summary: QEMU module for 'curl' block devices
655 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
656 Group: Development/Tools
657 Requires: %{name}-common = %{version}-%{release}
659 %description module-block-curl
660 'curl' block device support for QEMU.
662 %description module-block-curl -l pl.UTF-8
663 Moduł QEMU dla urządeń blokowych typu 'curl'.
665 %package module-block-gluster
666 Summary: QEMU module for 'gluster' block devices
667 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
668 Group: Development/Tools
669 Requires: %{name}-common = %{version}-%{release}
670 Requires: glusterfs-libs >= 3.4
672 %description module-block-gluster
673 'gluster' block device support for QEMU.
675 %description module-block-gluster -l pl.UTF-8
676 Moduł QEMU dla urządeń blokowych typu 'gluster'.
678 %package module-block-iscsi
679 Summary: QEMU module for 'iscsi' block devices
680 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
681 Group: Development/Tools
682 Requires: %{name}-common = %{version}-%{release}
683 Requires: libiscsi >= 1.9.0
685 %description module-block-iscsi
686 'iscsi' block device support for QEMU.
688 %description module-block-iscsi -l pl.UTF-8
689 Moduł QEMU dla urządeń blokowych typu 'iscsi'.
691 %package module-block-rbd
692 Summary: QEMU module for 'rbd' block devices
693 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
694 Group: Development/Tools
695 Requires: %{name}-common = %{version}-%{release}
697 %description module-block-rbd
698 'rbd' block device support for QEMU.
700 %description module-block-rbd -l pl.UTF-8
701 Moduł QEMU dla urządeń blokowych typu 'rbd'.
703 %package module-block-ssh
704 Summary: QEMU module for 'ssh' block devices
705 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
706 Group: Development/Tools
707 Requires: %{name}-common = %{version}-%{release}
709 %description module-block-ssh
710 'ssh' block device support for QEMU.
712 %description module-block-ssh -l pl.UTF-8
713 Moduł QEMU dla urządeń blokowych typu 'ssh'.
725 %{__mv} libcacard libcacard-use-system-lib
727 # workaround for conflict with alsa/error.h
728 ln -s ../error.h qapi/error.h
732 --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
733 --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
734 --prefix=%{_prefix} \
735 --libdir=%{_libdir} \
736 --libexecdir=%{_libexecdir} \
737 --sysconfdir=%{_sysconfdir} \
739 --host-cc="%{__cc}" \
742 %{__enable_disable bluetooth bluez} \
743 %{__enable_disable brlapi} \
749 %{__enable_disable glusterfs} \
750 %{__enable_disable iscsi libiscsi} \
751 %{__enable_disable ceph rbd} \
752 %{__enable_disable rdma} \
753 %{__enable_disable sdl} \
755 %{__enable_disable seccomp} \
756 %{__enable_disable spice} \
757 %{__enable_disable smartcard smartcard-nss} \
759 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
760 %{__enable_disable usbredir usb-redir} \
768 %{!?with_vte:--disable-vte} \
770 %{__enable_disable xen} \
773 %{__enable_disable libnfs} \
775 %{__enable_disable snappy} \
777 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
778 --interp-prefix=%{_libdir}/qemu/lib-%%M \
779 %if %{without gtk2} && %{without gtk3}
782 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
787 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
789 # rebuild patched vesa tables with additional widescreen modes.
790 %{__make} -C roms/vgabios stdvga-bios
792 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
795 rm -rf $RPM_BUILD_ROOT
796 install -d $RPM_BUILD_ROOT/usr/lib/binfmt.d \
797 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
798 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
801 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
802 DESTDIR=$RPM_BUILD_ROOT
804 install -d $RPM_BUILD_ROOT%{_sysconfdir}
805 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
810 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
812 %ifarch %{ix86} %{x8664}
813 install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
814 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
815 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
818 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
819 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
821 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
822 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
825 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
826 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
828 # install patched vesa tables with additional widescreen modes.
829 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
831 %if %{with system_seabios}
832 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
833 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
834 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
836 if [ -e "/usr/share/seabios/$bn" ] ; then
837 ln -sf "/usr/share/seabios/$bn" "$f"
842 %if %{with gtk2} || %{with gtk3}
843 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
844 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
851 rm -rf $RPM_BUILD_ROOT
855 %groupadd -g 276 qemu
856 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
859 if [ "$1" = "0" ]; then
866 %defattr(644,root,root,755)
868 %files common -f %{name}.lang
869 %defattr(644,root,root,755)
870 %doc LICENSE README qemu-doc.html qemu-tech.html qmp-commands.txt
871 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
872 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu/target-*.conf
873 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
874 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
875 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
876 %dir %{_sysconfdir}/qemu
877 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
878 %attr(755,root,root) %{_bindir}/qemu-nbd
879 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
880 %attr(755,root,root) %{_sbindir}/ksmctl
881 %attr(755,root,root) %{_sbindir}/ksmtuned
882 %{_mandir}/man1/qemu.1*
883 %{_mandir}/man1/virtfs-proxy-helper.1*
884 %{_mandir}/man8/qemu-nbd.8*
886 %dir %{_datadir}/qemu
887 %{_datadir}/%{name}/keymaps
888 %{_datadir}/%{name}/qemu-icon.bmp
889 %{_datadir}/%{name}/trace-events
891 # various bios images
892 # all should be probably moved to the right system subpackage
893 %{_datadir}/%{name}/QEMU,cgthree.bin
894 %{_datadir}/%{name}/QEMU,tcx.bin
895 %{_datadir}/%{name}/bamboo.dtb
896 %{_datadir}/%{name}/efi-e1000.rom
897 %{_datadir}/%{name}/efi-eepro100.rom
898 %{_datadir}/%{name}/efi-ne2k_pci.rom
899 %{_datadir}/%{name}/efi-pcnet.rom
900 %{_datadir}/%{name}/efi-rtl8139.rom
901 %{_datadir}/%{name}/efi-virtio.rom
902 %{_datadir}/%{name}/kvmvapic.bin
903 %{_datadir}/%{name}/linuxboot.bin
904 %{_datadir}/%{name}/multiboot.bin
905 %{_datadir}/%{name}/openbios-ppc
906 %{_datadir}/%{name}/openbios-sparc*
907 %{_datadir}/%{name}/palcode-clipper
908 %{_datadir}/%{name}/petalogix-ml605.dtb
909 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
910 %{_datadir}/%{name}/ppc_rom.bin
911 %{_datadir}/%{name}/pxe-e1000.rom
912 %{_datadir}/%{name}/pxe-eepro100.rom
913 %{_datadir}/%{name}/pxe-ne2k_pci.rom
914 %{_datadir}/%{name}/pxe-pcnet.rom
915 %{_datadir}/%{name}/pxe-rtl8139.rom
916 %{_datadir}/%{name}/pxe-virtio.rom
917 %{_datadir}/%{name}/qemu_logo_no_text.svg
918 %{_datadir}/%{name}/s390-ccw.img
919 %{_datadir}/%{name}/s390-zipl.rom
920 %{_datadir}/%{name}/sgabios.bin
921 %{_datadir}/%{name}/slof.bin
922 %{_datadir}/%{name}/spapr-rtas.bin
923 %{_datadir}/%{name}/vgabios-cirrus.bin
924 %{_datadir}/%{name}/vgabios-qxl.bin
925 %{_datadir}/%{name}/vgabios-stdvga.bin
926 %{_datadir}/%{name}/vgabios-vmware.bin
927 %{_datadir}/%{name}/vgabios.bin
929 %dir %{_libdir}/%{name}
932 %defattr(644,root,root,755)
933 %attr(755,root,root) %{_bindir}/qemu-img
934 %{_mandir}/man1/qemu-img.1*
937 %defattr(644,root,root,755)
938 %attr(755,root,root) %{_bindir}/qemu-aarch64
939 %attr(755,root,root) %{_bindir}/qemu-alpha
940 %attr(755,root,root) %{_bindir}/qemu-arm
941 %attr(755,root,root) %{_bindir}/qemu-armeb
942 %attr(755,root,root) %{_bindir}/qemu-cris
943 %attr(755,root,root) %{_bindir}/qemu-i386
944 %attr(755,root,root) %{_bindir}/qemu-io
945 %attr(755,root,root) %{_bindir}/qemu-m68k
946 %attr(755,root,root) %{_bindir}/qemu-microblaze
947 %attr(755,root,root) %{_bindir}/qemu-microblazeel
948 %attr(755,root,root) %{_bindir}/qemu-mips
949 %attr(755,root,root) %{_bindir}/qemu-mipsel
950 %attr(755,root,root) %{_bindir}/qemu-mips64
951 %attr(755,root,root) %{_bindir}/qemu-mips64el
952 %attr(755,root,root) %{_bindir}/qemu-mipsn32
953 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
954 %attr(755,root,root) %{_bindir}/qemu-or32
955 %attr(755,root,root) %{_bindir}/qemu-ppc
956 %attr(755,root,root) %{_bindir}/qemu-ppc64
957 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
958 %attr(755,root,root) %{_bindir}/qemu-ppc64le
959 %attr(755,root,root) %{_bindir}/qemu-s390x
960 %attr(755,root,root) %{_bindir}/qemu-sh4
961 %attr(755,root,root) %{_bindir}/qemu-sh4eb
962 %attr(755,root,root) %{_bindir}/qemu-sparc
963 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
964 %attr(755,root,root) %{_bindir}/qemu-sparc64
965 %attr(755,root,root) %{_bindir}/qemu-unicore32
966 %attr(755,root,root) %{_bindir}/qemu-x86_64
968 %files system-aarch64
969 %defattr(644,root,root,755)
970 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
973 %defattr(644,root,root,755)
974 %attr(755,root,root) %{_bindir}/qemu-system-alpha
977 %defattr(644,root,root,755)
978 %attr(755,root,root) %{_bindir}/qemu-system-arm
981 %defattr(644,root,root,755)
982 %attr(755,root,root) %{_bindir}/qemu-system-cris
985 %defattr(644,root,root,755)
986 %attr(755,root,root) %{_bindir}/qemu-system-lm32
989 %defattr(644,root,root,755)
990 %attr(755,root,root) %{_bindir}/qemu-system-m68k
992 %files system-microblaze
993 %defattr(644,root,root,755)
994 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
995 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
998 %defattr(644,root,root,755)
999 %attr(755,root,root) %{_bindir}/qemu-system-mips
1000 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1001 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1002 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1005 %defattr(644,root,root,755)
1006 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1009 %defattr(644,root,root,755)
1010 %attr(755,root,root) %{_bindir}/qemu-system-or32
1013 %defattr(644,root,root,755)
1014 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1015 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1016 #%attr(755,root,root) %{_bindir}/qemu-system-ppc64le
1017 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
1018 %{_datadir}/%{name}/u-boot.e500
1021 %defattr(644,root,root,755)
1022 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1025 %defattr(644,root,root,755)
1026 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1027 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1030 %defattr(644,root,root,755)
1031 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1032 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1034 %files system-tricore
1035 %defattr(644,root,root,755)
1036 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1038 %files system-unicore32
1039 %defattr(644,root,root,755)
1040 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1043 %defattr(644,root,root,755)
1044 %attr(755,root,root) %{_bindir}/qemu-system-i386
1045 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1046 %ifarch %{ix86} %{x8664}
1047 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1048 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
1049 %attr(755,root,root) %{_bindir}/kvm_stat
1051 %{_datadir}/%{name}/bios.bin
1052 %{_datadir}/%{name}/bios-256k.bin
1053 %{_datadir}/%{name}/acpi-dsdt.aml
1054 %{_datadir}/%{name}/q35-acpi-dsdt.aml
1056 %files system-xtensa
1057 %defattr(644,root,root,755)
1058 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1059 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1062 %defattr(644,root,root,755)
1063 %attr(755,root,root) %{_bindir}/qemu-ga
1065 %files module-block-curl
1066 %defattr(644,root,root,755)
1067 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1069 %if %{with glusterfs}
1070 %files module-block-gluster
1071 %defattr(644,root,root,755)
1072 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1076 %files module-block-iscsi
1077 %defattr(644,root,root,755)
1078 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1082 %files module-block-rbd
1083 %defattr(644,root,root,755)
1084 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1087 %files module-block-ssh
1088 %defattr(644,root,root,755)
1089 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so