5 %bcond_without sdl # SDL UI and audio support
6 %bcond_without opengl # Don't require GL deps
7 %bcond_without ceph # Ceph/RBD support
8 %bcond_without glusterfs # GlusterFS backend
9 %bcond_without rdma # RDMA-based migration support
10 %bcond_without gtk3 # Do not build GTK+ UI
11 %bcond_without vte # VTE support in GTK+ UI
12 %bcond_without spice # SPICE support
13 %bcond_without oss # OSS audio support
14 %bcond_without pulseaudio # PulseAudio audio support
15 %bcond_without xen # Xen backend driver support
16 %bcond_without brlapi # brlapi support
17 %bcond_without smartcard # smartcard-nss support
18 %bcond_without iscsi # iscsi support
19 %bcond_without libnfs # NFS support
20 %bcond_without multipath # Multipath support
21 %bcond_without pmem # libpmem (persistent memory) support
22 %bcond_without seccomp # seccomp support
23 %bcond_without usbredir # usb network redirection support
24 %bcond_without system_seabios # system seabios binary
25 %bcond_without snappy # snappy compression library
26 %bcond_without user_static # build linux-user static packages
27 %bcond_with lttng # lttng-ust trace backend support [needs update]
28 %bcond_without systemtap # SystemTap/dtrace trace backend support
29 %bcond_without virgl # build virgl support
30 %bcond_with vxhs # Veritas HyperScale vDisk backend support (builtin; module not supported)
31 %bcond_without xkbcommon # xkbcommon support
39 %ifnarch %{x8664} aarch64
43 Summary: QEMU CPU Emulator
44 Summary(pl.UTF-8): QEMU - emulator procesora
48 License: GPL v2, BSD (edk2 firmware files)
49 Group: Applications/Emulators
50 Source0: https://download.qemu.org/%{name}-%{version}.tar.xz
51 # Source0-md5: ede6005d7143fe994dd089d31dc2cf6c
52 # Loads kvm kernel modules at boot
53 Source3: kvm-modules-load.conf
58 Source6: ksm.sysconfig
60 Source8: ksmtuned.service
62 Source10: ksmtuned.conf
63 Source11: %{name}-guest-agent.service
64 Source12: 99-%{name}-guest-agent.rules
65 Source13: %{name}-guest-agent.init
66 Source14: %{name}-guest-agent.logrotate
67 Source15: %{name}-pr-helper.service
68 Source16: %{name}-pr-helper.socket
69 Patch0: %{name}-cflags.patch
70 Patch1: %{name}-whitelist.patch
71 Patch2: %{name}-user-execve.patch
72 Patch3: %{name}-xattr.patch
73 Patch4: libjpeg-boolean.patch
75 Patch6: %{name}-vxhs.patch
76 URL: https://www.qemu.org/
77 %{?with_opengl:BuildRequires: Mesa-libgbm-devel}
78 %{?with_opengl:BuildRequires: OpenGL-GLX-devel}
79 %{?with_opengl:BuildRequires: OpenGL-devel}
80 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
81 %{?with_sdl:BuildRequires: SDL2_image-devel >= 2.0}
82 BuildRequires: alsa-lib-devel
83 BuildRequires: bcc >= 0.16.21-2
84 %{?with_brlapi:BuildRequires: brlapi-devel}
85 BuildRequires: bzip2-devel
86 BuildRequires: capstone-devel >= 3.0.5
87 %{?with_ceph:BuildRequires: ceph-devel}
88 BuildRequires: curl-devel
89 BuildRequires: cyrus-sasl-devel >= 2
90 BuildRequires: glib2-devel >= 1:2.48
91 # minimal is 3.4 but new features are used up to 6
92 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 6}
93 BuildRequires: gnutls-devel >= 3.1.18
94 %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.16}
95 BuildRequires: libaio-devel
96 %{?with_smartcard:BuildRequires: libcacard-devel >= 2.5.1}
97 BuildRequires: libcap-ng-devel
98 %{?with_opengl:BuildRequires: libepoxy-devel}
99 BuildRequires: libfdt-devel >= 1.4.2
100 %{?with_rdma:BuildRequires: libibverbs-devel}
101 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
102 %{?with_rdma:BuildRequires: libibumad-devel}
103 BuildRequires: libjpeg-devel
104 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
105 BuildRequires: libpng-devel
106 %{?with_rdma:BuildRequires: librdmacm-devel}
107 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.3.0}
108 BuildRequires: libssh-devel >= 0.8
109 BuildRequires: libslirp-devel >= 4.0.0
111 #BuildRequires: libtasn1-devel
112 BuildRequires: libusb-devel >= 1.0.22
113 BuildRequires: liburing-devel
114 BuildRequires: libuuid-devel
115 %{?with_vxhs:BuildRequires: libvxhs-devel}
116 BuildRequires: libxml2-devel >= 2.0
117 %{?with_lttng:BuildRequires: lttng-ust-devel}
118 BuildRequires: lzfse-devel
119 BuildRequires: lzo-devel >= 2
120 %{?with_multipath:BuildRequires: multipath-tools-devel}
121 BuildRequires: ncurses-devel
122 # also libgcrypt-devel >= 1.5.0 possible, but gnutls already pulls nettle
123 BuildRequires: nettle-devel >= 2.7.1
124 %{?with_smartcard:BuildRequires: nss-devel >= 1:3.12.8}
125 BuildRequires: numactl-devel
126 BuildRequires: pam-devel
127 BuildRequires: perl-Encode
128 BuildRequires: perl-tools-pod
129 BuildRequires: pixman-devel >= 0.21.8
130 BuildRequires: pkgconfig
131 %{?with_pmem:BuildRequires: pmdk-devel}
132 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
133 BuildRequires: python3 >= 1:3.5
134 BuildRequires: rpmbuild(macros) >= 1.644
135 %{?with_system_seabios:BuildRequires: seabios}
136 BuildRequires: sed >= 4.0
137 %{?with_snappy:BuildRequires: snappy-devel}
138 BuildRequires: sphinx-pdg
140 BuildRequires: spice-protocol >= 0.12.3
141 BuildRequires: spice-server-devel >= 0.12.5
143 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
144 BuildRequires: tar >= 1:1.22
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 # min version is 4.2, more features up to 4.10
156 %{?with_xen:BuildRequires: xen-devel >= 4.10}
157 BuildRequires: xfsprogs-devel
158 %{?with_xkbcommon:BuildRequires: xorg-lib-libxkbcommon-devel}
159 BuildRequires: xorg-lib-libX11-devel
161 BuildRequires: zlib-devel
162 BuildRequires: zstd-devel >= 1.4.0
163 %if %{with user_static}
164 BuildRequires: glib2-static >= 1:2.48
165 BuildRequires: glibc-static
166 BuildRequires: pcre-static
167 BuildRequires: zlib-static
169 Requires: %{name}-img = %{version}-%{release}
170 Requires: %{name}-system-aarch64 = %{version}-%{release}
171 Requires: %{name}-system-alpha = %{version}-%{release}
172 Requires: %{name}-system-arm = %{version}-%{release}
173 Requires: %{name}-system-cris = %{version}-%{release}
174 Requires: %{name}-system-hppa = %{version}-%{release}
175 Requires: %{name}-system-lm32 = %{version}-%{release}
176 Requires: %{name}-system-m68k = %{version}-%{release}
177 Requires: %{name}-system-microblaze = %{version}-%{release}
178 Requires: %{name}-system-mips = %{version}-%{release}
179 Requires: %{name}-system-moxie = %{version}-%{release}
180 Requires: %{name}-system-nios2 = %{version}-%{release}
181 Requires: %{name}-system-or1k = %{version}-%{release}
182 Requires: %{name}-system-ppc = %{version}-%{release}
183 Requires: %{name}-system-riscv32 = %{version}-%{release}
184 Requires: %{name}-system-riscv64 = %{version}-%{release}
185 Requires: %{name}-system-rx = %{version}-%{release}
186 Requires: %{name}-system-s390x = %{version}-%{release}
187 Requires: %{name}-system-sh4 = %{version}-%{release}
188 Requires: %{name}-system-sparc = %{version}-%{release}
189 Requires: %{name}-system-tricore = %{version}-%{release}
190 Requires: %{name}-system-unicore32 = %{version}-%{release}
191 Requires: %{name}-system-x86 = %{version}-%{release}
192 Requires: %{name}-system-xtensa = %{version}-%{release}
193 Requires: %{name}-user = %{version}-%{release}
196 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
198 %define systempkg_req \
199 Requires: capstone >= 3.0.5 \
200 %{?with_smartcard:Requires: libcacard >= 2.5.1} \
201 Requires: libfdt >= 1.4.2 \
202 %if %{with seccomp} \
203 Requires: libseccomp >= 2.3.0 \
205 Requires: libslirp >= 4.0.0 \
206 Requires: libusb >= 1.0.22 \
207 Requires: pixman >= 0.21.8 \
209 Requires: spice-server-libs >= 0.12.5 \
211 %if %{with usbredir} \
212 Requires: usbredir >= 0.6 \
214 Requires: zstd >= 1.4.0
216 # don't strip/chrpath anything in there; these are boot images, roms etc
217 %define _noautostrip .*%{_datadir}/qemu/.*
218 %define _noautochrpath .*%{_datadir}/qemu/.*
221 QEMU is a FAST! processor emulator. By using dynamic translation it
222 achieves a reasonnable speed while being easy to port on new host
223 CPUs. QEMU has two operating modes:
225 - User mode emulation. In this mode, QEMU can launch Linux processes
226 compiled for one CPU on another CPU. Linux system calls are converted
227 because of endianness and 32/64 bit mismatches. Wine (Windows
228 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
230 - Full system emulation. In this mode, QEMU emulates a full system,
231 including a processor and various peripherials. It can also be used to
232 provide virtual hosting of several virtual PC on a single server.
234 %description -l pl.UTF-8
235 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
236 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
237 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
239 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
240 procesy linuksowe skompilowane dla jednego procesora na innym
241 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
242 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
243 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
246 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
247 włączając w to procesor i różne urządzenia peryferyjne. Może być także
248 używane do wirtualnego hostowania kilku wirtualnych pecetów na
249 pojedynczym serwerze.
252 Summary: QEMU common files needed by all QEMU targets
253 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
254 Group: Applications/Emulators
255 Requires(post,preun,postun): systemd-units >= 38
256 Requires(postun): /usr/sbin/groupdel
257 Requires(postun): /usr/sbin/userdel
258 Requires(pre): /bin/id
259 Requires(pre): /usr/bin/getgid
260 Requires(pre): /usr/sbin/groupadd
261 Requires(pre): /usr/sbin/useradd
262 Requires: glib2 >= 1:2.48
263 Requires: gnutls-libs >= 3.1.18
264 %{?with_gtk3:Requires: gtk+3 >= 3.16}
265 Requires: nettle >= 2.7.1
266 Requires: systemd-units >= 38
267 %{?with_vte:Requires: vte >= 0.32.0}
268 Provides: group(qemu)
270 Obsoletes: qemu-kvm-common
271 Obsoletes: qemu-module-block-archipelago < 2.9.0
272 Conflicts: qemu < 1.0-2
275 QEMU is a generic and open source processor emulator which achieves a
276 good emulation speed by using dynamic translation.
278 This package provides the common files needed by all QEMU targets.
280 %description common -l pl.UTF-8
281 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
282 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
284 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
288 Summary: QEMU command line tool for manipulating disk images
289 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
290 Group: Applications/Emulators
291 Obsoletes: qemu-kvm-img
292 Conflicts: qemu < 1.0-2
295 This package provides a command line tool for manipulating disk
298 %description img -l pl.UTF-8
299 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
303 Summary: QEMU user mode emulation of qemu targets
304 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
305 Group: Applications/Emulators
306 Requires: %{name}-common = %{version}-%{release}
307 Requires(post,postun): systemd-units >= 38
308 Requires: systemd-units >= 38
309 Obsoletes: qemu-kvm-user
312 QEMU is a generic and open source processor emulator which achieves a
313 good emulation speed by using dynamic translation.
315 This package provides the user mode emulation of QEMU targets.
317 %description user -l pl.UTF-8
318 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
319 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
321 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
324 Summary: QEMU user mode emulation of qemu targets static build
325 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu - wersja statyczna
326 Group: Applications/Emulators
327 Requires(post,postun): systemd-units >= 38
328 Requires: systemd-units >= 38
330 %description user-static
331 QEMU is a generic and open source processor emulator which achieves a
332 good emulation speed by using dynamic translation.
334 This package provides the user mode emulation of qemu targets built as
337 %description user-static -l pl.UTF-8
338 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
339 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
341 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU w
342 oparciu o programy wykonywalne zbudowane statycznie.
344 %package system-aarch64
345 Summary: QEMU system emulator for AArch64
346 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
347 Group: Applications/Emulators
348 Requires: %{name}-common = %{version}-%{release}
350 Obsoletes: qemu-kvm-system-aarch64
352 %description system-aarch64
353 QEMU is a generic and open source processor emulator which achieves a
354 good emulation speed by using dynamic translation.
356 This package provides the system emulator with AArch64 (ARM64) CPU.
358 %description system-aarch64 -l pl.UTF-8
359 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
360 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
362 Ten pakiet zawiera emulator systemu z procesorem AArch64 (ARM64).
364 %package system-alpha
365 Summary: QEMU system emulator for Alpha
366 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
367 Group: Applications/Emulators
368 Requires: %{name}-common = %{version}-%{release}
370 Obsoletes: qemu-kvm-system-alpha
372 %description system-alpha
373 QEMU is a generic and open source processor emulator which achieves a
374 good emulation speed by using dynamic translation.
376 This package provides the system emulator with Alpha CPU.
378 %description system-alpha -l pl.UTF-8
379 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
380 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
382 Ten pakiet zawiera emulator systemu z procesorem Alpha.
385 Summary: QEMU system emulator for 32-bit ARM
386 Summary(pl.UTF-8): QEMU - emulator systemu z 32-bitowym procesorem ARM
387 Group: Applications/Emulators
388 Requires: %{name}-common = %{version}-%{release}
390 Obsoletes: qemu-kvm-system-arm
392 %description system-arm
393 QEMU is a generic and open source processor emulator which achieves a
394 good emulation speed by using dynamic translation.
396 This package provides the system emulator for 32-bit ARM.
398 %description system-arm -l pl.UTF-8
399 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
400 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
402 Ten pakiet zawiera emulator systemu z 32-bitowym procesorem ARM.
405 Summary: QEMU system emulator for CRIS
406 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
407 Group: Applications/Emulators
408 Requires: %{name}-common = %{version}-%{release}
410 Obsoletes: qemu-kvm-system-cris
412 %description system-cris
413 QEMU is a generic and open source processor emulator which achieves a
414 good emulation speed by using dynamic translation.
416 This package provides the system emulator with CRIS CPU.
418 %description system-cris -l pl.UTF-8
419 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
420 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
422 Ten pakiet zawiera emulator systemu z procesorem CRIS.
425 Summary: QEMU system emulator for HP/PA
426 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem HP/PA
427 Group: Applications/Emulators
428 Requires: %{name}-common = %{version}-%{release}
431 %description system-hppa
432 QEMU is a generic and open source processor emulator which achieves a
433 good emulation speed by using dynamic translation.
435 This package provides the system emulator with HP/PA (PA-RISC) CPU.
437 %description system-hppa -l pl.UTF-8
438 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
439 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
441 Ten pakiet zawiera emulator systemu z procesorem HP/PA (PA-RISC).
444 Summary: QEMU system emulator for LM32
445 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
446 Group: Applications/Emulators
447 Requires: %{name}-common = %{version}-%{release}
449 Obsoletes: qemu-kvm-system-lm32
451 %description system-lm32
452 QEMU is a generic and open source processor emulator which achieves a
453 good emulation speed by using dynamic translation.
455 This package provides the system emulator with LM32 CPU.
457 %description system-lm32 -l pl.UTF-8
458 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
459 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
461 Ten pakiet zawiera emulator systemu z procesorem LM32.
464 Summary: QEMU system emulator for m68k
465 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
466 Group: Applications/Emulators
467 Requires: %{name}-common = %{version}-%{release}
469 Obsoletes: qemu-kvm-system-m68k
471 %description system-m68k
472 QEMU is a generic and open source processor emulator which achieves a
473 good emulation speed by using dynamic translation.
475 This package provides the system emulator with m68k (Motorola 68xxx)
478 %description system-m68k -l pl.UTF-8
479 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
480 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
482 Ten pakiet zawiera emulator systemu z procesorem m68k (Motorola
485 %package system-microblaze
486 Summary: QEMU system emulator for MicroBlaze
487 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
488 Group: Applications/Emulators
489 Requires: %{name}-common = %{version}-%{release}
491 Obsoletes: qemu-kvm-system-microblaze
493 %description system-microblaze
494 QEMU is a generic and open source processor emulator which achieves a
495 good emulation speed by using dynamic translation.
497 This package provides the system emulator with MicroBlaze CPU.
499 %description system-microblaze -l pl.UTF-8
500 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
501 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
503 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
506 Summary: QEMU system emulator for MIPS
507 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
508 Group: Applications/Emulators
509 Requires: %{name}-common = %{version}-%{release}
511 Obsoletes: qemu-kvm-system-mips
513 %description system-mips
514 QEMU is a generic and open source processor emulator which achieves a
515 good emulation speed by using dynamic translation.
517 This package provides the system emulator with MIPS CPU.
519 %description system-mips -l pl.UTF-8
520 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
521 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
523 Ten pakiet zawiera emulator systemu z procesorem MIPS.
525 %package system-moxie
526 Summary: QEMU system emulator for Moxie
527 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
528 Group: Applications/Emulators
529 Requires: %{name}-common = %{version}-%{release}
532 %description system-moxie
533 QEMU is a generic and open source processor emulator which achieves a
534 good emulation speed by using dynamic translation.
536 This package provides the system emulator with Moxie CPU.
538 %description system-moxie -l pl.UTF-8
539 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
540 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
542 Ten pakiet zawiera emulator systemu z procesorem Moxie.
544 %package system-nios2
545 Summary: QEMU system emulator for Nios II
546 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Nios II
547 Group: Applications/Emulators
548 Requires: %{name}-common = %{version}-%{release}
551 %description system-nios2
552 QEMU is a generic and open source processor emulator which achieves a
553 good emulation speed by using dynamic translation.
555 This package provides the system emulator with Nios II CPU.
557 %description system-nios2 -l pl.UTF-8
558 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
559 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
561 Ten pakiet zawiera emulator systemu z procesorem Nios II.
564 Summary: QEMU system emulator for OpenRISC
565 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
566 Group: Applications/Emulators
567 Requires: %{name}-common = %{version}-%{release}
569 Obsoletes: qemu-kvm-system-or1k
570 Obsoletes: qemu-system-or32
572 %description system-or1k
573 QEMU is a generic and open source processor emulator which achieves a
574 good emulation speed by using dynamic translation.
576 This package provides the system emulator with OpenRISC CPU.
578 %description system-or1k -l pl.UTF-8
579 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
580 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
582 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
585 Summary: QEMU system emulator for PowerPC
586 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
587 Group: Applications/Emulators
588 Requires: %{name}-common = %{version}-%{release}
590 Obsoletes: qemu-kvm-system-ppc
592 %description system-ppc
593 QEMU is a generic and open source processor emulator which achieves a
594 good emulation speed by using dynamic translation.
596 This package provides the system emulator with PowerPC CPU.
598 %description system-ppc -l pl.UTF-8
599 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
600 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
602 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
604 %package system-riscv32
605 Summary: QEMU system emulator for RISC-V (32 bit)
606 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (32 bit)
607 Group: Applications/Emulators
608 Requires: %{name}-common = %{version}-%{release}
611 %description system-riscv32
612 QEMU is a generic and open source processor emulator which achieves a
613 good emulation speed by using dynamic translation.
615 This package provides the system emulator with RISC-V (32 bit) CPU.
617 %description system-riscv32 -l pl.UTF-8
618 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
619 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
621 Ten pakiet zawiera emulator systemu z procesorem RISC-V (32 bit).
623 %package system-riscv64
624 Summary: QEMU system emulator for RISC-V (64 bit)
625 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (64 bitowym)
626 Group: Applications/Emulators
627 Requires: %{name}-common = %{version}-%{release}
630 %description system-riscv64
631 QEMU is a generic and open source processor emulator which achieves a
632 good emulation speed by using dynamic translation.
634 This package provides the system emulator with RISC-V (64 bit) CPU.
636 %description system-riscv64 -l pl.UTF-8
637 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
638 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
640 Ten pakiet zawiera emulator systemu z procesorem RISC-V (64-bitowym).
643 Summary: QEMU system emulator for Renesas RX
644 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Renesas RX
645 Group: Applications/Emulators
646 Requires: %{name}-common = %{version}-%{release}
649 %description system-rx
650 QEMU is a generic and open source processor emulator which achieves a
651 good emulation speed by using dynamic translation.
653 This package provides the system emulator with Renesas RX CPU.
655 %description system-rx -l pl.UTF-8
656 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
657 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
659 Ten pakiet zawiera emulator systemu z procesorem Renesas RX.
661 %package system-s390x
662 Summary: QEMU system emulator for S390x (IBM Z)
663 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390x (IBM Z)
664 Group: Applications/Emulators
665 Requires: %{name}-common = %{version}-%{release}
667 Obsoletes: qemu-kvm-system-s390x
669 %description system-s390x
670 QEMU is a generic and open source processor emulator which achieves a
671 good emulation speed by using dynamic translation.
673 This package provides the system emulator with S390x (IBM Z) CPU.
675 %description system-s390x -l pl.UTF-8
676 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
677 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
679 Ten pakiet zawiera emulator systemu z procesorem S390x (IBM Z).
682 Summary: QEMU system emulator for SH4
683 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
684 Group: Applications/Emulators
685 Requires: %{name}-common = %{version}-%{release}
687 Obsoletes: qemu-kvm-system-sh4
689 %description system-sh4
690 QEMU is a generic and open source processor emulator which achieves a
691 good emulation speed by using dynamic translation.
693 This package provides the system emulator with SH4 CPU.
695 %description system-sh4 -l pl.UTF-8
696 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
697 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
699 Ten pakiet zawiera emulator systemu z procesorem SH4.
701 %package system-sparc
702 Summary: QEMU system emulator for SPARC
703 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
704 Group: Applications/Emulators
705 Requires: %{name}-common = %{version}-%{release}
707 Obsoletes: qemu-kvm-system-sparc
709 %description system-sparc
710 QEMU is a generic and open source processor emulator which achieves a
711 good emulation speed by using dynamic translation.
713 This package provides the system emulator with SPARC/SPARC64 CPU.
715 %description system-sparc -l pl.UTF-8
716 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
717 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
719 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
721 %package system-tricore
722 Summary: QEMU system emulator for TriCore
723 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
724 Group: Applications/Emulators
725 Requires: %{name}-common = %{version}-%{release}
728 %description system-tricore
729 QEMU is a generic and open source processor emulator which achieves a
730 good emulation speed by using dynamic translation.
732 This package provides the system emulator with TriCore CPU.
734 %description system-sparc -l pl.UTF-8
735 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
736 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
738 Ten pakiet zawiera emulator systemu z procesorem TriCore.
740 %package system-unicore32
741 Summary: QEMU system emulator for UniCore32
742 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
743 Group: Applications/Emulators
744 Requires: %{name}-common = %{version}-%{release}
746 Obsoletes: qemu-kvm-system-unicore32
748 %description system-unicore32
749 QEMU is a generic and open source processor emulator which achieves a
750 good emulation speed by using dynamic translation.
752 This package provides the system emulator with UniCore32 CPU.
754 %description system-unicore32 -l pl.UTF-8
755 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
756 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
758 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
761 Summary: QEMU system emulator for x86
762 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
763 Group: Applications/Emulators
764 Requires: %{name}-common = %{version}-%{release}
765 %{?with_system_seabios:Requires: seabios}
768 Obsoletes: qemu-kvm-system-x86
770 %description system-x86
771 QEMU is a generic and open source processor emulator which achieves a
772 good emulation speed by using dynamic translation.
774 This package provides the system emulator with x86 CPU.
776 %description system-x86 -l pl.UTF-8
777 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
778 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
780 Ten pakiet zawiera emulator systemu z procesorem x86.
782 %package system-xtensa
783 Summary: QEMU system emulator for Xtensa
784 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
785 Group: Applications/Emulators
786 Requires: %{name}-common = %{version}-%{release}
788 Obsoletes: qemu-kvm-system-xtensa
790 %description system-xtensa
791 QEMU is a generic and open source processor emulator which achieves a
792 good emulation speed by using dynamic translation.
794 This package provides the system emulator with Xtensa CPU.
796 %description system-xtensa -l pl.UTF-8
797 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
798 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
800 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
803 Summary: QEMU guest agent
804 Summary(pl.UTF-8): Agent gościa QEMU
806 Requires(post,preun,postun): systemd-units >= 38
807 Requires: glib2 >= 1:2.48
808 Requires: systemd-units >= 38
809 Obsoletes: qemu-kvm-guest-agent
810 Conflicts: SysVinit < 2.96-2
812 %description guest-agent
813 QEMU is a generic and open source processor emulator which achieves a
814 good emulation speed by using dynamic translation.
816 This package provides an agent to run inside guests, which
817 communicates with the host over a virtio-serial channel named
818 "org.qemu.guest_agent.0".
820 This package does not need to be installed on the host OS.
822 %description guest-agent -l pl.UTF-8
823 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
824 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
826 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
827 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
828 "org.qemu.guest_agent.0".
830 Ten pakiet nie musi być zainstalowany w systemie hosta.
832 %package module-block-curl
833 Summary: QEMU module for 'curl' block devices
834 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
835 Group: Applications/Emulators
836 Requires: %{name}-common = %{version}-%{release}
838 %description module-block-curl
839 QEMU block device support for CURL. It allows to access remote disks
840 over http, https, ftp and other transports provided by the CURL
843 %description module-block-curl -l pl.UTF-8
844 Moduł QEMU dla urządeń blokowych CURL. Pozwala na dostęp do zdalnych
845 dysków poprzez http, https, ftp i inne protokoły obsługiwane przez
848 %package module-block-gluster
849 Summary: QEMU module for 'gluster' block devices
850 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
851 Group: Applications/Emulators
852 Requires: %{name}-common = %{version}-%{release}
853 Requires: glusterfs-libs >= 6
855 %description module-block-gluster
856 QEMU block device support for remote Gluster storage.
858 %description module-block-gluster -l pl.UTF-8
859 Moduł urządzeń blokowych QEMU do dostępu do zdalnej przestrzeni
862 %package module-block-iscsi
863 Summary: QEMU module for 'iscsi' block devices
864 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
865 Group: Applications/Emulators
866 Requires: %{name}-common = %{version}-%{release}
867 Requires: libiscsi >= 1.9.0
869 %description module-block-iscsi
870 QEMU block device support for iSCSI volumes.
872 %description module-block-iscsi -l pl.UTF-8
873 Moduł urządzeń blokowych QEMU do dostępu do wolumenów iSCSI.
875 %package module-block-nfs
876 Summary: QEMU module for 'nfs' block devices
877 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'nfs'
878 Group: Applications/Emulators
879 Requires: %{name}-common = %{version}-%{release}
880 Requires: libnfs >= 1.9.3
882 %description module-block-nfs
883 QEMU block device support for remote NFS storage.
885 %description module-block-nfs -l pl.UTF-8
886 Moduł urządzeń blokowych QEMU do dostępu do zdalnej przestrzeni po
889 %package module-block-rbd
890 Summary: QEMU module for 'rbd' block devices
891 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
892 Group: Applications/Emulators
893 Requires: %{name}-common = %{version}-%{release}
895 %description module-block-rbd
896 QEMU block device support for Ceph/RBD volumes.
898 %description module-block-rbd -l pl.UTF-8
899 Moduł urządzeń blokowych QEMU do wolumenów Ceph/RBD.
901 %package module-block-ssh
902 Summary: QEMU module for 'ssh' block devices
903 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
904 Group: Applications/Emulators
905 Requires: %{name}-common = %{version}-%{release}
906 Requires: libssh >= 0.8
908 %description module-block-ssh
909 QEMU block device support for accessing remote disks using the Secure
910 Shell (SSH) protocol.
912 %description module-block-ssh -l pl.UTF-8
913 Moduł urządzeń blokowych QEMU do dostępu do zdalnych dysków poprzez
914 protokół SSH (Secure Shell).
916 %package module-ui-gtk
917 Summary: QEMU GTK UI driver
918 Summary(pl.UTF-8): Sterownik interfejsu użytkownika GTK dla QEMU
919 Group: Applications/Emulators
920 Requires: %{name}-common = %{version}-%{release}
922 %description module-ui-gtk
925 %description module-ui-gtk -l pl.UTF-8
926 Sterownik interfejsu użytkownika GTK dla QEMU.
928 %package module-ui-sdl
929 Summary: QEMU SDL UI and audio driver
930 Summary(pl.UTF-8): Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU
931 Group: Applications/Emulators
932 Requires: %{name}-common = %{version}-%{release}
934 %description module-ui-sdl
935 QEMU SDL UI and audio driver.
937 %description module-ui-sdl -l pl.UTF-8
938 Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU.
940 %package -n systemtap-qemu
941 Summary: systemtap/dtrace probes for QEMU
942 Summary(pl.UTF-8): Sondy systemtap/dtrace dla QEMU
943 Group: Development/Tools
944 Requires: %{name}-common = %{version}-%{release}
945 Requires: systemtap-client
947 %description -n systemtap-qemu
948 systemtap/dtrace probes for QEMU.
950 %description -n systemtap-qemu -l pl.UTF-8
951 Sondy systemtap/dtrace dla QEMU.
963 %{__sed} -i '1s,/usr/bin/env python3,%{__python3},' scripts/qemu-trace-stap
965 %if %{with systemtap}
966 # don't require stap binary during build
967 %{__sed} -i -e "s/has 'stap'/true/" configure
975 install -d build-$target
979 --prefix=%{_prefix} \
980 --libdir=%{_libdir} \
981 --libexecdir=%{_libexecdir} \
982 --sysconfdir=%{_sysconfdir} \
983 --localstatedir=%{_localstatedir} \
984 --interp-prefix=%{_libdir}/qemu/lib-%%M \
987 --host-cc="%{__cc}" \
989 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
995 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
1001 --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
1002 --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
1003 --audio-drv-list="alsa%{?with_oss:,oss}%{?with_sdl:,sdl}%{?with_pulseaudio:,pa}" \
1005 %{__enable_disable brlapi} \
1007 --enable-capstone=system \
1012 %{__enable_disable glusterfs} \
1013 %{!?with_gtk3:--disable-gtk} \
1014 %{__enable_disable iscsi libiscsi} \
1015 %{__enable_disable libnfs} \
1016 %{__enable_disable pmem libpmem} \
1018 %{__enable_disable multipath mpath} \
1022 %{__enable_disable ceph rbd} \
1023 %{__enable_disable rdma} \
1024 %{__enable_disable sdl} \
1025 %{__enable_disable seccomp} \
1026 --enable-slirp=system \
1027 %{__enable_disable spice} \
1028 %{__enable_disable smartcard} \
1029 %{__enable_disable snappy} \
1031 %{__enable_disable usbredir usb-redir} \
1033 %{__enable_disable virgl virglrenderer} \
1038 %{__enable_disable vxhs} \
1039 %{!?with_vte:--disable-vte} \
1040 %{__enable_disable xen} \
1041 %{__enable_disable xkbcommon}
1043 %if %{with user_static}
1047 --disable-capstone \
1053 --disable-guest-agent \
1054 --disable-guest-agent-msi \
1056 --disable-linux-io-uring \
1064 --disable-tcmalloc \
1068 --disable-xkbcommon \
1073 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
1076 rm -rf $RPM_BUILD_ROOT
1077 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
1078 $RPM_BUILD_ROOT/etc/{qemu,sysconfig,modules-load.d,rc.d/init.d,logrotate.d} \
1079 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,/lib/udev/rules.d,%{_sbindir}}
1081 %if %{with user_static}
1082 %{__make} -C build-static install \
1083 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
1084 DESTDIR=$RPM_BUILD_ROOT
1086 # Give all QEMU user emulators a -static suffix
1087 for src in $RPM_BUILD_ROOT%{_bindir}/qemu-*; do
1088 %{__mv} $src $src-static
1093 %{__make} -C build-dynamic install \
1094 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
1095 DESTDIR=$RPM_BUILD_ROOT
1097 # let rpm generate dependencies
1098 chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/*.so
1100 echo "#allow br0" > $RPM_BUILD_ROOT/etc/qemu/bridge.conf
1102 install -d $RPM_BUILD_ROOT%{_sysconfdir}
1103 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
1108 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
1110 %ifarch %{ix86} %{x8664} x32
1111 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
1112 install -p %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/rules.d
1115 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
1116 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
1117 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
1119 install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
1120 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
1121 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
1123 # For the qemu-guest-agent subpackage install the systemd
1124 # service and udev rules.
1125 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
1126 install -p %{SOURCE12} $RPM_BUILD_ROOT/lib/udev/rules.d
1128 install -p %{SOURCE13} $RPM_BUILD_ROOT/etc/rc.d/init.d/qemu-ga
1129 install -p %{SOURCE14} $RPM_BUILD_ROOT/etc/logrotate.d/qemu-ga
1131 cp -p %{SOURCE15} %{SOURCE16} $RPM_BUILD_ROOT%{systemdunitdir}
1135 %ifnarch %{ix86} %{x8664} x32
1149 microblaze microblazeel \
1165 %ifnarch ppc ppc64 ppc64le
1168 %ifnarch sparc sparc64
1169 sparc sparc32plus sparc64 \
1180 if [ -n "$BINFMT_CPUS" ]; then
1181 for cpu in $BINFMT_CPUS; do
1182 bash ./scripts/qemu-binfmt-conf.sh --systemd "$cpu" --exportdir $RPM_BUILD_ROOT/usr/lib/binfmt.d --qemu-path %{_bindir}
1184 for i in $RPM_BUILD_ROOT/usr/lib/binfmt.d/*.conf; do
1185 %{__mv} $i ${i%.conf}-dynamic.conf
1188 %if %{with user_static}
1189 for regularfmt in $RPM_BUILD_ROOT/usr/lib/binfmt.d/*; do
1190 staticfmt="${regularfmt%\-dynamic.conf}-static.conf"
1191 cat $regularfmt | tr -d '\n' | sed "s/:$/-static:F/" > $staticfmt
1196 %if %{with system_seabios}
1197 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
1198 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
1199 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
1201 if [ -e "/usr/share/seabios/$bn" ] ; then
1202 ln -sf "/usr/share/seabios/$bn" "$f"
1208 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
1209 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
1215 # Windows installer icon, not used
1216 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/qemu-nsis.bmp
1218 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/edk2-licenses.txt
1220 # cleanup Sphinx files
1221 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/{interop,specs,system,tools,user}/{.buildinfo,objects.inv}
1222 # leave just HTML version
1223 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{ga,qmp}-ref.txt
1226 rm -rf $RPM_BUILD_ROOT
1229 %groupadd -g 160 kvm
1230 %groupadd -g 276 qemu
1231 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
1234 %systemd_post ksm.service
1235 %systemd_post ksmtuned.service
1238 %systemd_preun ksm.service
1239 %systemd_preun ksmtuned.service
1242 if [ "$1" = "0" ]; then
1249 %triggerpostun common -- qemu-common < 1.6.1-4
1250 %systemd_trigger ksm.service
1251 %systemd_trigger ksmtuned.service
1252 %systemd_trigger qemu-pr-helper.service
1255 %systemd_service_restart systemd-binfmt.service
1258 %systemd_service_restart systemd-binfmt.service
1261 %systemd_service_restart systemd-binfmt.service
1264 %systemd_service_restart systemd-binfmt.service
1267 /sbin/chkconfig --add qemu-ga
1268 %service qemu-ga restart "qemu-ga"
1272 if [ "$1" = "0" ]; then
1273 %service qemu-ga stop
1274 /sbin/chkconfig --del qemu-ga
1276 %systemd_preun qemu-guest-agent.service
1282 %defattr(644,root,root,755)
1284 %files common -f %{name}.lang
1285 %defattr(644,root,root,755)
1286 %doc LICENSE README.rst pc-bios/edk2-licenses.txt
1287 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
1288 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
1289 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
1290 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
1292 %attr(640,root,qemu) %config(noreplace) %verify(not md5 mtime size) /etc/qemu/bridge.conf
1293 %{systemdunitdir}/ksm.service
1294 %{systemdunitdir}/ksmtuned.service
1295 %{systemdunitdir}/qemu-pr-helper.service
1296 %{systemdunitdir}/qemu-pr-helper.socket
1297 %attr(755,root,root) %{_bindir}/elf2dmp
1298 %attr(755,root,root) %{_bindir}/ivshmem-client
1299 %attr(755,root,root) %{_bindir}/ivshmem-server
1300 %attr(755,root,root) %{_bindir}/qemu-edid
1301 %if %{with xkbcommon}
1302 %attr(755,root,root) %{_bindir}/qemu-keymap
1304 %attr(755,root,root) %{_bindir}/qemu-nbd
1305 %attr(755,root,root) %{_bindir}/qemu-pr-helper
1306 %attr(755,root,root) %{_bindir}/qemu-storage-daemon
1307 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
1308 %attr(755,root,root) %{_sbindir}/ksmctl
1309 %attr(755,root,root) %{_sbindir}/ksmtuned
1310 %attr(755,root,root) %{_libexecdir}/qemu-bridge-helper
1312 %attr(755,root,root) %{_libexecdir}/vhost-user-gpu
1314 %attr(755,root,root) %{_libexecdir}/virtiofsd
1315 %dir %{_libdir}/%{name}
1316 # modules without too many external dependencies
1317 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-bz2.so
1318 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-lzfse.so
1319 %attr(755,root,root) %{_libdir}/%{name}/audio-alsa.so
1321 %attr(755,root,root) %{_libdir}/%{name}/audio-oss.so
1323 %if %{with pulseaudio}
1324 %attr(755,root,root) %{_libdir}/%{name}/audio-pa.so
1326 %attr(755,root,root) %{_libdir}/%{name}/ui-curses.so
1328 %attr(755,root,root) %{_libdir}/%{name}/ui-spice-app.so
1330 %dir %{_datadir}/%{name}
1331 %dir %{_datadir}/%{name}/firmware
1332 %{_datadir}/%{name}/keymaps
1333 %{_datadir}/%{name}/trace-events-all
1334 %dir %{_datadir}/%{name}/vhost-user
1336 %{_datadir}/%{name}/vhost-user/50-qemu-gpu.json
1338 %{_datadir}/%{name}/vhost-user/50-qemu-virtiofsd.json
1339 %{_desktopdir}/qemu.desktop
1340 %{_iconsdir}/hicolor/*x*/apps/qemu.png
1341 %{_iconsdir}/hicolor/32x32/apps/qemu.bmp
1342 %{_iconsdir}/hicolor/scalable/apps/qemu.svg
1343 %{_mandir}/man1/qemu.1*
1344 %{_mandir}/man1/virtfs-proxy-helper.1*
1345 %{_mandir}/man1/virtiofsd.1*
1346 %{_mandir}/man7/qemu-block-drivers.7*
1347 %{_mandir}/man7/qemu-cpu-models.7*
1348 %{_mandir}/man7/qemu-qmp-ref.7*
1349 %{_mandir}/man8/qemu-nbd.8*
1353 %defattr(644,root,root,755)
1354 %attr(755,root,root) %{_bindir}/qemu-img
1355 %{_mandir}/man1/qemu-img.1*
1358 %defattr(644,root,root,755)
1359 /usr/lib/binfmt.d/qemu-*-dynamic.conf
1360 %attr(755,root,root) %{_bindir}/qemu-aarch64
1361 %attr(755,root,root) %{_bindir}/qemu-aarch64_be
1362 %attr(755,root,root) %{_bindir}/qemu-alpha
1363 %attr(755,root,root) %{_bindir}/qemu-arm
1364 %attr(755,root,root) %{_bindir}/qemu-armeb
1365 %attr(755,root,root) %{_bindir}/qemu-cris
1366 %attr(755,root,root) %{_bindir}/qemu-hppa
1367 %attr(755,root,root) %{_bindir}/qemu-i386
1368 %attr(755,root,root) %{_bindir}/qemu-io
1369 %attr(755,root,root) %{_bindir}/qemu-m68k
1370 %attr(755,root,root) %{_bindir}/qemu-microblaze
1371 %attr(755,root,root) %{_bindir}/qemu-microblazeel
1372 %attr(755,root,root) %{_bindir}/qemu-mips
1373 %attr(755,root,root) %{_bindir}/qemu-mipsel
1374 %attr(755,root,root) %{_bindir}/qemu-mips64
1375 %attr(755,root,root) %{_bindir}/qemu-mips64el
1376 %attr(755,root,root) %{_bindir}/qemu-mipsn32
1377 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
1378 %attr(755,root,root) %{_bindir}/qemu-nios2
1379 %attr(755,root,root) %{_bindir}/qemu-or1k
1380 %attr(755,root,root) %{_bindir}/qemu-ppc
1381 %attr(755,root,root) %{_bindir}/qemu-ppc64
1382 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
1383 %attr(755,root,root) %{_bindir}/qemu-ppc64le
1384 %attr(755,root,root) %{_bindir}/qemu-riscv32
1385 %attr(755,root,root) %{_bindir}/qemu-riscv64
1386 %attr(755,root,root) %{_bindir}/qemu-s390x
1387 %attr(755,root,root) %{_bindir}/qemu-sh4
1388 %attr(755,root,root) %{_bindir}/qemu-sh4eb
1389 %attr(755,root,root) %{_bindir}/qemu-sparc
1390 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
1391 %attr(755,root,root) %{_bindir}/qemu-sparc64
1392 %attr(755,root,root) %{_bindir}/qemu-tilegx
1393 %attr(755,root,root) %{_bindir}/qemu-x86_64
1394 %attr(755,root,root) %{_bindir}/qemu-xtensa
1395 %attr(755,root,root) %{_bindir}/qemu-xtensaeb
1397 %if %{with user_static}
1399 %defattr(644,root,root,755)
1400 /usr/lib/binfmt.d/qemu-*-static.conf
1401 %attr(755,root,root) %{_bindir}/qemu-aarch64-static
1402 %attr(755,root,root) %{_bindir}/qemu-aarch64_be-static
1403 %attr(755,root,root) %{_bindir}/qemu-alpha-static
1404 %attr(755,root,root) %{_bindir}/qemu-arm-static
1405 %attr(755,root,root) %{_bindir}/qemu-armeb-static
1406 %attr(755,root,root) %{_bindir}/qemu-cris-static
1407 %attr(755,root,root) %{_bindir}/qemu-hppa-static
1408 %attr(755,root,root) %{_bindir}/qemu-i386-static
1409 %attr(755,root,root) %{_bindir}/qemu-m68k-static
1410 %attr(755,root,root) %{_bindir}/qemu-microblaze-static
1411 %attr(755,root,root) %{_bindir}/qemu-microblazeel-static
1412 %attr(755,root,root) %{_bindir}/qemu-mips-static
1413 %attr(755,root,root) %{_bindir}/qemu-mips64-static
1414 %attr(755,root,root) %{_bindir}/qemu-mips64el-static
1415 %attr(755,root,root) %{_bindir}/qemu-mipsel-static
1416 %attr(755,root,root) %{_bindir}/qemu-mipsn32-static
1417 %attr(755,root,root) %{_bindir}/qemu-mipsn32el-static
1418 %attr(755,root,root) %{_bindir}/qemu-nios2-static
1419 %attr(755,root,root) %{_bindir}/qemu-or1k-static
1420 %attr(755,root,root) %{_bindir}/qemu-ppc-static
1421 %attr(755,root,root) %{_bindir}/qemu-ppc64-static
1422 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32-static
1423 %attr(755,root,root) %{_bindir}/qemu-ppc64le-static
1424 %attr(755,root,root) %{_bindir}/qemu-riscv32-static
1425 %attr(755,root,root) %{_bindir}/qemu-riscv64-static
1426 %attr(755,root,root) %{_bindir}/qemu-s390x-static
1427 %attr(755,root,root) %{_bindir}/qemu-sh4-static
1428 %attr(755,root,root) %{_bindir}/qemu-sh4eb-static
1429 %attr(755,root,root) %{_bindir}/qemu-sparc-static
1430 %attr(755,root,root) %{_bindir}/qemu-sparc32plus-static
1431 %attr(755,root,root) %{_bindir}/qemu-sparc64-static
1432 %attr(755,root,root) %{_bindir}/qemu-tilegx-static
1433 %attr(755,root,root) %{_bindir}/qemu-x86_64-static
1434 %attr(755,root,root) %{_bindir}/qemu-xtensa-static
1435 %attr(755,root,root) %{_bindir}/qemu-xtensaeb-static
1436 %attr(755,root,root) %{_bindir}/qemu-trace-stap-static
1439 %files system-aarch64
1440 %defattr(644,root,root,755)
1441 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1442 %{_datadir}/%{name}/edk2-aarch64-code.fd
1443 %{_datadir}/%{name}/firmware/60-edk2-aarch64.json
1446 %defattr(644,root,root,755)
1447 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1448 %{_datadir}/%{name}/palcode-clipper
1451 %defattr(644,root,root,755)
1452 %attr(755,root,root) %{_bindir}/qemu-system-arm
1453 %{_datadir}/%{name}/edk2-arm-code.fd
1454 %{_datadir}/%{name}/edk2-arm-vars.fd
1455 %{_datadir}/%{name}/firmware/60-edk2-arm.json
1458 %defattr(644,root,root,755)
1459 %attr(755,root,root) %{_bindir}/qemu-system-cris
1462 %defattr(644,root,root,755)
1463 %attr(755,root,root) %{_bindir}/qemu-system-hppa
1464 %{_datadir}/%{name}/hppa-firmware.img
1467 %defattr(644,root,root,755)
1468 %attr(755,root,root) %{_bindir}/qemu-system-lm32
1471 %defattr(644,root,root,755)
1472 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1474 %files system-microblaze
1475 %defattr(644,root,root,755)
1476 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1477 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1480 %defattr(644,root,root,755)
1481 %attr(755,root,root) %{_bindir}/qemu-system-mips
1482 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1483 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1484 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1487 %defattr(644,root,root,755)
1488 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1491 %defattr(644,root,root,755)
1492 %attr(755,root,root) %{_bindir}/qemu-system-nios2
1495 %defattr(644,root,root,755)
1496 %attr(755,root,root) %{_bindir}/qemu-system-or1k
1499 %defattr(644,root,root,755)
1500 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1501 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1502 %{_datadir}/%{name}/bamboo.dtb
1503 %{_datadir}/%{name}/canyonlands.dtb
1504 %{_datadir}/%{name}/openbios-ppc
1505 %{_datadir}/%{name}/petalogix-ml605.dtb
1506 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
1507 %{_datadir}/%{name}/qemu_vga.ndrv
1508 %{_datadir}/%{name}/skiboot.lid
1509 %{_datadir}/%{name}/slof.bin
1510 %{_datadir}/%{name}/u-boot.e500
1511 %{_datadir}/%{name}/u-boot-sam460-20100605.bin
1513 %files system-riscv32
1514 %defattr(644,root,root,755)
1515 %attr(755,root,root) %{_bindir}/qemu-system-riscv32
1516 %{_datadir}/%{name}/opensbi-riscv32-sifive_u-fw_jump.bin
1517 %{_datadir}/%{name}/opensbi-riscv32-virt-fw_jump.bin
1519 %files system-riscv64
1520 %defattr(644,root,root,755)
1521 %attr(755,root,root) %{_bindir}/qemu-system-riscv64
1522 %{_datadir}/%{name}/opensbi-riscv64-sifive_u-fw_jump.bin
1523 %{_datadir}/%{name}/opensbi-riscv64-virt-fw_jump.bin
1526 %defattr(644,root,root,755)
1527 %attr(755,root,root) %{_bindir}/qemu-system-rx
1530 %defattr(644,root,root,755)
1531 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1532 %{_datadir}/%{name}/s390-ccw.img
1533 %{_datadir}/%{name}/s390-netboot.img
1536 %defattr(644,root,root,755)
1537 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1538 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1541 %defattr(644,root,root,755)
1542 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1543 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1544 %{_datadir}/%{name}/QEMU,cgthree.bin
1545 %{_datadir}/%{name}/QEMU,tcx.bin
1546 %{_datadir}/%{name}/openbios-sparc32
1547 %{_datadir}/%{name}/openbios-sparc64
1549 %files system-tricore
1550 %defattr(644,root,root,755)
1551 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1553 %files system-unicore32
1554 %defattr(644,root,root,755)
1555 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1558 %defattr(644,root,root,755)
1559 %attr(755,root,root) %{_bindir}/qemu-system-i386
1560 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1561 %ifarch %{ix86} %{x8664} x32
1562 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1563 /lib/udev/rules.d/80-kvm.rules
1565 %{_datadir}/%{name}/bios.bin
1566 %{_datadir}/%{name}/bios-256k.bin
1567 %{_datadir}/%{name}/bios-microvm.bin
1568 %{_datadir}/%{name}/edk2-i386-code.fd
1569 %{_datadir}/%{name}/edk2-i386-secure-code.fd
1570 %{_datadir}/%{name}/edk2-i386-vars.fd
1571 %{_datadir}/%{name}/edk2-x86_64-code.fd
1572 %{_datadir}/%{name}/edk2-x86_64-secure-code.fd
1573 %{_datadir}/%{name}/efi-e1000e.rom
1574 %{_datadir}/%{name}/efi-e1000.rom
1575 %{_datadir}/%{name}/efi-eepro100.rom
1576 %{_datadir}/%{name}/efi-ne2k_pci.rom
1577 %{_datadir}/%{name}/efi-pcnet.rom
1578 %{_datadir}/%{name}/efi-rtl8139.rom
1579 %{_datadir}/%{name}/efi-virtio.rom
1580 %{_datadir}/%{name}/efi-vmxnet3.rom
1581 %{_datadir}/%{name}/kvmvapic.bin
1582 %{_datadir}/%{name}/linuxboot.bin
1583 %{_datadir}/%{name}/linuxboot_dma.bin
1584 %{_datadir}/%{name}/multiboot.bin
1585 %{_datadir}/%{name}/pvh.bin
1586 %{_datadir}/%{name}/pxe-e1000.rom
1587 %{_datadir}/%{name}/pxe-eepro100.rom
1588 %{_datadir}/%{name}/pxe-ne2k_pci.rom
1589 %{_datadir}/%{name}/pxe-pcnet.rom
1590 %{_datadir}/%{name}/pxe-rtl8139.rom
1591 %{_datadir}/%{name}/pxe-virtio.rom
1592 %{_datadir}/%{name}/sgabios.bin
1593 %{_datadir}/%{name}/vgabios.bin
1594 %{_datadir}/%{name}/vgabios-ati.bin
1595 %{_datadir}/%{name}/vgabios-bochs-display.bin
1596 %{_datadir}/%{name}/vgabios-cirrus.bin
1597 %{_datadir}/%{name}/vgabios-qxl.bin
1598 %{_datadir}/%{name}/vgabios-ramfb.bin
1599 %{_datadir}/%{name}/vgabios-stdvga.bin
1600 %{_datadir}/%{name}/vgabios-virtio.bin
1601 %{_datadir}/%{name}/vgabios-vmware.bin
1602 %{_datadir}/%{name}/firmware/50-edk2-i386-secure.json
1603 %{_datadir}/%{name}/firmware/50-edk2-x86_64-secure.json
1604 %{_datadir}/%{name}/firmware/60-edk2-i386.json
1605 %{_datadir}/%{name}/firmware/60-edk2-x86_64.json
1607 %files system-xtensa
1608 %defattr(644,root,root,755)
1609 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1610 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1613 %defattr(644,root,root,755)
1614 %attr(755,root,root) %{_bindir}/qemu-ga
1615 /lib/udev/rules.d/99-qemu-guest-agent.rules
1616 %{systemdunitdir}/qemu-guest-agent.service
1617 %attr(754,root,root) /etc/rc.d/init.d/qemu-ga
1618 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/qemu-ga
1619 %{_mandir}/man7/qemu-ga-ref.7*
1620 %{_mandir}/man8/qemu-ga.8*
1622 %files module-block-curl
1623 %defattr(644,root,root,755)
1624 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1626 %if %{with glusterfs}
1627 %files module-block-gluster
1628 %defattr(644,root,root,755)
1629 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1633 %files module-block-iscsi
1634 %defattr(644,root,root,755)
1635 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1639 %files module-block-nfs
1640 %defattr(644,root,root,755)
1641 %attr(755,root,root) %{_libdir}/%{name}/block-nfs.so
1645 %files module-block-rbd
1646 %defattr(644,root,root,755)
1647 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1650 %files module-block-ssh
1651 %defattr(644,root,root,755)
1652 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so
1655 %files module-ui-gtk
1656 %defattr(644,root,root,755)
1657 %attr(755,root,root) %{_libdir}/%{name}/ui-gtk.so
1661 %files module-ui-sdl
1662 %defattr(644,root,root,755)
1663 %attr(755,root,root) %{_libdir}/%{name}/audio-sdl.so
1664 %attr(755,root,root) %{_libdir}/%{name}/ui-sdl.so
1667 %if %{with systemtap}
1668 %files -n systemtap-qemu
1669 %defattr(644,root,root,755)
1670 %attr(755,root,root) %{_bindir}/qemu-trace-stap
1671 %{_datadir}/systemtap/tapset/qemu-*.stp
1672 %{_mandir}/man1/qemu-trace-stap.1*