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 Source12: 99-%{name}-guest-agent.rules
52 Patch0: %{name}-cflags.patch
53 Patch1: vgabios-widescreens.patch
54 Patch2: %{name}-whitelist.patch
55 Patch3: %{name}-system-libcacard.patch
56 Patch4: %{name}-xattr.patch
57 Patch5: libjpeg-boolean.patch
58 Patch6: CVE-2015-3456.patch
59 # Proof of concept, for reference, do not remove
60 Patch400: %{name}-kde_virtual_workspaces_hack.patch
61 URL: http://www.qemu-project.org/
62 BuildRequires: OpenGL-GLX-devel
63 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
64 BuildRequires: alsa-lib-devel
65 BuildRequires: bcc >= 0.16.21-2
66 %{?with_bluetooth:BuildRequires: bluez-libs-devel}
67 %{?with_brlapi:BuildRequires: brlapi-devel}
68 BuildRequires: bzip2-devel
69 %{?with_ceph:BuildRequires: ceph-devel}
70 BuildRequires: curl-devel
71 BuildRequires: cyrus-sasl-devel >= 2
72 %{?with_esd:BuildRequires: esound-devel}
73 BuildRequires: glib2-devel >= 1:2.12
74 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
75 BuildRequires: gnutls-devel > 2.10.0
76 BuildRequires: libaio-devel
77 %{?with_smartcard:BuildRequires: libcacard-devel}
78 BuildRequires: libcap-devel
79 BuildRequires: libcap-ng-devel
80 BuildRequires: libfdt-devel
81 %{?with_rdma:BuildRequires: libibverbs-devel}
82 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
83 BuildRequires: libjpeg-devel
84 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
85 BuildRequires: libpng-devel
86 %{?with_rdma:BuildRequires: librdmacm-devel}
87 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.1.1}
88 BuildRequires: libssh2-devel >= 1.2.8
89 BuildRequires: libusb-devel >= 1.0.13
90 BuildRequires: libuuid-devel
91 %{?with_lttng:BuildRequires: lttng-ust-devel}
92 BuildRequires: lzo-devel >= 2
93 BuildRequires: ncurses-devel
94 %{?with_smartcard:BuildRequires: nss-devel >= 3.12.8}
95 BuildRequires: numactl-devel
96 BuildRequires: perl-Encode
97 BuildRequires: perl-tools-pod
98 BuildRequires: pixman-devel >= 0.21.8
99 BuildRequires: pkgconfig
100 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
101 BuildRequires: rpmbuild(macros) >= 1.644
102 %{?with_system_seabios:BuildRequires: seabios}
103 BuildRequires: sed >= 4.0
104 %{?with_snappy:BuildRequires: snappy-devel}
106 BuildRequires: spice-protocol >= 0.12.3
107 BuildRequires: spice-server-devel >= 0.12.0
109 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
110 BuildRequires: texi2html
111 BuildRequires: texinfo
112 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
113 %{?with_lttng:BuildRequires: userspace-rcu-devel}
114 BuildRequires: vde2-devel
116 %{?with_xen:BuildRequires: xen-devel >= 3.4}
117 BuildRequires: xfsprogs-devel
118 BuildRequires: xorg-lib-libX11-devel
119 BuildRequires: zlib-devel
121 BuildRequires: gtk+2-devel >= 2:2.18.0
122 %{?with_vte:BuildRequires: vte0-devel >= 0.24.0}
125 BuildRequires: gtk+3-devel >= 3.0.0
126 %{?with_vte:BuildRequires: vte2.90-devel >= 0.32.0}
128 Requires: %{name}-img = %{version}-%{release}
129 Requires: %{name}-system-aarch64 = %{version}-%{release}
130 Requires: %{name}-system-alpha = %{version}-%{release}
131 Requires: %{name}-system-arm = %{version}-%{release}
132 Requires: %{name}-system-cris = %{version}-%{release}
133 Requires: %{name}-system-lm32 = %{version}-%{release}
134 Requires: %{name}-system-m68k = %{version}-%{release}
135 Requires: %{name}-system-microblaze = %{version}-%{release}
136 Requires: %{name}-system-mips = %{version}-%{release}
137 Requires: %{name}-system-moxie = %{version}-%{release}
138 Requires: %{name}-system-or32 = %{version}-%{release}
139 Requires: %{name}-system-ppc = %{version}-%{release}
140 Requires: %{name}-system-s390x = %{version}-%{release}
141 Requires: %{name}-system-sh4 = %{version}-%{release}
142 Requires: %{name}-system-sparc = %{version}-%{release}
143 Requires: %{name}-system-tricore = %{version}-%{release}
144 Requires: %{name}-system-unicore32 = %{version}-%{release}
145 Requires: %{name}-system-x86 = %{version}-%{release}
146 Requires: %{name}-system-xtensa = %{version}-%{release}
147 Requires: %{name}-user = %{version}-%{release}
149 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
151 %define systempkg_req \
155 %if %{with seccomp} \
156 Requires: libseccomp >= 2.1.0 \
158 Requires: libusb >= 1.0.13 \
159 Requires: pixman >= 0.21.8 \
160 %if %{with usbredir} \
161 Requires: usbredir >= 0.6 \
164 Requires: gtk+2 >= 2:2.18.0 \
165 %{?with_vte:Requires: vte0 >= 0.24.0} \
168 Requires: gtk+3 >= 3.0.0 \
169 %{?with_vte:Requires: vte2.90 >= 0.32.0} \
172 # don't strip/chrpath anything in there; these are boot images, roms etc
173 %define _noautostrip .*%{_datadir}/qemu/.*
174 %define _noautochrpath .*%{_datadir}/qemu/.*
177 QEMU is a FAST! processor emulator. By using dynamic translation it
178 achieves a reasonnable speed while being easy to port on new host
179 CPUs. QEMU has two operating modes:
181 - User mode emulation. In this mode, QEMU can launch Linux processes
182 compiled for one CPU on another CPU. Linux system calls are converted
183 because of endianness and 32/64 bit mismatches. Wine (Windows
184 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
186 - Full system emulation. In this mode, QEMU emulates a full system,
187 including a processor and various peripherials. It can also be used to
188 provide virtual hosting of several virtual PC on a single server.
190 %description -l pl.UTF-8
191 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
192 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
193 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
195 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
196 procesy linuksowe skompilowane dla jednego procesora na innym
197 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
198 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
199 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
202 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
203 włączając w to procesor i różne urządzenia peryferyjne. Może być także
204 używane do wirtualnego hostowania kilku wirtualnych pecetów na
205 pojedynczym serwerze.
208 Summary: QEMU common files needed by all QEMU targets
209 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
210 Group: Development/Tools
211 Requires(postun): /usr/sbin/groupdel
212 Requires(postun): /usr/sbin/userdel
213 Requires(pre): /bin/id
214 Requires(pre): /usr/bin/getgid
215 Requires(pre): /usr/sbin/groupadd
216 Requires(pre): /usr/sbin/useradd
217 Requires: glib2 >= 1:2.12
218 %{?with_libnfs:Requires: libnfs >= 1.9.3}
219 Requires: libssh2 >= 1.2.8
220 Provides: group(qemu)
222 Obsoletes: qemu-kvm-common
223 Conflicts: qemu < 1.0-2
226 QEMU is a generic and open source processor emulator which achieves a
227 good emulation speed by using dynamic translation.
229 This package provides the common files needed by all QEMU targets.
231 %description common -l pl.UTF-8
232 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
233 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
235 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
239 Summary: QEMU command line tool for manipulating disk images
240 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
241 Group: Development/Tools
242 Obsoletes: qemu-kvm-img
243 Conflicts: qemu < 1.0-2
246 This package provides a command line tool for manipulating disk
249 %description img -l pl.UTF-8
250 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
254 Summary: QEMU user mode emulation of qemu targets
255 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
256 Group: Development/Tools
257 Requires: %{name}-common = %{version}-%{release}
258 Obsoletes: qemu-kvm-user
261 QEMU is a generic and open source processor emulator which achieves a
262 good emulation speed by using dynamic translation.
264 This package provides the user mode emulation of QEMU targets.
266 %description user -l pl.UTF-8
267 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
268 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
270 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
272 %package system-aarch64
273 Summary: QEMU system emulator for AArch64
274 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
275 Group: Development/Tools
276 Requires: %{name}-common = %{version}-%{release}
278 Obsoletes: qemu-kvm-system-aarch64
280 %description system-aarch64
281 QEMU is a generic and open source processor emulator which achieves a
282 good emulation speed by using dynamic translation.
284 This package provides the system emulator with AArch64 CPU.
286 %description system-aarch64 -l pl.UTF-8
287 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
288 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
290 Ten pakiet zawiera emulator systemu z procesorem AArch64.
292 %package system-alpha
293 Summary: QEMU system emulator for Alpha
294 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
295 Group: Development/Tools
296 Requires: %{name}-common = %{version}-%{release}
298 Obsoletes: qemu-kvm-system-alpha
300 %description system-alpha
301 QEMU is a generic and open source processor emulator which achieves a
302 good emulation speed by using dynamic translation.
304 This package provides the system emulator with Alpha CPU.
306 %description system-alpha -l pl.UTF-8
307 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
308 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
310 Ten pakiet zawiera emulator systemu z procesorem Alpha.
313 Summary: QEMU system emulator for ARM
314 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
315 Group: Development/Tools
316 Requires: %{name}-common = %{version}-%{release}
318 Obsoletes: qemu-kvm-system-arm
320 %description system-arm
321 QEMU is a generic and open source processor emulator which achieves a
322 good emulation speed by using dynamic translation.
324 This package provides the system emulator for ARM.
326 %description system-arm -l pl.UTF-8
327 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
328 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
330 Ten pakiet zawiera emulator systemu z procesorem ARM.
333 Summary: QEMU system emulator for CRIS
334 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
335 Group: Development/Tools
336 Requires: %{name}-common = %{version}-%{release}
338 Obsoletes: qemu-kvm-system-cris
340 %description system-cris
341 QEMU is a generic and open source processor emulator which achieves a
342 good emulation speed by using dynamic translation.
344 This package provides the system emulator with CRIS CPU.
346 %description system-cris -l pl.UTF-8
347 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
348 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
350 Ten pakiet zawiera emulator systemu z procesorem CRIS.
353 Summary: QEMU system emulator for LM32
354 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
355 Group: Development/Tools
356 Requires: %{name}-common = %{version}-%{release}
358 Obsoletes: qemu-kvm-system-lm32
360 %description system-lm32
361 QEMU is a generic and open source processor emulator which achieves a
362 good emulation speed by using dynamic translation.
364 This package provides the system emulator with LM32 CPU.
366 %description system-lm32 -l pl.UTF-8
367 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
368 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
370 Ten pakiet zawiera emulator systemu z procesorem LM32.
373 Summary: QEMU system emulator for m68k
374 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
375 Group: Development/Tools
376 Requires: %{name}-common = %{version}-%{release}
378 Obsoletes: qemu-kvm-system-m68k
380 %description system-m68k
381 QEMU is a generic and open source processor emulator which achieves a
382 good emulation speed by using dynamic translation.
384 This package provides the system emulator with m68k CPU.
386 %description system-m68k -l pl.UTF-8
387 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
388 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
390 Ten pakiet zawiera emulator systemu z procesorem m68k.
392 %package system-microblaze
393 Summary: QEMU system emulator for MicroBlaze
394 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
395 Group: Development/Tools
396 Requires: %{name}-common = %{version}-%{release}
398 Obsoletes: qemu-kvm-system-microblaze
400 %description system-microblaze
401 QEMU is a generic and open source processor emulator which achieves a
402 good emulation speed by using dynamic translation.
404 This package provides the system emulator with MicroBlaze CPU.
406 %description system-microblaze -l pl.UTF-8
407 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
408 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
410 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
413 Summary: QEMU system emulator for MIPS
414 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
415 Group: Development/Tools
416 Requires: %{name}-common = %{version}-%{release}
418 Obsoletes: qemu-kvm-system-mips
420 %description system-mips
421 QEMU is a generic and open source processor emulator which achieves a
422 good emulation speed by using dynamic translation.
424 This package provides the system emulator with MIPS CPU.
426 %description system-mips -l pl.UTF-8
427 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
428 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
430 Ten pakiet zawiera emulator systemu z procesorem MIPS.
432 %package system-moxie
433 Summary: QEMU system emulator for Moxie
434 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
435 Group: Development/Tools
436 Requires: %{name}-common = %{version}-%{release}
439 %description system-moxie
440 QEMU is a generic and open source processor emulator which achieves a
441 good emulation speed by using dynamic translation.
443 This package provides the system emulator with Moxie CPU.
445 %description system-moxie -l pl.UTF-8
446 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
447 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
449 Ten pakiet zawiera emulator systemu z procesorem Moxie.
452 Summary: QEMU system emulator for OpenRISC
453 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
454 Group: Development/Tools
455 Requires: %{name}-common = %{version}-%{release}
457 Obsoletes: qemu-kvm-system-or32
459 %description system-or32
460 QEMU is a generic and open source processor emulator which achieves a
461 good emulation speed by using dynamic translation.
463 This package provides the system emulator with OpenRISC CPU.
465 %description system-or32 -l pl.UTF-8
466 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
467 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
469 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
472 Summary: QEMU system emulator for PowerPC
473 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
474 Group: Development/Tools
475 Requires: %{name}-common = %{version}-%{release}
477 Obsoletes: qemu-kvm-system-ppc
479 %description system-ppc
480 QEMU is a generic and open source processor emulator which achieves a
481 good emulation speed by using dynamic translation.
483 This package provides the system emulator with PowerPC CPU.
485 %description system-ppc -l pl.UTF-8
486 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
487 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
489 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
491 %package system-s390x
492 Summary: QEMU system emulator for S390
493 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
494 Group: Development/Tools
495 Requires: %{name}-common = %{version}-%{release}
497 Obsoletes: qemu-kvm-system-s390x
499 %description system-s390x
500 QEMU is a generic and open source processor emulator which achieves a
501 good emulation speed by using dynamic translation.
503 This package provides the system emulator with S390 CPU.
505 %description system-s390x -l pl.UTF-8
506 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
507 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
509 Ten pakiet zawiera emulator systemu z procesorem S390.
512 Summary: QEMU system emulator for SH4
513 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
514 Group: Development/Tools
515 Requires: %{name}-common = %{version}-%{release}
517 Obsoletes: qemu-kvm-system-sh4
519 %description system-sh4
520 QEMU is a generic and open source processor emulator which achieves a
521 good emulation speed by using dynamic translation.
523 This package provides the system emulator with SH4 CPU.
525 %description system-sh4 -l pl.UTF-8
526 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
527 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
529 Ten pakiet zawiera emulator systemu z procesorem SH4.
531 %package system-sparc
532 Summary: QEMU system emulator for SPARC
533 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
534 Group: Development/Tools
535 Requires: %{name}-common = %{version}-%{release}
537 Obsoletes: qemu-kvm-system-sparc
539 %description system-sparc
540 QEMU is a generic and open source processor emulator which achieves a
541 good emulation speed by using dynamic translation.
543 This package provides the system emulator with SPARC/SPARC64 CPU.
545 %description system-sparc -l pl.UTF-8
546 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
547 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
549 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
551 %package system-tricore
552 Summary: QEMU system emulator for TriCore
553 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
554 Group: Development/Tools
555 Requires: %{name}-common = %{version}-%{release}
558 %description system-tricore
559 QEMU is a generic and open source processor emulator which achieves a
560 good emulation speed by using dynamic translation.
562 This package provides the system emulator with TriCore CPU.
564 %description system-sparc -l pl.UTF-8
565 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
566 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
568 Ten pakiet zawiera emulator systemu z procesorem TriCore.
570 %package system-unicore32
571 Summary: QEMU system emulator for UniCore32
572 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
573 Group: Development/Tools
574 Requires: %{name}-common = %{version}-%{release}
576 Obsoletes: qemu-kvm-system-unicore32
578 %description system-unicore32
579 QEMU is a generic and open source processor emulator which achieves a
580 good emulation speed by using dynamic translation.
582 This package provides the system emulator with UniCore32 CPU.
584 %description system-unicore32 -l pl.UTF-8
585 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
586 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
588 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
591 Summary: QEMU system emulator for x86
592 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
593 Group: Development/Tools
594 Requires: %{name}-common = %{version}-%{release}
595 %{?with_system_seabios:Requires: seabios}
598 Obsoletes: qemu-kvm-system-x86
600 %description system-x86
601 QEMU is a generic and open source processor emulator which achieves a
602 good emulation speed by using dynamic translation.
604 %description system-x86 -l pl.UTF-8
605 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
606 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
608 %package system-xtensa
609 Summary: QEMU system emulator for Xtensa
610 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
611 Group: Development/Tools
612 Requires: %{name}-common = %{version}-%{release}
614 Obsoletes: qemu-kvm-system-xtensa
616 %description system-xtensa
617 QEMU is a generic and open source processor emulator which achieves a
618 good emulation speed by using dynamic translation.
620 This package provides the system emulator with Xtensa CPU.
622 %description system-xtensa -l pl.UTF-8
623 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
624 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
626 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
629 Summary: QEMU guest agent
630 Summary(pl.UTF-8): Agent gościa QEMU
632 Requires: glib2 >= 1:2.12
633 Obsoletes: qemu-kvm-guest-agent
635 %description guest-agent
636 QEMU is a generic and open source processor emulator which achieves a
637 good emulation speed by using dynamic translation.
639 This package provides an agent to run inside guests, which
640 communicates with the host over a virtio-serial channel named
641 "org.qemu.guest_agent.0".
643 This package does not need to be installed on the host OS.
645 %description guest-agent -l pl.UTF-8
646 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
647 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
649 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
650 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
651 "org.qemu.guest_agent.0".
653 Ten pakiet nie musi być zainstalowany w systemie hosta.
655 %package module-block-curl
656 Summary: QEMU module for 'curl' block devices
657 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
658 Group: Development/Tools
659 Requires: %{name}-common = %{version}-%{release}
661 %description module-block-curl
662 'curl' block device support for QEMU.
664 %description module-block-curl -l pl.UTF-8
665 Moduł QEMU dla urządeń blokowych typu 'curl'.
667 %package module-block-gluster
668 Summary: QEMU module for 'gluster' block devices
669 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
670 Group: Development/Tools
671 Requires: %{name}-common = %{version}-%{release}
672 Requires: glusterfs-libs >= 3.4
674 %description module-block-gluster
675 'gluster' block device support for QEMU.
677 %description module-block-gluster -l pl.UTF-8
678 Moduł QEMU dla urządeń blokowych typu 'gluster'.
680 %package module-block-iscsi
681 Summary: QEMU module for 'iscsi' block devices
682 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
683 Group: Development/Tools
684 Requires: %{name}-common = %{version}-%{release}
685 Requires: libiscsi >= 1.9.0
687 %description module-block-iscsi
688 'iscsi' block device support for QEMU.
690 %description module-block-iscsi -l pl.UTF-8
691 Moduł QEMU dla urządeń blokowych typu 'iscsi'.
693 %package module-block-rbd
694 Summary: QEMU module for 'rbd' block devices
695 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
696 Group: Development/Tools
697 Requires: %{name}-common = %{version}-%{release}
699 %description module-block-rbd
700 'rbd' block device support for QEMU.
702 %description module-block-rbd -l pl.UTF-8
703 Moduł QEMU dla urządeń blokowych typu 'rbd'.
705 %package module-block-ssh
706 Summary: QEMU module for 'ssh' block devices
707 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
708 Group: Development/Tools
709 Requires: %{name}-common = %{version}-%{release}
711 %description module-block-ssh
712 'ssh' block device support for QEMU.
714 %description module-block-ssh -l pl.UTF-8
715 Moduł QEMU dla urządeń blokowych typu 'ssh'.
727 %{__mv} libcacard libcacard-use-system-lib
729 # workaround for conflict with alsa/error.h
730 ln -s ../error.h qapi/error.h
734 --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
735 --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
736 --prefix=%{_prefix} \
737 --libdir=%{_libdir} \
738 --libexecdir=%{_libexecdir} \
739 --sysconfdir=%{_sysconfdir} \
741 --host-cc="%{__cc}" \
744 %{__enable_disable bluetooth bluez} \
745 %{__enable_disable brlapi} \
751 %{__enable_disable glusterfs} \
752 %{__enable_disable iscsi libiscsi} \
753 %{__enable_disable ceph rbd} \
754 %{__enable_disable rdma} \
755 %{__enable_disable sdl} \
757 %{__enable_disable seccomp} \
758 %{__enable_disable spice} \
759 %{__enable_disable smartcard smartcard-nss} \
761 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
762 %{__enable_disable usbredir usb-redir} \
770 %{!?with_vte:--disable-vte} \
772 %{__enable_disable xen} \
775 %{__enable_disable libnfs} \
777 %{__enable_disable snappy} \
779 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
780 --interp-prefix=%{_libdir}/qemu/lib-%%M \
781 %if %{without gtk2} && %{without gtk3}
784 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
789 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
791 # rebuild patched vesa tables with additional widescreen modes.
792 %{__make} -C roms/vgabios stdvga-bios
794 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
797 rm -rf $RPM_BUILD_ROOT
798 install -d $RPM_BUILD_ROOT/usr/lib/binfmt.d \
799 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
800 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
803 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
804 DESTDIR=$RPM_BUILD_ROOT
806 install -d $RPM_BUILD_ROOT%{_sysconfdir}
807 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
812 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
814 %ifarch %{ix86} %{x8664}
815 install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
816 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
817 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
820 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
821 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
823 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
824 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
826 # For the qemu-guest-agent subpackage install udev rules.
827 install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
830 %ifnarch %{ix86} %{x8664}
839 %ifnarch sparc sparc64
846 test $i = dummy && continue
847 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i.conf
851 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
852 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
854 # install patched vesa tables with additional widescreen modes.
855 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
857 %if %{with system_seabios}
858 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
859 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
860 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
862 if [ -e "/usr/share/seabios/$bn" ] ; then
863 ln -sf "/usr/share/seabios/$bn" "$f"
868 %if %{with gtk2} || %{with gtk3}
869 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
870 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
877 rm -rf $RPM_BUILD_ROOT
881 %groupadd -g 276 qemu
882 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
885 if [ "$1" = "0" ]; then
892 %defattr(644,root,root,755)
894 %files common -f %{name}.lang
895 %defattr(644,root,root,755)
896 %doc LICENSE README qemu-doc.html qemu-tech.html qmp-commands.txt
897 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
898 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu/target-*.conf
899 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
900 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
901 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
902 %dir %{_sysconfdir}/qemu
903 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
904 %attr(755,root,root) %{_bindir}/qemu-nbd
905 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
906 %attr(755,root,root) %{_sbindir}/ksmctl
907 %attr(755,root,root) %{_sbindir}/ksmtuned
908 %{_mandir}/man1/qemu.1*
909 %{_mandir}/man1/virtfs-proxy-helper.1*
910 %{_mandir}/man8/qemu-nbd.8*
912 %dir %{_datadir}/qemu
913 %{_datadir}/%{name}/keymaps
914 %{_datadir}/%{name}/qemu-icon.bmp
915 %{_datadir}/%{name}/trace-events
917 # various bios images
918 # all should be probably moved to the right system subpackage
919 %{_datadir}/%{name}/QEMU,cgthree.bin
920 %{_datadir}/%{name}/QEMU,tcx.bin
921 %{_datadir}/%{name}/bamboo.dtb
922 %{_datadir}/%{name}/efi-e1000.rom
923 %{_datadir}/%{name}/efi-eepro100.rom
924 %{_datadir}/%{name}/efi-ne2k_pci.rom
925 %{_datadir}/%{name}/efi-pcnet.rom
926 %{_datadir}/%{name}/efi-rtl8139.rom
927 %{_datadir}/%{name}/efi-virtio.rom
928 %{_datadir}/%{name}/kvmvapic.bin
929 %{_datadir}/%{name}/linuxboot.bin
930 %{_datadir}/%{name}/multiboot.bin
931 %{_datadir}/%{name}/openbios-ppc
932 %{_datadir}/%{name}/openbios-sparc*
933 %{_datadir}/%{name}/palcode-clipper
934 %{_datadir}/%{name}/petalogix-ml605.dtb
935 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
936 %{_datadir}/%{name}/ppc_rom.bin
937 %{_datadir}/%{name}/pxe-e1000.rom
938 %{_datadir}/%{name}/pxe-eepro100.rom
939 %{_datadir}/%{name}/pxe-ne2k_pci.rom
940 %{_datadir}/%{name}/pxe-pcnet.rom
941 %{_datadir}/%{name}/pxe-rtl8139.rom
942 %{_datadir}/%{name}/pxe-virtio.rom
943 %{_datadir}/%{name}/qemu_logo_no_text.svg
944 %{_datadir}/%{name}/s390-ccw.img
945 %{_datadir}/%{name}/s390-zipl.rom
946 %{_datadir}/%{name}/sgabios.bin
947 %{_datadir}/%{name}/slof.bin
948 %{_datadir}/%{name}/spapr-rtas.bin
949 %{_datadir}/%{name}/vgabios-cirrus.bin
950 %{_datadir}/%{name}/vgabios-qxl.bin
951 %{_datadir}/%{name}/vgabios-stdvga.bin
952 %{_datadir}/%{name}/vgabios-vmware.bin
953 %{_datadir}/%{name}/vgabios.bin
955 %dir %{_libdir}/%{name}
958 %defattr(644,root,root,755)
959 %attr(755,root,root) %{_bindir}/qemu-img
960 %{_mandir}/man1/qemu-img.1*
963 %defattr(644,root,root,755)
964 /usr/lib/binfmt.d/qemu-*.conf
965 %attr(755,root,root) %{_bindir}/qemu-aarch64
966 %attr(755,root,root) %{_bindir}/qemu-alpha
967 %attr(755,root,root) %{_bindir}/qemu-arm
968 %attr(755,root,root) %{_bindir}/qemu-armeb
969 %attr(755,root,root) %{_bindir}/qemu-cris
970 %attr(755,root,root) %{_bindir}/qemu-i386
971 %attr(755,root,root) %{_bindir}/qemu-io
972 %attr(755,root,root) %{_bindir}/qemu-m68k
973 %attr(755,root,root) %{_bindir}/qemu-microblaze
974 %attr(755,root,root) %{_bindir}/qemu-microblazeel
975 %attr(755,root,root) %{_bindir}/qemu-mips
976 %attr(755,root,root) %{_bindir}/qemu-mipsel
977 %attr(755,root,root) %{_bindir}/qemu-mips64
978 %attr(755,root,root) %{_bindir}/qemu-mips64el
979 %attr(755,root,root) %{_bindir}/qemu-mipsn32
980 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
981 %attr(755,root,root) %{_bindir}/qemu-or32
982 %attr(755,root,root) %{_bindir}/qemu-ppc
983 %attr(755,root,root) %{_bindir}/qemu-ppc64
984 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
985 %attr(755,root,root) %{_bindir}/qemu-ppc64le
986 %attr(755,root,root) %{_bindir}/qemu-s390x
987 %attr(755,root,root) %{_bindir}/qemu-sh4
988 %attr(755,root,root) %{_bindir}/qemu-sh4eb
989 %attr(755,root,root) %{_bindir}/qemu-sparc
990 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
991 %attr(755,root,root) %{_bindir}/qemu-sparc64
992 %attr(755,root,root) %{_bindir}/qemu-unicore32
993 %attr(755,root,root) %{_bindir}/qemu-x86_64
995 %files system-aarch64
996 %defattr(644,root,root,755)
997 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1000 %defattr(644,root,root,755)
1001 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1004 %defattr(644,root,root,755)
1005 %attr(755,root,root) %{_bindir}/qemu-system-arm
1008 %defattr(644,root,root,755)
1009 %attr(755,root,root) %{_bindir}/qemu-system-cris
1012 %defattr(644,root,root,755)
1013 %attr(755,root,root) %{_bindir}/qemu-system-lm32
1016 %defattr(644,root,root,755)
1017 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1019 %files system-microblaze
1020 %defattr(644,root,root,755)
1021 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1022 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1025 %defattr(644,root,root,755)
1026 %attr(755,root,root) %{_bindir}/qemu-system-mips
1027 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1028 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1029 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1032 %defattr(644,root,root,755)
1033 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1036 %defattr(644,root,root,755)
1037 %attr(755,root,root) %{_bindir}/qemu-system-or32
1040 %defattr(644,root,root,755)
1041 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1042 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1043 #%attr(755,root,root) %{_bindir}/qemu-system-ppc64le
1044 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
1045 %{_datadir}/%{name}/u-boot.e500
1048 %defattr(644,root,root,755)
1049 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1052 %defattr(644,root,root,755)
1053 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1054 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1057 %defattr(644,root,root,755)
1058 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1059 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1061 %files system-tricore
1062 %defattr(644,root,root,755)
1063 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1065 %files system-unicore32
1066 %defattr(644,root,root,755)
1067 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1070 %defattr(644,root,root,755)
1071 %attr(755,root,root) %{_bindir}/qemu-system-i386
1072 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1073 %ifarch %{ix86} %{x8664}
1074 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1075 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
1076 %attr(755,root,root) %{_bindir}/kvm_stat
1078 %{_datadir}/%{name}/bios.bin
1079 %{_datadir}/%{name}/bios-256k.bin
1080 %{_datadir}/%{name}/acpi-dsdt.aml
1081 %{_datadir}/%{name}/q35-acpi-dsdt.aml
1083 %files system-xtensa
1084 %defattr(644,root,root,755)
1085 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1086 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1089 %defattr(644,root,root,755)
1090 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
1091 %attr(755,root,root) %{_bindir}/qemu-ga
1093 %files module-block-curl
1094 %defattr(644,root,root,755)
1095 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1097 %if %{with glusterfs}
1098 %files module-block-gluster
1099 %defattr(644,root,root,755)
1100 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1104 %files module-block-iscsi
1105 %defattr(644,root,root,755)
1106 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1110 %files module-block-rbd
1111 %defattr(644,root,root,755)
1112 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1115 %files module-block-ssh
1116 %defattr(644,root,root,755)
1117 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so