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_without xkbcommon # xkbcommon support
38 %ifnarch %{x8664} aarch64
42 Summary: QEMU CPU Emulator
43 Summary(pl.UTF-8): QEMU - emulator procesora
47 License: GPL v2, BSD (edk2 firmware files)
48 Group: Applications/Emulators
49 Source0: https://download.qemu.org/%{name}-%{version}.tar.xz
50 # Source0-md5: 179f86928835da857c237b42f4b2df73
51 # Loads kvm kernel modules at boot
52 Source3: kvm-modules-load.conf
57 Source6: ksm.sysconfig
59 Source8: ksmtuned.service
61 Source10: ksmtuned.conf
62 Source11: %{name}-guest-agent.service
63 Source12: 99-%{name}-guest-agent.rules
64 Source13: %{name}-guest-agent.init
65 Source14: %{name}-guest-agent.logrotate
66 Source15: %{name}-pr-helper.service
67 Source16: %{name}-pr-helper.socket
68 Patch0: %{name}-cflags.patch
69 Patch1: %{name}-user-execve.patch
70 Patch2: %{name}-xattr.patch
71 Patch3: libjpeg-boolean.patch
73 Patch5: binutils-2.36.patch
74 URL: https://www.qemu.org/
75 %{?with_opengl:BuildRequires: Mesa-libgbm-devel}
76 %{?with_opengl:BuildRequires: OpenGL-GLX-devel}
77 %{?with_opengl:BuildRequires: OpenGL-devel}
78 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
79 %{?with_sdl:BuildRequires: SDL2_image-devel >= 2.0}
80 BuildRequires: alsa-lib-devel
81 %{?with_brlapi:BuildRequires: brlapi-devel}
82 BuildRequires: bzip2-devel
83 BuildRequires: capstone-devel >= 3.0.5
84 %{?with_ceph:BuildRequires: ceph-devel}
85 BuildRequires: curl-devel
86 BuildRequires: cyrus-sasl-devel >= 2
87 BuildRequires: gettext-tools
88 BuildRequires: glib2-devel >= 1:2.48
89 # minimal is 3.4 but new features are used up to 6
90 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 6}
91 BuildRequires: gnutls-devel >= 3.1.18
92 %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.22.0}
93 BuildRequires: libaio-devel
94 %{?with_smartcard:BuildRequires: libcacard-devel >= 2.5.1}
95 BuildRequires: libcap-ng-devel
96 BuildRequires: libdrm-devel
97 %{?with_opengl:BuildRequires: libepoxy-devel}
98 BuildRequires: libfdt-devel >= 1.4.2
99 %{?with_rdma:BuildRequires: libibverbs-devel}
100 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
101 %{?with_rdma:BuildRequires: libibumad-devel}
102 BuildRequires: libjpeg-devel
103 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
104 BuildRequires: libpng-devel
105 %{?with_rdma:BuildRequires: librdmacm-devel}
106 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.3.0}
107 BuildRequires: libssh-devel >= 0.8
108 BuildRequires: libslirp-devel >= 4.0.0
110 #BuildRequires: libtasn1-devel
111 BuildRequires: libusb-devel >= 1.0.22
112 BuildRequires: liburing-devel
113 BuildRequires: libuuid-devel
114 BuildRequires: libxml2-devel >= 2.0
115 %{?with_lttng:BuildRequires: lttng-ust-devel}
116 BuildRequires: lzfse-devel
117 BuildRequires: lzo-devel >= 2
118 BuildRequires: meson >= 0.55.0
119 %{?with_multipath:BuildRequires: multipath-tools-devel}
120 BuildRequires: ncurses-devel
121 # also libgcrypt-devel >= 1.5.0 possible, but gnutls already pulls nettle
122 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 %if %{with xkbcommon}
159 BuildRequires: xkeyboard-config
160 BuildRequires: xorg-lib-libxkbcommon-devel
162 BuildRequires: xorg-lib-libX11-devel
164 BuildRequires: zlib-devel
165 BuildRequires: zstd-devel >= 1.4.0
166 %if %{with user_static}
167 BuildRequires: glib2-static >= 1:2.48
168 BuildRequires: glibc-static
169 BuildRequires: pcre-static
170 BuildRequires: zlib-static
172 Requires: %{name}-img = %{version}-%{release}
173 Requires: %{name}-system-aarch64 = %{version}-%{release}
174 Requires: %{name}-system-alpha = %{version}-%{release}
175 Requires: %{name}-system-arm = %{version}-%{release}
176 Requires: %{name}-system-avr = %{version}-%{release}
177 Requires: %{name}-system-cris = %{version}-%{release}
178 Requires: %{name}-system-hppa = %{version}-%{release}
179 Requires: %{name}-system-m68k = %{version}-%{release}
180 Requires: %{name}-system-microblaze = %{version}-%{release}
181 Requires: %{name}-system-mips = %{version}-%{release}
182 Requires: %{name}-system-moxie = %{version}-%{release}
183 Requires: %{name}-system-nios2 = %{version}-%{release}
184 Requires: %{name}-system-or1k = %{version}-%{release}
185 Requires: %{name}-system-ppc = %{version}-%{release}
186 Requires: %{name}-system-riscv32 = %{version}-%{release}
187 Requires: %{name}-system-riscv64 = %{version}-%{release}
188 Requires: %{name}-system-rx = %{version}-%{release}
189 Requires: %{name}-system-s390x = %{version}-%{release}
190 Requires: %{name}-system-sh4 = %{version}-%{release}
191 Requires: %{name}-system-sparc = %{version}-%{release}
192 Requires: %{name}-system-tricore = %{version}-%{release}
193 Requires: %{name}-system-x86 = %{version}-%{release}
194 Requires: %{name}-system-xtensa = %{version}-%{release}
195 Requires: %{name}-user = %{version}-%{release}
198 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
200 %define systempkg_req \
201 Requires: capstone >= 3.0.5 \
202 %{?with_smartcard:Requires: libcacard >= 2.5.1} \
203 Requires: libfdt >= 1.4.2 \
204 %if %{with seccomp} \
205 Requires: libseccomp >= 2.3.0 \
207 Requires: libslirp >= 4.0.0 \
208 Requires: libusb >= 1.0.22 \
209 Requires: pixman >= 0.21.8 \
211 Requires: spice-server-libs >= 0.12.5 \
213 %if %{with usbredir} \
214 Requires: usbredir >= 0.6 \
216 Requires: zstd >= 1.4.0
218 # don't strip/chrpath anything in there; these are boot images, roms etc
219 %define _noautostrip .*%{_datadir}/qemu/.*
220 %define _noautochrpath .*%{_datadir}/qemu/.*
223 QEMU is a FAST! processor emulator. By using dynamic translation it
224 achieves a reasonnable speed while being easy to port on new host
225 CPUs. QEMU has two operating modes:
227 - User mode emulation. In this mode, QEMU can launch Linux processes
228 compiled for one CPU on another CPU. Linux system calls are converted
229 because of endianness and 32/64 bit mismatches. Wine (Windows
230 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
232 - Full system emulation. In this mode, QEMU emulates a full system,
233 including a processor and various peripherials. It can also be used to
234 provide virtual hosting of several virtual PC on a single server.
236 %description -l pl.UTF-8
237 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
238 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
239 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
241 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
242 procesy linuksowe skompilowane dla jednego procesora na innym
243 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
244 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
245 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
248 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
249 włączając w to procesor i różne urządzenia peryferyjne. Może być także
250 używane do wirtualnego hostowania kilku wirtualnych pecetów na
251 pojedynczym serwerze.
254 Summary: QEMU common files needed by all QEMU targets
255 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
256 Group: Applications/Emulators
257 Requires(post,preun,postun): systemd-units >= 38
258 Requires(postun): /usr/sbin/groupdel
259 Requires(postun): /usr/sbin/userdel
260 Requires(pre): /bin/id
261 Requires(pre): /usr/bin/getgid
262 Requires(pre): /usr/sbin/groupadd
263 Requires(pre): /usr/sbin/useradd
264 Requires: glib2 >= 1:2.48
265 Requires: gnutls-libs >= 3.1.18
266 %{?with_gtk3:Requires: gtk+3 >= 3.22.0}
267 Requires: nettle >= 2.7.1
268 Requires: systemd-units >= 38
269 %{?with_vte:Requires: vte >= 0.32.0}
270 Provides: group(qemu)
272 Obsoletes: qemu-kvm-common
273 Obsoletes: qemu-module-block-archipelago < 2.9.0
274 Conflicts: qemu < 1.0-2
277 QEMU is a generic and open source processor emulator which achieves a
278 good emulation speed by using dynamic translation.
280 This package provides the common files needed by all QEMU targets.
282 %description common -l pl.UTF-8
283 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
284 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
286 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
290 Summary: QEMU command line tool for manipulating disk images
291 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
292 Group: Applications/Emulators
293 Obsoletes: qemu-kvm-img
294 Conflicts: qemu < 1.0-2
297 This package provides a command line tool for manipulating disk
300 %description img -l pl.UTF-8
301 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
305 Summary: QEMU user mode emulation of qemu targets
306 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
307 Group: Applications/Emulators
308 Requires: %{name}-common = %{version}-%{release}
309 Requires(post,postun): systemd-units >= 38
310 Requires: systemd-units >= 38
311 Obsoletes: qemu-kvm-user
314 QEMU is a generic and open source processor emulator which achieves a
315 good emulation speed by using dynamic translation.
317 This package provides the user mode emulation of QEMU targets.
319 %description user -l pl.UTF-8
320 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
321 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
323 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
326 Summary: QEMU user mode emulation of qemu targets static build
327 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu - wersja statyczna
328 Group: Applications/Emulators
329 Requires(post,postun): systemd-units >= 38
330 Requires: systemd-units >= 38
332 %description user-static
333 QEMU is a generic and open source processor emulator which achieves a
334 good emulation speed by using dynamic translation.
336 This package provides the user mode emulation of qemu targets built as
339 %description user-static -l pl.UTF-8
340 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
341 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
343 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU w
344 oparciu o programy wykonywalne zbudowane statycznie.
346 %package system-aarch64
347 Summary: QEMU system emulator for AArch64
348 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
349 Group: Applications/Emulators
350 Requires: %{name}-common = %{version}-%{release}
352 Obsoletes: qemu-kvm-system-aarch64
354 %description system-aarch64
355 QEMU is a generic and open source processor emulator which achieves a
356 good emulation speed by using dynamic translation.
358 This package provides the system emulator with AArch64 (ARM64) CPU.
360 %description system-aarch64 -l pl.UTF-8
361 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
362 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
364 Ten pakiet zawiera emulator systemu z procesorem AArch64 (ARM64).
366 %package system-alpha
367 Summary: QEMU system emulator for Alpha
368 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
369 Group: Applications/Emulators
370 Requires: %{name}-common = %{version}-%{release}
372 Obsoletes: qemu-kvm-system-alpha
374 %description system-alpha
375 QEMU is a generic and open source processor emulator which achieves a
376 good emulation speed by using dynamic translation.
378 This package provides the system emulator with Alpha CPU.
380 %description system-alpha -l pl.UTF-8
381 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
382 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
384 Ten pakiet zawiera emulator systemu z procesorem Alpha.
387 Summary: QEMU system emulator for 32-bit ARM
388 Summary(pl.UTF-8): QEMU - emulator systemu z 32-bitowym procesorem ARM
389 Group: Applications/Emulators
390 Requires: %{name}-common = %{version}-%{release}
392 Obsoletes: qemu-kvm-system-arm
394 %description system-arm
395 QEMU is a generic and open source processor emulator which achieves a
396 good emulation speed by using dynamic translation.
398 This package provides the system emulator for 32-bit ARM.
400 %description system-arm -l pl.UTF-8
401 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
402 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
404 Ten pakiet zawiera emulator systemu z 32-bitowym procesorem ARM.
407 Summary: QEMU system emulator for AVR
408 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AVR
409 Group: Applications/Emulators
410 Requires: %{name}-common = %{version}-%{release}
412 Obsoletes: qemu-kvm-system-avr
414 %description system-avr
415 QEMU is a generic and open source processor emulator which achieves a
416 good emulation speed by using dynamic translation.
418 This package provides the system emulator for AVR.
420 %description system-avr -l pl.UTF-8
421 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
422 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
424 Ten pakiet zawiera emulator systemu z procesorem AVR.
427 Summary: QEMU system emulator for CRIS
428 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
429 Group: Applications/Emulators
430 Requires: %{name}-common = %{version}-%{release}
432 Obsoletes: qemu-kvm-system-cris
434 %description system-cris
435 QEMU is a generic and open source processor emulator which achieves a
436 good emulation speed by using dynamic translation.
438 This package provides the system emulator with CRIS CPU.
440 %description system-cris -l pl.UTF-8
441 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
442 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
444 Ten pakiet zawiera emulator systemu z procesorem CRIS.
447 Summary: QEMU system emulator for HP/PA
448 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem HP/PA
449 Group: Applications/Emulators
450 Requires: %{name}-common = %{version}-%{release}
453 %description system-hppa
454 QEMU is a generic and open source processor emulator which achieves a
455 good emulation speed by using dynamic translation.
457 This package provides the system emulator with HP/PA (PA-RISC) CPU.
459 %description system-hppa -l pl.UTF-8
460 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
461 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
463 Ten pakiet zawiera emulator systemu z procesorem HP/PA (PA-RISC).
466 Summary: QEMU system emulator for m68k
467 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
468 Group: Applications/Emulators
469 Requires: %{name}-common = %{version}-%{release}
471 Obsoletes: qemu-kvm-system-m68k
473 %description system-m68k
474 QEMU is a generic and open source processor emulator which achieves a
475 good emulation speed by using dynamic translation.
477 This package provides the system emulator with m68k (Motorola 68xxx)
480 %description system-m68k -l pl.UTF-8
481 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
482 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
484 Ten pakiet zawiera emulator systemu z procesorem m68k (Motorola
487 %package system-microblaze
488 Summary: QEMU system emulator for MicroBlaze
489 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
490 Group: Applications/Emulators
491 Requires: %{name}-common = %{version}-%{release}
493 Obsoletes: qemu-kvm-system-microblaze
495 %description system-microblaze
496 QEMU is a generic and open source processor emulator which achieves a
497 good emulation speed by using dynamic translation.
499 This package provides the system emulator with MicroBlaze CPU.
501 %description system-microblaze -l pl.UTF-8
502 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
503 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
505 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
508 Summary: QEMU system emulator for MIPS
509 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
510 Group: Applications/Emulators
511 Requires: %{name}-common = %{version}-%{release}
513 Obsoletes: qemu-kvm-system-mips
515 %description system-mips
516 QEMU is a generic and open source processor emulator which achieves a
517 good emulation speed by using dynamic translation.
519 This package provides the system emulator with MIPS CPU.
521 %description system-mips -l pl.UTF-8
522 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
523 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
525 Ten pakiet zawiera emulator systemu z procesorem MIPS.
527 %package system-moxie
528 Summary: QEMU system emulator for Moxie
529 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
530 Group: Applications/Emulators
531 Requires: %{name}-common = %{version}-%{release}
534 %description system-moxie
535 QEMU is a generic and open source processor emulator which achieves a
536 good emulation speed by using dynamic translation.
538 This package provides the system emulator with Moxie CPU.
540 %description system-moxie -l pl.UTF-8
541 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
542 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
544 Ten pakiet zawiera emulator systemu z procesorem Moxie.
546 %package system-nios2
547 Summary: QEMU system emulator for Nios II
548 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Nios II
549 Group: Applications/Emulators
550 Requires: %{name}-common = %{version}-%{release}
553 %description system-nios2
554 QEMU is a generic and open source processor emulator which achieves a
555 good emulation speed by using dynamic translation.
557 This package provides the system emulator with Nios II CPU.
559 %description system-nios2 -l pl.UTF-8
560 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
561 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
563 Ten pakiet zawiera emulator systemu z procesorem Nios II.
566 Summary: QEMU system emulator for OpenRISC
567 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
568 Group: Applications/Emulators
569 Requires: %{name}-common = %{version}-%{release}
571 Obsoletes: qemu-kvm-system-or1k
572 Obsoletes: qemu-system-or32
574 %description system-or1k
575 QEMU is a generic and open source processor emulator which achieves a
576 good emulation speed by using dynamic translation.
578 This package provides the system emulator with OpenRISC CPU.
580 %description system-or1k -l pl.UTF-8
581 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
582 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
584 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
587 Summary: QEMU system emulator for PowerPC
588 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
589 Group: Applications/Emulators
590 Requires: %{name}-common = %{version}-%{release}
592 Obsoletes: qemu-kvm-system-ppc
594 %description system-ppc
595 QEMU is a generic and open source processor emulator which achieves a
596 good emulation speed by using dynamic translation.
598 This package provides the system emulator with PowerPC CPU.
600 %description system-ppc -l pl.UTF-8
601 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
602 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
604 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
606 %package system-riscv32
607 Summary: QEMU system emulator for RISC-V (32 bit)
608 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (32 bit)
609 Group: Applications/Emulators
610 Requires: %{name}-common = %{version}-%{release}
613 %description system-riscv32
614 QEMU is a generic and open source processor emulator which achieves a
615 good emulation speed by using dynamic translation.
617 This package provides the system emulator with RISC-V (32 bit) CPU.
619 %description system-riscv32 -l pl.UTF-8
620 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
621 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
623 Ten pakiet zawiera emulator systemu z procesorem RISC-V (32 bit).
625 %package system-riscv64
626 Summary: QEMU system emulator for RISC-V (64 bit)
627 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (64 bitowym)
628 Group: Applications/Emulators
629 Requires: %{name}-common = %{version}-%{release}
632 %description system-riscv64
633 QEMU is a generic and open source processor emulator which achieves a
634 good emulation speed by using dynamic translation.
636 This package provides the system emulator with RISC-V (64 bit) CPU.
638 %description system-riscv64 -l pl.UTF-8
639 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
640 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
642 Ten pakiet zawiera emulator systemu z procesorem RISC-V (64-bitowym).
645 Summary: QEMU system emulator for Renesas RX
646 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Renesas RX
647 Group: Applications/Emulators
648 Requires: %{name}-common = %{version}-%{release}
651 %description system-rx
652 QEMU is a generic and open source processor emulator which achieves a
653 good emulation speed by using dynamic translation.
655 This package provides the system emulator with Renesas RX CPU.
657 %description system-rx -l pl.UTF-8
658 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
659 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
661 Ten pakiet zawiera emulator systemu z procesorem Renesas RX.
663 %package system-s390x
664 Summary: QEMU system emulator for S390x (IBM Z)
665 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390x (IBM Z)
666 Group: Applications/Emulators
667 Requires: %{name}-common = %{version}-%{release}
669 Obsoletes: qemu-kvm-system-s390x
671 %description system-s390x
672 QEMU is a generic and open source processor emulator which achieves a
673 good emulation speed by using dynamic translation.
675 This package provides the system emulator with S390x (IBM Z) CPU.
677 %description system-s390x -l pl.UTF-8
678 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
679 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
681 Ten pakiet zawiera emulator systemu z procesorem S390x (IBM Z).
684 Summary: QEMU system emulator for SH4
685 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
686 Group: Applications/Emulators
687 Requires: %{name}-common = %{version}-%{release}
689 Obsoletes: qemu-kvm-system-sh4
691 %description system-sh4
692 QEMU is a generic and open source processor emulator which achieves a
693 good emulation speed by using dynamic translation.
695 This package provides the system emulator with SH4 CPU.
697 %description system-sh4 -l pl.UTF-8
698 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
699 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
701 Ten pakiet zawiera emulator systemu z procesorem SH4.
703 %package system-sparc
704 Summary: QEMU system emulator for SPARC
705 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
706 Group: Applications/Emulators
707 Requires: %{name}-common = %{version}-%{release}
709 Obsoletes: qemu-kvm-system-sparc
711 %description system-sparc
712 QEMU is a generic and open source processor emulator which achieves a
713 good emulation speed by using dynamic translation.
715 This package provides the system emulator with SPARC/SPARC64 CPU.
717 %description system-sparc -l pl.UTF-8
718 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
719 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
721 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
723 %package system-tricore
724 Summary: QEMU system emulator for TriCore
725 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
726 Group: Applications/Emulators
727 Requires: %{name}-common = %{version}-%{release}
730 %description system-tricore
731 QEMU is a generic and open source processor emulator which achieves a
732 good emulation speed by using dynamic translation.
734 This package provides the system emulator with TriCore CPU.
736 %description system-sparc -l pl.UTF-8
737 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
738 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
740 Ten pakiet zawiera emulator systemu z procesorem TriCore.
743 Summary: QEMU system emulator for x86
744 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
745 Group: Applications/Emulators
746 Requires: %{name}-common = %{version}-%{release}
747 %{?with_system_seabios:Requires: seabios}
750 Obsoletes: qemu-kvm-system-x86
752 %description system-x86
753 QEMU is a generic and open source processor emulator which achieves a
754 good emulation speed by using dynamic translation.
756 This package provides the system emulator with x86 CPU.
758 %description system-x86 -l pl.UTF-8
759 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
760 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
762 Ten pakiet zawiera emulator systemu z procesorem x86.
764 %package system-xtensa
765 Summary: QEMU system emulator for Xtensa
766 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
767 Group: Applications/Emulators
768 Requires: %{name}-common = %{version}-%{release}
770 Obsoletes: qemu-kvm-system-xtensa
772 %description system-xtensa
773 QEMU is a generic and open source processor emulator which achieves a
774 good emulation speed by using dynamic translation.
776 This package provides the system emulator with Xtensa CPU.
778 %description system-xtensa -l pl.UTF-8
779 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
780 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
782 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
785 Summary: QEMU guest agent
786 Summary(pl.UTF-8): Agent gościa QEMU
788 Requires(post,preun,postun): systemd-units >= 38
789 Requires: glib2 >= 1:2.48
790 Requires: systemd-units >= 38
791 Obsoletes: qemu-kvm-guest-agent
792 Conflicts: SysVinit < 2.96-2
794 %description guest-agent
795 QEMU is a generic and open source processor emulator which achieves a
796 good emulation speed by using dynamic translation.
798 This package provides an agent to run inside guests, which
799 communicates with the host over a virtio-serial channel named
800 "org.qemu.guest_agent.0".
802 This package does not need to be installed on the host OS.
804 %description guest-agent -l pl.UTF-8
805 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
806 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
808 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
809 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
810 "org.qemu.guest_agent.0".
812 Ten pakiet nie musi być zainstalowany w systemie hosta.
814 %package module-block-curl
815 Summary: QEMU module for 'curl' block devices
816 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
817 Group: Applications/Emulators
818 Requires: %{name}-common = %{version}-%{release}
820 %description module-block-curl
821 QEMU block device support for CURL. It allows to access remote disks
822 over http, https, ftp and other transports provided by the CURL
825 %description module-block-curl -l pl.UTF-8
826 Moduł QEMU dla urządeń blokowych CURL. Pozwala na dostęp do zdalnych
827 dysków poprzez http, https, ftp i inne protokoły obsługiwane przez
830 %package module-block-gluster
831 Summary: QEMU module for 'gluster' block devices
832 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
833 Group: Applications/Emulators
834 Requires: %{name}-common = %{version}-%{release}
835 Requires: glusterfs-libs >= 6
837 %description module-block-gluster
838 QEMU block device support for remote Gluster storage.
840 %description module-block-gluster -l pl.UTF-8
841 Moduł urządzeń blokowych QEMU do dostępu do zdalnej przestrzeni
844 %package module-block-iscsi
845 Summary: QEMU module for 'iscsi' block devices
846 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
847 Group: Applications/Emulators
848 Requires: %{name}-common = %{version}-%{release}
849 Requires: libiscsi >= 1.9.0
851 %description module-block-iscsi
852 QEMU block device support for iSCSI volumes.
854 %description module-block-iscsi -l pl.UTF-8
855 Moduł urządzeń blokowych QEMU do dostępu do wolumenów iSCSI.
857 %package module-block-nfs
858 Summary: QEMU module for 'nfs' block devices
859 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'nfs'
860 Group: Applications/Emulators
861 Requires: %{name}-common = %{version}-%{release}
862 Requires: libnfs >= 1.9.3
864 %description module-block-nfs
865 QEMU block device support for remote NFS storage.
867 %description module-block-nfs -l pl.UTF-8
868 Moduł urządzeń blokowych QEMU do dostępu do zdalnej przestrzeni po
871 %package module-block-rbd
872 Summary: QEMU module for 'rbd' block devices
873 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
874 Group: Applications/Emulators
875 Requires: %{name}-common = %{version}-%{release}
877 %description module-block-rbd
878 QEMU block device support for Ceph/RBD volumes.
880 %description module-block-rbd -l pl.UTF-8
881 Moduł urządzeń blokowych QEMU do wolumenów Ceph/RBD.
883 %package module-block-ssh
884 Summary: QEMU module for 'ssh' block devices
885 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
886 Group: Applications/Emulators
887 Requires: %{name}-common = %{version}-%{release}
888 Requires: libssh >= 0.8
890 %description module-block-ssh
891 QEMU block device support for accessing remote disks using the Secure
892 Shell (SSH) protocol.
894 %description module-block-ssh -l pl.UTF-8
895 Moduł urządzeń blokowych QEMU do dostępu do zdalnych dysków poprzez
896 protokół SSH (Secure Shell).
898 %package module-ui-gtk
899 Summary: QEMU GTK UI driver
900 Summary(pl.UTF-8): Sterownik interfejsu użytkownika GTK dla QEMU
901 Group: Applications/Emulators
902 Requires: %{name}-common = %{version}-%{release}
904 %description module-ui-gtk
907 %description module-ui-gtk -l pl.UTF-8
908 Sterownik interfejsu użytkownika GTK dla QEMU.
910 %package module-ui-sdl
911 Summary: QEMU SDL UI and audio driver
912 Summary(pl.UTF-8): Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU
913 Group: Applications/Emulators
914 Requires: %{name}-common = %{version}-%{release}
916 %description module-ui-sdl
917 QEMU SDL UI and audio driver.
919 %description module-ui-sdl -l pl.UTF-8
920 Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU.
922 %package -n systemtap-qemu
923 Summary: systemtap/dtrace probes for QEMU
924 Summary(pl.UTF-8): Sondy systemtap/dtrace dla QEMU
925 Group: Development/Tools
926 Requires: %{name}-common = %{version}-%{release}
927 Requires: systemtap-client
929 %description -n systemtap-qemu
930 systemtap/dtrace probes for QEMU.
932 %description -n systemtap-qemu -l pl.UTF-8
933 Sondy systemtap/dtrace dla QEMU.
944 %{__sed} -i '1s,/usr/bin/env python3,%{__python3},' scripts/qemu-trace-stap
946 %if %{with systemtap}
947 # don't require stap binary during build
948 %{__sed} -i -e "s/has 'stap'/true/" configure
956 install -d build-$target
960 --prefix=%{_prefix} \
961 --libdir=%{_libdir} \
962 --libexecdir=%{_libexecdir} \
963 --sysconfdir=%{_sysconfdir} \
964 --localstatedir=%{_localstatedir} \
965 --interp-prefix=%{_libdir}/qemu/lib-%%M \
968 --host-cc="%{__cc}" \
970 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
976 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
982 --extra-cflags="%{rpmcflags} %{rpmcppflags}" \
983 --extra-ldflags="%{rpmldflags} -Wl,-z,relro -Wl,-z,now" \
984 --audio-drv-list="alsa%{?with_oss:,oss}%{?with_sdl:,sdl}%{?with_pulseaudio:,pa}" \
986 %{__enable_disable brlapi} \
988 --enable-capstone=system \
993 %{__enable_disable glusterfs} \
994 %{!?with_gtk3:--disable-gtk} \
995 %{__enable_disable iscsi libiscsi} \
996 %{__enable_disable libnfs} \
997 %{__enable_disable pmem libpmem} \
999 %{__enable_disable multipath mpath} \
1003 %{__enable_disable ceph rbd} \
1004 %{__enable_disable rdma} \
1005 %{__enable_disable sdl} \
1006 %{__enable_disable seccomp} \
1007 --enable-slirp=system \
1008 %{__enable_disable spice} \
1009 %{__enable_disable smartcard} \
1010 %{__enable_disable snappy} \
1012 %{__enable_disable usbredir usb-redir} \
1014 %{__enable_disable virgl virglrenderer} \
1019 %{!?with_vte:--disable-vte} \
1020 %{__enable_disable xen} \
1021 %{__enable_disable xkbcommon}
1023 %if %{with user_static}
1027 --disable-capstone \
1033 --disable-guest-agent \
1034 --disable-guest-agent-msi \
1036 --disable-linux-io-uring \
1044 --disable-tcmalloc \
1047 --disable-xkbcommon \
1052 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
1055 rm -rf $RPM_BUILD_ROOT
1056 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
1057 $RPM_BUILD_ROOT/etc/{qemu,sysconfig,modules-load.d,rc.d/init.d,logrotate.d} \
1058 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,/lib/udev/rules.d,%{_sbindir}}
1060 %if %{with user_static}
1061 %{__make} -C build-static install \
1062 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
1063 DESTDIR=$RPM_BUILD_ROOT
1065 # Give all QEMU user emulators a -static suffix
1066 for src in $RPM_BUILD_ROOT%{_bindir}/qemu-*; do
1067 %{__mv} $src $src-static
1072 %{__make} -C build-dynamic install \
1073 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
1074 DESTDIR=$RPM_BUILD_ROOT
1076 # let rpm generate dependencies
1077 chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/*.so
1079 echo "#allow br0" > $RPM_BUILD_ROOT/etc/qemu/bridge.conf
1081 install -d $RPM_BUILD_ROOT%{_sysconfdir}
1082 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
1087 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
1089 %ifarch %{ix86} %{x8664} x32
1090 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
1091 install -p %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/rules.d
1094 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
1095 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
1096 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
1098 install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
1099 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
1100 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
1102 # For the qemu-guest-agent subpackage install the systemd
1103 # service and udev rules.
1104 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
1105 install -p %{SOURCE12} $RPM_BUILD_ROOT/lib/udev/rules.d
1107 install -p %{SOURCE13} $RPM_BUILD_ROOT/etc/rc.d/init.d/qemu-ga
1108 install -p %{SOURCE14} $RPM_BUILD_ROOT/etc/logrotate.d/qemu-ga
1110 cp -p %{SOURCE15} %{SOURCE16} $RPM_BUILD_ROOT%{systemdunitdir}
1114 %ifnarch %{ix86} %{x8664} x32
1128 microblaze microblazeel \
1144 %ifnarch ppc ppc64 ppc64le
1147 %ifnarch sparc sparc64
1148 sparc sparc32plus sparc64 \
1159 if [ -n "$BINFMT_CPUS" ]; then
1160 for cpu in $BINFMT_CPUS; do
1161 bash ./scripts/qemu-binfmt-conf.sh --systemd "$cpu" --exportdir $RPM_BUILD_ROOT/usr/lib/binfmt.d --qemu-path %{_bindir}
1163 for i in $RPM_BUILD_ROOT/usr/lib/binfmt.d/*.conf; do
1164 %{__mv} $i ${i%.conf}-dynamic.conf
1167 %if %{with user_static}
1168 for regularfmt in $RPM_BUILD_ROOT/usr/lib/binfmt.d/*; do
1169 staticfmt="${regularfmt%\-dynamic.conf}-static.conf"
1170 cat $regularfmt | tr -d '\n' | sed "s/:$/-static:F/" > $staticfmt
1175 %if %{with system_seabios}
1176 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
1177 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
1178 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
1180 if [ -e "/usr/share/seabios/$bn" ] ; then
1181 ln -sf "/usr/share/seabios/$bn" "$f"
1187 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
1188 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
1194 for t in client server; do
1195 cp -p build-dynamic/contrib/ivshmem-$t/ivshmem-$t $RPM_BUILD_ROOT%{_bindir}
1198 # Windows installer icon, not used
1199 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/qemu-nsis.bmp
1201 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/edk2-licenses.txt
1203 # cleanup Sphinx files
1204 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/{interop,specs,system,tools,user}/{.buildinfo,objects.inv}
1207 rm -rf $RPM_BUILD_ROOT
1210 %groupadd -g 160 kvm
1211 %groupadd -g 276 qemu
1212 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
1215 %systemd_post ksm.service
1216 %systemd_post ksmtuned.service
1219 %systemd_preun ksm.service
1220 %systemd_preun ksmtuned.service
1223 if [ "$1" = "0" ]; then
1230 %triggerpostun common -- qemu-common < 1.6.1-4
1231 %systemd_trigger ksm.service
1232 %systemd_trigger ksmtuned.service
1233 %systemd_trigger qemu-pr-helper.service
1236 %systemd_post systemd-binfmt.service
1239 %systemd_post systemd-binfmt.service
1242 %systemd_post systemd-binfmt.service
1245 %systemd_post systemd-binfmt.service
1248 /sbin/chkconfig --add qemu-ga
1249 %service qemu-ga restart "qemu-ga"
1253 if [ "$1" = "0" ]; then
1254 %service qemu-ga stop
1255 /sbin/chkconfig --del qemu-ga
1257 %systemd_preun qemu-guest-agent.service
1263 %defattr(644,root,root,755)
1265 %files common -f %{name}.lang
1266 %defattr(644,root,root,755)
1267 %doc LICENSE README.rst pc-bios/edk2-licenses.txt
1268 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
1269 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
1270 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
1271 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
1273 %attr(640,root,qemu) %config(noreplace) %verify(not md5 mtime size) /etc/qemu/bridge.conf
1274 %{systemdunitdir}/ksm.service
1275 %{systemdunitdir}/ksmtuned.service
1276 %{systemdunitdir}/qemu-pr-helper.service
1277 %{systemdunitdir}/qemu-pr-helper.socket
1278 %attr(755,root,root) %{_bindir}/elf2dmp
1279 %attr(755,root,root) %{_bindir}/ivshmem-client
1280 %attr(755,root,root) %{_bindir}/ivshmem-server
1281 %attr(755,root,root) %{_bindir}/qemu-edid
1282 %if %{with xkbcommon}
1283 %attr(755,root,root) %{_bindir}/qemu-keymap
1285 %attr(755,root,root) %{_bindir}/qemu-nbd
1286 %attr(755,root,root) %{_bindir}/qemu-pr-helper
1287 %attr(755,root,root) %{_bindir}/qemu-storage-daemon
1288 %attr(755,root,root) %{_sbindir}/ksmctl
1289 %attr(755,root,root) %{_sbindir}/ksmtuned
1290 %attr(755,root,root) %{_libexecdir}/qemu-bridge-helper
1292 %attr(755,root,root) %{_libexecdir}/vhost-user-gpu
1294 %attr(755,root,root) %{_libexecdir}/virtfs-proxy-helper
1295 %attr(755,root,root) %{_libexecdir}/virtiofsd
1296 %dir %{_libdir}/%{name}
1297 # modules without too many external dependencies
1298 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-bz2.so
1299 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-lzfse.so
1300 %attr(755,root,root) %{_libdir}/%{name}/audio-alsa.so
1302 %attr(755,root,root) %{_libdir}/%{name}/audio-oss.so
1304 %if %{with pulseaudio}
1305 %attr(755,root,root) %{_libdir}/%{name}/audio-pa.so
1308 %attr(755,root,root) %{_libdir}/%{name}/chardev-baum.so
1310 %attr(755,root,root) %{_libdir}/%{name}/hw-display-qxl.so
1311 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-pci.so
1312 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu.so
1313 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-vga.so
1314 %attr(755,root,root) %{_libdir}/%{name}/ui-curses.so
1315 %if %{with usbredir}
1316 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-redirect.so
1318 %if %{with smartcard}
1319 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-smartcard.so
1322 %attr(755,root,root) %{_libdir}/%{name}/ui-egl-headless.so
1323 %attr(755,root,root) %{_libdir}/%{name}/ui-opengl.so
1326 %attr(755,root,root) %{_libdir}/%{name}/audio-spice.so
1327 %attr(755,root,root) %{_libdir}/%{name}/chardev-spice.so
1328 %attr(755,root,root) %{_libdir}/%{name}/ui-spice-app.so
1329 %attr(755,root,root) %{_libdir}/%{name}/ui-spice-core.so
1331 %dir %{_datadir}/%{name}
1332 %dir %{_datadir}/%{name}/firmware
1333 %{_datadir}/%{name}/keymaps
1334 %{_datadir}/%{name}/trace-events-all
1335 %dir %{_datadir}/%{name}/vhost-user
1337 %{_datadir}/%{name}/vhost-user/50-qemu-gpu.json
1339 %{_datadir}/%{name}/vhost-user/50-qemu-virtiofsd.json
1340 %{_desktopdir}/qemu.desktop
1341 %{_iconsdir}/hicolor/*x*/apps/qemu.png
1342 %{_iconsdir}/hicolor/32x32/apps/qemu.bmp
1343 %{_iconsdir}/hicolor/scalable/apps/qemu.svg
1344 %{_mandir}/man1/qemu.1*
1345 %{_mandir}/man1/virtfs-proxy-helper.1*
1346 %{_mandir}/man1/virtiofsd.1*
1347 %{_mandir}/man7/qemu-block-drivers.7*
1348 %{_mandir}/man7/qemu-cpu-models.7*
1349 %{_mandir}/man7/qemu-qmp-ref.7*
1350 %{_mandir}/man8/qemu-nbd.8*
1351 %{_mandir}/man8/qemu-pr-helper.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-ppc64le
1385 %attr(755,root,root) %{_bindir}/qemu-riscv32
1386 %attr(755,root,root) %{_bindir}/qemu-riscv64
1387 %attr(755,root,root) %{_bindir}/qemu-s390x
1388 %attr(755,root,root) %{_bindir}/qemu-sh4
1389 %attr(755,root,root) %{_bindir}/qemu-sh4eb
1390 %attr(755,root,root) %{_bindir}/qemu-sparc
1391 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
1392 %attr(755,root,root) %{_bindir}/qemu-sparc64
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-ppc64le-static
1423 %attr(755,root,root) %{_bindir}/qemu-riscv32-static
1424 %attr(755,root,root) %{_bindir}/qemu-riscv64-static
1425 %attr(755,root,root) %{_bindir}/qemu-s390x-static
1426 %attr(755,root,root) %{_bindir}/qemu-sh4-static
1427 %attr(755,root,root) %{_bindir}/qemu-sh4eb-static
1428 %attr(755,root,root) %{_bindir}/qemu-sparc-static
1429 %attr(755,root,root) %{_bindir}/qemu-sparc32plus-static
1430 %attr(755,root,root) %{_bindir}/qemu-sparc64-static
1431 %attr(755,root,root) %{_bindir}/qemu-x86_64-static
1432 %attr(755,root,root) %{_bindir}/qemu-xtensa-static
1433 %attr(755,root,root) %{_bindir}/qemu-xtensaeb-static
1434 %{?with_systemtap:%attr(755,root,root) %{_bindir}/qemu-trace-stap-static}
1437 %files system-aarch64
1438 %defattr(644,root,root,755)
1439 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1440 %{_datadir}/%{name}/edk2-aarch64-code.fd
1441 %{_datadir}/%{name}/firmware/60-edk2-aarch64.json
1444 %defattr(644,root,root,755)
1445 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1446 %{_datadir}/%{name}/palcode-clipper
1449 %defattr(644,root,root,755)
1450 %attr(755,root,root) %{_bindir}/qemu-system-arm
1451 %{_datadir}/%{name}/edk2-arm-code.fd
1452 %{_datadir}/%{name}/edk2-arm-vars.fd
1453 %{_datadir}/%{name}/firmware/60-edk2-arm.json
1454 %{_datadir}/%{name}/npcm7xx_bootrom.bin
1457 %defattr(644,root,root,755)
1458 %attr(755,root,root) %{_bindir}/qemu-system-avr
1461 %defattr(644,root,root,755)
1462 %attr(755,root,root) %{_bindir}/qemu-system-cris
1465 %defattr(644,root,root,755)
1466 %attr(755,root,root) %{_bindir}/qemu-system-hppa
1467 %{_datadir}/%{name}/hppa-firmware.img
1470 %defattr(644,root,root,755)
1471 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1473 %files system-microblaze
1474 %defattr(644,root,root,755)
1475 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1476 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1479 %defattr(644,root,root,755)
1480 %attr(755,root,root) %{_bindir}/qemu-system-mips
1481 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1482 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1483 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1486 %defattr(644,root,root,755)
1487 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1490 %defattr(644,root,root,755)
1491 %attr(755,root,root) %{_bindir}/qemu-system-nios2
1494 %defattr(644,root,root,755)
1495 %attr(755,root,root) %{_bindir}/qemu-system-or1k
1498 %defattr(644,root,root,755)
1499 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1500 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1501 %{_datadir}/%{name}/bamboo.dtb
1502 %{_datadir}/%{name}/canyonlands.dtb
1503 %{_datadir}/%{name}/openbios-ppc
1504 %{_datadir}/%{name}/petalogix-ml605.dtb
1505 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
1506 %{_datadir}/%{name}/qemu_vga.ndrv
1507 %{_datadir}/%{name}/skiboot.lid
1508 %{_datadir}/%{name}/slof.bin
1509 %{_datadir}/%{name}/u-boot.e500
1510 %{_datadir}/%{name}/u-boot-sam460-20100605.bin
1512 %files system-riscv32
1513 %defattr(644,root,root,755)
1514 %attr(755,root,root) %{_bindir}/qemu-system-riscv32
1515 %{_datadir}/%{name}/opensbi-riscv32-generic-fw_dynamic.bin
1516 %{_datadir}/%{name}/opensbi-riscv32-generic-fw_dynamic.elf
1518 %files system-riscv64
1519 %defattr(644,root,root,755)
1520 %attr(755,root,root) %{_bindir}/qemu-system-riscv64
1521 %{_datadir}/%{name}/opensbi-riscv64-generic-fw_dynamic.bin
1522 %{_datadir}/%{name}/opensbi-riscv64-generic-fw_dynamic.elf
1525 %defattr(644,root,root,755)
1526 %attr(755,root,root) %{_bindir}/qemu-system-rx
1529 %defattr(644,root,root,755)
1530 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1531 %{_datadir}/%{name}/s390-ccw.img
1532 %{_datadir}/%{name}/s390-netboot.img
1535 %defattr(644,root,root,755)
1536 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1537 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1540 %defattr(644,root,root,755)
1541 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1542 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1543 %{_datadir}/%{name}/QEMU,cgthree.bin
1544 %{_datadir}/%{name}/QEMU,tcx.bin
1545 %{_datadir}/%{name}/openbios-sparc32
1546 %{_datadir}/%{name}/openbios-sparc64
1548 %files system-tricore
1549 %defattr(644,root,root,755)
1550 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1553 %defattr(644,root,root,755)
1554 %attr(755,root,root) %{_bindir}/qemu-system-i386
1555 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1556 %ifarch %{ix86} %{x8664} x32
1557 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1558 /lib/udev/rules.d/80-kvm.rules
1560 %{_datadir}/%{name}/bios.bin
1561 %{_datadir}/%{name}/bios-256k.bin
1562 %{_datadir}/%{name}/bios-microvm.bin
1563 %{_datadir}/%{name}/edk2-i386-code.fd
1564 %{_datadir}/%{name}/edk2-i386-secure-code.fd
1565 %{_datadir}/%{name}/edk2-i386-vars.fd
1566 %{_datadir}/%{name}/edk2-x86_64-code.fd
1567 %{_datadir}/%{name}/edk2-x86_64-secure-code.fd
1568 %{_datadir}/%{name}/efi-e1000e.rom
1569 %{_datadir}/%{name}/efi-e1000.rom
1570 %{_datadir}/%{name}/efi-eepro100.rom
1571 %{_datadir}/%{name}/efi-ne2k_pci.rom
1572 %{_datadir}/%{name}/efi-pcnet.rom
1573 %{_datadir}/%{name}/efi-rtl8139.rom
1574 %{_datadir}/%{name}/efi-virtio.rom
1575 %{_datadir}/%{name}/efi-vmxnet3.rom
1576 %{_datadir}/%{name}/kvmvapic.bin
1577 %{_datadir}/%{name}/linuxboot.bin
1578 %{_datadir}/%{name}/linuxboot_dma.bin
1579 %{_datadir}/%{name}/multiboot.bin
1580 %{_datadir}/%{name}/pvh.bin
1581 %{_datadir}/%{name}/pxe-e1000.rom
1582 %{_datadir}/%{name}/pxe-eepro100.rom
1583 %{_datadir}/%{name}/pxe-ne2k_pci.rom
1584 %{_datadir}/%{name}/pxe-pcnet.rom
1585 %{_datadir}/%{name}/pxe-rtl8139.rom
1586 %{_datadir}/%{name}/pxe-virtio.rom
1587 %{_datadir}/%{name}/qboot.rom
1588 %{_datadir}/%{name}/sgabios.bin
1589 %{_datadir}/%{name}/vgabios.bin
1590 %{_datadir}/%{name}/vgabios-ati.bin
1591 %{_datadir}/%{name}/vgabios-bochs-display.bin
1592 %{_datadir}/%{name}/vgabios-cirrus.bin
1593 %{_datadir}/%{name}/vgabios-qxl.bin
1594 %{_datadir}/%{name}/vgabios-ramfb.bin
1595 %{_datadir}/%{name}/vgabios-stdvga.bin
1596 %{_datadir}/%{name}/vgabios-virtio.bin
1597 %{_datadir}/%{name}/vgabios-vmware.bin
1598 %{_datadir}/%{name}/firmware/50-edk2-i386-secure.json
1599 %{_datadir}/%{name}/firmware/50-edk2-x86_64-secure.json
1600 %{_datadir}/%{name}/firmware/60-edk2-i386.json
1601 %{_datadir}/%{name}/firmware/60-edk2-x86_64.json
1603 %files system-xtensa
1604 %defattr(644,root,root,755)
1605 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1606 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1609 %defattr(644,root,root,755)
1610 %attr(755,root,root) %{_bindir}/qemu-ga
1611 /lib/udev/rules.d/99-qemu-guest-agent.rules
1612 %{systemdunitdir}/qemu-guest-agent.service
1613 %attr(754,root,root) /etc/rc.d/init.d/qemu-ga
1614 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/qemu-ga
1615 %{_mandir}/man7/qemu-ga-ref.7*
1616 %{_mandir}/man8/qemu-ga.8*
1618 %files module-block-curl
1619 %defattr(644,root,root,755)
1620 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1622 %if %{with glusterfs}
1623 %files module-block-gluster
1624 %defattr(644,root,root,755)
1625 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1629 %files module-block-iscsi
1630 %defattr(644,root,root,755)
1631 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1635 %files module-block-nfs
1636 %defattr(644,root,root,755)
1637 %attr(755,root,root) %{_libdir}/%{name}/block-nfs.so
1641 %files module-block-rbd
1642 %defattr(644,root,root,755)
1643 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1646 %files module-block-ssh
1647 %defattr(644,root,root,755)
1648 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so
1651 %files module-ui-gtk
1652 %defattr(644,root,root,755)
1653 %attr(755,root,root) %{_libdir}/%{name}/ui-gtk.so
1657 %files module-ui-sdl
1658 %defattr(644,root,root,755)
1659 %attr(755,root,root) %{_libdir}/%{name}/audio-sdl.so
1660 %attr(755,root,root) %{_libdir}/%{name}/ui-sdl.so
1663 %if %{with systemtap}
1664 %files -n systemtap-qemu
1665 %defattr(644,root,root,755)
1666 %attr(755,root,root) %{_bindir}/qemu-trace-stap
1667 %{_datadir}/systemtap/tapset/qemu-*.stp
1668 %{_mandir}/man1/qemu-trace-stap.1*