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 Patch7: binutils-2.36.patch
77 URL: https://www.qemu.org/
78 %{?with_opengl:BuildRequires: Mesa-libgbm-devel}
79 %{?with_opengl:BuildRequires: OpenGL-GLX-devel}
80 %{?with_opengl:BuildRequires: OpenGL-devel}
81 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
82 %{?with_sdl:BuildRequires: SDL2_image-devel >= 2.0}
83 BuildRequires: alsa-lib-devel
84 BuildRequires: bcc >= 0.16.21-2
85 %{?with_brlapi:BuildRequires: brlapi-devel}
86 BuildRequires: bzip2-devel
87 BuildRequires: capstone-devel >= 3.0.5
88 %{?with_ceph:BuildRequires: ceph-devel}
89 BuildRequires: curl-devel
90 BuildRequires: cyrus-sasl-devel >= 2
91 BuildRequires: glib2-devel >= 1:2.48
92 # minimal is 3.4 but new features are used up to 6
93 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 6}
94 BuildRequires: gnutls-devel >= 3.1.18
95 %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.16}
96 BuildRequires: libaio-devel
97 %{?with_smartcard:BuildRequires: libcacard-devel >= 2.5.1}
98 BuildRequires: libcap-ng-devel
99 %{?with_opengl:BuildRequires: libepoxy-devel}
100 BuildRequires: libfdt-devel >= 1.4.2
101 %{?with_rdma:BuildRequires: libibverbs-devel}
102 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
103 %{?with_rdma:BuildRequires: libibumad-devel}
104 BuildRequires: libjpeg-devel
105 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
106 BuildRequires: libpng-devel
107 %{?with_rdma:BuildRequires: librdmacm-devel}
108 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.3.0}
109 BuildRequires: libssh-devel >= 0.8
110 BuildRequires: libslirp-devel >= 4.0.0
112 #BuildRequires: libtasn1-devel
113 BuildRequires: libusb-devel >= 1.0.22
114 BuildRequires: liburing-devel
115 BuildRequires: libuuid-devel
116 %{?with_vxhs:BuildRequires: libvxhs-devel}
117 BuildRequires: libxml2-devel >= 2.0
118 %{?with_lttng:BuildRequires: lttng-ust-devel}
119 BuildRequires: lzfse-devel
120 BuildRequires: lzo-devel >= 2
121 %{?with_multipath:BuildRequires: multipath-tools-devel}
122 BuildRequires: ncurses-devel
123 # also libgcrypt-devel >= 1.5.0 possible, but gnutls already pulls nettle
124 BuildRequires: nettle-devel >= 2.7.1
125 %{?with_smartcard:BuildRequires: nss-devel >= 1:3.12.8}
126 BuildRequires: numactl-devel
127 BuildRequires: pam-devel
128 BuildRequires: perl-Encode
129 BuildRequires: perl-tools-pod
130 BuildRequires: pixman-devel >= 0.21.8
131 BuildRequires: pkgconfig
132 %{?with_pmem:BuildRequires: pmdk-devel}
133 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
134 BuildRequires: python3 >= 1:3.5
135 BuildRequires: rpmbuild(macros) >= 1.644
136 %{?with_system_seabios:BuildRequires: seabios}
137 BuildRequires: sed >= 4.0
138 %{?with_snappy:BuildRequires: snappy-devel}
139 BuildRequires: sphinx-pdg
141 BuildRequires: spice-protocol >= 0.12.3
142 BuildRequires: spice-server-devel >= 0.12.5
144 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
145 BuildRequires: tar >= 1:1.22
146 BuildRequires: texi2html
147 BuildRequires: texinfo
148 %{?with_multipath:BuildRequires: udev-devel}
149 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
150 %{?with_lttng:BuildRequires: userspace-rcu-devel}
151 BuildRequires: vde2-devel
153 %{?with_virgl:BuildRequires: virglrenderer-devel}
154 %{?with_vte:BuildRequires: vte-devel >= 0.32.0}
155 # xencontrol xenstore xenguest xenforeignmemory xengnttab xenevtchn xendevicemodel; xentoolcore for xen 4.10+
156 # min version is 4.2, more features up to 4.10
157 %{?with_xen:BuildRequires: xen-devel >= 4.10}
158 BuildRequires: xfsprogs-devel
159 %{?with_xkbcommon:BuildRequires: xorg-lib-libxkbcommon-devel}
160 BuildRequires: xorg-lib-libX11-devel
162 BuildRequires: zlib-devel
163 BuildRequires: zstd-devel >= 1.4.0
164 %if %{with user_static}
165 BuildRequires: glib2-static >= 1:2.48
166 BuildRequires: glibc-static
167 BuildRequires: pcre-static
168 BuildRequires: zlib-static
170 Requires: %{name}-img = %{version}-%{release}
171 Requires: %{name}-system-aarch64 = %{version}-%{release}
172 Requires: %{name}-system-alpha = %{version}-%{release}
173 Requires: %{name}-system-arm = %{version}-%{release}
174 Requires: %{name}-system-cris = %{version}-%{release}
175 Requires: %{name}-system-hppa = %{version}-%{release}
176 Requires: %{name}-system-lm32 = %{version}-%{release}
177 Requires: %{name}-system-m68k = %{version}-%{release}
178 Requires: %{name}-system-microblaze = %{version}-%{release}
179 Requires: %{name}-system-mips = %{version}-%{release}
180 Requires: %{name}-system-moxie = %{version}-%{release}
181 Requires: %{name}-system-nios2 = %{version}-%{release}
182 Requires: %{name}-system-or1k = %{version}-%{release}
183 Requires: %{name}-system-ppc = %{version}-%{release}
184 Requires: %{name}-system-riscv32 = %{version}-%{release}
185 Requires: %{name}-system-riscv64 = %{version}-%{release}
186 Requires: %{name}-system-rx = %{version}-%{release}
187 Requires: %{name}-system-s390x = %{version}-%{release}
188 Requires: %{name}-system-sh4 = %{version}-%{release}
189 Requires: %{name}-system-sparc = %{version}-%{release}
190 Requires: %{name}-system-tricore = %{version}-%{release}
191 Requires: %{name}-system-unicore32 = %{version}-%{release}
192 Requires: %{name}-system-x86 = %{version}-%{release}
193 Requires: %{name}-system-xtensa = %{version}-%{release}
194 Requires: %{name}-user = %{version}-%{release}
197 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
199 %define systempkg_req \
200 Requires: capstone >= 3.0.5 \
201 %{?with_smartcard:Requires: libcacard >= 2.5.1} \
202 Requires: libfdt >= 1.4.2 \
203 %if %{with seccomp} \
204 Requires: libseccomp >= 2.3.0 \
206 Requires: libslirp >= 4.0.0 \
207 Requires: libusb >= 1.0.22 \
208 Requires: pixman >= 0.21.8 \
210 Requires: spice-server-libs >= 0.12.5 \
212 %if %{with usbredir} \
213 Requires: usbredir >= 0.6 \
215 Requires: zstd >= 1.4.0
217 # don't strip/chrpath anything in there; these are boot images, roms etc
218 %define _noautostrip .*%{_datadir}/qemu/.*
219 %define _noautochrpath .*%{_datadir}/qemu/.*
222 QEMU is a FAST! processor emulator. By using dynamic translation it
223 achieves a reasonnable speed while being easy to port on new host
224 CPUs. QEMU has two operating modes:
226 - User mode emulation. In this mode, QEMU can launch Linux processes
227 compiled for one CPU on another CPU. Linux system calls are converted
228 because of endianness and 32/64 bit mismatches. Wine (Windows
229 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
231 - Full system emulation. In this mode, QEMU emulates a full system,
232 including a processor and various peripherials. It can also be used to
233 provide virtual hosting of several virtual PC on a single server.
235 %description -l pl.UTF-8
236 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
237 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
238 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
240 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
241 procesy linuksowe skompilowane dla jednego procesora na innym
242 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
243 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
244 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
247 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
248 włączając w to procesor i różne urządzenia peryferyjne. Może być także
249 używane do wirtualnego hostowania kilku wirtualnych pecetów na
250 pojedynczym serwerze.
253 Summary: QEMU common files needed by all QEMU targets
254 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
255 Group: Applications/Emulators
256 Requires(post,preun,postun): systemd-units >= 38
257 Requires(postun): /usr/sbin/groupdel
258 Requires(postun): /usr/sbin/userdel
259 Requires(pre): /bin/id
260 Requires(pre): /usr/bin/getgid
261 Requires(pre): /usr/sbin/groupadd
262 Requires(pre): /usr/sbin/useradd
263 Requires: glib2 >= 1:2.48
264 Requires: gnutls-libs >= 3.1.18
265 %{?with_gtk3:Requires: gtk+3 >= 3.16}
266 Requires: nettle >= 2.7.1
267 Requires: systemd-units >= 38
268 %{?with_vte:Requires: vte >= 0.32.0}
269 Provides: group(qemu)
271 Obsoletes: qemu-kvm-common
272 Obsoletes: qemu-module-block-archipelago < 2.9.0
273 Conflicts: qemu < 1.0-2
276 QEMU is a generic and open source processor emulator which achieves a
277 good emulation speed by using dynamic translation.
279 This package provides the common files needed by all QEMU targets.
281 %description common -l pl.UTF-8
282 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
283 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
285 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
289 Summary: QEMU command line tool for manipulating disk images
290 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
291 Group: Applications/Emulators
292 Obsoletes: qemu-kvm-img
293 Conflicts: qemu < 1.0-2
296 This package provides a command line tool for manipulating disk
299 %description img -l pl.UTF-8
300 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
304 Summary: QEMU user mode emulation of qemu targets
305 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
306 Group: Applications/Emulators
307 Requires: %{name}-common = %{version}-%{release}
308 Requires(post,postun): systemd-units >= 38
309 Requires: systemd-units >= 38
310 Obsoletes: qemu-kvm-user
313 QEMU is a generic and open source processor emulator which achieves a
314 good emulation speed by using dynamic translation.
316 This package provides the user mode emulation of QEMU targets.
318 %description user -l pl.UTF-8
319 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
320 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
322 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
325 Summary: QEMU user mode emulation of qemu targets static build
326 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu - wersja statyczna
327 Group: Applications/Emulators
328 Requires(post,postun): systemd-units >= 38
329 Requires: systemd-units >= 38
331 %description user-static
332 QEMU is a generic and open source processor emulator which achieves a
333 good emulation speed by using dynamic translation.
335 This package provides the user mode emulation of qemu targets built as
338 %description user-static -l pl.UTF-8
339 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
340 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
342 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU w
343 oparciu o programy wykonywalne zbudowane statycznie.
345 %package system-aarch64
346 Summary: QEMU system emulator for AArch64
347 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
348 Group: Applications/Emulators
349 Requires: %{name}-common = %{version}-%{release}
351 Obsoletes: qemu-kvm-system-aarch64
353 %description system-aarch64
354 QEMU is a generic and open source processor emulator which achieves a
355 good emulation speed by using dynamic translation.
357 This package provides the system emulator with AArch64 (ARM64) CPU.
359 %description system-aarch64 -l pl.UTF-8
360 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
361 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
363 Ten pakiet zawiera emulator systemu z procesorem AArch64 (ARM64).
365 %package system-alpha
366 Summary: QEMU system emulator for Alpha
367 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
368 Group: Applications/Emulators
369 Requires: %{name}-common = %{version}-%{release}
371 Obsoletes: qemu-kvm-system-alpha
373 %description system-alpha
374 QEMU is a generic and open source processor emulator which achieves a
375 good emulation speed by using dynamic translation.
377 This package provides the system emulator with Alpha CPU.
379 %description system-alpha -l pl.UTF-8
380 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
381 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
383 Ten pakiet zawiera emulator systemu z procesorem Alpha.
386 Summary: QEMU system emulator for 32-bit ARM
387 Summary(pl.UTF-8): QEMU - emulator systemu z 32-bitowym procesorem ARM
388 Group: Applications/Emulators
389 Requires: %{name}-common = %{version}-%{release}
391 Obsoletes: qemu-kvm-system-arm
393 %description system-arm
394 QEMU is a generic and open source processor emulator which achieves a
395 good emulation speed by using dynamic translation.
397 This package provides the system emulator for 32-bit ARM.
399 %description system-arm -l pl.UTF-8
400 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
401 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
403 Ten pakiet zawiera emulator systemu z 32-bitowym procesorem ARM.
406 Summary: QEMU system emulator for CRIS
407 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
408 Group: Applications/Emulators
409 Requires: %{name}-common = %{version}-%{release}
411 Obsoletes: qemu-kvm-system-cris
413 %description system-cris
414 QEMU is a generic and open source processor emulator which achieves a
415 good emulation speed by using dynamic translation.
417 This package provides the system emulator with CRIS CPU.
419 %description system-cris -l pl.UTF-8
420 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
421 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
423 Ten pakiet zawiera emulator systemu z procesorem CRIS.
426 Summary: QEMU system emulator for HP/PA
427 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem HP/PA
428 Group: Applications/Emulators
429 Requires: %{name}-common = %{version}-%{release}
432 %description system-hppa
433 QEMU is a generic and open source processor emulator which achieves a
434 good emulation speed by using dynamic translation.
436 This package provides the system emulator with HP/PA (PA-RISC) CPU.
438 %description system-hppa -l pl.UTF-8
439 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
440 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
442 Ten pakiet zawiera emulator systemu z procesorem HP/PA (PA-RISC).
445 Summary: QEMU system emulator for LM32
446 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
447 Group: Applications/Emulators
448 Requires: %{name}-common = %{version}-%{release}
450 Obsoletes: qemu-kvm-system-lm32
452 %description system-lm32
453 QEMU is a generic and open source processor emulator which achieves a
454 good emulation speed by using dynamic translation.
456 This package provides the system emulator with LM32 CPU.
458 %description system-lm32 -l pl.UTF-8
459 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
460 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
462 Ten pakiet zawiera emulator systemu z procesorem LM32.
465 Summary: QEMU system emulator for m68k
466 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
467 Group: Applications/Emulators
468 Requires: %{name}-common = %{version}-%{release}
470 Obsoletes: qemu-kvm-system-m68k
472 %description system-m68k
473 QEMU is a generic and open source processor emulator which achieves a
474 good emulation speed by using dynamic translation.
476 This package provides the system emulator with m68k (Motorola 68xxx)
479 %description system-m68k -l pl.UTF-8
480 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
481 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
483 Ten pakiet zawiera emulator systemu z procesorem m68k (Motorola
486 %package system-microblaze
487 Summary: QEMU system emulator for MicroBlaze
488 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
489 Group: Applications/Emulators
490 Requires: %{name}-common = %{version}-%{release}
492 Obsoletes: qemu-kvm-system-microblaze
494 %description system-microblaze
495 QEMU is a generic and open source processor emulator which achieves a
496 good emulation speed by using dynamic translation.
498 This package provides the system emulator with MicroBlaze CPU.
500 %description system-microblaze -l pl.UTF-8
501 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
502 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
504 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
507 Summary: QEMU system emulator for MIPS
508 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
509 Group: Applications/Emulators
510 Requires: %{name}-common = %{version}-%{release}
512 Obsoletes: qemu-kvm-system-mips
514 %description system-mips
515 QEMU is a generic and open source processor emulator which achieves a
516 good emulation speed by using dynamic translation.
518 This package provides the system emulator with MIPS CPU.
520 %description system-mips -l pl.UTF-8
521 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
522 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
524 Ten pakiet zawiera emulator systemu z procesorem MIPS.
526 %package system-moxie
527 Summary: QEMU system emulator for Moxie
528 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
529 Group: Applications/Emulators
530 Requires: %{name}-common = %{version}-%{release}
533 %description system-moxie
534 QEMU is a generic and open source processor emulator which achieves a
535 good emulation speed by using dynamic translation.
537 This package provides the system emulator with Moxie CPU.
539 %description system-moxie -l pl.UTF-8
540 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
541 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
543 Ten pakiet zawiera emulator systemu z procesorem Moxie.
545 %package system-nios2
546 Summary: QEMU system emulator for Nios II
547 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Nios II
548 Group: Applications/Emulators
549 Requires: %{name}-common = %{version}-%{release}
552 %description system-nios2
553 QEMU is a generic and open source processor emulator which achieves a
554 good emulation speed by using dynamic translation.
556 This package provides the system emulator with Nios II CPU.
558 %description system-nios2 -l pl.UTF-8
559 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
560 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
562 Ten pakiet zawiera emulator systemu z procesorem Nios II.
565 Summary: QEMU system emulator for OpenRISC
566 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
567 Group: Applications/Emulators
568 Requires: %{name}-common = %{version}-%{release}
570 Obsoletes: qemu-kvm-system-or1k
571 Obsoletes: qemu-system-or32
573 %description system-or1k
574 QEMU is a generic and open source processor emulator which achieves a
575 good emulation speed by using dynamic translation.
577 This package provides the system emulator with OpenRISC CPU.
579 %description system-or1k -l pl.UTF-8
580 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
581 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
583 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
586 Summary: QEMU system emulator for PowerPC
587 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
588 Group: Applications/Emulators
589 Requires: %{name}-common = %{version}-%{release}
591 Obsoletes: qemu-kvm-system-ppc
593 %description system-ppc
594 QEMU is a generic and open source processor emulator which achieves a
595 good emulation speed by using dynamic translation.
597 This package provides the system emulator with PowerPC CPU.
599 %description system-ppc -l pl.UTF-8
600 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
601 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
603 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
605 %package system-riscv32
606 Summary: QEMU system emulator for RISC-V (32 bit)
607 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (32 bit)
608 Group: Applications/Emulators
609 Requires: %{name}-common = %{version}-%{release}
612 %description system-riscv32
613 QEMU is a generic and open source processor emulator which achieves a
614 good emulation speed by using dynamic translation.
616 This package provides the system emulator with RISC-V (32 bit) CPU.
618 %description system-riscv32 -l pl.UTF-8
619 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
620 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
622 Ten pakiet zawiera emulator systemu z procesorem RISC-V (32 bit).
624 %package system-riscv64
625 Summary: QEMU system emulator for RISC-V (64 bit)
626 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (64 bitowym)
627 Group: Applications/Emulators
628 Requires: %{name}-common = %{version}-%{release}
631 %description system-riscv64
632 QEMU is a generic and open source processor emulator which achieves a
633 good emulation speed by using dynamic translation.
635 This package provides the system emulator with RISC-V (64 bit) CPU.
637 %description system-riscv64 -l pl.UTF-8
638 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
639 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
641 Ten pakiet zawiera emulator systemu z procesorem RISC-V (64-bitowym).
644 Summary: QEMU system emulator for Renesas RX
645 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Renesas RX
646 Group: Applications/Emulators
647 Requires: %{name}-common = %{version}-%{release}
650 %description system-rx
651 QEMU is a generic and open source processor emulator which achieves a
652 good emulation speed by using dynamic translation.
654 This package provides the system emulator with Renesas RX CPU.
656 %description system-rx -l pl.UTF-8
657 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
658 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
660 Ten pakiet zawiera emulator systemu z procesorem Renesas RX.
662 %package system-s390x
663 Summary: QEMU system emulator for S390x (IBM Z)
664 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390x (IBM Z)
665 Group: Applications/Emulators
666 Requires: %{name}-common = %{version}-%{release}
668 Obsoletes: qemu-kvm-system-s390x
670 %description system-s390x
671 QEMU is a generic and open source processor emulator which achieves a
672 good emulation speed by using dynamic translation.
674 This package provides the system emulator with S390x (IBM Z) CPU.
676 %description system-s390x -l pl.UTF-8
677 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
678 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
680 Ten pakiet zawiera emulator systemu z procesorem S390x (IBM Z).
683 Summary: QEMU system emulator for SH4
684 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
685 Group: Applications/Emulators
686 Requires: %{name}-common = %{version}-%{release}
688 Obsoletes: qemu-kvm-system-sh4
690 %description system-sh4
691 QEMU is a generic and open source processor emulator which achieves a
692 good emulation speed by using dynamic translation.
694 This package provides the system emulator with SH4 CPU.
696 %description system-sh4 -l pl.UTF-8
697 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
698 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
700 Ten pakiet zawiera emulator systemu z procesorem SH4.
702 %package system-sparc
703 Summary: QEMU system emulator for SPARC
704 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
705 Group: Applications/Emulators
706 Requires: %{name}-common = %{version}-%{release}
708 Obsoletes: qemu-kvm-system-sparc
710 %description system-sparc
711 QEMU is a generic and open source processor emulator which achieves a
712 good emulation speed by using dynamic translation.
714 This package provides the system emulator with SPARC/SPARC64 CPU.
716 %description system-sparc -l pl.UTF-8
717 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
718 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
720 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
722 %package system-tricore
723 Summary: QEMU system emulator for TriCore
724 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
725 Group: Applications/Emulators
726 Requires: %{name}-common = %{version}-%{release}
729 %description system-tricore
730 QEMU is a generic and open source processor emulator which achieves a
731 good emulation speed by using dynamic translation.
733 This package provides the system emulator with TriCore CPU.
735 %description system-sparc -l pl.UTF-8
736 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
737 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
739 Ten pakiet zawiera emulator systemu z procesorem TriCore.
741 %package system-unicore32
742 Summary: QEMU system emulator for UniCore32
743 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
744 Group: Applications/Emulators
745 Requires: %{name}-common = %{version}-%{release}
747 Obsoletes: qemu-kvm-system-unicore32
749 %description system-unicore32
750 QEMU is a generic and open source processor emulator which achieves a
751 good emulation speed by using dynamic translation.
753 This package provides the system emulator with UniCore32 CPU.
755 %description system-unicore32 -l pl.UTF-8
756 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
757 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
759 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
762 Summary: QEMU system emulator for x86
763 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
764 Group: Applications/Emulators
765 Requires: %{name}-common = %{version}-%{release}
766 %{?with_system_seabios:Requires: seabios}
769 Obsoletes: qemu-kvm-system-x86
771 %description system-x86
772 QEMU is a generic and open source processor emulator which achieves a
773 good emulation speed by using dynamic translation.
775 This package provides the system emulator with x86 CPU.
777 %description system-x86 -l pl.UTF-8
778 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
779 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
781 Ten pakiet zawiera emulator systemu z procesorem x86.
783 %package system-xtensa
784 Summary: QEMU system emulator for Xtensa
785 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
786 Group: Applications/Emulators
787 Requires: %{name}-common = %{version}-%{release}
789 Obsoletes: qemu-kvm-system-xtensa
791 %description system-xtensa
792 QEMU is a generic and open source processor emulator which achieves a
793 good emulation speed by using dynamic translation.
795 This package provides the system emulator with Xtensa CPU.
797 %description system-xtensa -l pl.UTF-8
798 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
799 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
801 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
804 Summary: QEMU guest agent
805 Summary(pl.UTF-8): Agent gościa QEMU
807 Requires(post,preun,postun): systemd-units >= 38
808 Requires: glib2 >= 1:2.48
809 Requires: systemd-units >= 38
810 Obsoletes: qemu-kvm-guest-agent
811 Conflicts: SysVinit < 2.96-2
813 %description guest-agent
814 QEMU is a generic and open source processor emulator which achieves a
815 good emulation speed by using dynamic translation.
817 This package provides an agent to run inside guests, which
818 communicates with the host over a virtio-serial channel named
819 "org.qemu.guest_agent.0".
821 This package does not need to be installed on the host OS.
823 %description guest-agent -l pl.UTF-8
824 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
825 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
827 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
828 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
829 "org.qemu.guest_agent.0".
831 Ten pakiet nie musi być zainstalowany w systemie hosta.
833 %package module-block-curl
834 Summary: QEMU module for 'curl' block devices
835 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
836 Group: Applications/Emulators
837 Requires: %{name}-common = %{version}-%{release}
839 %description module-block-curl
840 QEMU block device support for CURL. It allows to access remote disks
841 over http, https, ftp and other transports provided by the CURL
844 %description module-block-curl -l pl.UTF-8
845 Moduł QEMU dla urządeń blokowych CURL. Pozwala na dostęp do zdalnych
846 dysków poprzez http, https, ftp i inne protokoły obsługiwane przez
849 %package module-block-gluster
850 Summary: QEMU module for 'gluster' block devices
851 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
852 Group: Applications/Emulators
853 Requires: %{name}-common = %{version}-%{release}
854 Requires: glusterfs-libs >= 6
856 %description module-block-gluster
857 QEMU block device support for remote Gluster storage.
859 %description module-block-gluster -l pl.UTF-8
860 Moduł urządzeń blokowych QEMU do dostępu do zdalnej przestrzeni
863 %package module-block-iscsi
864 Summary: QEMU module for 'iscsi' block devices
865 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
866 Group: Applications/Emulators
867 Requires: %{name}-common = %{version}-%{release}
868 Requires: libiscsi >= 1.9.0
870 %description module-block-iscsi
871 QEMU block device support for iSCSI volumes.
873 %description module-block-iscsi -l pl.UTF-8
874 Moduł urządzeń blokowych QEMU do dostępu do wolumenów iSCSI.
876 %package module-block-nfs
877 Summary: QEMU module for 'nfs' block devices
878 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'nfs'
879 Group: Applications/Emulators
880 Requires: %{name}-common = %{version}-%{release}
881 Requires: libnfs >= 1.9.3
883 %description module-block-nfs
884 QEMU block device support for remote NFS storage.
886 %description module-block-nfs -l pl.UTF-8
887 Moduł urządzeń blokowych QEMU do dostępu do zdalnej przestrzeni po
890 %package module-block-rbd
891 Summary: QEMU module for 'rbd' block devices
892 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
893 Group: Applications/Emulators
894 Requires: %{name}-common = %{version}-%{release}
896 %description module-block-rbd
897 QEMU block device support for Ceph/RBD volumes.
899 %description module-block-rbd -l pl.UTF-8
900 Moduł urządzeń blokowych QEMU do wolumenów Ceph/RBD.
902 %package module-block-ssh
903 Summary: QEMU module for 'ssh' block devices
904 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
905 Group: Applications/Emulators
906 Requires: %{name}-common = %{version}-%{release}
907 Requires: libssh >= 0.8
909 %description module-block-ssh
910 QEMU block device support for accessing remote disks using the Secure
911 Shell (SSH) protocol.
913 %description module-block-ssh -l pl.UTF-8
914 Moduł urządzeń blokowych QEMU do dostępu do zdalnych dysków poprzez
915 protokół SSH (Secure Shell).
917 %package module-ui-gtk
918 Summary: QEMU GTK UI driver
919 Summary(pl.UTF-8): Sterownik interfejsu użytkownika GTK dla QEMU
920 Group: Applications/Emulators
921 Requires: %{name}-common = %{version}-%{release}
923 %description module-ui-gtk
926 %description module-ui-gtk -l pl.UTF-8
927 Sterownik interfejsu użytkownika GTK dla QEMU.
929 %package module-ui-sdl
930 Summary: QEMU SDL UI and audio driver
931 Summary(pl.UTF-8): Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU
932 Group: Applications/Emulators
933 Requires: %{name}-common = %{version}-%{release}
935 %description module-ui-sdl
936 QEMU SDL UI and audio driver.
938 %description module-ui-sdl -l pl.UTF-8
939 Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU.
941 %package -n systemtap-qemu
942 Summary: systemtap/dtrace probes for QEMU
943 Summary(pl.UTF-8): Sondy systemtap/dtrace dla QEMU
944 Group: Development/Tools
945 Requires: %{name}-common = %{version}-%{release}
946 Requires: systemtap-client
948 %description -n systemtap-qemu
949 systemtap/dtrace probes for QEMU.
951 %description -n systemtap-qemu -l pl.UTF-8
952 Sondy systemtap/dtrace dla QEMU.
965 %{__sed} -i '1s,/usr/bin/env python3,%{__python3},' scripts/qemu-trace-stap
967 %if %{with systemtap}
968 # don't require stap binary during build
969 %{__sed} -i -e "s/has 'stap'/true/" configure
977 install -d build-$target
981 --prefix=%{_prefix} \
982 --libdir=%{_libdir} \
983 --libexecdir=%{_libexecdir} \
984 --sysconfdir=%{_sysconfdir} \
985 --localstatedir=%{_localstatedir} \
986 --interp-prefix=%{_libdir}/qemu/lib-%%M \
989 --host-cc="%{__cc}" \
991 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
997 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
1003 --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
1004 --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
1005 --audio-drv-list="alsa%{?with_oss:,oss}%{?with_sdl:,sdl}%{?with_pulseaudio:,pa}" \
1007 %{__enable_disable brlapi} \
1009 --enable-capstone=system \
1014 %{__enable_disable glusterfs} \
1015 %{!?with_gtk3:--disable-gtk} \
1016 %{__enable_disable iscsi libiscsi} \
1017 %{__enable_disable libnfs} \
1018 %{__enable_disable pmem libpmem} \
1020 %{__enable_disable multipath mpath} \
1024 %{__enable_disable ceph rbd} \
1025 %{__enable_disable rdma} \
1026 %{__enable_disable sdl} \
1027 %{__enable_disable seccomp} \
1028 --enable-slirp=system \
1029 %{__enable_disable spice} \
1030 %{__enable_disable smartcard} \
1031 %{__enable_disable snappy} \
1033 %{__enable_disable usbredir usb-redir} \
1035 %{__enable_disable virgl virglrenderer} \
1040 %{__enable_disable vxhs} \
1041 %{!?with_vte:--disable-vte} \
1042 %{__enable_disable xen} \
1043 %{__enable_disable xkbcommon}
1045 %if %{with user_static}
1049 --disable-capstone \
1055 --disable-guest-agent \
1056 --disable-guest-agent-msi \
1058 --disable-linux-io-uring \
1066 --disable-tcmalloc \
1070 --disable-xkbcommon \
1075 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
1078 rm -rf $RPM_BUILD_ROOT
1079 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
1080 $RPM_BUILD_ROOT/etc/{qemu,sysconfig,modules-load.d,rc.d/init.d,logrotate.d} \
1081 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,/lib/udev/rules.d,%{_sbindir}}
1083 %if %{with user_static}
1084 %{__make} -C build-static install \
1085 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
1086 DESTDIR=$RPM_BUILD_ROOT
1088 # Give all QEMU user emulators a -static suffix
1089 for src in $RPM_BUILD_ROOT%{_bindir}/qemu-*; do
1090 %{__mv} $src $src-static
1095 %{__make} -C build-dynamic install \
1096 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
1097 DESTDIR=$RPM_BUILD_ROOT
1099 # let rpm generate dependencies
1100 chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/*.so
1102 echo "#allow br0" > $RPM_BUILD_ROOT/etc/qemu/bridge.conf
1104 install -d $RPM_BUILD_ROOT%{_sysconfdir}
1105 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
1110 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
1112 %ifarch %{ix86} %{x8664} x32
1113 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
1114 install -p %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/rules.d
1117 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
1118 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
1119 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
1121 install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
1122 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
1123 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
1125 # For the qemu-guest-agent subpackage install the systemd
1126 # service and udev rules.
1127 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
1128 install -p %{SOURCE12} $RPM_BUILD_ROOT/lib/udev/rules.d
1130 install -p %{SOURCE13} $RPM_BUILD_ROOT/etc/rc.d/init.d/qemu-ga
1131 install -p %{SOURCE14} $RPM_BUILD_ROOT/etc/logrotate.d/qemu-ga
1133 cp -p %{SOURCE15} %{SOURCE16} $RPM_BUILD_ROOT%{systemdunitdir}
1137 %ifnarch %{ix86} %{x8664} x32
1151 microblaze microblazeel \
1167 %ifnarch ppc ppc64 ppc64le
1170 %ifnarch sparc sparc64
1171 sparc sparc32plus sparc64 \
1182 if [ -n "$BINFMT_CPUS" ]; then
1183 for cpu in $BINFMT_CPUS; do
1184 bash ./scripts/qemu-binfmt-conf.sh --systemd "$cpu" --exportdir $RPM_BUILD_ROOT/usr/lib/binfmt.d --qemu-path %{_bindir}
1186 for i in $RPM_BUILD_ROOT/usr/lib/binfmt.d/*.conf; do
1187 %{__mv} $i ${i%.conf}-dynamic.conf
1190 %if %{with user_static}
1191 for regularfmt in $RPM_BUILD_ROOT/usr/lib/binfmt.d/*; do
1192 staticfmt="${regularfmt%\-dynamic.conf}-static.conf"
1193 cat $regularfmt | tr -d '\n' | sed "s/:$/-static:F/" > $staticfmt
1198 %if %{with system_seabios}
1199 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
1200 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
1201 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
1203 if [ -e "/usr/share/seabios/$bn" ] ; then
1204 ln -sf "/usr/share/seabios/$bn" "$f"
1210 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
1211 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
1217 # Windows installer icon, not used
1218 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/qemu-nsis.bmp
1220 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/edk2-licenses.txt
1222 # cleanup Sphinx files
1223 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/{interop,specs,system,tools,user}/{.buildinfo,objects.inv}
1224 # leave just HTML version
1225 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{ga,qmp}-ref.txt
1228 rm -rf $RPM_BUILD_ROOT
1231 %groupadd -g 160 kvm
1232 %groupadd -g 276 qemu
1233 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
1236 %systemd_post ksm.service
1237 %systemd_post ksmtuned.service
1240 %systemd_preun ksm.service
1241 %systemd_preun ksmtuned.service
1244 if [ "$1" = "0" ]; then
1251 %triggerpostun common -- qemu-common < 1.6.1-4
1252 %systemd_trigger ksm.service
1253 %systemd_trigger ksmtuned.service
1254 %systemd_trigger qemu-pr-helper.service
1257 %systemd_service_restart systemd-binfmt.service
1260 %systemd_service_restart systemd-binfmt.service
1263 %systemd_service_restart systemd-binfmt.service
1266 %systemd_service_restart systemd-binfmt.service
1269 /sbin/chkconfig --add qemu-ga
1270 %service qemu-ga restart "qemu-ga"
1274 if [ "$1" = "0" ]; then
1275 %service qemu-ga stop
1276 /sbin/chkconfig --del qemu-ga
1278 %systemd_preun qemu-guest-agent.service
1284 %defattr(644,root,root,755)
1286 %files common -f %{name}.lang
1287 %defattr(644,root,root,755)
1288 %doc LICENSE README.rst pc-bios/edk2-licenses.txt
1289 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
1290 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
1291 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
1292 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
1294 %attr(640,root,qemu) %config(noreplace) %verify(not md5 mtime size) /etc/qemu/bridge.conf
1295 %{systemdunitdir}/ksm.service
1296 %{systemdunitdir}/ksmtuned.service
1297 %{systemdunitdir}/qemu-pr-helper.service
1298 %{systemdunitdir}/qemu-pr-helper.socket
1299 %attr(755,root,root) %{_bindir}/elf2dmp
1300 %attr(755,root,root) %{_bindir}/ivshmem-client
1301 %attr(755,root,root) %{_bindir}/ivshmem-server
1302 %attr(755,root,root) %{_bindir}/qemu-edid
1303 %if %{with xkbcommon}
1304 %attr(755,root,root) %{_bindir}/qemu-keymap
1306 %attr(755,root,root) %{_bindir}/qemu-nbd
1307 %attr(755,root,root) %{_bindir}/qemu-pr-helper
1308 %attr(755,root,root) %{_bindir}/qemu-storage-daemon
1309 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
1310 %attr(755,root,root) %{_sbindir}/ksmctl
1311 %attr(755,root,root) %{_sbindir}/ksmtuned
1312 %attr(755,root,root) %{_libexecdir}/qemu-bridge-helper
1314 %attr(755,root,root) %{_libexecdir}/vhost-user-gpu
1316 %attr(755,root,root) %{_libexecdir}/virtiofsd
1317 %dir %{_libdir}/%{name}
1318 # modules without too many external dependencies
1319 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-bz2.so
1320 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-lzfse.so
1321 %attr(755,root,root) %{_libdir}/%{name}/audio-alsa.so
1323 %attr(755,root,root) %{_libdir}/%{name}/audio-oss.so
1325 %if %{with pulseaudio}
1326 %attr(755,root,root) %{_libdir}/%{name}/audio-pa.so
1328 %attr(755,root,root) %{_libdir}/%{name}/ui-curses.so
1330 %attr(755,root,root) %{_libdir}/%{name}/ui-spice-app.so
1332 %dir %{_datadir}/%{name}
1333 %dir %{_datadir}/%{name}/firmware
1334 %{_datadir}/%{name}/keymaps
1335 %{_datadir}/%{name}/trace-events-all
1336 %dir %{_datadir}/%{name}/vhost-user
1338 %{_datadir}/%{name}/vhost-user/50-qemu-gpu.json
1340 %{_datadir}/%{name}/vhost-user/50-qemu-virtiofsd.json
1341 %{_desktopdir}/qemu.desktop
1342 %{_iconsdir}/hicolor/*x*/apps/qemu.png
1343 %{_iconsdir}/hicolor/32x32/apps/qemu.bmp
1344 %{_iconsdir}/hicolor/scalable/apps/qemu.svg
1345 %{_mandir}/man1/qemu.1*
1346 %{_mandir}/man1/virtfs-proxy-helper.1*
1347 %{_mandir}/man1/virtiofsd.1*
1348 %{_mandir}/man7/qemu-block-drivers.7*
1349 %{_mandir}/man7/qemu-cpu-models.7*
1350 %{_mandir}/man7/qemu-qmp-ref.7*
1351 %{_mandir}/man8/qemu-nbd.8*
1355 %defattr(644,root,root,755)
1356 %attr(755,root,root) %{_bindir}/qemu-img
1357 %{_mandir}/man1/qemu-img.1*
1360 %defattr(644,root,root,755)
1361 /usr/lib/binfmt.d/qemu-*-dynamic.conf
1362 %attr(755,root,root) %{_bindir}/qemu-aarch64
1363 %attr(755,root,root) %{_bindir}/qemu-aarch64_be
1364 %attr(755,root,root) %{_bindir}/qemu-alpha
1365 %attr(755,root,root) %{_bindir}/qemu-arm
1366 %attr(755,root,root) %{_bindir}/qemu-armeb
1367 %attr(755,root,root) %{_bindir}/qemu-cris
1368 %attr(755,root,root) %{_bindir}/qemu-hppa
1369 %attr(755,root,root) %{_bindir}/qemu-i386
1370 %attr(755,root,root) %{_bindir}/qemu-io
1371 %attr(755,root,root) %{_bindir}/qemu-m68k
1372 %attr(755,root,root) %{_bindir}/qemu-microblaze
1373 %attr(755,root,root) %{_bindir}/qemu-microblazeel
1374 %attr(755,root,root) %{_bindir}/qemu-mips
1375 %attr(755,root,root) %{_bindir}/qemu-mipsel
1376 %attr(755,root,root) %{_bindir}/qemu-mips64
1377 %attr(755,root,root) %{_bindir}/qemu-mips64el
1378 %attr(755,root,root) %{_bindir}/qemu-mipsn32
1379 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
1380 %attr(755,root,root) %{_bindir}/qemu-nios2
1381 %attr(755,root,root) %{_bindir}/qemu-or1k
1382 %attr(755,root,root) %{_bindir}/qemu-ppc
1383 %attr(755,root,root) %{_bindir}/qemu-ppc64
1384 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
1385 %attr(755,root,root) %{_bindir}/qemu-ppc64le
1386 %attr(755,root,root) %{_bindir}/qemu-riscv32
1387 %attr(755,root,root) %{_bindir}/qemu-riscv64
1388 %attr(755,root,root) %{_bindir}/qemu-s390x
1389 %attr(755,root,root) %{_bindir}/qemu-sh4
1390 %attr(755,root,root) %{_bindir}/qemu-sh4eb
1391 %attr(755,root,root) %{_bindir}/qemu-sparc
1392 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
1393 %attr(755,root,root) %{_bindir}/qemu-sparc64
1394 %attr(755,root,root) %{_bindir}/qemu-tilegx
1395 %attr(755,root,root) %{_bindir}/qemu-x86_64
1396 %attr(755,root,root) %{_bindir}/qemu-xtensa
1397 %attr(755,root,root) %{_bindir}/qemu-xtensaeb
1399 %if %{with user_static}
1401 %defattr(644,root,root,755)
1402 /usr/lib/binfmt.d/qemu-*-static.conf
1403 %attr(755,root,root) %{_bindir}/qemu-aarch64-static
1404 %attr(755,root,root) %{_bindir}/qemu-aarch64_be-static
1405 %attr(755,root,root) %{_bindir}/qemu-alpha-static
1406 %attr(755,root,root) %{_bindir}/qemu-arm-static
1407 %attr(755,root,root) %{_bindir}/qemu-armeb-static
1408 %attr(755,root,root) %{_bindir}/qemu-cris-static
1409 %attr(755,root,root) %{_bindir}/qemu-hppa-static
1410 %attr(755,root,root) %{_bindir}/qemu-i386-static
1411 %attr(755,root,root) %{_bindir}/qemu-m68k-static
1412 %attr(755,root,root) %{_bindir}/qemu-microblaze-static
1413 %attr(755,root,root) %{_bindir}/qemu-microblazeel-static
1414 %attr(755,root,root) %{_bindir}/qemu-mips-static
1415 %attr(755,root,root) %{_bindir}/qemu-mips64-static
1416 %attr(755,root,root) %{_bindir}/qemu-mips64el-static
1417 %attr(755,root,root) %{_bindir}/qemu-mipsel-static
1418 %attr(755,root,root) %{_bindir}/qemu-mipsn32-static
1419 %attr(755,root,root) %{_bindir}/qemu-mipsn32el-static
1420 %attr(755,root,root) %{_bindir}/qemu-nios2-static
1421 %attr(755,root,root) %{_bindir}/qemu-or1k-static
1422 %attr(755,root,root) %{_bindir}/qemu-ppc-static
1423 %attr(755,root,root) %{_bindir}/qemu-ppc64-static
1424 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32-static
1425 %attr(755,root,root) %{_bindir}/qemu-ppc64le-static
1426 %attr(755,root,root) %{_bindir}/qemu-riscv32-static
1427 %attr(755,root,root) %{_bindir}/qemu-riscv64-static
1428 %attr(755,root,root) %{_bindir}/qemu-s390x-static
1429 %attr(755,root,root) %{_bindir}/qemu-sh4-static
1430 %attr(755,root,root) %{_bindir}/qemu-sh4eb-static
1431 %attr(755,root,root) %{_bindir}/qemu-sparc-static
1432 %attr(755,root,root) %{_bindir}/qemu-sparc32plus-static
1433 %attr(755,root,root) %{_bindir}/qemu-sparc64-static
1434 %attr(755,root,root) %{_bindir}/qemu-tilegx-static
1435 %attr(755,root,root) %{_bindir}/qemu-x86_64-static
1436 %attr(755,root,root) %{_bindir}/qemu-xtensa-static
1437 %attr(755,root,root) %{_bindir}/qemu-xtensaeb-static
1438 %attr(755,root,root) %{_bindir}/qemu-trace-stap-static
1441 %files system-aarch64
1442 %defattr(644,root,root,755)
1443 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1444 %{_datadir}/%{name}/edk2-aarch64-code.fd
1445 %{_datadir}/%{name}/firmware/60-edk2-aarch64.json
1448 %defattr(644,root,root,755)
1449 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1450 %{_datadir}/%{name}/palcode-clipper
1453 %defattr(644,root,root,755)
1454 %attr(755,root,root) %{_bindir}/qemu-system-arm
1455 %{_datadir}/%{name}/edk2-arm-code.fd
1456 %{_datadir}/%{name}/edk2-arm-vars.fd
1457 %{_datadir}/%{name}/firmware/60-edk2-arm.json
1460 %defattr(644,root,root,755)
1461 %attr(755,root,root) %{_bindir}/qemu-system-cris
1464 %defattr(644,root,root,755)
1465 %attr(755,root,root) %{_bindir}/qemu-system-hppa
1466 %{_datadir}/%{name}/hppa-firmware.img
1469 %defattr(644,root,root,755)
1470 %attr(755,root,root) %{_bindir}/qemu-system-lm32
1473 %defattr(644,root,root,755)
1474 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1476 %files system-microblaze
1477 %defattr(644,root,root,755)
1478 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1479 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1482 %defattr(644,root,root,755)
1483 %attr(755,root,root) %{_bindir}/qemu-system-mips
1484 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1485 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1486 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1489 %defattr(644,root,root,755)
1490 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1493 %defattr(644,root,root,755)
1494 %attr(755,root,root) %{_bindir}/qemu-system-nios2
1497 %defattr(644,root,root,755)
1498 %attr(755,root,root) %{_bindir}/qemu-system-or1k
1501 %defattr(644,root,root,755)
1502 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1503 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1504 %{_datadir}/%{name}/bamboo.dtb
1505 %{_datadir}/%{name}/canyonlands.dtb
1506 %{_datadir}/%{name}/openbios-ppc
1507 %{_datadir}/%{name}/petalogix-ml605.dtb
1508 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
1509 %{_datadir}/%{name}/qemu_vga.ndrv
1510 %{_datadir}/%{name}/skiboot.lid
1511 %{_datadir}/%{name}/slof.bin
1512 %{_datadir}/%{name}/u-boot.e500
1513 %{_datadir}/%{name}/u-boot-sam460-20100605.bin
1515 %files system-riscv32
1516 %defattr(644,root,root,755)
1517 %attr(755,root,root) %{_bindir}/qemu-system-riscv32
1518 %{_datadir}/%{name}/opensbi-riscv32-sifive_u-fw_jump.bin
1519 %{_datadir}/%{name}/opensbi-riscv32-virt-fw_jump.bin
1521 %files system-riscv64
1522 %defattr(644,root,root,755)
1523 %attr(755,root,root) %{_bindir}/qemu-system-riscv64
1524 %{_datadir}/%{name}/opensbi-riscv64-sifive_u-fw_jump.bin
1525 %{_datadir}/%{name}/opensbi-riscv64-virt-fw_jump.bin
1528 %defattr(644,root,root,755)
1529 %attr(755,root,root) %{_bindir}/qemu-system-rx
1532 %defattr(644,root,root,755)
1533 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1534 %{_datadir}/%{name}/s390-ccw.img
1535 %{_datadir}/%{name}/s390-netboot.img
1538 %defattr(644,root,root,755)
1539 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1540 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1543 %defattr(644,root,root,755)
1544 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1545 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1546 %{_datadir}/%{name}/QEMU,cgthree.bin
1547 %{_datadir}/%{name}/QEMU,tcx.bin
1548 %{_datadir}/%{name}/openbios-sparc32
1549 %{_datadir}/%{name}/openbios-sparc64
1551 %files system-tricore
1552 %defattr(644,root,root,755)
1553 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1555 %files system-unicore32
1556 %defattr(644,root,root,755)
1557 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1560 %defattr(644,root,root,755)
1561 %attr(755,root,root) %{_bindir}/qemu-system-i386
1562 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1563 %ifarch %{ix86} %{x8664} x32
1564 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1565 /lib/udev/rules.d/80-kvm.rules
1567 %{_datadir}/%{name}/bios.bin
1568 %{_datadir}/%{name}/bios-256k.bin
1569 %{_datadir}/%{name}/bios-microvm.bin
1570 %{_datadir}/%{name}/edk2-i386-code.fd
1571 %{_datadir}/%{name}/edk2-i386-secure-code.fd
1572 %{_datadir}/%{name}/edk2-i386-vars.fd
1573 %{_datadir}/%{name}/edk2-x86_64-code.fd
1574 %{_datadir}/%{name}/edk2-x86_64-secure-code.fd
1575 %{_datadir}/%{name}/efi-e1000e.rom
1576 %{_datadir}/%{name}/efi-e1000.rom
1577 %{_datadir}/%{name}/efi-eepro100.rom
1578 %{_datadir}/%{name}/efi-ne2k_pci.rom
1579 %{_datadir}/%{name}/efi-pcnet.rom
1580 %{_datadir}/%{name}/efi-rtl8139.rom
1581 %{_datadir}/%{name}/efi-virtio.rom
1582 %{_datadir}/%{name}/efi-vmxnet3.rom
1583 %{_datadir}/%{name}/kvmvapic.bin
1584 %{_datadir}/%{name}/linuxboot.bin
1585 %{_datadir}/%{name}/linuxboot_dma.bin
1586 %{_datadir}/%{name}/multiboot.bin
1587 %{_datadir}/%{name}/pvh.bin
1588 %{_datadir}/%{name}/pxe-e1000.rom
1589 %{_datadir}/%{name}/pxe-eepro100.rom
1590 %{_datadir}/%{name}/pxe-ne2k_pci.rom
1591 %{_datadir}/%{name}/pxe-pcnet.rom
1592 %{_datadir}/%{name}/pxe-rtl8139.rom
1593 %{_datadir}/%{name}/pxe-virtio.rom
1594 %{_datadir}/%{name}/sgabios.bin
1595 %{_datadir}/%{name}/vgabios.bin
1596 %{_datadir}/%{name}/vgabios-ati.bin
1597 %{_datadir}/%{name}/vgabios-bochs-display.bin
1598 %{_datadir}/%{name}/vgabios-cirrus.bin
1599 %{_datadir}/%{name}/vgabios-qxl.bin
1600 %{_datadir}/%{name}/vgabios-ramfb.bin
1601 %{_datadir}/%{name}/vgabios-stdvga.bin
1602 %{_datadir}/%{name}/vgabios-virtio.bin
1603 %{_datadir}/%{name}/vgabios-vmware.bin
1604 %{_datadir}/%{name}/firmware/50-edk2-i386-secure.json
1605 %{_datadir}/%{name}/firmware/50-edk2-x86_64-secure.json
1606 %{_datadir}/%{name}/firmware/60-edk2-i386.json
1607 %{_datadir}/%{name}/firmware/60-edk2-x86_64.json
1609 %files system-xtensa
1610 %defattr(644,root,root,755)
1611 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1612 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1615 %defattr(644,root,root,755)
1616 %attr(755,root,root) %{_bindir}/qemu-ga
1617 /lib/udev/rules.d/99-qemu-guest-agent.rules
1618 %{systemdunitdir}/qemu-guest-agent.service
1619 %attr(754,root,root) /etc/rc.d/init.d/qemu-ga
1620 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/qemu-ga
1621 %{_mandir}/man7/qemu-ga-ref.7*
1622 %{_mandir}/man8/qemu-ga.8*
1624 %files module-block-curl
1625 %defattr(644,root,root,755)
1626 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1628 %if %{with glusterfs}
1629 %files module-block-gluster
1630 %defattr(644,root,root,755)
1631 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1635 %files module-block-iscsi
1636 %defattr(644,root,root,755)
1637 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1641 %files module-block-nfs
1642 %defattr(644,root,root,755)
1643 %attr(755,root,root) %{_libdir}/%{name}/block-nfs.so
1647 %files module-block-rbd
1648 %defattr(644,root,root,755)
1649 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1652 %files module-block-ssh
1653 %defattr(644,root,root,755)
1654 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so
1657 %files module-ui-gtk
1658 %defattr(644,root,root,755)
1659 %attr(755,root,root) %{_libdir}/%{name}/ui-gtk.so
1663 %files module-ui-sdl
1664 %defattr(644,root,root,755)
1665 %attr(755,root,root) %{_libdir}/%{name}/audio-sdl.so
1666 %attr(755,root,root) %{_libdir}/%{name}/ui-sdl.so
1669 %if %{with systemtap}
1670 %files -n systemtap-qemu
1671 %defattr(644,root,root,755)
1672 %attr(755,root,root) %{_bindir}/qemu-trace-stap
1673 %{_datadir}/systemtap/tapset/qemu-*.stp
1674 %{_mandir}/man1/qemu-trace-stap.1*