2 # libpmem (x86_64 only?)
6 %bcond_without sdl # SDL UI and audio support
7 %bcond_without opengl # Don't require GL deps
8 %bcond_without ceph # Ceph/RBD support
9 %bcond_without glusterfs # GlusterFS backend
10 %bcond_without rdma # RDMA-based migration support
11 %bcond_without gtk3 # Do not build GTK+ UI
12 %bcond_without vte # VTE support in GTK+ UI
13 %bcond_without spice # SPICE support
14 %bcond_without oss # OSS audio support
15 %bcond_without pulseaudio # PulseAudio audio support
16 %bcond_without xen # Xen backend driver 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 multipath # Multipath support
22 %bcond_without pmem # libpmem (persistent memory) support
23 %bcond_without seccomp # seccomp support
24 %bcond_without usbredir # usb network redirection support
25 %bcond_without system_seabios # system seabios binary
26 %bcond_without snappy # snappy compression library
27 %bcond_without user_static # build linux-user static packages
28 %bcond_with lttng # lttng-ust trace backend support [needs update]
29 %bcond_without systemtap # SystemTap/dtrace trace backend support
30 %bcond_without virgl # build virgl support
31 %bcond_with vxhs # Veritas HyperScale vDisk backend support (builtin; module not supported)
32 %bcond_without xkbcommon # xkbcommon support
40 %ifnarch %{x8664} aarch64
44 Summary: QEMU CPU Emulator
45 Summary(pl.UTF-8): QEMU - emulator procesora
49 License: GPL v2, BSD (edk2 firmware files)
50 Group: Applications/Emulators
51 Source0: https://download.qemu.org/%{name}-%{version}.tar.xz
52 # Source0-md5: ede6005d7143fe994dd089d31dc2cf6c
53 # Loads kvm kernel modules at boot
54 Source3: kvm-modules-load.conf
59 Source6: ksm.sysconfig
61 Source8: ksmtuned.service
63 Source10: ksmtuned.conf
64 Source11: %{name}-guest-agent.service
65 Source12: 99-%{name}-guest-agent.rules
66 Source13: %{name}-guest-agent.init
67 Source14: %{name}-guest-agent.logrotate
68 Source15: %{name}-pr-helper.service
69 Source16: %{name}-pr-helper.socket
70 Patch0: %{name}-cflags.patch
71 Patch1: %{name}-whitelist.patch
72 Patch2: %{name}-user-execve.patch
73 Patch3: %{name}-xattr.patch
74 Patch4: libjpeg-boolean.patch
76 Patch6: %{name}-vxhs.patch
77 URL: https://www.qemu.org/
78 %{?with_opengl:BuildRequires: Mesa-libgbm-devel}
79 %{?with_opengl:BuildRequires: OpenGL-GLX-devel}
80 %{?with_opengl:BuildRequires: OpenGL-devel}
81 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
82 %{?with_sdl:BuildRequires: SDL2_image-devel >= 2.0}
83 BuildRequires: alsa-lib-devel
84 BuildRequires: bcc >= 0.16.21-2
85 %{?with_brlapi:BuildRequires: brlapi-devel}
86 BuildRequires: bzip2-devel
87 BuildRequires: capstone-devel >= 3.0.5
88 %{?with_ceph:BuildRequires: ceph-devel}
89 BuildRequires: curl-devel
90 BuildRequires: cyrus-sasl-devel >= 2
91 BuildRequires: glib2-devel >= 1:2.48
92 # minimal is 3.4 but new features are used up to 6
93 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 6}
94 BuildRequires: gnutls-devel >= 3.1.18
95 %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.16}
96 BuildRequires: libaio-devel
97 %{?with_smartcard:BuildRequires: libcacard-devel >= 2.5.1}
98 BuildRequires: libcap-ng-devel
99 %{?with_opengl:BuildRequires: libepoxy-devel}
100 BuildRequires: libfdt-devel >= 1.4.2
101 %{?with_rdma:BuildRequires: libibverbs-devel}
102 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
103 %{?with_rdma:BuildRequires: libibumad-devel}
104 BuildRequires: libjpeg-devel
105 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
106 BuildRequires: libpng-devel
107 %{?with_rdma:BuildRequires: librdmacm-devel}
108 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.3.0}
109 BuildRequires: libssh-devel >= 0.8
110 BuildRequires: libslirp-devel >= 4.0.0
112 #BuildRequires: libtasn1-devel
113 BuildRequires: libusb-devel >= 1.0.22
114 BuildRequires: liburing-devel
115 BuildRequires: libuuid-devel
116 %{?with_vxhs:BuildRequires: libvxhs-devel}
117 BuildRequires: libxml2-devel >= 2.0
118 %{?with_lttng:BuildRequires: lttng-ust-devel}
119 BuildRequires: lzfse-devel
120 BuildRequires: lzo-devel >= 2
121 %{?with_multipath:BuildRequires: multipath-tools-devel}
122 BuildRequires: ncurses-devel
123 # also libgcrypt-devel >= 1.5.0 possible, but gnutls already pulls nettle
124 BuildRequires: nettle-devel >= 2.7.1
125 %{?with_smartcard:BuildRequires: nss-devel >= 1:3.12.8}
126 BuildRequires: numactl-devel
127 BuildRequires: pam-devel
128 BuildRequires: perl-Encode
129 BuildRequires: perl-tools-pod
130 BuildRequires: pixman-devel >= 0.21.8
131 BuildRequires: pkgconfig
132 %{?with_pmem:BuildRequires: pmdk-devel}
133 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
134 BuildRequires: python3 >= 1:3.5
135 BuildRequires: rpmbuild(macros) >= 1.644
136 %{?with_system_seabios:BuildRequires: seabios}
137 BuildRequires: sed >= 4.0
138 %{?with_snappy:BuildRequires: snappy-devel}
139 BuildRequires: sphinx-pdg
141 BuildRequires: spice-protocol >= 0.12.3
142 BuildRequires: spice-server-devel >= 0.12.5
144 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
145 BuildRequires: texi2html
146 BuildRequires: texinfo
147 %{?with_multipath:BuildRequires: udev-devel}
148 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
149 %{?with_lttng:BuildRequires: userspace-rcu-devel}
150 BuildRequires: vde2-devel
152 %{?with_virgl:BuildRequires: virglrenderer-devel}
153 %{?with_vte:BuildRequires: vte-devel >= 0.32.0}
154 # xencontrol xenstore xenguest xenforeignmemory xengnttab xenevtchn xendevicemodel [xentoolcore for xen 4.10+]
155 %{?with_xen:BuildRequires: xen-devel >= 4.2}
156 BuildRequires: xfsprogs-devel
157 %{?with_xkbcommon:BuildRequires: xorg-lib-libxkbcommon-devel}
158 BuildRequires: xorg-lib-libX11-devel
159 BuildRequires: zlib-devel
160 BuildRequires: zstd-devel >= 1.4.0
161 %if %{with user_static}
162 BuildRequires: glib2-static >= 1:2.48
163 BuildRequires: glibc-static
164 BuildRequires: pcre-static
165 BuildRequires: zlib-static
167 Requires: %{name}-img = %{version}-%{release}
168 Requires: %{name}-system-aarch64 = %{version}-%{release}
169 Requires: %{name}-system-alpha = %{version}-%{release}
170 Requires: %{name}-system-arm = %{version}-%{release}
171 Requires: %{name}-system-cris = %{version}-%{release}
172 Requires: %{name}-system-hppa = %{version}-%{release}
173 Requires: %{name}-system-lm32 = %{version}-%{release}
174 Requires: %{name}-system-m68k = %{version}-%{release}
175 Requires: %{name}-system-microblaze = %{version}-%{release}
176 Requires: %{name}-system-mips = %{version}-%{release}
177 Requires: %{name}-system-moxie = %{version}-%{release}
178 Requires: %{name}-system-nios2 = %{version}-%{release}
179 Requires: %{name}-system-or1k = %{version}-%{release}
180 Requires: %{name}-system-ppc = %{version}-%{release}
181 Requires: %{name}-system-riscv32 = %{version}-%{release}
182 Requires: %{name}-system-riscv64 = %{version}-%{release}
183 Requires: %{name}-system-rx = %{version}-%{release}
184 Requires: %{name}-system-s390x = %{version}-%{release}
185 Requires: %{name}-system-sh4 = %{version}-%{release}
186 Requires: %{name}-system-sparc = %{version}-%{release}
187 Requires: %{name}-system-tricore = %{version}-%{release}
188 Requires: %{name}-system-unicore32 = %{version}-%{release}
189 Requires: %{name}-system-x86 = %{version}-%{release}
190 Requires: %{name}-system-xtensa = %{version}-%{release}
191 Requires: %{name}-user = %{version}-%{release}
194 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
196 %define systempkg_req \
197 Requires: capstone >= 3.0.5 \
198 %{?with_smartcard:Requires: libcacard >= 2.5.1} \
199 Requires: libfdt >= 1.4.2 \
200 %if %{with seccomp} \
201 Requires: libseccomp >= 2.3.0 \
203 Requires: libslirp >= 4.0.0 \
204 Requires: libusb >= 1.0.22 \
205 Requires: pixman >= 0.21.8 \
207 Requires: spice-server-libs >= 0.12.5 \
209 %if %{with usbredir} \
210 Requires: usbredir >= 0.6 \
212 Requires: zstd >= 1.4.0
214 # don't strip/chrpath anything in there; these are boot images, roms etc
215 %define _noautostrip .*%{_datadir}/qemu/.*
216 %define _noautochrpath .*%{_datadir}/qemu/.*
219 QEMU is a FAST! processor emulator. By using dynamic translation it
220 achieves a reasonnable speed while being easy to port on new host
221 CPUs. QEMU has two operating modes:
223 - User mode emulation. In this mode, QEMU can launch Linux processes
224 compiled for one CPU on another CPU. Linux system calls are converted
225 because of endianness and 32/64 bit mismatches. Wine (Windows
226 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
228 - Full system emulation. In this mode, QEMU emulates a full system,
229 including a processor and various peripherials. It can also be used to
230 provide virtual hosting of several virtual PC on a single server.
232 %description -l pl.UTF-8
233 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
234 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
235 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
237 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
238 procesy linuksowe skompilowane dla jednego procesora na innym
239 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
240 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
241 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
244 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
245 włączając w to procesor i różne urządzenia peryferyjne. Może być także
246 używane do wirtualnego hostowania kilku wirtualnych pecetów na
247 pojedynczym serwerze.
250 Summary: QEMU common files needed by all QEMU targets
251 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
252 Group: Applications/Emulators
253 Requires(post,preun,postun): systemd-units >= 38
254 Requires(postun): /usr/sbin/groupdel
255 Requires(postun): /usr/sbin/userdel
256 Requires(pre): /bin/id
257 Requires(pre): /usr/bin/getgid
258 Requires(pre): /usr/sbin/groupadd
259 Requires(pre): /usr/sbin/useradd
260 Requires: glib2 >= 1:2.48
261 Requires: gnutls-libs >= 3.1.18
262 %{?with_gtk3:Requires: gtk+3 >= 3.16}
263 Requires: nettle >= 2.7.1
264 Requires: systemd-units >= 38
265 %{?with_vte:Requires: vte >= 0.32.0}
266 Provides: group(qemu)
268 Obsoletes: qemu-kvm-common
269 Obsoletes: qemu-module-block-archipelago < 2.9.0
270 Conflicts: qemu < 1.0-2
273 QEMU is a generic and open source processor emulator which achieves a
274 good emulation speed by using dynamic translation.
276 This package provides the common files needed by all QEMU targets.
278 %description common -l pl.UTF-8
279 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
280 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
282 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
286 Summary: QEMU command line tool for manipulating disk images
287 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
288 Group: Applications/Emulators
289 Obsoletes: qemu-kvm-img
290 Conflicts: qemu < 1.0-2
293 This package provides a command line tool for manipulating disk
296 %description img -l pl.UTF-8
297 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
301 Summary: QEMU user mode emulation of qemu targets
302 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
303 Group: Applications/Emulators
304 Requires: %{name}-common = %{version}-%{release}
305 Requires(post,postun): systemd-units >= 38
306 Requires: systemd-units >= 38
307 Obsoletes: qemu-kvm-user
310 QEMU is a generic and open source processor emulator which achieves a
311 good emulation speed by using dynamic translation.
313 This package provides the user mode emulation of QEMU targets.
315 %description user -l pl.UTF-8
316 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
317 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
319 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
322 Summary: QEMU user mode emulation of qemu targets static build
323 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu - wersja statyczna
324 Group: Applications/Emulators
325 Requires(post,postun): systemd-units >= 38
326 Requires: systemd-units >= 38
328 %description user-static
329 QEMU is a generic and open source processor emulator which achieves a
330 good emulation speed by using dynamic translation.
332 This package provides the user mode emulation of qemu targets built as
335 %description user-static -l pl.UTF-8
336 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
337 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
339 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU w
340 oparciu o programy wykonywalne zbudowane statycznie.
342 %package system-aarch64
343 Summary: QEMU system emulator for AArch64
344 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
345 Group: Applications/Emulators
346 Requires: %{name}-common = %{version}-%{release}
348 Obsoletes: qemu-kvm-system-aarch64
350 %description system-aarch64
351 QEMU is a generic and open source processor emulator which achieves a
352 good emulation speed by using dynamic translation.
354 This package provides the system emulator with AArch64 (ARM64) CPU.
356 %description system-aarch64 -l pl.UTF-8
357 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
358 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
360 Ten pakiet zawiera emulator systemu z procesorem AArch64 (ARM64).
362 %package system-alpha
363 Summary: QEMU system emulator for Alpha
364 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
365 Group: Applications/Emulators
366 Requires: %{name}-common = %{version}-%{release}
368 Obsoletes: qemu-kvm-system-alpha
370 %description system-alpha
371 QEMU is a generic and open source processor emulator which achieves a
372 good emulation speed by using dynamic translation.
374 This package provides the system emulator with Alpha CPU.
376 %description system-alpha -l pl.UTF-8
377 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
378 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
380 Ten pakiet zawiera emulator systemu z procesorem Alpha.
383 Summary: QEMU system emulator for 32-bit ARM
384 Summary(pl.UTF-8): QEMU - emulator systemu z 32-bitowym procesorem ARM
385 Group: Applications/Emulators
386 Requires: %{name}-common = %{version}-%{release}
388 Obsoletes: qemu-kvm-system-arm
390 %description system-arm
391 QEMU is a generic and open source processor emulator which achieves a
392 good emulation speed by using dynamic translation.
394 This package provides the system emulator for 32-bit ARM.
396 %description system-arm -l pl.UTF-8
397 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
398 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
400 Ten pakiet zawiera emulator systemu z 32-bitowym procesorem ARM.
403 Summary: QEMU system emulator for CRIS
404 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
405 Group: Applications/Emulators
406 Requires: %{name}-common = %{version}-%{release}
408 Obsoletes: qemu-kvm-system-cris
410 %description system-cris
411 QEMU is a generic and open source processor emulator which achieves a
412 good emulation speed by using dynamic translation.
414 This package provides the system emulator with CRIS CPU.
416 %description system-cris -l pl.UTF-8
417 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
418 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
420 Ten pakiet zawiera emulator systemu z procesorem CRIS.
423 Summary: QEMU system emulator for HP/PA
424 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem HP/PA
425 Group: Applications/Emulators
426 Requires: %{name}-common = %{version}-%{release}
429 %description system-hppa
430 QEMU is a generic and open source processor emulator which achieves a
431 good emulation speed by using dynamic translation.
433 This package provides the system emulator with HP/PA (PA-RISC) CPU.
435 %description system-hppa -l pl.UTF-8
436 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
437 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
439 Ten pakiet zawiera emulator systemu z procesorem HP/PA (PA-RISC).
442 Summary: QEMU system emulator for LM32
443 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
444 Group: Applications/Emulators
445 Requires: %{name}-common = %{version}-%{release}
447 Obsoletes: qemu-kvm-system-lm32
449 %description system-lm32
450 QEMU is a generic and open source processor emulator which achieves a
451 good emulation speed by using dynamic translation.
453 This package provides the system emulator with LM32 CPU.
455 %description system-lm32 -l pl.UTF-8
456 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
457 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
459 Ten pakiet zawiera emulator systemu z procesorem LM32.
462 Summary: QEMU system emulator for m68k
463 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
464 Group: Applications/Emulators
465 Requires: %{name}-common = %{version}-%{release}
467 Obsoletes: qemu-kvm-system-m68k
469 %description system-m68k
470 QEMU is a generic and open source processor emulator which achieves a
471 good emulation speed by using dynamic translation.
473 This package provides the system emulator with m68k (Motorola 68xxx)
476 %description system-m68k -l pl.UTF-8
477 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
478 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
480 Ten pakiet zawiera emulator systemu z procesorem m68k (Motorola
483 %package system-microblaze
484 Summary: QEMU system emulator for MicroBlaze
485 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
486 Group: Applications/Emulators
487 Requires: %{name}-common = %{version}-%{release}
489 Obsoletes: qemu-kvm-system-microblaze
491 %description system-microblaze
492 QEMU is a generic and open source processor emulator which achieves a
493 good emulation speed by using dynamic translation.
495 This package provides the system emulator with MicroBlaze CPU.
497 %description system-microblaze -l pl.UTF-8
498 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
499 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
501 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
504 Summary: QEMU system emulator for MIPS
505 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
506 Group: Applications/Emulators
507 Requires: %{name}-common = %{version}-%{release}
509 Obsoletes: qemu-kvm-system-mips
511 %description system-mips
512 QEMU is a generic and open source processor emulator which achieves a
513 good emulation speed by using dynamic translation.
515 This package provides the system emulator with MIPS CPU.
517 %description system-mips -l pl.UTF-8
518 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
519 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
521 Ten pakiet zawiera emulator systemu z procesorem MIPS.
523 %package system-moxie
524 Summary: QEMU system emulator for Moxie
525 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
526 Group: Applications/Emulators
527 Requires: %{name}-common = %{version}-%{release}
530 %description system-moxie
531 QEMU is a generic and open source processor emulator which achieves a
532 good emulation speed by using dynamic translation.
534 This package provides the system emulator with Moxie CPU.
536 %description system-moxie -l pl.UTF-8
537 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
538 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
540 Ten pakiet zawiera emulator systemu z procesorem Moxie.
542 %package system-nios2
543 Summary: QEMU system emulator for Nios II
544 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Nios II
545 Group: Applications/Emulators
546 Requires: %{name}-common = %{version}-%{release}
549 %description system-nios2
550 QEMU is a generic and open source processor emulator which achieves a
551 good emulation speed by using dynamic translation.
553 This package provides the system emulator with Nios II CPU.
555 %description system-nios2 -l pl.UTF-8
556 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
557 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
559 Ten pakiet zawiera emulator systemu z procesorem Nios II.
562 Summary: QEMU system emulator for OpenRISC
563 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
564 Group: Applications/Emulators
565 Requires: %{name}-common = %{version}-%{release}
567 Obsoletes: qemu-kvm-system-or1k
568 Obsoletes: qemu-system-or32
570 %description system-or1k
571 QEMU is a generic and open source processor emulator which achieves a
572 good emulation speed by using dynamic translation.
574 This package provides the system emulator with OpenRISC CPU.
576 %description system-or1k -l pl.UTF-8
577 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
578 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
580 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
583 Summary: QEMU system emulator for PowerPC
584 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
585 Group: Applications/Emulators
586 Requires: %{name}-common = %{version}-%{release}
588 Obsoletes: qemu-kvm-system-ppc
590 %description system-ppc
591 QEMU is a generic and open source processor emulator which achieves a
592 good emulation speed by using dynamic translation.
594 This package provides the system emulator with PowerPC CPU.
596 %description system-ppc -l pl.UTF-8
597 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
598 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
600 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
602 %package system-riscv32
603 Summary: QEMU system emulator for RISC-V (32 bit)
604 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (32 bit)
605 Group: Applications/Emulators
606 Requires: %{name}-common = %{version}-%{release}
609 %description system-riscv32
610 QEMU is a generic and open source processor emulator which achieves a
611 good emulation speed by using dynamic translation.
613 This package provides the system emulator with RISC-V (32 bit) CPU.
615 %description system-riscv32 -l pl.UTF-8
616 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
617 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
619 Ten pakiet zawiera emulator systemu z procesorem RISC-V (32 bit).
621 %package system-riscv64
622 Summary: QEMU system emulator for RISC-V (64 bit)
623 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (64 bitowym)
624 Group: Applications/Emulators
625 Requires: %{name}-common = %{version}-%{release}
628 %description system-riscv64
629 QEMU is a generic and open source processor emulator which achieves a
630 good emulation speed by using dynamic translation.
632 This package provides the system emulator with RISC-V (64 bit) CPU.
634 %description system-riscv64 -l pl.UTF-8
635 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
636 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
638 Ten pakiet zawiera emulator systemu z procesorem RISC-V (64-bitowym).
641 Summary: QEMU system emulator for Renesas RX
642 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Renesas RX
643 Group: Applications/Emulators
644 Requires: %{name}-common = %{version}-%{release}
647 %description system-rx
648 QEMU is a generic and open source processor emulator which achieves a
649 good emulation speed by using dynamic translation.
651 This package provides the system emulator with Renesas RX CPU.
653 %description system-rx -l pl.UTF-8
654 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
655 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
657 Ten pakiet zawiera emulator systemu z procesorem Renesas RX.
659 %package system-s390x
660 Summary: QEMU system emulator for S390x (IBM Z)
661 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390x (IBM Z)
662 Group: Applications/Emulators
663 Requires: %{name}-common = %{version}-%{release}
665 Obsoletes: qemu-kvm-system-s390x
667 %description system-s390x
668 QEMU is a generic and open source processor emulator which achieves a
669 good emulation speed by using dynamic translation.
671 This package provides the system emulator with S390x (IBM Z) CPU.
673 %description system-s390x -l pl.UTF-8
674 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
675 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
677 Ten pakiet zawiera emulator systemu z procesorem S390x (IBM Z).
680 Summary: QEMU system emulator for SH4
681 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
682 Group: Applications/Emulators
683 Requires: %{name}-common = %{version}-%{release}
685 Obsoletes: qemu-kvm-system-sh4
687 %description system-sh4
688 QEMU is a generic and open source processor emulator which achieves a
689 good emulation speed by using dynamic translation.
691 This package provides the system emulator with SH4 CPU.
693 %description system-sh4 -l pl.UTF-8
694 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
695 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
697 Ten pakiet zawiera emulator systemu z procesorem SH4.
699 %package system-sparc
700 Summary: QEMU system emulator for SPARC
701 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
702 Group: Applications/Emulators
703 Requires: %{name}-common = %{version}-%{release}
705 Obsoletes: qemu-kvm-system-sparc
707 %description system-sparc
708 QEMU is a generic and open source processor emulator which achieves a
709 good emulation speed by using dynamic translation.
711 This package provides the system emulator with SPARC/SPARC64 CPU.
713 %description system-sparc -l pl.UTF-8
714 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
715 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
717 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
719 %package system-tricore
720 Summary: QEMU system emulator for TriCore
721 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
722 Group: Applications/Emulators
723 Requires: %{name}-common = %{version}-%{release}
726 %description system-tricore
727 QEMU is a generic and open source processor emulator which achieves a
728 good emulation speed by using dynamic translation.
730 This package provides the system emulator with TriCore CPU.
732 %description system-sparc -l pl.UTF-8
733 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
734 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
736 Ten pakiet zawiera emulator systemu z procesorem TriCore.
738 %package system-unicore32
739 Summary: QEMU system emulator for UniCore32
740 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
741 Group: Applications/Emulators
742 Requires: %{name}-common = %{version}-%{release}
744 Obsoletes: qemu-kvm-system-unicore32
746 %description system-unicore32
747 QEMU is a generic and open source processor emulator which achieves a
748 good emulation speed by using dynamic translation.
750 This package provides the system emulator with UniCore32 CPU.
752 %description system-unicore32 -l pl.UTF-8
753 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
754 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
756 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
759 Summary: QEMU system emulator for x86
760 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
761 Group: Applications/Emulators
762 Requires: %{name}-common = %{version}-%{release}
763 %{?with_system_seabios:Requires: seabios}
766 Obsoletes: qemu-kvm-system-x86
768 %description system-x86
769 QEMU is a generic and open source processor emulator which achieves a
770 good emulation speed by using dynamic translation.
772 This package provides the system emulator with x86 CPU.
774 %description system-x86 -l pl.UTF-8
775 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
776 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
778 Ten pakiet zawiera emulator systemu z procesorem x86.
780 %package system-xtensa
781 Summary: QEMU system emulator for Xtensa
782 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
783 Group: Applications/Emulators
784 Requires: %{name}-common = %{version}-%{release}
786 Obsoletes: qemu-kvm-system-xtensa
788 %description system-xtensa
789 QEMU is a generic and open source processor emulator which achieves a
790 good emulation speed by using dynamic translation.
792 This package provides the system emulator with Xtensa CPU.
794 %description system-xtensa -l pl.UTF-8
795 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
796 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
798 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
801 Summary: QEMU guest agent
802 Summary(pl.UTF-8): Agent gościa QEMU
804 Requires(post,preun,postun): systemd-units >= 38
805 Requires: glib2 >= 1:2.48
806 Requires: systemd-units >= 38
807 Obsoletes: qemu-kvm-guest-agent
808 Conflicts: SysVinit < 2.96-2
810 %description guest-agent
811 QEMU is a generic and open source processor emulator which achieves a
812 good emulation speed by using dynamic translation.
814 This package provides an agent to run inside guests, which
815 communicates with the host over a virtio-serial channel named
816 "org.qemu.guest_agent.0".
818 This package does not need to be installed on the host OS.
820 %description guest-agent -l pl.UTF-8
821 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
822 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
824 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
825 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
826 "org.qemu.guest_agent.0".
828 Ten pakiet nie musi być zainstalowany w systemie hosta.
830 %package module-block-curl
831 Summary: QEMU module for 'curl' block devices
832 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
833 Group: Applications/Emulators
834 Requires: %{name}-common = %{version}-%{release}
836 %description module-block-curl
837 QEMU block device support for CURL. It allows to access remote disks
838 over http, https, ftp and other transports provided by the CURL
841 %description module-block-curl -l pl.UTF-8
842 Moduł QEMU dla urządeń blokowych CURL. Pozwala na dostęp do zdalnych
843 dysków poprzez http, https, ftp i inne protokoły obsługiwane przez
846 %package module-block-gluster
847 Summary: QEMU module for 'gluster' block devices
848 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
849 Group: Applications/Emulators
850 Requires: %{name}-common = %{version}-%{release}
851 Requires: glusterfs-libs >= 6
853 %description module-block-gluster
854 QEMU block device support for remote Gluster storage.
856 %description module-block-gluster -l pl.UTF-8
857 Moduł urządzeń blokowych QEMU do dostępu do zdalnej przestrzeni
860 %package module-block-iscsi
861 Summary: QEMU module for 'iscsi' block devices
862 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
863 Group: Applications/Emulators
864 Requires: %{name}-common = %{version}-%{release}
865 Requires: libiscsi >= 1.9.0
867 %description module-block-iscsi
868 QEMU block device support for iSCSI volumes.
870 %description module-block-iscsi -l pl.UTF-8
871 Moduł urządzeń blokowych QEMU do dostępu do wolumenów iSCSI.
873 %package module-block-nfs
874 Summary: QEMU module for 'nfs' block devices
875 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'nfs'
876 Group: Applications/Emulators
877 Requires: %{name}-common = %{version}-%{release}
878 Requires: libnfs >= 1.9.3
880 %description module-block-nfs
881 QEMU block device support for remote NFS storage.
883 %description module-block-nfs -l pl.UTF-8
884 Moduł urządzeń blokowych QEMU do dostępu do zdalnej przestrzeni po
887 %package module-block-rbd
888 Summary: QEMU module for 'rbd' block devices
889 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
890 Group: Applications/Emulators
891 Requires: %{name}-common = %{version}-%{release}
893 %description module-block-rbd
894 QEMU block device support for Ceph/RBD volumes.
896 %description module-block-rbd -l pl.UTF-8
897 Moduł urządzeń blokowych QEMU do wolumenów Ceph/RBD.
899 %package module-block-ssh
900 Summary: QEMU module for 'ssh' block devices
901 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
902 Group: Applications/Emulators
903 Requires: %{name}-common = %{version}-%{release}
904 Requires: libssh >= 0.8
906 %description module-block-ssh
907 QEMU block device support for accessing remote disks using the Secure
908 Shell (SSH) protocol.
910 %description module-block-ssh -l pl.UTF-8
911 Moduł urządzeń blokowych QEMU do dostępu do zdalnych dysków poprzez
912 protokół SSH (Secure Shell).
914 %package module-ui-gtk
915 Summary: QEMU GTK UI driver
916 Summary(pl.UTF-8): Sterownik interfejsu użytkownika GTK dla QEMU
917 Group: Applications/Emulators
918 Requires: %{name}-common = %{version}-%{release}
920 %description module-ui-gtk
923 %description module-ui-gtk -l pl.UTF-8
924 Sterownik interfejsu użytkownika GTK dla QEMU.
926 %package module-ui-sdl
927 Summary: QEMU SDL UI and audio driver
928 Summary(pl.UTF-8): Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU
929 Group: Applications/Emulators
930 Requires: %{name}-common = %{version}-%{release}
932 %description module-ui-sdl
933 QEMU SDL UI and audio driver.
935 %description module-ui-sdl -l pl.UTF-8
936 Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU.
938 %package -n systemtap-qemu
939 Summary: systemtap/dtrace probes for QEMU
940 Summary(pl.UTF-8): Sondy systemtap/dtrace dla QEMU
941 Group: Development/Tools
942 Requires: %{name}-common = %{version}-%{release}
943 Requires: systemtap-client
945 %description -n systemtap-qemu
946 systemtap/dtrace probes for QEMU.
948 %description -n systemtap-qemu -l pl.UTF-8
949 Sondy systemtap/dtrace dla QEMU.
961 %{__sed} -i '1s,/usr/bin/env python3,%{__python3},' scripts/qemu-trace-stap
963 %if %{with systemtap}
964 # don't require stap binary during build
965 %{__sed} -i -e "s/has 'stap'/true/" configure
973 install -d build-$target
977 --prefix=%{_prefix} \
978 --libdir=%{_libdir} \
979 --libexecdir=%{_libexecdir} \
980 --sysconfdir=%{_sysconfdir} \
981 --localstatedir=%{_localstatedir} \
982 --interp-prefix=%{_libdir}/qemu/lib-%%M \
985 --host-cc="%{__cc}" \
987 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
993 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
999 --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
1000 --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
1001 --audio-drv-list="alsa%{?with_oss:,oss}%{?with_sdl:,sdl}%{?with_pulseaudio:,pa}" \
1003 %{__enable_disable brlapi} \
1005 --enable-capstone=system \
1010 %{__enable_disable glusterfs} \
1011 %{!?with_gtk3:--disable-gtk} \
1012 %{__enable_disable iscsi libiscsi} \
1013 %{__enable_disable libnfs} \
1014 %{__enable_disable pmem libpmem} \
1016 %{__enable_disable multipath mpath} \
1020 %{__enable_disable ceph rbd} \
1021 %{__enable_disable rdma} \
1022 %{__enable_disable sdl} \
1023 %{__enable_disable seccomp} \
1024 --enable-slirp=system \
1025 %{__enable_disable spice} \
1026 %{__enable_disable smartcard} \
1027 %{__enable_disable snappy} \
1029 %{__enable_disable usbredir usb-redir} \
1031 %{__enable_disable virgl virglrenderer} \
1036 %{__enable_disable vxhs} \
1037 %{!?with_vte:--disable-vte} \
1038 %{__enable_disable xen} \
1039 %{__enable_disable xkbcommon}
1041 %if %{with user_static}
1045 --disable-capstone \
1051 --disable-guest-agent \
1052 --disable-guest-agent-msi \
1054 --disable-linux-io-uring \
1062 --disable-tcmalloc \
1066 --disable-xkbcommon \
1071 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
1074 rm -rf $RPM_BUILD_ROOT
1075 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
1076 $RPM_BUILD_ROOT/etc/{qemu,sysconfig,modules-load.d,rc.d/init.d,logrotate.d} \
1077 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,/lib/udev/rules.d,%{_sbindir}}
1079 %if %{with user_static}
1080 %{__make} -C build-static install \
1081 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
1082 DESTDIR=$RPM_BUILD_ROOT
1084 # Give all QEMU user emulators a -static suffix
1085 for src in $RPM_BUILD_ROOT%{_bindir}/qemu-*; do
1086 %{__mv} $src $src-static
1091 %{__make} -C build-dynamic install \
1092 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
1093 DESTDIR=$RPM_BUILD_ROOT
1095 # let rpm generate dependencies
1096 chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/*.so
1098 echo "#allow br0" > $RPM_BUILD_ROOT/etc/qemu/bridge.conf
1100 install -d $RPM_BUILD_ROOT%{_sysconfdir}
1101 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
1106 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
1108 %ifarch %{ix86} %{x8664} x32
1109 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
1110 install -p %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/rules.d
1113 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
1114 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
1115 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
1117 install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
1118 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
1119 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
1121 # For the qemu-guest-agent subpackage install the systemd
1122 # service and udev rules.
1123 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
1124 install -p %{SOURCE12} $RPM_BUILD_ROOT/lib/udev/rules.d
1126 install -p %{SOURCE13} $RPM_BUILD_ROOT/etc/rc.d/init.d/qemu-ga
1127 install -p %{SOURCE14} $RPM_BUILD_ROOT/etc/logrotate.d/qemu-ga
1129 cp -p %{SOURCE15} %{SOURCE16} $RPM_BUILD_ROOT%{systemdunitdir}
1133 %ifnarch %{ix86} %{x8664} x32
1147 microblaze microblazeel \
1163 %ifnarch ppc ppc64 ppc64le
1166 %ifnarch sparc sparc64
1167 sparc sparc32plus sparc64 \
1178 if [ -n "$BINFMT_CPUS" ]; then
1179 for cpu in $BINFMT_CPUS; do
1180 bash ./scripts/qemu-binfmt-conf.sh --systemd "$cpu" --exportdir $RPM_BUILD_ROOT/usr/lib/binfmt.d --qemu-path %{_bindir}
1182 for i in $RPM_BUILD_ROOT/usr/lib/binfmt.d/*.conf; do
1183 %{__mv} $i ${i%.conf}-dynamic.conf
1186 %if %{with user_static}
1187 for regularfmt in $RPM_BUILD_ROOT/usr/lib/binfmt.d/*; do
1188 staticfmt="${regularfmt%\-dynamic.conf}-static.conf"
1189 cat $regularfmt | tr -d '\n' | sed "s/:$/-static:F/" > $staticfmt
1194 %if %{with system_seabios}
1195 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
1196 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
1197 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
1199 if [ -e "/usr/share/seabios/$bn" ] ; then
1200 ln -sf "/usr/share/seabios/$bn" "$f"
1206 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
1207 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
1213 # Windows installer icon, not used
1214 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/qemu-nsis.bmp
1216 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/edk2-licenses.txt
1218 # cleanup Sphinx files
1219 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/{interop,specs,system,tools,user}/{.buildinfo,objects.inv}
1220 # leave just HTML version
1221 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{ga,qmp}-ref.txt
1224 rm -rf $RPM_BUILD_ROOT
1227 %groupadd -g 160 kvm
1228 %groupadd -g 276 qemu
1229 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
1232 %systemd_post ksm.service
1233 %systemd_post ksmtuned.service
1236 %systemd_preun ksm.service
1237 %systemd_preun ksmtuned.service
1240 if [ "$1" = "0" ]; then
1247 %triggerpostun common -- qemu-common < 1.6.1-4
1248 %systemd_trigger ksm.service
1249 %systemd_trigger ksmtuned.service
1250 %systemd_trigger qemu-pr-helper.service
1253 %systemd_service_restart systemd-binfmt.service
1256 %systemd_service_restart systemd-binfmt.service
1259 %systemd_service_restart systemd-binfmt.service
1262 %systemd_service_restart systemd-binfmt.service
1265 /sbin/chkconfig --add qemu-ga
1266 %service qemu-ga restart "qemu-ga"
1270 if [ "$1" = "0" ]; then
1271 %service qemu-ga stop
1272 /sbin/chkconfig --del qemu-ga
1274 %systemd_preun qemu-guest-agent.service
1280 %defattr(644,root,root,755)
1282 %files common -f %{name}.lang
1283 %defattr(644,root,root,755)
1284 %doc LICENSE README.rst pc-bios/edk2-licenses.txt
1285 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
1286 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
1287 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
1288 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
1290 %attr(640,root,qemu) %config(noreplace) %verify(not md5 mtime size) /etc/qemu/bridge.conf
1291 %{systemdunitdir}/ksm.service
1292 %{systemdunitdir}/ksmtuned.service
1293 %{systemdunitdir}/qemu-pr-helper.service
1294 %{systemdunitdir}/qemu-pr-helper.socket
1295 %attr(755,root,root) %{_bindir}/elf2dmp
1296 %attr(755,root,root) %{_bindir}/ivshmem-client
1297 %attr(755,root,root) %{_bindir}/ivshmem-server
1298 %attr(755,root,root) %{_bindir}/qemu-edid
1299 %if %{with xkbcommon}
1300 %attr(755,root,root) %{_bindir}/qemu-keymap
1302 %attr(755,root,root) %{_bindir}/qemu-nbd
1303 %attr(755,root,root) %{_bindir}/qemu-pr-helper
1304 %attr(755,root,root) %{_bindir}/qemu-storage-daemon
1305 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
1306 %attr(755,root,root) %{_sbindir}/ksmctl
1307 %attr(755,root,root) %{_sbindir}/ksmtuned
1308 %attr(755,root,root) %{_libexecdir}/qemu-bridge-helper
1310 %attr(755,root,root) %{_libexecdir}/vhost-user-gpu
1312 %attr(755,root,root) %{_libexecdir}/virtiofsd
1313 %dir %{_libdir}/%{name}
1314 # modules without too many external dependencies
1315 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-bz2.so
1316 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-lzfse.so
1317 %attr(755,root,root) %{_libdir}/%{name}/audio-alsa.so
1319 %attr(755,root,root) %{_libdir}/%{name}/audio-oss.so
1321 %if %{with pulseaudio}
1322 %attr(755,root,root) %{_libdir}/%{name}/audio-pa.so
1324 %attr(755,root,root) %{_libdir}/%{name}/ui-curses.so
1326 %attr(755,root,root) %{_libdir}/%{name}/ui-spice-app.so
1328 %dir %{_datadir}/%{name}
1329 %dir %{_datadir}/%{name}/firmware
1330 %{_datadir}/%{name}/keymaps
1331 %{_datadir}/%{name}/trace-events-all
1332 %dir %{_datadir}/%{name}/vhost-user
1334 %{_datadir}/%{name}/vhost-user/50-qemu-gpu.json
1336 %{_datadir}/%{name}/vhost-user/50-qemu-virtiofsd.json
1337 %{_desktopdir}/qemu.desktop
1338 %{_iconsdir}/hicolor/*x*/apps/qemu.png
1339 %{_iconsdir}/hicolor/32x32/apps/qemu.bmp
1340 %{_iconsdir}/hicolor/scalable/apps/qemu.svg
1341 %{_mandir}/man1/qemu.1*
1342 %{_mandir}/man1/virtfs-proxy-helper.1*
1343 %{_mandir}/man1/virtiofsd.1*
1344 %{_mandir}/man7/qemu-block-drivers.7*
1345 %{_mandir}/man7/qemu-cpu-models.7*
1346 %{_mandir}/man7/qemu-qmp-ref.7*
1347 %{_mandir}/man8/qemu-nbd.8*
1351 %defattr(644,root,root,755)
1352 %attr(755,root,root) %{_bindir}/qemu-img
1353 %{_mandir}/man1/qemu-img.1*
1356 %defattr(644,root,root,755)
1357 /usr/lib/binfmt.d/qemu-*-dynamic.conf
1358 %attr(755,root,root) %{_bindir}/qemu-aarch64
1359 %attr(755,root,root) %{_bindir}/qemu-aarch64_be
1360 %attr(755,root,root) %{_bindir}/qemu-alpha
1361 %attr(755,root,root) %{_bindir}/qemu-arm
1362 %attr(755,root,root) %{_bindir}/qemu-armeb
1363 %attr(755,root,root) %{_bindir}/qemu-cris
1364 %attr(755,root,root) %{_bindir}/qemu-hppa
1365 %attr(755,root,root) %{_bindir}/qemu-i386
1366 %attr(755,root,root) %{_bindir}/qemu-io
1367 %attr(755,root,root) %{_bindir}/qemu-m68k
1368 %attr(755,root,root) %{_bindir}/qemu-microblaze
1369 %attr(755,root,root) %{_bindir}/qemu-microblazeel
1370 %attr(755,root,root) %{_bindir}/qemu-mips
1371 %attr(755,root,root) %{_bindir}/qemu-mipsel
1372 %attr(755,root,root) %{_bindir}/qemu-mips64
1373 %attr(755,root,root) %{_bindir}/qemu-mips64el
1374 %attr(755,root,root) %{_bindir}/qemu-mipsn32
1375 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
1376 %attr(755,root,root) %{_bindir}/qemu-nios2
1377 %attr(755,root,root) %{_bindir}/qemu-or1k
1378 %attr(755,root,root) %{_bindir}/qemu-ppc
1379 %attr(755,root,root) %{_bindir}/qemu-ppc64
1380 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
1381 %attr(755,root,root) %{_bindir}/qemu-ppc64le
1382 %attr(755,root,root) %{_bindir}/qemu-riscv32
1383 %attr(755,root,root) %{_bindir}/qemu-riscv64
1384 %attr(755,root,root) %{_bindir}/qemu-s390x
1385 %attr(755,root,root) %{_bindir}/qemu-sh4
1386 %attr(755,root,root) %{_bindir}/qemu-sh4eb
1387 %attr(755,root,root) %{_bindir}/qemu-sparc
1388 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
1389 %attr(755,root,root) %{_bindir}/qemu-sparc64
1390 %attr(755,root,root) %{_bindir}/qemu-tilegx
1391 %attr(755,root,root) %{_bindir}/qemu-x86_64
1392 %attr(755,root,root) %{_bindir}/qemu-xtensa
1393 %attr(755,root,root) %{_bindir}/qemu-xtensaeb
1395 %if %{with user_static}
1397 %defattr(644,root,root,755)
1398 /usr/lib/binfmt.d/qemu-*-static.conf
1399 %attr(755,root,root) %{_bindir}/qemu-aarch64-static
1400 %attr(755,root,root) %{_bindir}/qemu-aarch64_be-static
1401 %attr(755,root,root) %{_bindir}/qemu-alpha-static
1402 %attr(755,root,root) %{_bindir}/qemu-arm-static
1403 %attr(755,root,root) %{_bindir}/qemu-armeb-static
1404 %attr(755,root,root) %{_bindir}/qemu-cris-static
1405 %attr(755,root,root) %{_bindir}/qemu-hppa-static
1406 %attr(755,root,root) %{_bindir}/qemu-i386-static
1407 %attr(755,root,root) %{_bindir}/qemu-m68k-static
1408 %attr(755,root,root) %{_bindir}/qemu-microblaze-static
1409 %attr(755,root,root) %{_bindir}/qemu-microblazeel-static
1410 %attr(755,root,root) %{_bindir}/qemu-mips-static
1411 %attr(755,root,root) %{_bindir}/qemu-mips64-static
1412 %attr(755,root,root) %{_bindir}/qemu-mips64el-static
1413 %attr(755,root,root) %{_bindir}/qemu-mipsel-static
1414 %attr(755,root,root) %{_bindir}/qemu-mipsn32-static
1415 %attr(755,root,root) %{_bindir}/qemu-mipsn32el-static
1416 %attr(755,root,root) %{_bindir}/qemu-nios2-static
1417 %attr(755,root,root) %{_bindir}/qemu-or1k-static
1418 %attr(755,root,root) %{_bindir}/qemu-ppc-static
1419 %attr(755,root,root) %{_bindir}/qemu-ppc64-static
1420 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32-static
1421 %attr(755,root,root) %{_bindir}/qemu-ppc64le-static
1422 %attr(755,root,root) %{_bindir}/qemu-riscv32-static
1423 %attr(755,root,root) %{_bindir}/qemu-riscv64-static
1424 %attr(755,root,root) %{_bindir}/qemu-s390x-static
1425 %attr(755,root,root) %{_bindir}/qemu-sh4-static
1426 %attr(755,root,root) %{_bindir}/qemu-sh4eb-static
1427 %attr(755,root,root) %{_bindir}/qemu-sparc-static
1428 %attr(755,root,root) %{_bindir}/qemu-sparc32plus-static
1429 %attr(755,root,root) %{_bindir}/qemu-sparc64-static
1430 %attr(755,root,root) %{_bindir}/qemu-tilegx-static
1431 %attr(755,root,root) %{_bindir}/qemu-x86_64-static
1432 %attr(755,root,root) %{_bindir}/qemu-xtensa-static
1433 %attr(755,root,root) %{_bindir}/qemu-xtensaeb-static
1434 %attr(755,root,root) %{_bindir}/qemu-trace-stap-static
1437 %files system-aarch64
1438 %defattr(644,root,root,755)
1439 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1440 %{_datadir}/%{name}/edk2-aarch64-code.fd
1441 %{_datadir}/%{name}/firmware/60-edk2-aarch64.json
1444 %defattr(644,root,root,755)
1445 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1446 %{_datadir}/%{name}/palcode-clipper
1449 %defattr(644,root,root,755)
1450 %attr(755,root,root) %{_bindir}/qemu-system-arm
1451 %{_datadir}/%{name}/edk2-arm-code.fd
1452 %{_datadir}/%{name}/edk2-arm-vars.fd
1453 %{_datadir}/%{name}/firmware/60-edk2-arm.json
1456 %defattr(644,root,root,755)
1457 %attr(755,root,root) %{_bindir}/qemu-system-cris
1460 %defattr(644,root,root,755)
1461 %attr(755,root,root) %{_bindir}/qemu-system-hppa
1462 %{_datadir}/%{name}/hppa-firmware.img
1465 %defattr(644,root,root,755)
1466 %attr(755,root,root) %{_bindir}/qemu-system-lm32
1469 %defattr(644,root,root,755)
1470 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1472 %files system-microblaze
1473 %defattr(644,root,root,755)
1474 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1475 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1478 %defattr(644,root,root,755)
1479 %attr(755,root,root) %{_bindir}/qemu-system-mips
1480 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1481 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1482 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1485 %defattr(644,root,root,755)
1486 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1489 %defattr(644,root,root,755)
1490 %attr(755,root,root) %{_bindir}/qemu-system-nios2
1493 %defattr(644,root,root,755)
1494 %attr(755,root,root) %{_bindir}/qemu-system-or1k
1497 %defattr(644,root,root,755)
1498 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1499 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1500 %{_datadir}/%{name}/bamboo.dtb
1501 %{_datadir}/%{name}/canyonlands.dtb
1502 %{_datadir}/%{name}/openbios-ppc
1503 %{_datadir}/%{name}/petalogix-ml605.dtb
1504 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
1505 %{_datadir}/%{name}/qemu_vga.ndrv
1506 %{_datadir}/%{name}/skiboot.lid
1507 %{_datadir}/%{name}/slof.bin
1508 %{_datadir}/%{name}/u-boot.e500
1509 %{_datadir}/%{name}/u-boot-sam460-20100605.bin
1511 %files system-riscv32
1512 %defattr(644,root,root,755)
1513 %attr(755,root,root) %{_bindir}/qemu-system-riscv32
1514 %{_datadir}/%{name}/opensbi-riscv32-sifive_u-fw_jump.bin
1515 %{_datadir}/%{name}/opensbi-riscv32-virt-fw_jump.bin
1517 %files system-riscv64
1518 %defattr(644,root,root,755)
1519 %attr(755,root,root) %{_bindir}/qemu-system-riscv64
1520 %{_datadir}/%{name}/opensbi-riscv64-sifive_u-fw_jump.bin
1521 %{_datadir}/%{name}/opensbi-riscv64-virt-fw_jump.bin
1524 %defattr(644,root,root,755)
1525 %attr(755,root,root) %{_bindir}/qemu-system-rx
1528 %defattr(644,root,root,755)
1529 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1530 %{_datadir}/%{name}/s390-ccw.img
1531 %{_datadir}/%{name}/s390-netboot.img
1534 %defattr(644,root,root,755)
1535 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1536 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1539 %defattr(644,root,root,755)
1540 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1541 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1542 %{_datadir}/%{name}/QEMU,cgthree.bin
1543 %{_datadir}/%{name}/QEMU,tcx.bin
1544 %{_datadir}/%{name}/openbios-sparc32
1545 %{_datadir}/%{name}/openbios-sparc64
1547 %files system-tricore
1548 %defattr(644,root,root,755)
1549 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1551 %files system-unicore32
1552 %defattr(644,root,root,755)
1553 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1556 %defattr(644,root,root,755)
1557 %attr(755,root,root) %{_bindir}/qemu-system-i386
1558 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1559 %ifarch %{ix86} %{x8664} x32
1560 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1561 /lib/udev/rules.d/80-kvm.rules
1563 %{_datadir}/%{name}/bios.bin
1564 %{_datadir}/%{name}/bios-256k.bin
1565 %{_datadir}/%{name}/bios-microvm.bin
1566 %{_datadir}/%{name}/edk2-i386-code.fd
1567 %{_datadir}/%{name}/edk2-i386-secure-code.fd
1568 %{_datadir}/%{name}/edk2-i386-vars.fd
1569 %{_datadir}/%{name}/edk2-x86_64-code.fd
1570 %{_datadir}/%{name}/edk2-x86_64-secure-code.fd
1571 %{_datadir}/%{name}/efi-e1000e.rom
1572 %{_datadir}/%{name}/efi-e1000.rom
1573 %{_datadir}/%{name}/efi-eepro100.rom
1574 %{_datadir}/%{name}/efi-ne2k_pci.rom
1575 %{_datadir}/%{name}/efi-pcnet.rom
1576 %{_datadir}/%{name}/efi-rtl8139.rom
1577 %{_datadir}/%{name}/efi-virtio.rom
1578 %{_datadir}/%{name}/efi-vmxnet3.rom
1579 %{_datadir}/%{name}/kvmvapic.bin
1580 %{_datadir}/%{name}/linuxboot.bin
1581 %{_datadir}/%{name}/linuxboot_dma.bin
1582 %{_datadir}/%{name}/multiboot.bin
1583 %{_datadir}/%{name}/pvh.bin
1584 %{_datadir}/%{name}/pxe-e1000.rom
1585 %{_datadir}/%{name}/pxe-eepro100.rom
1586 %{_datadir}/%{name}/pxe-ne2k_pci.rom
1587 %{_datadir}/%{name}/pxe-pcnet.rom
1588 %{_datadir}/%{name}/pxe-rtl8139.rom
1589 %{_datadir}/%{name}/pxe-virtio.rom
1590 %{_datadir}/%{name}/sgabios.bin
1591 %{_datadir}/%{name}/vgabios.bin
1592 %{_datadir}/%{name}/vgabios-ati.bin
1593 %{_datadir}/%{name}/vgabios-bochs-display.bin
1594 %{_datadir}/%{name}/vgabios-cirrus.bin
1595 %{_datadir}/%{name}/vgabios-qxl.bin
1596 %{_datadir}/%{name}/vgabios-ramfb.bin
1597 %{_datadir}/%{name}/vgabios-stdvga.bin
1598 %{_datadir}/%{name}/vgabios-virtio.bin
1599 %{_datadir}/%{name}/vgabios-vmware.bin
1600 %{_datadir}/%{name}/firmware/50-edk2-i386-secure.json
1601 %{_datadir}/%{name}/firmware/50-edk2-x86_64-secure.json
1602 %{_datadir}/%{name}/firmware/60-edk2-i386.json
1603 %{_datadir}/%{name}/firmware/60-edk2-x86_64.json
1605 %files system-xtensa
1606 %defattr(644,root,root,755)
1607 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1608 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1611 %defattr(644,root,root,755)
1612 %attr(755,root,root) %{_bindir}/qemu-ga
1613 /lib/udev/rules.d/99-qemu-guest-agent.rules
1614 %{systemdunitdir}/qemu-guest-agent.service
1615 %attr(754,root,root) /etc/rc.d/init.d/qemu-ga
1616 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/qemu-ga
1617 %{_mandir}/man7/qemu-ga-ref.7*
1618 %{_mandir}/man8/qemu-ga.8*
1620 %files module-block-curl
1621 %defattr(644,root,root,755)
1622 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1624 %if %{with glusterfs}
1625 %files module-block-gluster
1626 %defattr(644,root,root,755)
1627 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1631 %files module-block-iscsi
1632 %defattr(644,root,root,755)
1633 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1637 %files module-block-nfs
1638 %defattr(644,root,root,755)
1639 %attr(755,root,root) %{_libdir}/%{name}/block-nfs.so
1643 %files module-block-rbd
1644 %defattr(644,root,root,755)
1645 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1648 %files module-block-ssh
1649 %defattr(644,root,root,755)
1650 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so
1653 %files module-ui-gtk
1654 %defattr(644,root,root,755)
1655 %attr(755,root,root) %{_libdir}/%{name}/ui-gtk.so
1659 %files module-ui-sdl
1660 %defattr(644,root,root,755)
1661 %attr(755,root,root) %{_libdir}/%{name}/audio-sdl.so
1662 %attr(755,root,root) %{_libdir}/%{name}/ui-sdl.so
1665 %if %{with systemtap}
1666 %files -n systemtap-qemu
1667 %defattr(644,root,root,755)
1668 %attr(755,root,root) %{_bindir}/qemu-trace-stap
1669 %{_datadir}/systemtap/tapset/qemu-*.stp
1670 %{_mandir}/man1/qemu-trace-stap.1*