5 %bcond_without sdl # SDL UI and audio support
6 %bcond_without opengl # Don't require GL deps
7 %bcond_with canokey # CanoKey support
8 %bcond_with 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_with brlapi # brlapi support
18 %bcond_without smartcard # smartcard-nss support
19 %bcond_without iscsi # iscsi support
20 %bcond_without libnfs # NFS support
21 %bcond_without multipath # Multipath support
22 %bcond_with pipewire # pipewire support
23 %bcond_without pmem # libpmem (persistent memory) support
24 %bcond_without seccomp # seccomp support
25 %bcond_without usbredir # usb network redirection support
26 %bcond_without system_seabios # system seabios binary
27 %bcond_without snappy # snappy compression library
28 %bcond_without user_static # build linux-user static packages
29 %bcond_with vfio_user # vfio-user server support
30 %bcond_with lttng # lttng-ust trace backend support [needs update]
31 %bcond_without systemtap # SystemTap/dtrace trace backend support
32 %bcond_without virgl # build virgl support
33 %bcond_without xkbcommon # xkbcommon support
41 %ifnarch %{x8664} aarch64
46 Summary: QEMU CPU Emulator
47 Summary(pl.UTF-8): QEMU - emulator procesora
51 License: GPL v2, BSD (edk2 firmware files)
52 Group: Applications/Emulators
53 Source0: https://download.qemu.org/%{name}-%{version}.tar.xz
54 # Source0-md5: aa5c2f004d513b746f25a00cfec8eaa5
55 # Loads kvm kernel modules at boot
56 Source3: kvm-modules-load.conf
60 Source6: ksm.sysconfig
63 Source10: ksmtuned.conf
64 Source12: 99-%{name}-guest-agent.rules
65 Source13: %{name}-guest-agent.init
66 Source14: %{name}-guest-agent.logrotate
67 Patch0: %{name}-cflags.patch
68 Patch2: %{name}-xattr.patch
69 Patch3: libjpeg-boolean.patch
70 Patch5: %{name}-u2f-emu.patch
71 Patch6: %{name}-linux-mount.patch
72 Patch7: libvfio-user-types.patch
73 Patch8: libvfio-user-alloca.patch
74 URL: https://www.qemu.org/
75 %{?with_opengl:BuildRequires: Mesa-libgbm-devel}
76 %{?with_opengl:BuildRequires: OpenGL-GLX-devel}
77 %{?with_opengl:BuildRequires: OpenGL-devel}
78 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
79 %{?with_sdl:BuildRequires: SDL2_image-devel >= 2.0}
80 BuildRequires: alsa-lib-devel
82 %{?with_brlapi:BuildRequires: brlapi-devel}
83 BuildRequires: bzip2-devel
84 %{?with_canokey:BuildRequires: canokey-qemu-devel}
85 BuildRequires: capstone-devel >= 4.0
86 %{?with_ceph:BuildRequires: ceph-devel >= 12}
87 BuildRequires: curl-devel >= 7.29.0
88 BuildRequires: cyrus-sasl-devel >= 2
89 BuildRequires: daxctl-devel >= 57
91 BuildRequires: gcc >= 6:7.4
92 BuildRequires: gettext-tools
93 BuildRequires: glib2-devel >= 1:2.75.3
94 # minimal is 3.4 but new features are used up to 6
95 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 6}
96 BuildRequires: gnutls-devel >= 3.6.14
97 %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.22.0}
98 BuildRequires: jack-audio-connection-kit-devel
99 %{?with_vfio_user:BuildRequires: json-c-devel >= 0.11}
100 BuildRequires: keyutils-devel
101 BuildRequires: libaio-devel
102 BuildRequires: libblkio-devel >= 1.3.0
103 BuildRequires: libbpf-devel
104 %{?with_smartcard:BuildRequires: libcacard-devel >= 2.5.1}
105 BuildRequires: libcap-ng-devel
106 BuildRequires: libdrm-devel
107 %{?with_opengl:BuildRequires: libepoxy-devel}
108 BuildRequires: libfdt-devel >= 1.5.1
109 BuildRequires: libfuse3-devel >= 3.8
110 %{?with_rdma:BuildRequires: libibverbs-devel}
111 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
112 %{?with_rdma:BuildRequires: libibumad-devel}
113 BuildRequires: libjpeg-devel
114 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
115 BuildRequires: libpng-devel >= 2:1.6.34
116 %{?with_rdma:BuildRequires: librdmacm-devel}
117 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.3.0}
118 BuildRequires: libselinux-devel
119 BuildRequires: libssh-devel >= 0.8.7
120 BuildRequires: libslirp-devel >= 4.7
121 BuildRequires: libstdc++-devel >= 6:4.7
123 #BuildRequires: libtasn1-devel
124 BuildRequires: libu2f-emu-devel
125 BuildRequires: libusb-devel >= 1.0.22
126 BuildRequires: liburing-devel >= 0.3
127 BuildRequires: libuuid-devel
128 BuildRequires: libxml2-devel >= 2.0
129 %{?with_lttng:BuildRequires: lttng-ust-devel >= 2.1}
130 BuildRequires: lzfse-devel
131 BuildRequires: lzo-devel >= 2
132 BuildRequires: meson >= 0.63.0
133 %{?with_multipath:BuildRequires: multipath-tools-devel}
134 BuildRequires: ncurses-devel
135 # also libgcrypt-devel >= 1.8 possible, but gnutls already pulls nettle
136 BuildRequires: nettle-devel >= 3.4
137 BuildRequires: ninja >= 1.5
138 %{?with_smartcard:BuildRequires: nss-devel >= 1:3.12.8}
139 BuildRequires: numactl-devel
140 BuildRequires: pam-devel
141 BuildRequires: perl-Encode
142 BuildRequires: perl-tools-pod
143 %{?with_pipewire:BuildRequires: pipewire-devel >= 0.3.60}
144 BuildRequires: pixman-devel >= 0.21.8
145 BuildRequires: pkgconfig
146 %{?with_pmem:BuildRequires: pmdk-devel}
147 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
148 BuildRequires: python3 >= 1:3.7
149 BuildRequires: python3-sphinx_rtd_theme >= 0.5
150 BuildRequires: python3-tomli >= 1.2.0
151 BuildRequires: rpm-build >= 4.6
152 BuildRequires: rpmbuild(macros) >= 1.644
153 %{?with_system_seabios:BuildRequires: seabios}
154 BuildRequires: sed >= 4.0
155 %{?with_snappy:BuildRequires: snappy-devel}
156 BuildRequires: sphinx-pdg >= 1.6
158 BuildRequires: spice-protocol >= 0.14.0
159 BuildRequires: spice-server-devel >= 0.14.0
161 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
162 BuildRequires: tar >= 1:1.22
163 BuildRequires: texi2html
164 BuildRequires: texinfo
165 %{?with_multipath:BuildRequires: udev-devel}
166 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
167 %{?with_lttng:BuildRequires: userspace-rcu-devel}
168 BuildRequires: vde2-devel
170 %{?with_virgl:BuildRequires: virglrenderer-devel}
171 %{?with_vte:BuildRequires: vte-devel >= 0.32.0}
172 # xencontrol xenstore xenguest xenforeignmemory xengnttab xenevtchn xendevicemodel; xentoolcore for xen 4.10+
173 # min version is 4.2, more features up to 4.11
174 %{?with_xen:BuildRequires: xen-devel >= 4.11}
175 BuildRequires: xfsprogs-devel
176 %if %{with xkbcommon}
177 BuildRequires: xkeyboard-config
178 BuildRequires: xorg-lib-libxkbcommon-devel
180 BuildRequires: xorg-lib-libX11-devel
182 BuildRequires: zlib-devel
183 BuildRequires: zstd-devel >= 1.4.0
184 %if %{with user_static}
185 BuildRequires: glib2-static >= 1:2.75.3
186 BuildRequires: glibc-static
187 BuildRequires: libstdc++-static >= 6:4.7
188 BuildRequires: pcre2-8-static >= 10.32
189 BuildRequires: zlib-static
191 Requires: %{name}-img = %{version}-%{release}
192 Requires: %{name}-system-aarch64 = %{version}-%{release}
193 Requires: %{name}-system-alpha = %{version}-%{release}
194 Requires: %{name}-system-arm = %{version}-%{release}
195 Requires: %{name}-system-avr = %{version}-%{release}
196 Requires: %{name}-system-cris = %{version}-%{release}
197 Requires: %{name}-system-hppa = %{version}-%{release}
198 Requires: %{name}-system-m68k = %{version}-%{release}
199 Requires: %{name}-system-microblaze = %{version}-%{release}
200 Requires: %{name}-system-mips = %{version}-%{release}
201 Requires: %{name}-system-nios2 = %{version}-%{release}
202 Requires: %{name}-system-or1k = %{version}-%{release}
203 Requires: %{name}-system-ppc = %{version}-%{release}
204 Requires: %{name}-system-riscv32 = %{version}-%{release}
205 Requires: %{name}-system-riscv64 = %{version}-%{release}
206 Requires: %{name}-system-rx = %{version}-%{release}
207 Requires: %{name}-system-s390x = %{version}-%{release}
208 Requires: %{name}-system-sh4 = %{version}-%{release}
209 Requires: %{name}-system-sparc = %{version}-%{release}
210 Requires: %{name}-system-tricore = %{version}-%{release}
211 Requires: %{name}-system-x86 = %{version}-%{release}
212 Requires: %{name}-system-xtensa = %{version}-%{release}
213 Requires: %{name}-user = %{version}-%{release}
214 Obsoletes: qemu-kvm < 2
216 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
218 %define systempkg_req \
219 Requires: capstone >= 4.0 \
220 Requires: daxctl-libs >= 57 \
221 %{?with_smartcard:Requires: libcacard >= 2.5.1} \
222 Requires: libfdt >= 1.5.1 \
223 Requires: libfuse3 >= 3.8 \
224 %{?with_iscsi:Requires: libiscsi >= 1.9.0} \
225 Requires: libpng >= 2:1.6.34 \
226 %if %{with seccomp} \
227 Requires: libseccomp >= 2.3.0 \
229 Requires: libslirp >= 4.7 \
230 Requires: liburing >= 0.3 \
231 Requires: libusb >= 1.0.22 \
232 Requires: libxdp >= 1.4.0 \
233 Requires: pixman >= 0.21.8 \
235 Requires: spice-server-libs >= 0.14.0 \
237 %if %{with usbredir} \
238 Requires: usbredir >= 0.6 \
241 # don't strip/chrpath anything in there; these are boot images, roms etc
242 %define _noautostrip .*%{_datadir}/qemu/.*
243 %define _noautochrpath .*%{_datadir}/qemu/.*
246 QEMU is a FAST! processor emulator. By using dynamic translation it
247 achieves a reasonnable speed while being easy to port on new host
248 CPUs. QEMU has two operating modes:
250 - User mode emulation. In this mode, QEMU can launch Linux processes
251 compiled for one CPU on another CPU. Linux system calls are converted
252 because of endianness and 32/64 bit mismatches. Wine (Windows
253 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
255 - Full system emulation. In this mode, QEMU emulates a full system,
256 including a processor and various peripherials. It can also be used to
257 provide virtual hosting of several virtual PC on a single server.
259 %description -l pl.UTF-8
260 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
261 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
262 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
264 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
265 procesy linuksowe skompilowane dla jednego procesora na innym
266 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
267 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
268 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
271 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
272 włączając w to procesor i różne urządzenia peryferyjne. Może być także
273 używane do wirtualnego hostowania kilku wirtualnych pecetów na
274 pojedynczym serwerze.
277 Summary: QEMU common files needed by all QEMU targets
278 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
279 Group: Applications/Emulators
280 Requires(postun): /usr/sbin/groupdel
281 Requires(postun): /usr/sbin/userdel
282 Requires(pre): /bin/id
283 Requires(pre): /usr/bin/getgid
284 Requires(pre): /usr/sbin/groupadd
285 Requires(pre): /usr/sbin/useradd
286 Requires: glib2 >= 1:2.75.3
287 Requires: gnutls-libs >= 3.6.14
288 %{?with_gtk3:Requires: gtk+3 >= 3.22.0}
289 Requires: libblkio >= 1.3.0
290 Requires: nettle >= 3.4
291 %{?with_vte:Requires: vte >= 0.32.0}
292 Requires: zstd >= 1.4.0
294 Provides: group(qemu)
296 Obsoletes: qemu-kvm-common < 2
297 Obsoletes: qemu-module-block-archipelago < 2.9.0
298 Obsoletes: qemu-system-lm32 < 5.2
299 Obsoletes: qemu-system-moxie < 6.1
300 Obsoletes: qemu-system-unicore32 < 5.2
301 Conflicts: qemu < 1.0-2
304 QEMU is a generic and open source processor emulator which achieves a
305 good emulation speed by using dynamic translation.
307 This package provides the common files needed by all QEMU targets.
309 %description common -l pl.UTF-8
310 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
311 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
313 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
317 Summary: Header file for QEMU plugins development
318 Summary(pl.UTF-8): Plik nagłówkowy do tworzenia wtyczek QEMU
319 Group: Development/Libraries
323 Header file for QEMU plugins development.
325 %description devel -l pl.UTF-8
326 Plik nagłówkowy do tworzenia wtyczek QEMU.
329 Summary: QEMU command line tool for manipulating disk images
330 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
331 Group: Applications/Emulators
332 Obsoletes: qemu-kvm-img < 2
333 Conflicts: qemu < 1.0-2
336 This package provides a command line tool for manipulating disk
339 %description img -l pl.UTF-8
340 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
344 Summary: Client and server for QEMU ivshmem device
345 Summary(pl.UTF-8): Klient i serwer dla urzÄ
\85dzeia ivshmem QEMU
346 Group: Development/Tools
349 This package provides client and server tools for QEMU's ivshmem
352 %description ivshmem -l pl.UTF-8
353 Ten pakiet udostępnia działające z linii poleceń narzędzia dla
354 urzÄ…dzenia ivshmem QEMU.
357 Summary: QEMU user mode emulation of qemu targets
358 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
359 Group: Applications/Emulators
360 Requires: %{name}-common = %{version}-%{release}
361 Obsoletes: qemu-kvm-user < 2
364 QEMU is a generic and open source processor emulator which achieves a
365 good emulation speed by using dynamic translation.
367 This package provides the user mode emulation of QEMU targets.
369 %description user -l pl.UTF-8
370 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
371 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
373 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
376 Summary: QEMU user mode emulation of qemu targets static build
377 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu - wersja statyczna
378 Group: Applications/Emulators
380 %description user-static
381 QEMU is a generic and open source processor emulator which achieves a
382 good emulation speed by using dynamic translation.
384 This package provides the user mode emulation of qemu targets built as
387 %description user-static -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 udostępnia emulację trybu użytkownika środowisk QEMU w
392 oparciu o programy wykonywalne zbudowane statycznie.
394 %package system-aarch64
395 Summary: QEMU system emulator for AArch64
396 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
397 Group: Applications/Emulators
398 Requires: %{name}-common = %{version}-%{release}
400 Obsoletes: qemu-kvm-system-aarch64 < 2
402 %description system-aarch64
403 QEMU is a generic and open source processor emulator which achieves a
404 good emulation speed by using dynamic translation.
406 This package provides the system emulator with AArch64 (ARM64) CPU.
408 %description system-aarch64 -l pl.UTF-8
409 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
410 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
412 Ten pakiet zawiera emulator systemu z procesorem AArch64 (ARM64).
414 %package system-alpha
415 Summary: QEMU system emulator for Alpha
416 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
417 Group: Applications/Emulators
418 Requires: %{name}-common = %{version}-%{release}
420 Obsoletes: qemu-kvm-system-alpha < 2
422 %description system-alpha
423 QEMU is a generic and open source processor emulator which achieves a
424 good emulation speed by using dynamic translation.
426 This package provides the system emulator with Alpha CPU.
428 %description system-alpha -l pl.UTF-8
429 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
430 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
432 Ten pakiet zawiera emulator systemu z procesorem Alpha.
435 Summary: QEMU system emulator for 32-bit ARM
436 Summary(pl.UTF-8): QEMU - emulator systemu z 32-bitowym procesorem ARM
437 Group: Applications/Emulators
438 Requires: %{name}-common = %{version}-%{release}
440 Obsoletes: qemu-kvm-system-arm < 2
442 %description system-arm
443 QEMU is a generic and open source processor emulator which achieves a
444 good emulation speed by using dynamic translation.
446 This package provides the system emulator for 32-bit ARM.
448 %description system-arm -l pl.UTF-8
449 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
450 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
452 Ten pakiet zawiera emulator systemu z 32-bitowym procesorem ARM.
455 Summary: QEMU system emulator for AVR
456 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AVR
457 Group: Applications/Emulators
458 Requires: %{name}-common = %{version}-%{release}
460 Obsoletes: qemu-kvm-system-avr < 2
462 %description system-avr
463 QEMU is a generic and open source processor emulator which achieves a
464 good emulation speed by using dynamic translation.
466 This package provides the system emulator for AVR.
468 %description system-avr -l pl.UTF-8
469 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
470 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
472 Ten pakiet zawiera emulator systemu z procesorem AVR.
475 Summary: QEMU system emulator for CRIS
476 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
477 Group: Applications/Emulators
478 Requires: %{name}-common = %{version}-%{release}
480 Obsoletes: qemu-kvm-system-cris < 2
482 %description system-cris
483 QEMU is a generic and open source processor emulator which achieves a
484 good emulation speed by using dynamic translation.
486 This package provides the system emulator with CRIS CPU.
488 %description system-cris -l pl.UTF-8
489 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
490 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
492 Ten pakiet zawiera emulator systemu z procesorem CRIS.
495 Summary: QEMU system emulator for HP/PA
496 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem HP/PA
497 Group: Applications/Emulators
498 Requires: %{name}-common = %{version}-%{release}
501 %description system-hppa
502 QEMU is a generic and open source processor emulator which achieves a
503 good emulation speed by using dynamic translation.
505 This package provides the system emulator with HP/PA (PA-RISC) CPU.
507 %description system-hppa -l pl.UTF-8
508 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
509 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
511 Ten pakiet zawiera emulator systemu z procesorem HP/PA (PA-RISC).
514 Summary: QEMU system emulator for m68k
515 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
516 Group: Applications/Emulators
517 Requires: %{name}-common = %{version}-%{release}
519 Obsoletes: qemu-kvm-system-m68k < 2
521 %description system-m68k
522 QEMU is a generic and open source processor emulator which achieves a
523 good emulation speed by using dynamic translation.
525 This package provides the system emulator with m68k (Motorola 68xxx)
528 %description system-m68k -l pl.UTF-8
529 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
530 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
532 Ten pakiet zawiera emulator systemu z procesorem m68k (Motorola
535 %package system-microblaze
536 Summary: QEMU system emulator for MicroBlaze
537 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
538 Group: Applications/Emulators
539 Requires: %{name}-common = %{version}-%{release}
541 Obsoletes: qemu-kvm-system-microblaze < 2
543 %description system-microblaze
544 QEMU is a generic and open source processor emulator which achieves a
545 good emulation speed by using dynamic translation.
547 This package provides the system emulator with MicroBlaze CPU.
549 %description system-microblaze -l pl.UTF-8
550 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
551 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
553 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
556 Summary: QEMU system emulator for MIPS
557 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
558 Group: Applications/Emulators
559 Requires: %{name}-common = %{version}-%{release}
561 Obsoletes: qemu-kvm-system-mips < 2
563 %description system-mips
564 QEMU is a generic and open source processor emulator which achieves a
565 good emulation speed by using dynamic translation.
567 This package provides the system emulator with MIPS CPU.
569 %description system-mips -l pl.UTF-8
570 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
571 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
573 Ten pakiet zawiera emulator systemu z procesorem MIPS.
575 %package system-nios2
576 Summary: QEMU system emulator for Nios II
577 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Nios II
578 Group: Applications/Emulators
579 Requires: %{name}-common = %{version}-%{release}
582 %description system-nios2
583 QEMU is a generic and open source processor emulator which achieves a
584 good emulation speed by using dynamic translation.
586 This package provides the system emulator with Nios II CPU.
588 %description system-nios2 -l pl.UTF-8
589 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
590 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
592 Ten pakiet zawiera emulator systemu z procesorem Nios II.
595 Summary: QEMU system emulator for OpenRISC
596 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
597 Group: Applications/Emulators
598 Requires: %{name}-common = %{version}-%{release}
600 Obsoletes: qemu-kvm-system-or1k < 2
601 Obsoletes: qemu-system-or32 < 2.9.0
603 %description system-or1k
604 QEMU is a generic and open source processor emulator which achieves a
605 good emulation speed by using dynamic translation.
607 This package provides the system emulator with OpenRISC CPU.
609 %description system-or1k -l pl.UTF-8
610 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
611 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
613 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
616 Summary: QEMU system emulator for PowerPC
617 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
618 Group: Applications/Emulators
619 Requires: %{name}-common = %{version}-%{release}
621 Obsoletes: qemu-kvm-system-ppc < 2
623 %description system-ppc
624 QEMU is a generic and open source processor emulator which achieves a
625 good emulation speed by using dynamic translation.
627 This package provides the system emulator with PowerPC CPU.
629 %description system-ppc -l pl.UTF-8
630 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
631 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
633 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
635 %package system-riscv32
636 Summary: QEMU system emulator for RISC-V (32 bit)
637 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (32 bit)
638 Group: Applications/Emulators
639 Requires: %{name}-common = %{version}-%{release}
642 %description system-riscv32
643 QEMU is a generic and open source processor emulator which achieves a
644 good emulation speed by using dynamic translation.
646 This package provides the system emulator with RISC-V (32 bit) CPU.
648 %description system-riscv32 -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 zawiera emulator systemu z procesorem RISC-V (32 bit).
654 %package system-riscv64
655 Summary: QEMU system emulator for RISC-V (64 bit)
656 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (64 bitowym)
657 Group: Applications/Emulators
658 Requires: %{name}-common = %{version}-%{release}
661 %description system-riscv64
662 QEMU is a generic and open source processor emulator which achieves a
663 good emulation speed by using dynamic translation.
665 This package provides the system emulator with RISC-V (64 bit) CPU.
667 %description system-riscv64 -l pl.UTF-8
668 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
669 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
671 Ten pakiet zawiera emulator systemu z procesorem RISC-V (64-bitowym).
674 Summary: QEMU system emulator for Renesas RX
675 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Renesas RX
676 Group: Applications/Emulators
677 Requires: %{name}-common = %{version}-%{release}
680 %description system-rx
681 QEMU is a generic and open source processor emulator which achieves a
682 good emulation speed by using dynamic translation.
684 This package provides the system emulator with Renesas RX CPU.
686 %description system-rx -l pl.UTF-8
687 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
688 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
690 Ten pakiet zawiera emulator systemu z procesorem Renesas RX.
692 %package system-s390x
693 Summary: QEMU system emulator for S390x (IBM Z)
694 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390x (IBM Z)
695 Group: Applications/Emulators
696 Requires: %{name}-common = %{version}-%{release}
698 Obsoletes: qemu-kvm-system-s390x < 2
700 %description system-s390x
701 QEMU is a generic and open source processor emulator which achieves a
702 good emulation speed by using dynamic translation.
704 This package provides the system emulator with S390x (IBM Z) CPU.
706 %description system-s390x -l pl.UTF-8
707 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
708 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
710 Ten pakiet zawiera emulator systemu z procesorem S390x (IBM Z).
713 Summary: QEMU system emulator for SH4
714 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
715 Group: Applications/Emulators
716 Requires: %{name}-common = %{version}-%{release}
718 Obsoletes: qemu-kvm-system-sh4 < 2
720 %description system-sh4
721 QEMU is a generic and open source processor emulator which achieves a
722 good emulation speed by using dynamic translation.
724 This package provides the system emulator with SH4 CPU.
726 %description system-sh4 -l pl.UTF-8
727 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
728 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
730 Ten pakiet zawiera emulator systemu z procesorem SH4.
732 %package system-sparc
733 Summary: QEMU system emulator for SPARC
734 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
735 Group: Applications/Emulators
736 Requires: %{name}-common = %{version}-%{release}
738 Obsoletes: qemu-kvm-system-sparc < 2
740 %description system-sparc
741 QEMU is a generic and open source processor emulator which achieves a
742 good emulation speed by using dynamic translation.
744 This package provides the system emulator with SPARC/SPARC64 CPU.
746 %description system-sparc -l pl.UTF-8
747 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
748 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
750 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
752 %package system-tricore
753 Summary: QEMU system emulator for TriCore
754 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
755 Group: Applications/Emulators
756 Requires: %{name}-common = %{version}-%{release}
759 %description system-tricore
760 QEMU is a generic and open source processor emulator which achieves a
761 good emulation speed by using dynamic translation.
763 This package provides the system emulator with TriCore CPU.
765 %description system-tricore -l pl.UTF-8
766 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
767 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
769 Ten pakiet zawiera emulator systemu z procesorem TriCore.
772 Summary: QEMU system emulator for x86
773 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
774 Group: Applications/Emulators
775 Requires: %{name}-common = %{version}-%{release}
776 %{?with_vfio_user:Requires: libvfio-user = %{version}-%{release}}
777 %{?with_system_seabios:Requires: seabios >= 1.11.0}
780 Obsoletes: qemu-kvm-system-x86 < 2
782 %description system-x86
783 QEMU is a generic and open source processor emulator which achieves a
784 good emulation speed by using dynamic translation.
786 This package provides the system emulator with x86 CPU.
788 %description system-x86 -l pl.UTF-8
789 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
790 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
792 Ten pakiet zawiera emulator systemu z procesorem x86.
794 %package system-xtensa
795 Summary: QEMU system emulator for Xtensa
796 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
797 Group: Applications/Emulators
798 Requires: %{name}-common = %{version}-%{release}
800 Obsoletes: qemu-kvm-system-xtensa < 2
802 %description system-xtensa
803 QEMU is a generic and open source processor emulator which achieves a
804 good emulation speed by using dynamic translation.
806 This package provides the system emulator with Xtensa CPU.
808 %description system-xtensa -l pl.UTF-8
809 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
810 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
812 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
815 Summary: QEMU guest agent
816 Summary(pl.UTF-8): Agent gościa QEMU
818 Requires: glib2 >= 1:2.75.3
819 Requires: liburing >= 0.3
820 Obsoletes: qemu-kvm-guest-agent < 2
821 Conflicts: SysVinit < 2.96-2
823 %description guest-agent
824 QEMU is a generic and open source processor emulator which achieves a
825 good emulation speed by using dynamic translation.
827 This package provides an agent to run inside guests, which
828 communicates with the host over a virtio-serial channel named
829 "org.qemu.guest_agent.0".
831 This package does not need to be installed on the host OS.
833 %description guest-agent -l pl.UTF-8
834 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
835 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
837 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
838 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
839 "org.qemu.guest_agent.0".
841 Ten pakiet nie musi być zainstalowany w systemie hosta.
843 %package module-audio-jack
844 Summary: QEMU module for JACK audio output
845 Summary(pl.UTF-8): Moduł QEMU z wyjściem dźwięku JACK
846 Group: Applications/Emulators
847 Requires: %{name}-common = %{version}-%{release}
849 %description module-audio-jack
850 QEMU module for JACK audio output.
852 %description module-audio-jack -l pl.UTF-8
853 Moduł QEMU z wyjściem dźwięku JACK.
855 %package module-audio-pipewire
856 Summary: QEMU module for PipeWire audio output
857 Summary(pl.UTF-8): Moduł QEMU z wyjściem dźwięku PipeWire
858 Group: Applications/Emulators
859 Requires: %{name}-common = %{version}-%{release}
860 Requires: pipewire-libs >= 0.3.60
862 %description module-audio-pipewire
863 QEMU module for PipeWire audio output.
865 %description module-audio-pipewire -l pl.UTF-8
866 Moduł QEMU z wyjściem dźwięku PipeWire.
868 %package module-block-curl
869 Summary: QEMU module for 'curl' block devices
870 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
871 Group: Applications/Emulators
872 Requires: %{name}-common = %{version}-%{release}
873 Requires: curl-libs >= 7.29.0
875 %description module-block-curl
876 QEMU block device support for CURL. It allows to access remote disks
877 over http, https, ftp and other transports provided by the CURL
880 %description module-block-curl -l pl.UTF-8
881 Moduł QEMU dla urządeń blokowych CURL. Pozwala na dostęp do zdalnych
882 dysków poprzez http, https, ftp i inne protokoły obsługiwane przez
885 %package module-block-gluster
886 Summary: QEMU module for 'gluster' block devices
887 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
888 Group: Applications/Emulators
889 Requires: %{name}-common = %{version}-%{release}
890 Requires: glusterfs-libs >= 6
892 %description module-block-gluster
893 QEMU block device support for remote Gluster storage.
895 %description module-block-gluster -l pl.UTF-8
896 Moduł urządzeń blokowych QEMU do dostępu do zdalnej przestrzeni
899 %package module-block-iscsi
900 Summary: QEMU module for 'iscsi' block devices
901 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
902 Group: Applications/Emulators
903 Requires: %{name}-common = %{version}-%{release}
904 Requires: libiscsi >= 1.9.0
906 %description module-block-iscsi
907 QEMU block device support for iSCSI volumes.
909 %description module-block-iscsi -l pl.UTF-8
910 Moduł urządzeń blokowych QEMU do dostępu do wolumenów iSCSI.
912 %package module-block-nfs
913 Summary: QEMU module for 'nfs' block devices
914 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'nfs'
915 Group: Applications/Emulators
916 Requires: %{name}-common = %{version}-%{release}
917 Requires: libnfs >= 1.9.3
919 %description module-block-nfs
920 QEMU block device support for remote NFS storage.
922 %description module-block-nfs -l pl.UTF-8
923 Moduł urządzeń blokowych QEMU do dostępu do zdalnej przestrzeni po
926 %package module-block-rbd
927 Summary: QEMU module for 'rbd' block devices
928 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
929 Group: Applications/Emulators
930 Requires: %{name}-common = %{version}-%{release}
931 Requires: ceph-libs >= 12
933 %description module-block-rbd
934 QEMU block device support for Ceph/RBD volumes.
936 %description module-block-rbd -l pl.UTF-8
937 Moduł urządzeń blokowych QEMU do wolumenów Ceph/RBD.
939 %package module-block-ssh
940 Summary: QEMU module for 'ssh' block devices
941 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
942 Group: Applications/Emulators
943 Requires: %{name}-common = %{version}-%{release}
944 Requires: libssh >= 0.8.7
946 %description module-block-ssh
947 QEMU block device support for accessing remote disks using the Secure
948 Shell (SSH) protocol.
950 %description module-block-ssh -l pl.UTF-8
951 Moduł urządzeń blokowych QEMU do dostępu do zdalnych dysków poprzez
952 protokół SSH (Secure Shell).
954 %package module-ui-dbus
955 Summary: QEMU DBus UI driver
956 Summary(pl.UTF-8): Sterownik interfejsu użytkownika DBus dla QEMU
957 Group: Applications/Emulators
958 Requires: %{name}-common = %{version}-%{release}
960 %description module-ui-dbus
963 %description module-ui-dbus -l pl.UTF-8
964 Sterownik interfejsu użytkownika DBus dla QEMU.
966 %package module-ui-gtk
967 Summary: QEMU GTK UI driver
968 Summary(pl.UTF-8): Sterownik interfejsu użytkownika GTK dla QEMU
969 Group: Applications/Emulators
970 Requires: %{name}-common = %{version}-%{release}
972 %description module-ui-gtk
975 %description module-ui-gtk -l pl.UTF-8
976 Sterownik interfejsu użytkownika GTK dla QEMU.
978 %package module-ui-sdl
979 Summary: QEMU SDL UI and audio driver
980 Summary(pl.UTF-8): Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU
981 Group: Applications/Emulators
982 Requires: %{name}-common = %{version}-%{release}
984 %description module-ui-sdl
985 QEMU SDL UI and audio driver.
987 %description module-ui-sdl -l pl.UTF-8
988 Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU.
990 %package -n systemtap-qemu
991 Summary: systemtap/dtrace probes for QEMU
992 Summary(pl.UTF-8): Sondy systemtap/dtrace dla QEMU
993 Group: Development/Tools
994 Requires: %{name}-common = %{version}-%{release}
995 Requires: systemtap-client
997 %description -n systemtap-qemu
998 systemtap/dtrace probes for QEMU.
1000 %description -n systemtap-qemu -l pl.UTF-8
1001 Sondy systemtap/dtrace dla QEMU.
1003 %package -n libvfio-user
1004 Summary: vfio-user library
1005 Summary(pl.UTF-8): Biblioteka vfio-user
1007 Requires: json-c >= 0.11
1009 %description -n libvfio-user
1010 vfio-user is a framework that allows implementing PCI devices in
1011 userspace. Clients (such as qemu) talk the vfio-user protocol over a
1012 UNIX socket to a server. This library, libvfio-user, provides an API
1013 for implementing such servers.
1015 %description -n libvfio-user -l pl.UTF-8
1016 vfio-user to szkielet pozwalający implementować urządzenia PCI w
1017 przestrzeni użytkownika. Klienci (jak qemu) komunikują się z serwerem
1018 protokołem vfio-user przez gniazdo uniksowe.
1020 %package -n libvfio-user-devel
1021 Summary: Header files for vfio-user library
1022 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki vfio-user
1023 Group: Development/Libraries
1024 Requires: libvfio-user = %{version}-%{release}
1026 %description -n libvfio-user-devel
1027 Header files for vfio-user library.
1029 %description -n libvfio-user-devel -l pl.UTF-8
1030 Pliki nagłówkowe biblioteki vfio-user.
1042 %{__sed} -i '1s,/usr/bin/env python3,%{__python3},' scripts/qemu-trace-stap
1044 %if %{with systemtap}
1045 # don't require stap binary during build
1046 %{__sed} -i -e "s/stap.found()/true/" meson.build docs/meson.build scripts/meson.build
1049 %if %{without smartcard}
1050 %{__sed} -i -e '/^config USB_SMARTCARD/,/^$/ s/default y/default n/' hw/usb/Kconfig
1053 # xen-emu supports only LP64 __x86_64__ case
1054 %{__sed} -i -e '/^config XEN_EMU/,$ s/default y/default n/' hw/i386/Kconfig
1056 # plain x32 doesn't provide __sync_bool_compare_and_swap_16 - fail int128_t/ATOMIC128 tests earlier
1057 %{__sed} -i -e '/^has_int128_type = / s/$/FAILME/' meson.build
1066 install -d build-$target
1070 --prefix=%{_prefix} \
1071 --libdir=%{_libdir} \
1072 --libexecdir=%{_libexecdir} \
1073 --sysconfdir=%{_sysconfdir} \
1074 --localstatedir=%{_localstatedir} \
1075 --interp-prefix=%{_libdir}/qemu/lib-%%M \
1078 --host-cc="%{__cc}" \
1080 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
1091 --extra-cflags="%{rpmcflags} %{rpmcppflags}" \
1092 --extra-ldflags="%{rpmldflags} -Wl,-z,relro -Wl,-z,now" \
1093 --audio-drv-list="alsa,jack%{?with_oss:,oss}%{?with_pulseaudio:,pa}%{?with_sdl:,sdl}" \
1095 %{__enable_disable brlapi} \
1096 %{__enable_disable canokey} \
1103 %{__enable_disable glusterfs} \
1104 %{!?with_gtk3:--disable-gtk} \
1105 %{__enable_disable iscsi libiscsi} \
1106 %{__enable_disable libnfs} \
1107 %{__enable_disable pipewire} \
1108 %{__enable_disable pmem libpmem} \
1110 %{__enable_disable multipath mpath} \
1114 %{__enable_disable ceph rbd} \
1115 %{__enable_disable rdma} \
1116 %{__enable_disable sdl} \
1117 %{__enable_disable seccomp} \
1119 %{__enable_disable spice} \
1120 %{__enable_disable smartcard} \
1121 %{__enable_disable snappy} \
1123 %{__enable_disable usbredir usb-redir} \
1125 %{?with_vfio_user:--enable-vfio-user-server} \
1126 %{__enable_disable virgl virglrenderer} \
1130 %{!?with_vte:--disable-vte} \
1131 %{__enable_disable xen} \
1132 %{__enable_disable xkbcommon}
1134 %if %{with user_static}
1139 --disable-capstone \
1145 --disable-guest-agent \
1146 --disable-guest-agent-msi \
1148 --disable-linux-io-uring \
1158 --disable-xkbcommon \
1163 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
1166 rm -rf $RPM_BUILD_ROOT
1168 $RPM_BUILD_ROOT/etc/{qemu,sysconfig,modules-load.d,rc.d/init.d,logrotate.d} \
1169 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,/lib/udev/rules.d,%{_sbindir}}
1171 %if %{with user_static}
1172 %{__make} -C build-static install \
1173 DESTDIR=$RPM_BUILD_ROOT
1175 # Give all QEMU user emulators a -static suffix
1176 for src in $RPM_BUILD_ROOT%{_bindir}/qemu-*; do
1177 %{__mv} $src $src-static
1182 %{__make} -C build-dynamic install \
1183 DESTDIR=$RPM_BUILD_ROOT
1185 # let rpm generate dependencies
1186 chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/*.so
1188 echo "#allow br0" > $RPM_BUILD_ROOT/etc/qemu/bridge.conf
1190 install -d $RPM_BUILD_ROOT%{_sysconfdir}
1191 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
1196 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
1198 %ifarch %{ix86} %{x8664} x32
1199 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
1200 install -p %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/rules.d
1203 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
1204 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
1206 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
1207 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
1209 install -p %{SOURCE12} $RPM_BUILD_ROOT/lib/udev/rules.d
1211 install -p %{SOURCE13} $RPM_BUILD_ROOT/etc/rc.d/init.d/qemu-ga
1212 install -p %{SOURCE14} $RPM_BUILD_ROOT/etc/logrotate.d/qemu-ga
1214 %if %{with system_seabios}
1215 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
1216 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
1220 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
1221 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
1227 for t in client server; do
1228 cp -p build-dynamic/contrib/ivshmem-$t/ivshmem-$t $RPM_BUILD_ROOT%{_bindir}
1232 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/accel-qtest-*.so
1233 # Windows installer icon, not used
1234 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/qemu-nsis.bmp
1236 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/edk2-licenses.txt
1238 # cleanup Sphinx files
1239 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/{.buildinfo,objects.inv}
1242 rm -rf $RPM_BUILD_ROOT
1245 %groupadd -g 160 kvm
1246 %groupadd -g 276 qemu
1247 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
1250 if [ "$1" = "0" ]; then
1257 /sbin/chkconfig --add qemu-ga
1258 %service qemu-ga restart "qemu-ga"
1261 if [ "$1" = "0" ]; then
1262 %service qemu-ga stop
1263 /sbin/chkconfig --del qemu-ga
1266 %post -n libvfio-user -p /sbin/ldconfig
1267 %postun -n libvfio-user -p /sbin/ldconfig
1270 %defattr(644,root,root,755)
1272 %files common -f %{name}.lang
1273 %defattr(644,root,root,755)
1274 %doc LICENSE README.rst pc-bios/edk2-licenses.txt
1275 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
1276 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
1277 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
1278 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
1280 %attr(640,root,qemu) %config(noreplace) %verify(not md5 mtime size) /etc/qemu/bridge.conf
1281 %attr(755,root,root) %{_bindir}/elf2dmp
1282 %attr(755,root,root) %{_bindir}/qemu-edid
1283 %if %{with xkbcommon}
1284 %attr(755,root,root) %{_bindir}/qemu-keymap
1286 %attr(755,root,root) %{_bindir}/qemu-nbd
1287 %attr(755,root,root) %{_bindir}/qemu-pr-helper
1288 %attr(755,root,root) %{_bindir}/qemu-storage-daemon
1289 %attr(755,root,root) %{_sbindir}/ksmctl
1290 %attr(755,root,root) %{_sbindir}/ksmtuned
1291 %attr(755,root,root) %{_libexecdir}/qemu-bridge-helper
1293 %attr(755,root,root) %{_libexecdir}/vhost-user-gpu
1295 %attr(755,root,root) %{_libexecdir}/virtfs-proxy-helper
1296 %dir %{_libdir}/%{name}
1297 # modules without too many external dependencies
1298 %attr(755,root,root) %{_libdir}/%{name}/block-blkio.so
1299 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-bz2.so
1300 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-lzfse.so
1301 %attr(755,root,root) %{_libdir}/%{name}/accel-tcg-i386.so
1302 %attr(755,root,root) %{_libdir}/%{name}/accel-tcg-x86_64.so
1303 %attr(755,root,root) %{_libdir}/%{name}/audio-alsa.so
1305 %attr(755,root,root) %{_libdir}/%{name}/audio-oss.so
1307 %if %{with pulseaudio}
1308 %attr(755,root,root) %{_libdir}/%{name}/audio-pa.so
1311 %attr(755,root,root) %{_libdir}/%{name}/chardev-baum.so
1313 %attr(755,root,root) %{_libdir}/%{name}/hw-display-qxl.so
1314 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu.so
1315 %{?with_virgl:%attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-gl.so}
1316 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-pci.so
1317 %{?with_virgl:%attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-pci-gl.so}
1318 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-vga.so
1319 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-vga-gl.so
1320 %attr(755,root,root) %{_libdir}/%{name}/hw-s390x-virtio-gpu-ccw.so
1321 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-host.so
1322 %attr(755,root,root) %{_libdir}/%{name}/ui-curses.so
1323 %if %{with usbredir}
1324 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-redirect.so
1326 %if %{with smartcard}
1327 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-smartcard.so
1330 %attr(755,root,root) %{_libdir}/%{name}/ui-egl-headless.so
1331 %attr(755,root,root) %{_libdir}/%{name}/ui-opengl.so
1334 %attr(755,root,root) %{_libdir}/%{name}/audio-spice.so
1335 %attr(755,root,root) %{_libdir}/%{name}/chardev-spice.so
1336 %attr(755,root,root) %{_libdir}/%{name}/ui-spice-app.so
1337 %attr(755,root,root) %{_libdir}/%{name}/ui-spice-core.so
1339 %dir %{_datadir}/%{name}
1340 %dir %{_datadir}/%{name}/firmware
1341 %{_datadir}/%{name}/keymaps
1342 %{_datadir}/%{name}/trace-events-all
1344 %dir %{_datadir}/%{name}/vhost-user
1345 %{_datadir}/%{name}/vhost-user/50-qemu-gpu.json
1347 %{_desktopdir}/qemu.desktop
1348 %{_iconsdir}/hicolor/*x*/apps/qemu.png
1349 %{_iconsdir}/hicolor/32x32/apps/qemu.bmp
1350 %{_iconsdir}/hicolor/scalable/apps/qemu.svg
1351 %{_mandir}/man1/qemu.1*
1352 %{_mandir}/man1/qemu-storage-daemon.1*
1353 %{_mandir}/man1/virtfs-proxy-helper.1*
1354 %{_mandir}/man7/qemu-block-drivers.7*
1355 %{_mandir}/man7/qemu-cpu-models.7*
1356 %{_mandir}/man7/qemu-qmp-ref.7*
1357 %{_mandir}/man7/qemu-storage-daemon-qmp-ref.7*
1358 %{_mandir}/man8/qemu-nbd.8*
1359 %{_mandir}/man8/qemu-pr-helper.8*
1363 %defattr(644,root,root,755)
1364 %{_includedir}/qemu-plugin.h
1367 %defattr(644,root,root,755)
1368 %attr(755,root,root) %{_bindir}/qemu-img
1369 %{_mandir}/man1/qemu-img.1*
1372 %defattr(644,root,root,755)
1373 %attr(755,root,root) %{_bindir}/ivshmem-client
1374 %attr(755,root,root) %{_bindir}/ivshmem-server
1377 %defattr(644,root,root,755)
1378 %attr(755,root,root) %{_bindir}/qemu-aarch64
1379 %attr(755,root,root) %{_bindir}/qemu-aarch64_be
1380 %attr(755,root,root) %{_bindir}/qemu-alpha
1381 %attr(755,root,root) %{_bindir}/qemu-arm
1382 %attr(755,root,root) %{_bindir}/qemu-armeb
1383 %attr(755,root,root) %{_bindir}/qemu-cris
1384 %attr(755,root,root) %{_bindir}/qemu-hexagon
1385 %attr(755,root,root) %{_bindir}/qemu-hppa
1386 %attr(755,root,root) %{_bindir}/qemu-i386
1387 %attr(755,root,root) %{_bindir}/qemu-io
1388 %attr(755,root,root) %{_bindir}/qemu-loongarch64
1389 %attr(755,root,root) %{_bindir}/qemu-m68k
1390 %attr(755,root,root) %{_bindir}/qemu-microblaze
1391 %attr(755,root,root) %{_bindir}/qemu-microblazeel
1392 %attr(755,root,root) %{_bindir}/qemu-mips
1393 %attr(755,root,root) %{_bindir}/qemu-mipsel
1394 %attr(755,root,root) %{_bindir}/qemu-mips64
1395 %attr(755,root,root) %{_bindir}/qemu-mips64el
1396 %attr(755,root,root) %{_bindir}/qemu-mipsn32
1397 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
1398 %attr(755,root,root) %{_bindir}/qemu-nios2
1399 %attr(755,root,root) %{_bindir}/qemu-or1k
1400 %attr(755,root,root) %{_bindir}/qemu-ppc
1401 %attr(755,root,root) %{_bindir}/qemu-ppc64
1402 %attr(755,root,root) %{_bindir}/qemu-ppc64le
1403 %attr(755,root,root) %{_bindir}/qemu-riscv32
1404 %attr(755,root,root) %{_bindir}/qemu-riscv64
1405 %attr(755,root,root) %{_bindir}/qemu-s390x
1406 %attr(755,root,root) %{_bindir}/qemu-sh4
1407 %attr(755,root,root) %{_bindir}/qemu-sh4eb
1408 %attr(755,root,root) %{_bindir}/qemu-sparc
1409 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
1410 %attr(755,root,root) %{_bindir}/qemu-sparc64
1411 %attr(755,root,root) %{_bindir}/qemu-x86_64
1412 %attr(755,root,root) %{_bindir}/qemu-xtensa
1413 %attr(755,root,root) %{_bindir}/qemu-xtensaeb
1415 %if %{with user_static}
1417 %defattr(644,root,root,755)
1418 %attr(755,root,root) %{_bindir}/qemu-aarch64-static
1419 %attr(755,root,root) %{_bindir}/qemu-aarch64_be-static
1420 %attr(755,root,root) %{_bindir}/qemu-alpha-static
1421 %attr(755,root,root) %{_bindir}/qemu-arm-static
1422 %attr(755,root,root) %{_bindir}/qemu-armeb-static
1423 %attr(755,root,root) %{_bindir}/qemu-cris-static
1424 %attr(755,root,root) %{_bindir}/qemu-hexagon-static
1425 %attr(755,root,root) %{_bindir}/qemu-hppa-static
1426 %attr(755,root,root) %{_bindir}/qemu-i386-static
1427 %attr(755,root,root) %{_bindir}/qemu-loongarch64-static
1428 %attr(755,root,root) %{_bindir}/qemu-m68k-static
1429 %attr(755,root,root) %{_bindir}/qemu-microblaze-static
1430 %attr(755,root,root) %{_bindir}/qemu-microblazeel-static
1431 %attr(755,root,root) %{_bindir}/qemu-mips-static
1432 %attr(755,root,root) %{_bindir}/qemu-mips64-static
1433 %attr(755,root,root) %{_bindir}/qemu-mips64el-static
1434 %attr(755,root,root) %{_bindir}/qemu-mipsel-static
1435 %attr(755,root,root) %{_bindir}/qemu-mipsn32-static
1436 %attr(755,root,root) %{_bindir}/qemu-mipsn32el-static
1437 %attr(755,root,root) %{_bindir}/qemu-nios2-static
1438 %attr(755,root,root) %{_bindir}/qemu-or1k-static
1439 %attr(755,root,root) %{_bindir}/qemu-ppc-static
1440 %attr(755,root,root) %{_bindir}/qemu-ppc64-static
1441 %attr(755,root,root) %{_bindir}/qemu-ppc64le-static
1442 %attr(755,root,root) %{_bindir}/qemu-riscv32-static
1443 %attr(755,root,root) %{_bindir}/qemu-riscv64-static
1444 %attr(755,root,root) %{_bindir}/qemu-s390x-static
1445 %attr(755,root,root) %{_bindir}/qemu-sh4-static
1446 %attr(755,root,root) %{_bindir}/qemu-sh4eb-static
1447 %attr(755,root,root) %{_bindir}/qemu-sparc-static
1448 %attr(755,root,root) %{_bindir}/qemu-sparc32plus-static
1449 %attr(755,root,root) %{_bindir}/qemu-sparc64-static
1450 %attr(755,root,root) %{_bindir}/qemu-x86_64-static
1451 %attr(755,root,root) %{_bindir}/qemu-xtensa-static
1452 %attr(755,root,root) %{_bindir}/qemu-xtensaeb-static
1453 %{?with_systemtap:%attr(755,root,root) %{_bindir}/qemu-trace-stap-static}
1456 %files system-aarch64
1457 %defattr(644,root,root,755)
1458 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1459 %{_datadir}/%{name}/edk2-aarch64-code.fd
1460 %{_datadir}/%{name}/firmware/60-edk2-aarch64.json
1463 %defattr(644,root,root,755)
1464 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1465 %{_datadir}/%{name}/palcode-clipper
1468 %defattr(644,root,root,755)
1469 %attr(755,root,root) %{_bindir}/qemu-system-arm
1470 %{_datadir}/%{name}/edk2-arm-code.fd
1471 %{_datadir}/%{name}/edk2-arm-vars.fd
1472 %{_datadir}/%{name}/firmware/60-edk2-arm.json
1473 %{_datadir}/%{name}/npcm7xx_bootrom.bin
1476 %defattr(644,root,root,755)
1477 %attr(755,root,root) %{_bindir}/qemu-system-avr
1480 %defattr(644,root,root,755)
1481 %attr(755,root,root) %{_bindir}/qemu-system-cris
1484 %defattr(644,root,root,755)
1485 %attr(755,root,root) %{_bindir}/qemu-system-hppa
1486 %{_datadir}/%{name}/hppa-firmware.img
1489 %defattr(644,root,root,755)
1490 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1492 %files system-microblaze
1493 %defattr(644,root,root,755)
1494 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1495 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1498 %defattr(644,root,root,755)
1499 %attr(755,root,root) %{_bindir}/qemu-system-loongarch64
1500 %attr(755,root,root) %{_bindir}/qemu-system-mips
1501 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1502 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1503 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1506 %defattr(644,root,root,755)
1507 %attr(755,root,root) %{_bindir}/qemu-system-nios2
1510 %defattr(644,root,root,755)
1511 %attr(755,root,root) %{_bindir}/qemu-system-or1k
1514 %defattr(644,root,root,755)
1515 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1516 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1517 %{_datadir}/%{name}/bamboo.dtb
1518 %{_datadir}/%{name}/canyonlands.dtb
1519 %{_datadir}/%{name}/openbios-ppc
1520 %{_datadir}/%{name}/petalogix-ml605.dtb
1521 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
1522 %{_datadir}/%{name}/qemu_vga.ndrv
1523 %{_datadir}/%{name}/skiboot.lid
1524 %{_datadir}/%{name}/slof.bin
1525 %{_datadir}/%{name}/u-boot.e500
1526 %{_datadir}/%{name}/u-boot-sam460-20100605.bin
1527 %{_datadir}/%{name}/vof.bin
1528 %{_datadir}/%{name}/vof-nvram.bin
1530 %files system-riscv32
1531 %defattr(644,root,root,755)
1532 %attr(755,root,root) %{_bindir}/qemu-system-riscv32
1533 %{_datadir}/%{name}/opensbi-riscv32-generic-fw_dynamic.bin
1535 %files system-riscv64
1536 %defattr(644,root,root,755)
1537 %attr(755,root,root) %{_bindir}/qemu-system-riscv64
1538 %{_datadir}/%{name}/opensbi-riscv64-generic-fw_dynamic.bin
1541 %defattr(644,root,root,755)
1542 %attr(755,root,root) %{_bindir}/qemu-system-rx
1545 %defattr(644,root,root,755)
1546 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1547 %{_datadir}/%{name}/s390-ccw.img
1548 %{_datadir}/%{name}/s390-netboot.img
1551 %defattr(644,root,root,755)
1552 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1553 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1556 %defattr(644,root,root,755)
1557 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1558 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1559 %{_datadir}/%{name}/QEMU,cgthree.bin
1560 %{_datadir}/%{name}/QEMU,tcx.bin
1561 %{_datadir}/%{name}/openbios-sparc32
1562 %{_datadir}/%{name}/openbios-sparc64
1564 %files system-tricore
1565 %defattr(644,root,root,755)
1566 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1569 %defattr(644,root,root,755)
1570 %attr(755,root,root) %{_bindir}/qemu-system-i386
1571 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1572 %ifarch %{ix86} %{x8664} x32
1573 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1574 /lib/udev/rules.d/80-kvm.rules
1576 %{_datadir}/%{name}/bios.bin
1577 %{_datadir}/%{name}/bios-256k.bin
1578 %{_datadir}/%{name}/bios-microvm.bin
1579 %{_datadir}/%{name}/edk2-i386-code.fd
1580 %{_datadir}/%{name}/edk2-i386-secure-code.fd
1581 %{_datadir}/%{name}/edk2-i386-vars.fd
1582 %{_datadir}/%{name}/edk2-x86_64-code.fd
1583 %{_datadir}/%{name}/edk2-x86_64-secure-code.fd
1584 %{_datadir}/%{name}/efi-e1000e.rom
1585 %{_datadir}/%{name}/efi-e1000.rom
1586 %{_datadir}/%{name}/efi-eepro100.rom
1587 %{_datadir}/%{name}/efi-ne2k_pci.rom
1588 %{_datadir}/%{name}/efi-pcnet.rom
1589 %{_datadir}/%{name}/efi-rtl8139.rom
1590 %{_datadir}/%{name}/efi-virtio.rom
1591 %{_datadir}/%{name}/efi-vmxnet3.rom
1592 %{_datadir}/%{name}/kvmvapic.bin
1593 %{_datadir}/%{name}/linuxboot.bin
1594 %{_datadir}/%{name}/linuxboot_dma.bin
1595 %{_datadir}/%{name}/multiboot.bin
1596 %{_datadir}/%{name}/multiboot_dma.bin
1597 %{_datadir}/%{name}/pvh.bin
1598 %{_datadir}/%{name}/pxe-e1000.rom
1599 %{_datadir}/%{name}/pxe-eepro100.rom
1600 %{_datadir}/%{name}/pxe-ne2k_pci.rom
1601 %{_datadir}/%{name}/pxe-pcnet.rom
1602 %{_datadir}/%{name}/pxe-rtl8139.rom
1603 %{_datadir}/%{name}/pxe-virtio.rom
1604 %{_datadir}/%{name}/qboot.rom
1605 %{_datadir}/%{name}/vgabios.bin
1606 %{_datadir}/%{name}/vgabios-ati.bin
1607 %{_datadir}/%{name}/vgabios-bochs-display.bin
1608 %{_datadir}/%{name}/vgabios-cirrus.bin
1609 %{_datadir}/%{name}/vgabios-qxl.bin
1610 %{_datadir}/%{name}/vgabios-ramfb.bin
1611 %{_datadir}/%{name}/vgabios-stdvga.bin
1612 %{_datadir}/%{name}/vgabios-virtio.bin
1613 %{_datadir}/%{name}/vgabios-vmware.bin
1614 %{_datadir}/%{name}/firmware/50-edk2-i386-secure.json
1615 %{_datadir}/%{name}/firmware/50-edk2-x86_64-secure.json
1616 %{_datadir}/%{name}/firmware/60-edk2-i386.json
1617 %{_datadir}/%{name}/firmware/60-edk2-x86_64.json
1619 %files system-xtensa
1620 %defattr(644,root,root,755)
1621 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1622 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1625 %defattr(644,root,root,755)
1626 %attr(755,root,root) %{_bindir}/qemu-ga
1627 /lib/udev/rules.d/99-qemu-guest-agent.rules
1628 %attr(754,root,root) /etc/rc.d/init.d/qemu-ga
1629 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/qemu-ga
1630 %{_mandir}/man7/qemu-ga-ref.7*
1631 %{_mandir}/man8/qemu-ga.8*
1633 %files module-audio-jack
1634 %defattr(644,root,root,755)
1635 %attr(755,root,root) %{_libdir}/%{name}/audio-jack.so
1637 %if %{with pipewire}
1638 %files module-audio-pipewire
1639 %defattr(644,root,root,755)
1640 %attr(755,root,root) %{_libdir}/%{name}/audio-pipewire.so
1643 %files module-block-curl
1644 %defattr(644,root,root,755)
1645 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1647 %if %{with glusterfs}
1648 %files module-block-gluster
1649 %defattr(644,root,root,755)
1650 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1654 %files module-block-iscsi
1655 %defattr(644,root,root,755)
1656 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1660 %files module-block-nfs
1661 %defattr(644,root,root,755)
1662 %attr(755,root,root) %{_libdir}/%{name}/block-nfs.so
1666 %files module-block-rbd
1667 %defattr(644,root,root,755)
1668 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1671 %files module-block-ssh
1672 %defattr(644,root,root,755)
1673 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so
1675 %files module-ui-dbus
1676 %defattr(644,root,root,755)
1677 %attr(755,root,root) %{_libdir}/%{name}/audio-dbus.so
1678 %attr(755,root,root) %{_libdir}/%{name}/ui-dbus.so
1681 %files module-ui-gtk
1682 %defattr(644,root,root,755)
1683 %attr(755,root,root) %{_libdir}/%{name}/ui-gtk.so
1687 %files module-ui-sdl
1688 %defattr(644,root,root,755)
1689 %attr(755,root,root) %{_libdir}/%{name}/audio-sdl.so
1690 %attr(755,root,root) %{_libdir}/%{name}/ui-sdl.so
1693 %if %{with systemtap}
1694 %files -n systemtap-qemu
1695 %defattr(644,root,root,755)
1696 %attr(755,root,root) %{_bindir}/qemu-trace-stap
1697 %{_datadir}/systemtap/tapset/qemu-*.stp
1698 %{_mandir}/man1/qemu-trace-stap.1*
1701 %if %{with vfio_user}
1702 %files -n libvfio-user
1703 %defattr(644,root,root,755)
1704 %attr(755,root,root) %{_libdir}/libvfio-user.so.*.*.*
1705 %attr(755,root,root) %ghost %{_libdir}/libvfio-user.so.0
1707 %files -n libvfio-user-devel
1708 %defattr(644,root,root,755)
1709 %attr(755,root,root) %{_libdir}/libvfio-user.so
1710 %{_includedir}/vfio-user