3 %bcond_without sdl # SDL UI and audio support
4 %bcond_without glx # OpenGL/GLX support
5 %bcond_without ceph # Ceph/RBD support
6 %bcond_without glusterfs # GlusterFS backend
7 %bcond_without rdma # RDMA-based migration support
8 %bcond_with gtk2 # GTK+ 2.x instead of 3.x
9 %bcond_without gtk3 # Do not build GTK+ UI
10 %bcond_without vte # VTE support in GTK+ UI
11 %bcond_without spice # SPICE support
12 %bcond_with esd # EsounD audio support
13 %bcond_without oss # OSS audio support
14 %bcond_without pulseaudio # PulseAudio audio support
15 %bcond_without xen # Xen backend driver support
16 %bcond_without bluetooth # bluetooth support
17 %bcond_without brlapi # brlapi support
18 %bcond_without smartcard # smartcard-nss support
19 %bcond_without iscsi # iscsi support
20 %bcond_without libnfs # NFS support
21 %bcond_without seccomp # seccomp support
22 %bcond_without usbredir # usb network redirection support
23 %bcond_without system_seabios # system seabios binary
24 %bcond_without snappy # snappy compression library
25 %bcond_with lttng # lttng-ust trace backend support
26 %bcond_with systemtap # SystemTap/dtrace trace backend support
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: f7a5e2da22d057eb838a91da7aff43c8
41 Source2: %{name}.binfmt
42 # Loads kvm kernel modules at boot
43 Source3: kvm-modules-load.conf
48 Source6: ksm.sysconfig
50 Source8: ksmtuned.service
52 Source10: ksmtuned.conf
53 Source11: %{name}-guest-agent.service
54 Source12: 99-%{name}-guest-agent.rules
55 Patch0: %{name}-cflags.patch
56 Patch1: vgabios-widescreens.patch
57 Patch2: %{name}-whitelist.patch
58 Patch3: %{name}-system-libcacard.patch
59 Patch4: %{name}-xattr.patch
60 Patch5: libjpeg-boolean.patch
61 # Proof of concept, for reference, do not remove
62 Patch400: %{name}-kde_virtual_workspaces_hack.patch
63 URL: http://www.qemu-project.org/
64 %{?with_opengl:BuildRequires: OpenGL-GLX-devel}
65 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
66 BuildRequires: alsa-lib-devel
68 %{?with_bluetooth:BuildRequires: bluez-libs-devel}
69 %{?with_brlapi:BuildRequires: brlapi-devel}
70 %{?with_ceph:BuildRequires: ceph-devel}
71 BuildRequires: curl-devel
72 BuildRequires: cyrus-sasl-devel >= 2
73 %{?with_esd:BuildRequires: esound-devel}
74 BuildRequires: glib2-devel >= 1:2.12
75 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
76 BuildRequires: gnutls-devel > 2.10.0
77 BuildRequires: libaio-devel
78 %{?with_smartcard:BuildRequires: libcacard-devel}
79 BuildRequires: libcap-devel
80 BuildRequires: libcap-ng-devel
81 BuildRequires: libfdt-devel
82 %{?with_rdma:BuildRequires: libibverbs-devel}
83 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
84 BuildRequires: libjpeg-devel
85 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
86 BuildRequires: libpng-devel
87 %{?with_rdma:BuildRequires: librdmacm-devel}
88 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.1.1}
89 BuildRequires: libssh2-devel >= 1.2.8
90 BuildRequires: libusb-devel >= 1.0.13
91 BuildRequires: libuuid-devel
92 %{?with_lttng:BuildRequires: lttng-ust-devel}
93 BuildRequires: lzo-devel >= 2
94 BuildRequires: ncurses-devel
95 %{?with_smartcard:BuildRequires: nss-devel >= 3.12.8}
96 BuildRequires: perl-Encode
97 BuildRequires: perl-tools-pod
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 %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 # some PPC/SPARC boot image in ELF format
171 %define _noautostrip .*%{_datadir}/qemu/.*-.*
174 QEMU is a FAST! processor emulator. By using dynamic translation it
175 achieves a reasonnable speed while being easy to port on new host
176 CPUs. QEMU has two operating modes:
178 - User mode emulation. In this mode, QEMU can launch Linux processes
179 compiled for one CPU on another CPU. Linux system calls are converted
180 because of endianness and 32/64 bit mismatches. Wine (Windows
181 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
183 - Full system emulation. In this mode, QEMU emulates a full system,
184 including a processor and various peripherials. It can also be used to
185 provide virtual hosting of several virtual PC on a single server.
187 %description -l pl.UTF-8
188 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
189 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
190 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
192 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
193 procesy linuksowe skompilowane dla jednego procesora na innym
194 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
195 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
196 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
199 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
200 włączając w to procesor i różne urządzenia peryferyjne. Może być także
201 używane do wirtualnego hostowania kilku wirtualnych pecetów na
202 pojedynczym serwerze.
205 Summary: QEMU common files needed by all QEMU targets
206 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
207 Group: Development/Tools
208 Requires(post,preun,postun): systemd-units >= 38
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 Requires: systemd-units >= 38
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 Requires(post,postun): systemd-units >= 38
258 Requires: systemd-units >= 38
259 Obsoletes: qemu-kvm-user
262 QEMU is a generic and open source processor emulator which achieves a
263 good emulation speed by using dynamic translation.
265 This package provides the user mode emulation of QEMU targets.
267 %description user -l pl.UTF-8
268 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
269 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
271 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
273 %package system-aarch64
274 Summary: QEMU system emulator for AArch64
275 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
276 Group: Development/Tools
277 Requires: %{name}-common = %{version}-%{release}
279 Obsoletes: qemu-kvm-system-aarch64
281 %description system-aarch64
282 QEMU is a generic and open source processor emulator which achieves a
283 good emulation speed by using dynamic translation.
285 This package provides the system emulator with AArch64 CPU.
287 %description system-aarch64 -l pl.UTF-8
288 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
289 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
291 Ten pakiet zawiera emulator systemu z procesorem AArch64.
293 %package system-alpha
294 Summary: QEMU system emulator for Alpha
295 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
296 Group: Development/Tools
297 Requires: %{name}-common = %{version}-%{release}
299 Obsoletes: qemu-kvm-system-alpha
301 %description system-alpha
302 QEMU is a generic and open source processor emulator which achieves a
303 good emulation speed by using dynamic translation.
305 This package provides the system emulator with Alpha CPU.
307 %description system-alpha -l pl.UTF-8
308 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
309 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
311 Ten pakiet zawiera emulator systemu z procesorem Alpha.
314 Summary: QEMU system emulator for ARM
315 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
316 Group: Development/Tools
317 Requires: %{name}-common = %{version}-%{release}
319 Obsoletes: qemu-kvm-system-arm
321 %description system-arm
322 QEMU is a generic and open source processor emulator which achieves a
323 good emulation speed by using dynamic translation.
325 This package provides the system emulator for ARM.
327 %description system-arm -l pl.UTF-8
328 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
329 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
331 Ten pakiet zawiera emulator systemu z procesorem ARM.
334 Summary: QEMU system emulator for CRIS
335 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
336 Group: Development/Tools
337 Requires: %{name}-common = %{version}-%{release}
339 Obsoletes: qemu-kvm-system-cris
341 %description system-cris
342 QEMU is a generic and open source processor emulator which achieves a
343 good emulation speed by using dynamic translation.
345 This package provides the system emulator with CRIS CPU.
347 %description system-cris -l pl.UTF-8
348 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
349 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
351 Ten pakiet zawiera emulator systemu z procesorem CRIS.
354 Summary: QEMU system emulator for LM32
355 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
356 Group: Development/Tools
357 Requires: %{name}-common = %{version}-%{release}
359 Obsoletes: qemu-kvm-system-lm32
361 %description system-lm32
362 QEMU is a generic and open source processor emulator which achieves a
363 good emulation speed by using dynamic translation.
365 This package provides the system emulator with LM32 CPU.
367 %description system-lm32 -l pl.UTF-8
368 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
369 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
371 Ten pakiet zawiera emulator systemu z procesorem LM32.
374 Summary: QEMU system emulator for m68k
375 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
376 Group: Development/Tools
377 Requires: %{name}-common = %{version}-%{release}
379 Obsoletes: qemu-kvm-system-m68k
381 %description system-m68k
382 QEMU is a generic and open source processor emulator which achieves a
383 good emulation speed by using dynamic translation.
385 This package provides the system emulator with m68k CPU.
387 %description system-m68k -l pl.UTF-8
388 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
389 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
391 Ten pakiet zawiera emulator systemu z procesorem m68k.
393 %package system-microblaze
394 Summary: QEMU system emulator for MicroBlaze
395 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
396 Group: Development/Tools
397 Requires: %{name}-common = %{version}-%{release}
399 Obsoletes: qemu-kvm-system-microblaze
401 %description system-microblaze
402 QEMU is a generic and open source processor emulator which achieves a
403 good emulation speed by using dynamic translation.
405 This package provides the system emulator with MicroBlaze CPU.
407 %description system-microblaze -l pl.UTF-8
408 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
409 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
411 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
414 Summary: QEMU system emulator for MIPS
415 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
416 Group: Development/Tools
417 Requires: %{name}-common = %{version}-%{release}
419 Obsoletes: qemu-kvm-system-mips
421 %description system-mips
422 QEMU is a generic and open source processor emulator which achieves a
423 good emulation speed by using dynamic translation.
425 This package provides the system emulator with MIPS CPU.
427 %description system-mips -l pl.UTF-8
428 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
429 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
431 Ten pakiet zawiera emulator systemu z procesorem MIPS.
433 %package system-moxie
434 Summary: QEMU system emulator for Moxie
435 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
436 Group: Development/Tools
437 Requires: %{name}-common = %{version}-%{release}
440 %description system-moxie
441 QEMU is a generic and open source processor emulator which achieves a
442 good emulation speed by using dynamic translation.
444 This package provides the system emulator with Moxie CPU.
446 %description system-moxie -l pl.UTF-8
447 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
448 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
450 Ten pakiet zawiera emulator systemu z procesorem Moxie.
453 Summary: QEMU system emulator for OpenRISC
454 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
455 Group: Development/Tools
456 Requires: %{name}-common = %{version}-%{release}
458 Obsoletes: qemu-kvm-system-or32
460 %description system-or32
461 QEMU is a generic and open source processor emulator which achieves a
462 good emulation speed by using dynamic translation.
464 This package provides the system emulator with OpenRISC CPU.
466 %description system-or32 -l pl.UTF-8
467 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
468 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
470 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
473 Summary: QEMU system emulator for PowerPC
474 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
475 Group: Development/Tools
476 Requires: %{name}-common = %{version}-%{release}
478 Obsoletes: qemu-kvm-system-ppc
480 %description system-ppc
481 QEMU is a generic and open source processor emulator which achieves a
482 good emulation speed by using dynamic translation.
484 This package provides the system emulator with PowerPC CPU.
486 %description system-ppc -l pl.UTF-8
487 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
488 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
490 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
492 %package system-s390x
493 Summary: QEMU system emulator for S390
494 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
495 Group: Development/Tools
496 Requires: %{name}-common = %{version}-%{release}
498 Obsoletes: qemu-kvm-system-s390x
500 %description system-s390x
501 QEMU is a generic and open source processor emulator which achieves a
502 good emulation speed by using dynamic translation.
504 This package provides the system emulator with S390 CPU.
506 %description system-s390x -l pl.UTF-8
507 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
508 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
510 Ten pakiet zawiera emulator systemu z procesorem S390.
513 Summary: QEMU system emulator for SH4
514 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
515 Group: Development/Tools
516 Requires: %{name}-common = %{version}-%{release}
518 Obsoletes: qemu-kvm-system-sh4
520 %description system-sh4
521 QEMU is a generic and open source processor emulator which achieves a
522 good emulation speed by using dynamic translation.
524 This package provides the system emulator with SH4 CPU.
526 %description system-sh4 -l pl.UTF-8
527 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
528 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
530 Ten pakiet zawiera emulator systemu z procesorem SH4.
532 %package system-sparc
533 Summary: QEMU system emulator for SPARC
534 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
535 Group: Development/Tools
536 Requires: %{name}-common = %{version}-%{release}
538 Obsoletes: qemu-kvm-system-sparc
540 %description system-sparc
541 QEMU is a generic and open source processor emulator which achieves a
542 good emulation speed by using dynamic translation.
544 This package provides the system emulator with SPARC/SPARC64 CPU.
546 %description system-sparc -l pl.UTF-8
547 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
548 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
550 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
552 %package system-tricore
553 Summary: QEMU system emulator for TriCore
554 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
555 Group: Development/Tools
556 Requires: %{name}-common = %{version}-%{release}
559 %description system-tricore
560 QEMU is a generic and open source processor emulator which achieves a
561 good emulation speed by using dynamic translation.
563 This package provides the system emulator with TriCore CPU.
565 %description system-sparc -l pl.UTF-8
566 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
567 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
569 Ten pakiet zawiera emulator systemu z procesorem TriCore.
571 %package system-unicore32
572 Summary: QEMU system emulator for UniCore32
573 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
574 Group: Development/Tools
575 Requires: %{name}-common = %{version}-%{release}
577 Obsoletes: qemu-kvm-system-unicore32
579 %description system-unicore32
580 QEMU is a generic and open source processor emulator which achieves a
581 good emulation speed by using dynamic translation.
583 This package provides the system emulator with UniCore32 CPU.
585 %description system-unicore32 -l pl.UTF-8
586 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
587 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
589 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
592 Summary: QEMU system emulator for x86
593 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
594 Group: Development/Tools
595 Requires: %{name}-common = %{version}-%{release}
596 %{?with_system_seabios:Requires: seabios}
599 Obsoletes: qemu-kvm-system-x86
601 %description system-x86
602 QEMU is a generic and open source processor emulator which achieves a
603 good emulation speed by using dynamic translation.
605 %description system-x86 -l pl.UTF-8
606 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
607 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
609 %package system-xtensa
610 Summary: QEMU system emulator for Xtensa
611 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
612 Group: Development/Tools
613 Requires: %{name}-common = %{version}-%{release}
615 Obsoletes: qemu-kvm-system-xtensa
617 %description system-xtensa
618 QEMU is a generic and open source processor emulator which achieves a
619 good emulation speed by using dynamic translation.
621 This package provides the system emulator with Xtensa CPU.
623 %description system-xtensa -l pl.UTF-8
624 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
625 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
627 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
630 Summary: QEMU guest agent
631 Summary(pl.UTF-8): Agent gościa QEMU
633 Requires(post,preun,postun): systemd-units >= 38
634 Requires: glib2 >= 1:2.12
635 Requires: systemd-units >= 38
636 Obsoletes: qemu-kvm-guest-agent
638 %description guest-agent
639 QEMU is a generic and open source processor emulator which achieves a
640 good emulation speed by using dynamic translation.
642 This package provides an agent to run inside guests, which
643 communicates with the host over a virtio-serial channel named
644 "org.qemu.guest_agent.0".
646 This package does not need to be installed on the host OS.
648 %description guest-agent -l pl.UTF-8
649 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
650 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
652 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
653 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
654 "org.qemu.guest_agent.0".
656 Ten pakiet nie musi być zainstalowany w systemie hosta.
658 %package module-block-curl
659 Summary: QEMU module for 'curl' block devices
660 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
661 Group: Development/Tools
662 Requires: %{name}-common = %{version}-%{release}
664 %description module-block-curl
665 'curl' block device support for QEMU.
667 %description module-block-curl -l pl.UTF-8
668 Moduł QEMU dla urządeń blokowych typu 'curl'.
670 %package module-block-gluster
671 Summary: QEMU module for 'gluster' block devices
672 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
673 Group: Development/Tools
674 Requires: %{name}-common = %{version}-%{release}
675 Requires: glusterfs-libs >= 3.4
677 %description module-block-gluster
678 'gluster' block device support for QEMU.
680 %description module-block-gluster -l pl.UTF-8
681 Moduł QEMU dla urządeń blokowych typu 'gluster'.
683 %package module-block-iscsi
684 Summary: QEMU module for 'iscsi' block devices
685 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
686 Group: Development/Tools
687 Requires: %{name}-common = %{version}-%{release}
688 Requires: libiscsi >= 1.9.0
690 %description module-block-iscsi
691 'iscsi' block device support for QEMU.
693 %description module-block-iscsi -l pl.UTF-8
694 Moduł QEMU dla urządeń blokowych typu 'iscsi'.
696 %package module-block-rbd
697 Summary: QEMU module for 'rbd' block devices
698 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
699 Group: Development/Tools
700 Requires: %{name}-common = %{version}-%{release}
702 %description module-block-rbd
703 'rbd' block device support for QEMU.
705 %description module-block-rbd -l pl.UTF-8
706 Moduł QEMU dla urządeń blokowych typu 'rbd'.
708 %package module-block-ssh
709 Summary: QEMU module for 'ssh' block devices
710 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
711 Group: Development/Tools
712 Requires: %{name}-common = %{version}-%{release}
714 %description module-block-ssh
715 'ssh' block device support for QEMU.
717 %description module-block-ssh -l pl.UTF-8
718 Moduł QEMU dla urządeń blokowych typu 'ssh'.
729 %{__mv} libcacard libcacard-use-system-lib
731 # workaround for conflict with alsa/error.h
732 ln -s ../error.h qapi/error.h
736 --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
737 --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
738 --prefix=%{_prefix} \
739 --libdir=%{_libdir} \
740 --libexecdir=%{_libexecdir} \
741 --sysconfdir=%{_sysconfdir} \
743 --host-cc="%{__cc}" \
746 %{__enable_disable bluetooth bluez} \
747 %{__enable_disable brlapi} \
753 %{__enable_disable glusterfs} \
754 %{__enable_disable iscsi libiscsi} \
755 %{__enable_disable glx} \
756 %{__enable_disable ceph rbd} \
757 %{__enable_disable rdma} \
758 %{__enable_disable sdl} \
760 %{__enable_disable seccomp} \
761 %{__enable_disable spice} \
762 %{__enable_disable smartcard smartcard-nss} \
764 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}"
765 %{__enable_disable usbredir usb-redir} \
773 %{!?with_vte:--disable-vte} \
775 %{__enable_disable xen} \
778 %{__enable_disable libnfs} \
780 %{__enable_disable snappy} \
782 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
783 --interp-prefix=%{_libdir}/qemu/lib-%%M \
784 %if %{without gtk2} && %{without gtk3}
787 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
792 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
794 # rebuild patched vesa tables with additional widescreen modes.
795 %{__make} -C roms/vgabios stdvga-bios
797 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
800 rm -rf $RPM_BUILD_ROOT
801 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
802 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
803 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
806 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
807 DESTDIR=$RPM_BUILD_ROOT
809 install -d $RPM_BUILD_ROOT%{_sysconfdir}
810 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
815 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
817 %ifarch %{ix86} %{x8664}
818 install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
819 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
820 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
823 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
824 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
825 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
827 install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
828 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
829 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
831 # For the qemu-guest-agent subpackage install the systemd
832 # service and udev rules.
833 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
834 install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
837 %ifnarch %{ix86} %{x8664}
846 %ifnarch sparc sparc64
853 test $i = dummy && continue
854 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i.conf
858 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
859 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
861 # install patched vesa tables with additional widescreen modes.
862 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
864 %if %{with system_seabios}
865 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
866 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
867 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
869 if [ -e "/usr/share/seabios/$bn" ] ; then
870 ln -sf "/usr/share/seabios/$bn" "$f"
875 %if %{with gtk2} || %{with gtk3}
876 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
877 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
884 rm -rf $RPM_BUILD_ROOT
888 %groupadd -g 276 qemu
889 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
892 %systemd_post ksm.service
893 %systemd_post ksmtuned.service
896 %systemd_preun ksm.service
897 %systemd_preun ksmtuned.service
900 if [ "$1" = "0" ]; then
907 %triggerpostun common -- qemu-common < 1.6.1-4
908 %systemd_trigger ksm.service
909 %systemd_trigger ksmtuned.service
912 %systemd_service_restart systemd-binfmt.service
915 %systemd_service_restart systemd-binfmt.service
921 %systemd_preun qemu-guest-agent.service
927 %defattr(644,root,root,755)
929 %files common -f %{name}.lang
930 %defattr(644,root,root,755)
931 %doc README qemu-doc.html qemu-tech.html qmp-commands.txt
932 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
933 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu/target-*.conf
934 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
935 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
936 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
937 %{systemdunitdir}/ksm.service
938 %{systemdunitdir}/ksmtuned.service
939 %dir %{_sysconfdir}/qemu
940 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
941 %attr(755,root,root) %{_bindir}/qemu-nbd
942 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
943 %attr(755,root,root) %{_sbindir}/ksmctl
944 %attr(755,root,root) %{_sbindir}/ksmtuned
945 %{_mandir}/man1/qemu.1*
946 %{_mandir}/man1/virtfs-proxy-helper.1*
947 %{_mandir}/man8/qemu-nbd.8*
949 %dir %{_datadir}/qemu
950 %{_datadir}/%{name}/keymaps
951 %{_datadir}/%{name}/qemu-icon.bmp
952 %{_datadir}/%{name}/trace-events
954 # various bios images
955 # all should be probably moved to the right system subpackage
956 %{_datadir}/%{name}/QEMU,cgthree.bin
957 %{_datadir}/%{name}/QEMU,tcx.bin
958 %{_datadir}/%{name}/bamboo.dtb
959 %{_datadir}/%{name}/efi-e1000.rom
960 %{_datadir}/%{name}/efi-eepro100.rom
961 %{_datadir}/%{name}/efi-ne2k_pci.rom
962 %{_datadir}/%{name}/efi-pcnet.rom
963 %{_datadir}/%{name}/efi-rtl8139.rom
964 %{_datadir}/%{name}/efi-virtio.rom
965 %{_datadir}/%{name}/kvmvapic.bin
966 %{_datadir}/%{name}/linuxboot.bin
967 %{_datadir}/%{name}/multiboot.bin
968 %{_datadir}/%{name}/openbios-ppc
969 %{_datadir}/%{name}/openbios-sparc*
970 %{_datadir}/%{name}/palcode-clipper
971 %{_datadir}/%{name}/petalogix-ml605.dtb
972 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
973 %{_datadir}/%{name}/ppc_rom.bin
974 %{_datadir}/%{name}/pxe-e1000.rom
975 %{_datadir}/%{name}/pxe-eepro100.rom
976 %{_datadir}/%{name}/pxe-ne2k_pci.rom
977 %{_datadir}/%{name}/pxe-pcnet.rom
978 %{_datadir}/%{name}/pxe-rtl8139.rom
979 %{_datadir}/%{name}/pxe-virtio.rom
980 %{_datadir}/%{name}/qemu_logo_no_text.svg
981 %{_datadir}/%{name}/s390-ccw.img
982 %{_datadir}/%{name}/s390-zipl.rom
983 %{_datadir}/%{name}/sgabios.bin
984 %{_datadir}/%{name}/slof.bin
985 %{_datadir}/%{name}/spapr-rtas.bin
986 %{_datadir}/%{name}/vgabios-cirrus.bin
987 %{_datadir}/%{name}/vgabios-qxl.bin
988 %{_datadir}/%{name}/vgabios-stdvga.bin
989 %{_datadir}/%{name}/vgabios-vmware.bin
990 %{_datadir}/%{name}/vgabios.bin
992 %dir %{_libdir}/%{name}
995 %defattr(644,root,root,755)
996 %attr(755,root,root) %{_bindir}/qemu-img
997 %{_mandir}/man1/qemu-img.1*
1000 %defattr(644,root,root,755)
1001 /usr/lib/binfmt.d/qemu-*.conf
1002 %attr(755,root,root) %{_bindir}/qemu-aarch64
1003 %attr(755,root,root) %{_bindir}/qemu-alpha
1004 %attr(755,root,root) %{_bindir}/qemu-arm
1005 %attr(755,root,root) %{_bindir}/qemu-armeb
1006 %attr(755,root,root) %{_bindir}/qemu-cris
1007 %attr(755,root,root) %{_bindir}/qemu-i386
1008 %attr(755,root,root) %{_bindir}/qemu-io
1009 %attr(755,root,root) %{_bindir}/qemu-m68k
1010 %attr(755,root,root) %{_bindir}/qemu-microblaze
1011 %attr(755,root,root) %{_bindir}/qemu-microblazeel
1012 %attr(755,root,root) %{_bindir}/qemu-mips
1013 %attr(755,root,root) %{_bindir}/qemu-mipsel
1014 %attr(755,root,root) %{_bindir}/qemu-mips64
1015 %attr(755,root,root) %{_bindir}/qemu-mips64el
1016 %attr(755,root,root) %{_bindir}/qemu-mipsn32
1017 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
1018 %attr(755,root,root) %{_bindir}/qemu-or32
1019 %attr(755,root,root) %{_bindir}/qemu-ppc
1020 %attr(755,root,root) %{_bindir}/qemu-ppc64
1021 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
1022 %attr(755,root,root) %{_bindir}/qemu-ppc64le
1023 %attr(755,root,root) %{_bindir}/qemu-s390x
1024 %attr(755,root,root) %{_bindir}/qemu-sh4
1025 %attr(755,root,root) %{_bindir}/qemu-sh4eb
1026 %attr(755,root,root) %{_bindir}/qemu-sparc
1027 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
1028 %attr(755,root,root) %{_bindir}/qemu-sparc64
1029 %attr(755,root,root) %{_bindir}/qemu-unicore32
1030 %attr(755,root,root) %{_bindir}/qemu-x86_64
1032 %files system-aarch64
1033 %defattr(644,root,root,755)
1034 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1037 %defattr(644,root,root,755)
1038 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1041 %defattr(644,root,root,755)
1042 %attr(755,root,root) %{_bindir}/qemu-system-arm
1045 %defattr(644,root,root,755)
1046 %attr(755,root,root) %{_bindir}/qemu-system-cris
1049 %defattr(644,root,root,755)
1050 %attr(755,root,root) %{_bindir}/qemu-system-lm32
1053 %defattr(644,root,root,755)
1054 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1056 %files system-microblaze
1057 %defattr(644,root,root,755)
1058 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1059 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1062 %defattr(644,root,root,755)
1063 %attr(755,root,root) %{_bindir}/qemu-system-mips
1064 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1065 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1066 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1069 %defattr(644,root,root,755)
1070 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1073 %defattr(644,root,root,755)
1074 %attr(755,root,root) %{_bindir}/qemu-system-or32
1077 %defattr(644,root,root,755)
1078 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1079 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1080 #%attr(755,root,root) %{_bindir}/qemu-system-ppc64le
1081 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
1082 %{_datadir}/%{name}/u-boot.e500
1085 %defattr(644,root,root,755)
1086 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1089 %defattr(644,root,root,755)
1090 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1091 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1094 %defattr(644,root,root,755)
1095 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1096 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1098 %files system-tricore
1099 %defattr(644,root,root,755)
1100 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1102 %files system-unicore32
1103 %defattr(644,root,root,755)
1104 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1107 %defattr(644,root,root,755)
1108 %attr(755,root,root) %{_bindir}/qemu-system-i386
1109 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1110 %ifarch %{ix86} %{x8664}
1111 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1112 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
1113 %attr(755,root,root) %{_bindir}/kvm_stat
1115 %{_datadir}/%{name}/bios.bin
1116 %{_datadir}/%{name}/bios-256k.bin
1117 %{_datadir}/%{name}/acpi-dsdt.aml
1118 %{_datadir}/%{name}/q35-acpi-dsdt.aml
1120 %files system-xtensa
1121 %defattr(644,root,root,755)
1122 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1123 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1126 %defattr(644,root,root,755)
1127 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
1128 %{systemdunitdir}/qemu-guest-agent.service
1129 %attr(755,root,root) %{_bindir}/qemu-ga
1131 %files module-block-curl
1132 %defattr(644,root,root,755)
1133 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1135 %if %{with glusterfs}
1136 %files module-block-gluster
1137 %defattr(644,root,root,755)
1138 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1142 %files module-block-iscsi
1143 %defattr(644,root,root,755)
1144 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1148 %files module-block-rbd
1149 %defattr(644,root,root,755)
1150 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1153 %files module-block-ssh
1154 %defattr(644,root,root,755)
1155 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so