5 %bcond_without sdl # SDL UI and audio support
6 %bcond_without opengl # Don't require GL deps
7 %bcond_with canokey # CanoKey support
8 %bcond_without ceph # Ceph/RBD support
9 %bcond_without glusterfs # GlusterFS backend
10 %bcond_without rdma # RDMA-based migration support
11 %bcond_without gtk3 # Do not build GTK+ UI
12 %bcond_without vte # VTE support in GTK+ UI
13 %bcond_without spice # SPICE support
14 %bcond_without oss # OSS audio support
15 %bcond_without pulseaudio # PulseAudio audio support
16 %bcond_without xen # Xen backend driver support
17 %bcond_without brlapi # brlapi support
18 %bcond_without smartcard # smartcard-nss support
19 %bcond_without iscsi # iscsi support
20 %bcond_without libnfs # NFS support
21 %bcond_without multipath # Multipath support
22 %bcond_without pmem # libpmem (persistent memory) support
23 %bcond_without seccomp # seccomp support
24 %bcond_without usbredir # usb network redirection support
25 %bcond_without system_seabios # system seabios binary
26 %bcond_without snappy # snappy compression library
27 %bcond_without user_static # build linux-user static packages
28 %bcond_with vfio_user # vfio-user server support
29 %bcond_with lttng # lttng-ust trace backend support [needs update]
30 %bcond_without systemtap # SystemTap/dtrace trace backend support
31 %bcond_without virgl # build virgl support
32 %bcond_without xkbcommon # xkbcommon support
40 %ifnarch %{x8664} aarch64
44 Summary: QEMU CPU Emulator
45 Summary(pl.UTF-8): QEMU - emulator procesora
49 License: GPL v2, BSD (edk2 firmware files)
50 Group: Applications/Emulators
51 Source0: https://download.qemu.org/%{name}-%{version}.tar.xz
52 # Source0-md5: a99d896cf773964422e0294015d3b98a
53 # Loads kvm kernel modules at boot
54 Source3: kvm-modules-load.conf
59 Source6: ksm.sysconfig
61 Source8: ksmtuned.service
63 Source10: ksmtuned.conf
64 Source11: %{name}-guest-agent.service
65 Source12: 99-%{name}-guest-agent.rules
66 Source13: %{name}-guest-agent.init
67 Source14: %{name}-guest-agent.logrotate
68 Source15: %{name}-pr-helper.service
69 Source16: %{name}-pr-helper.socket
70 Patch0: %{name}-cflags.patch
71 Patch1: %{name}-user-execve.patch
72 Patch2: %{name}-xattr.patch
73 Patch3: libjpeg-boolean.patch
74 Patch5: %{name}-u2f-emu.patch
75 Patch6: %{name}-linux-mount.patch
76 Patch7: libvfio-user-types.patch
77 Patch8: libvfio-user-alloca.patch
78 URL: https://www.qemu.org/
79 %{?with_opengl:BuildRequires: Mesa-libgbm-devel}
80 %{?with_opengl:BuildRequires: OpenGL-GLX-devel}
81 %{?with_opengl:BuildRequires: OpenGL-devel}
82 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
83 %{?with_sdl:BuildRequires: SDL2_image-devel >= 2.0}
84 BuildRequires: alsa-lib-devel
85 %{?with_brlapi:BuildRequires: brlapi-devel}
86 BuildRequires: bzip2-devel
87 %{?with_canokey:BuildRequires: canokey-qemu-devel}
88 BuildRequires: capstone-devel >= 4.0
89 %{?with_ceph:BuildRequires: ceph-devel >= 12}
90 BuildRequires: curl-devel >= 7.29.0
91 BuildRequires: cyrus-sasl-devel >= 2
92 BuildRequires: daxctl-devel >= 57
93 BuildRequires: gcc >= 6:7.4
94 BuildRequires: gettext-tools
95 BuildRequires: glib2-devel >= 1:2.64
96 # minimal is 3.4 but new features are used up to 6
97 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 6}
98 BuildRequires: gnutls-devel >= 3.6.14
99 %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.22.0}
100 BuildRequires: jack-audio-connection-kit-devel
101 %{?with_vfio_user:BuildRequires: json-c-devel >= 0.11}
103 #BuildRequires: keyutils-devel
104 BuildRequires: libaio-devel
105 BuildRequires: libbpf-devel
106 %{?with_smartcard:BuildRequires: libcacard-devel >= 2.5.1}
107 BuildRequires: libcap-ng-devel
108 BuildRequires: libdrm-devel
109 %{?with_opengl:BuildRequires: libepoxy-devel}
110 BuildRequires: libfdt-devel >= 1.5.1
111 BuildRequires: libfuse3-devel >= 3.8
112 %{?with_rdma:BuildRequires: libibverbs-devel}
113 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
114 %{?with_rdma:BuildRequires: libibumad-devel}
115 BuildRequires: libjpeg-devel
116 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
117 BuildRequires: libpng-devel >= 2:1.6.34
118 %{?with_rdma:BuildRequires: librdmacm-devel}
119 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.3.0}
120 BuildRequires: libselinux-devel
121 BuildRequires: libssh-devel >= 0.8.7
122 BuildRequires: libslirp-devel >= 4.1.0
124 #BuildRequires: libtasn1-devel
125 BuildRequires: libu2f-emu-devel
126 BuildRequires: libusb-devel >= 1.0.22
127 BuildRequires: liburing-devel >= 0.3
128 BuildRequires: libuuid-devel
129 BuildRequires: libxml2-devel >= 2.0
130 %{?with_lttng:BuildRequires: lttng-ust-devel >= 2.1}
131 BuildRequires: lzfse-devel
132 BuildRequires: lzo-devel >= 2
133 BuildRequires: meson >= 0.61.5
134 %{?with_multipath:BuildRequires: multipath-tools-devel}
135 BuildRequires: ncurses-devel
136 # also libgcrypt-devel >= 1.8 possible, but gnutls already pulls nettle
137 BuildRequires: nettle-devel >= 3.4
138 BuildRequires: ninja >= 1.5
139 %{?with_smartcard:BuildRequires: nss-devel >= 1:3.12.8}
140 BuildRequires: numactl-devel
141 BuildRequires: pam-devel
142 BuildRequires: perl-Encode
143 BuildRequires: perl-tools-pod
144 BuildRequires: pixman-devel >= 0.21.8
145 BuildRequires: pkgconfig
146 %{?with_pmem:BuildRequires: pmdk-devel}
147 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
148 BuildRequires: python3 >= 1:3.7
149 BuildRequires: python3-sphinx_rtd_theme
150 BuildRequires: rpm-build >= 4.6
151 BuildRequires: rpmbuild(macros) >= 1.644
152 %{?with_system_seabios:BuildRequires: seabios}
153 BuildRequires: sed >= 4.0
154 %{?with_snappy:BuildRequires: snappy-devel}
155 BuildRequires: sphinx-pdg
157 BuildRequires: spice-protocol >= 0.12.3
158 BuildRequires: spice-server-devel >= 0.12.5
160 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
161 BuildRequires: tar >= 1:1.22
162 BuildRequires: texi2html
163 BuildRequires: texinfo
164 %{?with_multipath:BuildRequires: udev-devel}
165 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
166 %{?with_lttng:BuildRequires: userspace-rcu-devel}
167 BuildRequires: vde2-devel
169 %{?with_virgl:BuildRequires: virglrenderer-devel}
170 %{?with_vte:BuildRequires: vte-devel >= 0.32.0}
171 # xencontrol xenstore xenguest xenforeignmemory xengnttab xenevtchn xendevicemodel; xentoolcore for xen 4.10+
172 # min version is 4.2, more features up to 4.11
173 %{?with_xen:BuildRequires: xen-devel >= 4.11}
174 BuildRequires: xfsprogs-devel
175 %if %{with xkbcommon}
176 BuildRequires: xkeyboard-config
177 BuildRequires: xorg-lib-libxkbcommon-devel
179 BuildRequires: xorg-lib-libX11-devel
181 BuildRequires: zlib-devel
182 BuildRequires: zstd-devel >= 1.4.0
183 %if %{with user_static}
184 BuildRequires: glib2-static >= 1:2.74
185 BuildRequires: glibc-static
186 BuildRequires: pcre2-8-static >= 10.32
187 BuildRequires: zlib-static
189 Requires: %{name}-img = %{version}-%{release}
190 Requires: %{name}-system-aarch64 = %{version}-%{release}
191 Requires: %{name}-system-alpha = %{version}-%{release}
192 Requires: %{name}-system-arm = %{version}-%{release}
193 Requires: %{name}-system-avr = %{version}-%{release}
194 Requires: %{name}-system-cris = %{version}-%{release}
195 Requires: %{name}-system-hppa = %{version}-%{release}
196 Requires: %{name}-system-m68k = %{version}-%{release}
197 Requires: %{name}-system-microblaze = %{version}-%{release}
198 Requires: %{name}-system-mips = %{version}-%{release}
199 Requires: %{name}-system-nios2 = %{version}-%{release}
200 Requires: %{name}-system-or1k = %{version}-%{release}
201 Requires: %{name}-system-ppc = %{version}-%{release}
202 Requires: %{name}-system-riscv32 = %{version}-%{release}
203 Requires: %{name}-system-riscv64 = %{version}-%{release}
204 Requires: %{name}-system-rx = %{version}-%{release}
205 Requires: %{name}-system-s390x = %{version}-%{release}
206 Requires: %{name}-system-sh4 = %{version}-%{release}
207 Requires: %{name}-system-sparc = %{version}-%{release}
208 Requires: %{name}-system-tricore = %{version}-%{release}
209 Requires: %{name}-system-x86 = %{version}-%{release}
210 Requires: %{name}-system-xtensa = %{version}-%{release}
211 Requires: %{name}-user = %{version}-%{release}
212 Obsoletes: qemu-kvm < 2
214 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
216 %define systempkg_req \
217 Requires: capstone >= 4.0 \
218 Requires: daxctl-libs >= 57 \
219 %{?with_smartcard:Requires: libcacard >= 2.5.1} \
220 Requires: libfdt >= 1.5.1 \
221 Requires: libfuse3 >= 3.8 \
222 %{?with_iscsi:Requires: libiscsi >= 1.9.0} \
223 Requires: libpng >= 2:1.6.34 \
224 %if %{with seccomp} \
225 Requires: libseccomp >= 2.3.0 \
227 Requires: libslirp >= 4.1.0 \
228 Requires: liburing >= 0.3 \
229 Requires: libusb >= 1.0.22 \
230 Requires: pixman >= 0.21.8 \
232 Requires: spice-server-libs >= 0.12.5 \
234 %if %{with usbredir} \
235 Requires: usbredir >= 0.6 \
238 # don't strip/chrpath anything in there; these are boot images, roms etc
239 %define _noautostrip .*%{_datadir}/qemu/.*
240 %define _noautochrpath .*%{_datadir}/qemu/.*
243 QEMU is a FAST! processor emulator. By using dynamic translation it
244 achieves a reasonnable speed while being easy to port on new host
245 CPUs. QEMU has two operating modes:
247 - User mode emulation. In this mode, QEMU can launch Linux processes
248 compiled for one CPU on another CPU. Linux system calls are converted
249 because of endianness and 32/64 bit mismatches. Wine (Windows
250 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
252 - Full system emulation. In this mode, QEMU emulates a full system,
253 including a processor and various peripherials. It can also be used to
254 provide virtual hosting of several virtual PC on a single server.
256 %description -l pl.UTF-8
257 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
258 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
259 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
261 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
262 procesy linuksowe skompilowane dla jednego procesora na innym
263 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
264 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
265 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
268 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
269 włączając w to procesor i różne urządzenia peryferyjne. Może być także
270 używane do wirtualnego hostowania kilku wirtualnych pecetów na
271 pojedynczym serwerze.
274 Summary: Header file for QEMU plugins development
275 Summary(pl.UTF-8): Plik nagłówkowy do tworzenia wtyczek QEMU
276 Group: Development/Libraries
280 Header file for QEMU plugins development.
282 %description devel -l pl.UTF-8
283 Plik nagłówkowy do tworzenia wtyczek QEMU.
286 Summary: QEMU common files needed by all QEMU targets
287 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
288 Group: Applications/Emulators
289 Requires(post,preun,postun): systemd-units >= 38
290 Requires(postun): /usr/sbin/groupdel
291 Requires(postun): /usr/sbin/userdel
292 Requires(pre): /bin/id
293 Requires(pre): /usr/bin/getgid
294 Requires(pre): /usr/sbin/groupadd
295 Requires(pre): /usr/sbin/useradd
296 Requires: glib2 >= 1:2.64
297 Requires: gnutls-libs >= 3.6.14
298 %{?with_gtk3:Requires: gtk+3 >= 3.22.0}
299 Requires: nettle >= 3.4
300 Requires: systemd-units >= 38
301 %{?with_vte:Requires: vte >= 0.32.0}
302 Requires: zstd >= 1.4.0
303 Provides: group(qemu)
305 Obsoletes: qemu-kvm-common < 2
306 Obsoletes: qemu-module-block-archipelago < 2.9.0
307 Obsoletes: qemu-system-lm32 < 5.2
308 Obsoletes: qemu-system-moxie < 6.1
309 Obsoletes: qemu-system-unicore32 < 5.2
310 Conflicts: qemu < 1.0-2
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 common files needed by all QEMU targets.
318 %description common -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 wspólne pliki wymagane przez wszystkie
326 Summary: QEMU command line tool for manipulating disk images
327 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
328 Group: Applications/Emulators
329 Obsoletes: qemu-kvm-img < 2
330 Conflicts: qemu < 1.0-2
333 This package provides a command line tool for manipulating disk
336 %description img -l pl.UTF-8
337 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
341 Summary: QEMU user mode emulation of qemu targets
342 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
343 Group: Applications/Emulators
344 Requires: %{name}-common = %{version}-%{release}
345 Requires(post,postun): systemd-units >= 38
346 Requires: systemd-units >= 38
347 Obsoletes: qemu-kvm-user < 2
350 QEMU is a generic and open source processor emulator which achieves a
351 good emulation speed by using dynamic translation.
353 This package provides the user mode emulation of QEMU targets.
355 %description user -l pl.UTF-8
356 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
357 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
359 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
362 Summary: QEMU user mode emulation of qemu targets static build
363 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu - wersja statyczna
364 Group: Applications/Emulators
365 Requires(post,postun): systemd-units >= 38
366 Requires: systemd-units >= 38
368 %description user-static
369 QEMU is a generic and open source processor emulator which achieves a
370 good emulation speed by using dynamic translation.
372 This package provides the user mode emulation of qemu targets built as
375 %description user-static -l pl.UTF-8
376 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
377 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
379 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU w
380 oparciu o programy wykonywalne zbudowane statycznie.
382 %package system-aarch64
383 Summary: QEMU system emulator for AArch64
384 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
385 Group: Applications/Emulators
386 Requires: %{name}-common = %{version}-%{release}
388 Obsoletes: qemu-kvm-system-aarch64 < 2
390 %description system-aarch64
391 QEMU is a generic and open source processor emulator which achieves a
392 good emulation speed by using dynamic translation.
394 This package provides the system emulator with AArch64 (ARM64) CPU.
396 %description system-aarch64 -l pl.UTF-8
397 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
398 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
400 Ten pakiet zawiera emulator systemu z procesorem AArch64 (ARM64).
402 %package system-alpha
403 Summary: QEMU system emulator for Alpha
404 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
405 Group: Applications/Emulators
406 Requires: %{name}-common = %{version}-%{release}
408 Obsoletes: qemu-kvm-system-alpha < 2
410 %description system-alpha
411 QEMU is a generic and open source processor emulator which achieves a
412 good emulation speed by using dynamic translation.
414 This package provides the system emulator with Alpha CPU.
416 %description system-alpha -l pl.UTF-8
417 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
418 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
420 Ten pakiet zawiera emulator systemu z procesorem Alpha.
423 Summary: QEMU system emulator for 32-bit ARM
424 Summary(pl.UTF-8): QEMU - emulator systemu z 32-bitowym procesorem ARM
425 Group: Applications/Emulators
426 Requires: %{name}-common = %{version}-%{release}
428 Obsoletes: qemu-kvm-system-arm < 2
430 %description system-arm
431 QEMU is a generic and open source processor emulator which achieves a
432 good emulation speed by using dynamic translation.
434 This package provides the system emulator for 32-bit ARM.
436 %description system-arm -l pl.UTF-8
437 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
438 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
440 Ten pakiet zawiera emulator systemu z 32-bitowym procesorem ARM.
443 Summary: QEMU system emulator for AVR
444 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AVR
445 Group: Applications/Emulators
446 Requires: %{name}-common = %{version}-%{release}
448 Obsoletes: qemu-kvm-system-avr < 2
450 %description system-avr
451 QEMU is a generic and open source processor emulator which achieves a
452 good emulation speed by using dynamic translation.
454 This package provides the system emulator for AVR.
456 %description system-avr -l pl.UTF-8
457 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
458 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
460 Ten pakiet zawiera emulator systemu z procesorem AVR.
463 Summary: QEMU system emulator for CRIS
464 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
465 Group: Applications/Emulators
466 Requires: %{name}-common = %{version}-%{release}
468 Obsoletes: qemu-kvm-system-cris < 2
470 %description system-cris
471 QEMU is a generic and open source processor emulator which achieves a
472 good emulation speed by using dynamic translation.
474 This package provides the system emulator with CRIS CPU.
476 %description system-cris -l pl.UTF-8
477 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
478 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
480 Ten pakiet zawiera emulator systemu z procesorem CRIS.
483 Summary: QEMU system emulator for HP/PA
484 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem HP/PA
485 Group: Applications/Emulators
486 Requires: %{name}-common = %{version}-%{release}
489 %description system-hppa
490 QEMU is a generic and open source processor emulator which achieves a
491 good emulation speed by using dynamic translation.
493 This package provides the system emulator with HP/PA (PA-RISC) CPU.
495 %description system-hppa -l pl.UTF-8
496 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
497 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
499 Ten pakiet zawiera emulator systemu z procesorem HP/PA (PA-RISC).
502 Summary: QEMU system emulator for m68k
503 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
504 Group: Applications/Emulators
505 Requires: %{name}-common = %{version}-%{release}
507 Obsoletes: qemu-kvm-system-m68k < 2
509 %description system-m68k
510 QEMU is a generic and open source processor emulator which achieves a
511 good emulation speed by using dynamic translation.
513 This package provides the system emulator with m68k (Motorola 68xxx)
516 %description system-m68k -l pl.UTF-8
517 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
518 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
520 Ten pakiet zawiera emulator systemu z procesorem m68k (Motorola
523 %package system-microblaze
524 Summary: QEMU system emulator for MicroBlaze
525 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
526 Group: Applications/Emulators
527 Requires: %{name}-common = %{version}-%{release}
529 Obsoletes: qemu-kvm-system-microblaze < 2
531 %description system-microblaze
532 QEMU is a generic and open source processor emulator which achieves a
533 good emulation speed by using dynamic translation.
535 This package provides the system emulator with MicroBlaze CPU.
537 %description system-microblaze -l pl.UTF-8
538 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
539 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
541 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
544 Summary: QEMU system emulator for MIPS
545 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
546 Group: Applications/Emulators
547 Requires: %{name}-common = %{version}-%{release}
549 Obsoletes: qemu-kvm-system-mips < 2
551 %description system-mips
552 QEMU is a generic and open source processor emulator which achieves a
553 good emulation speed by using dynamic translation.
555 This package provides the system emulator with MIPS CPU.
557 %description system-mips -l pl.UTF-8
558 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
559 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
561 Ten pakiet zawiera emulator systemu z procesorem MIPS.
563 %package system-nios2
564 Summary: QEMU system emulator for Nios II
565 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Nios II
566 Group: Applications/Emulators
567 Requires: %{name}-common = %{version}-%{release}
570 %description system-nios2
571 QEMU is a generic and open source processor emulator which achieves a
572 good emulation speed by using dynamic translation.
574 This package provides the system emulator with Nios II CPU.
576 %description system-nios2 -l pl.UTF-8
577 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
578 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
580 Ten pakiet zawiera emulator systemu z procesorem Nios II.
583 Summary: QEMU system emulator for OpenRISC
584 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
585 Group: Applications/Emulators
586 Requires: %{name}-common = %{version}-%{release}
588 Obsoletes: qemu-kvm-system-or1k < 2
589 Obsoletes: qemu-system-or32 < 2.9.0
591 %description system-or1k
592 QEMU is a generic and open source processor emulator which achieves a
593 good emulation speed by using dynamic translation.
595 This package provides the system emulator with OpenRISC CPU.
597 %description system-or1k -l pl.UTF-8
598 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
599 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
601 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
604 Summary: QEMU system emulator for PowerPC
605 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
606 Group: Applications/Emulators
607 Requires: %{name}-common = %{version}-%{release}
609 Obsoletes: qemu-kvm-system-ppc < 2
611 %description system-ppc
612 QEMU is a generic and open source processor emulator which achieves a
613 good emulation speed by using dynamic translation.
615 This package provides the system emulator with PowerPC CPU.
617 %description system-ppc -l pl.UTF-8
618 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
619 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
621 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
623 %package system-riscv32
624 Summary: QEMU system emulator for RISC-V (32 bit)
625 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (32 bit)
626 Group: Applications/Emulators
627 Requires: %{name}-common = %{version}-%{release}
630 %description system-riscv32
631 QEMU is a generic and open source processor emulator which achieves a
632 good emulation speed by using dynamic translation.
634 This package provides the system emulator with RISC-V (32 bit) CPU.
636 %description system-riscv32 -l pl.UTF-8
637 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
638 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
640 Ten pakiet zawiera emulator systemu z procesorem RISC-V (32 bit).
642 %package system-riscv64
643 Summary: QEMU system emulator for RISC-V (64 bit)
644 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (64 bitowym)
645 Group: Applications/Emulators
646 Requires: %{name}-common = %{version}-%{release}
649 %description system-riscv64
650 QEMU is a generic and open source processor emulator which achieves a
651 good emulation speed by using dynamic translation.
653 This package provides the system emulator with RISC-V (64 bit) CPU.
655 %description system-riscv64 -l pl.UTF-8
656 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
657 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
659 Ten pakiet zawiera emulator systemu z procesorem RISC-V (64-bitowym).
662 Summary: QEMU system emulator for Renesas RX
663 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Renesas RX
664 Group: Applications/Emulators
665 Requires: %{name}-common = %{version}-%{release}
668 %description system-rx
669 QEMU is a generic and open source processor emulator which achieves a
670 good emulation speed by using dynamic translation.
672 This package provides the system emulator with Renesas RX CPU.
674 %description system-rx -l pl.UTF-8
675 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
676 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
678 Ten pakiet zawiera emulator systemu z procesorem Renesas RX.
680 %package system-s390x
681 Summary: QEMU system emulator for S390x (IBM Z)
682 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390x (IBM Z)
683 Group: Applications/Emulators
684 Requires: %{name}-common = %{version}-%{release}
686 Obsoletes: qemu-kvm-system-s390x < 2
688 %description system-s390x
689 QEMU is a generic and open source processor emulator which achieves a
690 good emulation speed by using dynamic translation.
692 This package provides the system emulator with S390x (IBM Z) CPU.
694 %description system-s390x -l pl.UTF-8
695 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
696 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
698 Ten pakiet zawiera emulator systemu z procesorem S390x (IBM Z).
701 Summary: QEMU system emulator for SH4
702 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
703 Group: Applications/Emulators
704 Requires: %{name}-common = %{version}-%{release}
706 Obsoletes: qemu-kvm-system-sh4 < 2
708 %description system-sh4
709 QEMU is a generic and open source processor emulator which achieves a
710 good emulation speed by using dynamic translation.
712 This package provides the system emulator with SH4 CPU.
714 %description system-sh4 -l pl.UTF-8
715 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
716 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
718 Ten pakiet zawiera emulator systemu z procesorem SH4.
720 %package system-sparc
721 Summary: QEMU system emulator for SPARC
722 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
723 Group: Applications/Emulators
724 Requires: %{name}-common = %{version}-%{release}
726 Obsoletes: qemu-kvm-system-sparc < 2
728 %description system-sparc
729 QEMU is a generic and open source processor emulator which achieves a
730 good emulation speed by using dynamic translation.
732 This package provides the system emulator with SPARC/SPARC64 CPU.
734 %description system-sparc -l pl.UTF-8
735 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
736 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
738 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
740 %package system-tricore
741 Summary: QEMU system emulator for TriCore
742 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
743 Group: Applications/Emulators
744 Requires: %{name}-common = %{version}-%{release}
747 %description system-tricore
748 QEMU is a generic and open source processor emulator which achieves a
749 good emulation speed by using dynamic translation.
751 This package provides the system emulator with TriCore CPU.
753 %description system-tricore -l pl.UTF-8
754 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
755 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
757 Ten pakiet zawiera emulator systemu z procesorem TriCore.
760 Summary: QEMU system emulator for x86
761 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
762 Group: Applications/Emulators
763 Requires: %{name}-common = %{version}-%{release}
764 %{?with_vfio_user:Requires: libvfio-user = %{version}-%{release}}
765 %{?with_system_seabios:Requires: seabios}
768 Obsoletes: qemu-kvm-system-x86 < 2
770 %description system-x86
771 QEMU is a generic and open source processor emulator which achieves a
772 good emulation speed by using dynamic translation.
774 This package provides the system emulator with x86 CPU.
776 %description system-x86 -l pl.UTF-8
777 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
778 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
780 Ten pakiet zawiera emulator systemu z procesorem x86.
782 %package system-xtensa
783 Summary: QEMU system emulator for Xtensa
784 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
785 Group: Applications/Emulators
786 Requires: %{name}-common = %{version}-%{release}
788 Obsoletes: qemu-kvm-system-xtensa < 2
790 %description system-xtensa
791 QEMU is a generic and open source processor emulator which achieves a
792 good emulation speed by using dynamic translation.
794 This package provides the system emulator with Xtensa CPU.
796 %description system-xtensa -l pl.UTF-8
797 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
798 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
800 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
803 Summary: QEMU guest agent
804 Summary(pl.UTF-8): Agent gościa QEMU
806 Requires(post,preun,postun): systemd-units >= 38
807 Requires: glib2 >= 1:2.64
808 Requires: liburing >= 0.3
809 Requires: systemd-units >= 38
810 Obsoletes: qemu-kvm-guest-agent < 2
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-audio-jack
834 Summary: QEMU module for JACK audio output
835 Summary(pl.UTF-8): Moduł QEMU z wyjściem dźwięku JACK
836 Group: Applications/Emulators
837 Requires: %{name}-common = %{version}-%{release}
839 %description module-audio-jack
840 QEMU module for JACK audio output.
842 %description module-audio-jack -l pl.UTF-8
843 Moduł QEMU z wyjściem dźwięku JACK.
845 %package module-block-curl
846 Summary: QEMU module for 'curl' block devices
847 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
848 Group: Applications/Emulators
849 Requires: %{name}-common = %{version}-%{release}
850 Requires: curl-libs >= 7.29.0
852 %description module-block-curl
853 QEMU block device support for CURL. It allows to access remote disks
854 over http, https, ftp and other transports provided by the CURL
857 %description module-block-curl -l pl.UTF-8
858 Moduł QEMU dla urządeń blokowych CURL. Pozwala na dostęp do zdalnych
859 dysków poprzez http, https, ftp i inne protokoły obsługiwane przez
862 %package module-block-gluster
863 Summary: QEMU module for 'gluster' block devices
864 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
865 Group: Applications/Emulators
866 Requires: %{name}-common = %{version}-%{release}
867 Requires: glusterfs-libs >= 6
869 %description module-block-gluster
870 QEMU block device support for remote Gluster storage.
872 %description module-block-gluster -l pl.UTF-8
873 Moduł urządzeń blokowych QEMU do dostępu do zdalnej przestrzeni
876 %package module-block-iscsi
877 Summary: QEMU module for 'iscsi' block devices
878 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
879 Group: Applications/Emulators
880 Requires: %{name}-common = %{version}-%{release}
881 Requires: libiscsi >= 1.9.0
883 %description module-block-iscsi
884 QEMU block device support for iSCSI volumes.
886 %description module-block-iscsi -l pl.UTF-8
887 Moduł urządzeń blokowych QEMU do dostępu do wolumenów iSCSI.
889 %package module-block-nfs
890 Summary: QEMU module for 'nfs' block devices
891 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'nfs'
892 Group: Applications/Emulators
893 Requires: %{name}-common = %{version}-%{release}
894 Requires: libnfs >= 1.9.3
896 %description module-block-nfs
897 QEMU block device support for remote NFS storage.
899 %description module-block-nfs -l pl.UTF-8
900 Moduł urządzeń blokowych QEMU do dostępu do zdalnej przestrzeni po
903 %package module-block-rbd
904 Summary: QEMU module for 'rbd' block devices
905 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
906 Group: Applications/Emulators
907 Requires: %{name}-common = %{version}-%{release}
908 Requires: ceph-libs >= 12
910 %description module-block-rbd
911 QEMU block device support for Ceph/RBD volumes.
913 %description module-block-rbd -l pl.UTF-8
914 Moduł urządzeń blokowych QEMU do wolumenów Ceph/RBD.
916 %package module-block-ssh
917 Summary: QEMU module for 'ssh' block devices
918 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
919 Group: Applications/Emulators
920 Requires: %{name}-common = %{version}-%{release}
921 Requires: libssh >= 0.8.7
923 %description module-block-ssh
924 QEMU block device support for accessing remote disks using the Secure
925 Shell (SSH) protocol.
927 %description module-block-ssh -l pl.UTF-8
928 Moduł urządzeń blokowych QEMU do dostępu do zdalnych dysków poprzez
929 protokół SSH (Secure Shell).
931 %package module-ui-dbus
932 Summary: QEMU DBus UI driver
933 Summary(pl.UTF-8): Sterownik interfejsu użytkownika DBus dla QEMU
934 Group: Applications/Emulators
935 Requires: %{name}-common = %{version}-%{release}
937 %description module-ui-dbus
940 %description module-ui-dbus -l pl.UTF-8
941 Sterownik interfejsu użytkownika DBus dla QEMU.
943 %package module-ui-gtk
944 Summary: QEMU GTK UI driver
945 Summary(pl.UTF-8): Sterownik interfejsu użytkownika GTK dla QEMU
946 Group: Applications/Emulators
947 Requires: %{name}-common = %{version}-%{release}
949 %description module-ui-gtk
952 %description module-ui-gtk -l pl.UTF-8
953 Sterownik interfejsu użytkownika GTK dla QEMU.
955 %package module-ui-sdl
956 Summary: QEMU SDL UI and audio driver
957 Summary(pl.UTF-8): Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU
958 Group: Applications/Emulators
959 Requires: %{name}-common = %{version}-%{release}
961 %description module-ui-sdl
962 QEMU SDL UI and audio driver.
964 %description module-ui-sdl -l pl.UTF-8
965 Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU.
967 %package -n systemtap-qemu
968 Summary: systemtap/dtrace probes for QEMU
969 Summary(pl.UTF-8): Sondy systemtap/dtrace dla QEMU
970 Group: Development/Tools
971 Requires: %{name}-common = %{version}-%{release}
972 Requires: systemtap-client
974 %description -n systemtap-qemu
975 systemtap/dtrace probes for QEMU.
977 %description -n systemtap-qemu -l pl.UTF-8
978 Sondy systemtap/dtrace dla QEMU.
980 %package -n libvfio-user
981 Summary: vfio-user library
982 Summary(pl.UTF-8): Biblioteka vfio-user
984 Requires: json-c >= 0.11
986 %description -n libvfio-user
987 vfio-user is a framework that allows implementing PCI devices in
988 userspace. Clients (such as qemu) talk the vfio-user protocol over a
989 UNIX socket to a server. This library, libvfio-user, provides an API
990 for implementing such servers.
992 %description -n libvfio-user -l pl.UTF-8
993 vfio-user to szkielet pozwalający implementować urządzenia PCI w
994 przestrzeni użytkownika. Klienci (jak qemu) komunikują się z serwerem
995 protokołem vfio-user przez gniazdo uniksowe.
997 %package -n libvfio-user-devel
998 Summary: Header files for vfio-user library
999 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki vfio-user
1000 Group: Development/Libraries
1001 Requires: libvfio-user = %{version}-%{release}
1003 %description -n libvfio-user-devel
1004 Header files for vfio-user library.
1006 %description -n libvfio-user-devel -l pl.UTF-8
1007 Pliki nagłówkowe biblioteki vfio-user.
1020 %{__sed} -i '1s,/usr/bin/env python3,%{__python3},' scripts/qemu-trace-stap
1022 %if %{with systemtap}
1023 # don't require stap binary during build
1024 %{__sed} -i -e "s/stap.found()/true/" meson.build docs/meson.build scripts/meson.build
1033 install -d build-$target
1037 --prefix=%{_prefix} \
1038 --libdir=%{_libdir} \
1039 --libexecdir=%{_libexecdir} \
1040 --sysconfdir=%{_sysconfdir} \
1041 --localstatedir=%{_localstatedir} \
1042 --interp-prefix=%{_libdir}/qemu/lib-%%M \
1045 --host-cc="%{__cc}" \
1047 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
1053 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
1059 --extra-cflags="%{rpmcflags} %{rpmcppflags}" \
1060 --extra-ldflags="%{rpmldflags} -Wl,-z,relro -Wl,-z,now" \
1061 --audio-drv-list="alsa,jack%{?with_oss:,oss}%{?with_pulseaudio:,pa}%{?with_sdl:,sdl}" \
1063 %{__enable_disable brlapi} \
1064 %{__enable_disable canokey} \
1071 %{__enable_disable glusterfs} \
1072 %{!?with_gtk3:--disable-gtk} \
1073 %{__enable_disable iscsi libiscsi} \
1074 %{__enable_disable libnfs} \
1075 %{__enable_disable pmem libpmem} \
1077 %{__enable_disable multipath mpath} \
1081 %{__enable_disable ceph rbd} \
1082 %{__enable_disable rdma} \
1083 %{__enable_disable sdl} \
1084 %{__enable_disable seccomp} \
1086 %{__enable_disable spice} \
1087 %{__enable_disable smartcard} \
1088 %{__enable_disable snappy} \
1090 %{__enable_disable usbredir usb-redir} \
1092 %{?with_vfio_user:--enable-vfio-user-server} \
1093 %{__enable_disable virgl virglrenderer} \
1097 %{!?with_vte:--disable-vte} \
1098 %{__enable_disable xen} \
1099 %{__enable_disable xkbcommon}
1101 %if %{with user_static}
1106 --disable-capstone \
1112 --disable-guest-agent \
1113 --disable-guest-agent-msi \
1115 --disable-linux-io-uring \
1125 --disable-xkbcommon \
1130 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
1133 rm -rf $RPM_BUILD_ROOT
1134 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
1135 $RPM_BUILD_ROOT/etc/{qemu,sysconfig,modules-load.d,rc.d/init.d,logrotate.d} \
1136 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,/lib/udev/rules.d,%{_sbindir}}
1138 %if %{with user_static}
1139 %{__make} -C build-static install \
1140 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
1141 DESTDIR=$RPM_BUILD_ROOT
1143 # Give all QEMU user emulators a -static suffix
1144 for src in $RPM_BUILD_ROOT%{_bindir}/qemu-*; do
1145 %{__mv} $src $src-static
1150 %{__make} -C build-dynamic install \
1151 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
1152 DESTDIR=$RPM_BUILD_ROOT
1154 # let rpm generate dependencies
1155 chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/*.so
1157 echo "#allow br0" > $RPM_BUILD_ROOT/etc/qemu/bridge.conf
1159 install -d $RPM_BUILD_ROOT%{_sysconfdir}
1160 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
1165 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
1167 %ifarch %{ix86} %{x8664} x32
1168 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
1169 install -p %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/rules.d
1172 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
1173 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
1174 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
1176 install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
1177 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
1178 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
1180 # For the qemu-guest-agent subpackage install the systemd
1181 # service and udev rules.
1182 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
1183 install -p %{SOURCE12} $RPM_BUILD_ROOT/lib/udev/rules.d
1185 install -p %{SOURCE13} $RPM_BUILD_ROOT/etc/rc.d/init.d/qemu-ga
1186 install -p %{SOURCE14} $RPM_BUILD_ROOT/etc/logrotate.d/qemu-ga
1188 cp -p %{SOURCE15} %{SOURCE16} $RPM_BUILD_ROOT%{systemdunitdir}
1192 %ifnarch %{ix86} %{x8664} x32
1206 microblaze microblazeel \
1222 %ifnarch ppc ppc64 ppc64le
1225 %ifnarch sparc sparc64
1226 sparc sparc32plus sparc64 \
1237 if [ -n "$BINFMT_CPUS" ]; then
1238 for cpu in $BINFMT_CPUS; do
1239 bash ./scripts/qemu-binfmt-conf.sh --systemd "$cpu" --exportdir $RPM_BUILD_ROOT/usr/lib/binfmt.d --qemu-path %{_bindir}
1241 for i in $RPM_BUILD_ROOT/usr/lib/binfmt.d/*.conf; do
1242 %{__mv} $i ${i%.conf}-dynamic.conf
1245 %if %{with user_static}
1246 for regularfmt in $RPM_BUILD_ROOT/usr/lib/binfmt.d/*; do
1247 staticfmt="${regularfmt%\-dynamic.conf}-static.conf"
1248 cat $regularfmt | tr -d '\n' | sed "s/:$/-static:F/" > $staticfmt
1253 %if %{with system_seabios}
1254 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
1255 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
1259 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
1260 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
1266 for t in client server; do
1267 cp -p build-dynamic/contrib/ivshmem-$t/ivshmem-$t $RPM_BUILD_ROOT%{_bindir}
1271 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/accel-qtest-*.so
1272 # Windows installer icon, not used
1273 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/qemu-nsis.bmp
1275 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/edk2-licenses.txt
1277 # cleanup Sphinx files
1278 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/{.buildinfo,objects.inv}
1281 rm -rf $RPM_BUILD_ROOT
1284 %groupadd -g 160 kvm
1285 %groupadd -g 276 qemu
1286 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
1289 %systemd_post ksm.service
1290 %systemd_post ksmtuned.service
1293 %systemd_preun ksm.service
1294 %systemd_preun ksmtuned.service
1297 if [ "$1" = "0" ]; then
1304 %triggerpostun common -- qemu-common < 1.6.1-4
1305 %systemd_trigger ksm.service
1306 %systemd_trigger ksmtuned.service
1307 %systemd_trigger qemu-pr-helper.service
1310 %systemd_post systemd-binfmt.service
1313 %systemd_post systemd-binfmt.service
1316 %systemd_post systemd-binfmt.service
1319 %systemd_post systemd-binfmt.service
1322 /sbin/chkconfig --add qemu-ga
1323 %service qemu-ga restart "qemu-ga"
1327 if [ "$1" = "0" ]; then
1328 %service qemu-ga stop
1329 /sbin/chkconfig --del qemu-ga
1331 %systemd_preun qemu-guest-agent.service
1336 %post -n libvfio-user -p /sbin/ldconfig
1337 %postun -n libvfio-user -p /sbin/ldconfig
1340 %defattr(644,root,root,755)
1343 %defattr(644,root,root,755)
1344 %{_includedir}/qemu-plugin.h
1346 %files common -f %{name}.lang
1347 %defattr(644,root,root,755)
1348 %doc LICENSE README.rst pc-bios/edk2-licenses.txt
1349 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
1350 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
1351 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
1352 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
1354 %attr(640,root,qemu) %config(noreplace) %verify(not md5 mtime size) /etc/qemu/bridge.conf
1355 %{systemdunitdir}/ksm.service
1356 %{systemdunitdir}/ksmtuned.service
1357 %{systemdunitdir}/qemu-pr-helper.service
1358 %{systemdunitdir}/qemu-pr-helper.socket
1359 %attr(755,root,root) %{_bindir}/elf2dmp
1360 %attr(755,root,root) %{_bindir}/ivshmem-client
1361 %attr(755,root,root) %{_bindir}/ivshmem-server
1362 %attr(755,root,root) %{_bindir}/qemu-edid
1363 %if %{with xkbcommon}
1364 %attr(755,root,root) %{_bindir}/qemu-keymap
1366 %attr(755,root,root) %{_bindir}/qemu-nbd
1367 %attr(755,root,root) %{_bindir}/qemu-pr-helper
1368 %attr(755,root,root) %{_bindir}/qemu-storage-daemon
1369 %attr(755,root,root) %{_sbindir}/ksmctl
1370 %attr(755,root,root) %{_sbindir}/ksmtuned
1371 %attr(755,root,root) %{_libexecdir}/qemu-bridge-helper
1373 %attr(755,root,root) %{_libexecdir}/vhost-user-gpu
1375 %attr(755,root,root) %{_libexecdir}/virtfs-proxy-helper
1376 %attr(755,root,root) %{_libexecdir}/virtiofsd
1377 %dir %{_libdir}/%{name}
1378 # modules without too many external dependencies
1379 %attr(755,root,root) %{_libdir}/%{name}/block-blkio.so
1380 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-bz2.so
1381 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-lzfse.so
1382 %attr(755,root,root) %{_libdir}/%{name}/accel-tcg-i386.so
1383 %attr(755,root,root) %{_libdir}/%{name}/accel-tcg-x86_64.so
1384 %attr(755,root,root) %{_libdir}/%{name}/audio-alsa.so
1386 %attr(755,root,root) %{_libdir}/%{name}/audio-oss.so
1388 %if %{with pulseaudio}
1389 %attr(755,root,root) %{_libdir}/%{name}/audio-pa.so
1392 %attr(755,root,root) %{_libdir}/%{name}/chardev-baum.so
1394 %attr(755,root,root) %{_libdir}/%{name}/hw-display-qxl.so
1395 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu.so
1396 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-gl.so
1397 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-pci.so
1398 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-pci-gl.so
1399 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-vga.so
1400 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-vga-gl.so
1401 %attr(755,root,root) %{_libdir}/%{name}/hw-s390x-virtio-gpu-ccw.so
1402 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-host.so
1403 %attr(755,root,root) %{_libdir}/%{name}/ui-curses.so
1404 %if %{with usbredir}
1405 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-redirect.so
1407 %if %{with smartcard}
1408 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-smartcard.so
1411 %attr(755,root,root) %{_libdir}/%{name}/ui-egl-headless.so
1412 %attr(755,root,root) %{_libdir}/%{name}/ui-opengl.so
1415 %attr(755,root,root) %{_libdir}/%{name}/audio-spice.so
1416 %attr(755,root,root) %{_libdir}/%{name}/chardev-spice.so
1417 %attr(755,root,root) %{_libdir}/%{name}/ui-spice-app.so
1418 %attr(755,root,root) %{_libdir}/%{name}/ui-spice-core.so
1420 %dir %{_datadir}/%{name}
1421 %dir %{_datadir}/%{name}/firmware
1422 %{_datadir}/%{name}/keymaps
1423 %{_datadir}/%{name}/trace-events-all
1424 %dir %{_datadir}/%{name}/vhost-user
1426 %{_datadir}/%{name}/vhost-user/50-qemu-gpu.json
1428 %{_datadir}/%{name}/vhost-user/50-qemu-virtiofsd.json
1429 %{_desktopdir}/qemu.desktop
1430 %{_iconsdir}/hicolor/*x*/apps/qemu.png
1431 %{_iconsdir}/hicolor/32x32/apps/qemu.bmp
1432 %{_iconsdir}/hicolor/scalable/apps/qemu.svg
1433 %{_mandir}/man1/qemu.1*
1434 %{_mandir}/man1/qemu-storage-daemon.1*
1435 %{_mandir}/man1/virtfs-proxy-helper.1*
1436 %{_mandir}/man1/virtiofsd.1*
1437 %{_mandir}/man7/qemu-block-drivers.7*
1438 %{_mandir}/man7/qemu-cpu-models.7*
1439 %{_mandir}/man7/qemu-qmp-ref.7*
1440 %{_mandir}/man7/qemu-storage-daemon-qmp-ref.7*
1441 %{_mandir}/man8/qemu-nbd.8*
1442 %{_mandir}/man8/qemu-pr-helper.8*
1446 %defattr(644,root,root,755)
1447 %attr(755,root,root) %{_bindir}/qemu-img
1448 %{_mandir}/man1/qemu-img.1*
1451 %defattr(644,root,root,755)
1452 /usr/lib/binfmt.d/qemu-*-dynamic.conf
1453 %attr(755,root,root) %{_bindir}/qemu-aarch64
1454 %attr(755,root,root) %{_bindir}/qemu-aarch64_be
1455 %attr(755,root,root) %{_bindir}/qemu-alpha
1456 %attr(755,root,root) %{_bindir}/qemu-arm
1457 %attr(755,root,root) %{_bindir}/qemu-armeb
1458 %attr(755,root,root) %{_bindir}/qemu-cris
1459 %attr(755,root,root) %{_bindir}/qemu-hexagon
1460 %attr(755,root,root) %{_bindir}/qemu-hppa
1461 %attr(755,root,root) %{_bindir}/qemu-i386
1462 %attr(755,root,root) %{_bindir}/qemu-io
1463 %attr(755,root,root) %{_bindir}/qemu-loongarch64
1464 %attr(755,root,root) %{_bindir}/qemu-m68k
1465 %attr(755,root,root) %{_bindir}/qemu-microblaze
1466 %attr(755,root,root) %{_bindir}/qemu-microblazeel
1467 %attr(755,root,root) %{_bindir}/qemu-mips
1468 %attr(755,root,root) %{_bindir}/qemu-mipsel
1469 %attr(755,root,root) %{_bindir}/qemu-mips64
1470 %attr(755,root,root) %{_bindir}/qemu-mips64el
1471 %attr(755,root,root) %{_bindir}/qemu-mipsn32
1472 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
1473 %attr(755,root,root) %{_bindir}/qemu-nios2
1474 %attr(755,root,root) %{_bindir}/qemu-or1k
1475 %attr(755,root,root) %{_bindir}/qemu-ppc
1476 %attr(755,root,root) %{_bindir}/qemu-ppc64
1477 %attr(755,root,root) %{_bindir}/qemu-ppc64le
1478 %attr(755,root,root) %{_bindir}/qemu-riscv32
1479 %attr(755,root,root) %{_bindir}/qemu-riscv64
1480 %attr(755,root,root) %{_bindir}/qemu-s390x
1481 %attr(755,root,root) %{_bindir}/qemu-sh4
1482 %attr(755,root,root) %{_bindir}/qemu-sh4eb
1483 %attr(755,root,root) %{_bindir}/qemu-sparc
1484 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
1485 %attr(755,root,root) %{_bindir}/qemu-sparc64
1486 %attr(755,root,root) %{_bindir}/qemu-x86_64
1487 %attr(755,root,root) %{_bindir}/qemu-xtensa
1488 %attr(755,root,root) %{_bindir}/qemu-xtensaeb
1490 %if %{with user_static}
1492 %defattr(644,root,root,755)
1493 /usr/lib/binfmt.d/qemu-*-static.conf
1494 %attr(755,root,root) %{_bindir}/qemu-aarch64-static
1495 %attr(755,root,root) %{_bindir}/qemu-aarch64_be-static
1496 %attr(755,root,root) %{_bindir}/qemu-alpha-static
1497 %attr(755,root,root) %{_bindir}/qemu-arm-static
1498 %attr(755,root,root) %{_bindir}/qemu-armeb-static
1499 %attr(755,root,root) %{_bindir}/qemu-cris-static
1500 %attr(755,root,root) %{_bindir}/qemu-hexagon-static
1501 %attr(755,root,root) %{_bindir}/qemu-hppa-static
1502 %attr(755,root,root) %{_bindir}/qemu-i386-static
1503 %attr(755,root,root) %{_bindir}/qemu-loongarch64-static
1504 %attr(755,root,root) %{_bindir}/qemu-m68k-static
1505 %attr(755,root,root) %{_bindir}/qemu-microblaze-static
1506 %attr(755,root,root) %{_bindir}/qemu-microblazeel-static
1507 %attr(755,root,root) %{_bindir}/qemu-mips-static
1508 %attr(755,root,root) %{_bindir}/qemu-mips64-static
1509 %attr(755,root,root) %{_bindir}/qemu-mips64el-static
1510 %attr(755,root,root) %{_bindir}/qemu-mipsel-static
1511 %attr(755,root,root) %{_bindir}/qemu-mipsn32-static
1512 %attr(755,root,root) %{_bindir}/qemu-mipsn32el-static
1513 %attr(755,root,root) %{_bindir}/qemu-nios2-static
1514 %attr(755,root,root) %{_bindir}/qemu-or1k-static
1515 %attr(755,root,root) %{_bindir}/qemu-ppc-static
1516 %attr(755,root,root) %{_bindir}/qemu-ppc64-static
1517 %attr(755,root,root) %{_bindir}/qemu-ppc64le-static
1518 %attr(755,root,root) %{_bindir}/qemu-riscv32-static
1519 %attr(755,root,root) %{_bindir}/qemu-riscv64-static
1520 %attr(755,root,root) %{_bindir}/qemu-s390x-static
1521 %attr(755,root,root) %{_bindir}/qemu-sh4-static
1522 %attr(755,root,root) %{_bindir}/qemu-sh4eb-static
1523 %attr(755,root,root) %{_bindir}/qemu-sparc-static
1524 %attr(755,root,root) %{_bindir}/qemu-sparc32plus-static
1525 %attr(755,root,root) %{_bindir}/qemu-sparc64-static
1526 %attr(755,root,root) %{_bindir}/qemu-x86_64-static
1527 %attr(755,root,root) %{_bindir}/qemu-xtensa-static
1528 %attr(755,root,root) %{_bindir}/qemu-xtensaeb-static
1529 %{?with_systemtap:%attr(755,root,root) %{_bindir}/qemu-trace-stap-static}
1532 %files system-aarch64
1533 %defattr(644,root,root,755)
1534 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1535 %{_datadir}/%{name}/edk2-aarch64-code.fd
1536 %{_datadir}/%{name}/firmware/60-edk2-aarch64.json
1539 %defattr(644,root,root,755)
1540 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1541 %{_datadir}/%{name}/palcode-clipper
1544 %defattr(644,root,root,755)
1545 %attr(755,root,root) %{_bindir}/qemu-system-arm
1546 %{_datadir}/%{name}/edk2-arm-code.fd
1547 %{_datadir}/%{name}/edk2-arm-vars.fd
1548 %{_datadir}/%{name}/firmware/60-edk2-arm.json
1549 %{_datadir}/%{name}/npcm7xx_bootrom.bin
1552 %defattr(644,root,root,755)
1553 %attr(755,root,root) %{_bindir}/qemu-system-avr
1556 %defattr(644,root,root,755)
1557 %attr(755,root,root) %{_bindir}/qemu-system-cris
1560 %defattr(644,root,root,755)
1561 %attr(755,root,root) %{_bindir}/qemu-system-hppa
1562 %{_datadir}/%{name}/hppa-firmware.img
1565 %defattr(644,root,root,755)
1566 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1568 %files system-microblaze
1569 %defattr(644,root,root,755)
1570 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1571 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1574 %defattr(644,root,root,755)
1575 %attr(755,root,root) %{_bindir}/qemu-system-loongarch64
1576 %attr(755,root,root) %{_bindir}/qemu-system-mips
1577 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1578 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1579 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1582 %defattr(644,root,root,755)
1583 %attr(755,root,root) %{_bindir}/qemu-system-nios2
1586 %defattr(644,root,root,755)
1587 %attr(755,root,root) %{_bindir}/qemu-system-or1k
1590 %defattr(644,root,root,755)
1591 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1592 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1593 %{_datadir}/%{name}/bamboo.dtb
1594 %{_datadir}/%{name}/canyonlands.dtb
1595 %{_datadir}/%{name}/openbios-ppc
1596 %{_datadir}/%{name}/petalogix-ml605.dtb
1597 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
1598 %{_datadir}/%{name}/qemu_vga.ndrv
1599 %{_datadir}/%{name}/skiboot.lid
1600 %{_datadir}/%{name}/slof.bin
1601 %{_datadir}/%{name}/u-boot.e500
1602 %{_datadir}/%{name}/u-boot-sam460-20100605.bin
1603 %{_datadir}/%{name}/vof.bin
1604 %{_datadir}/%{name}/vof-nvram.bin
1606 %files system-riscv32
1607 %defattr(644,root,root,755)
1608 %attr(755,root,root) %{_bindir}/qemu-system-riscv32
1609 %{_datadir}/%{name}/opensbi-riscv32-generic-fw_dynamic.bin
1611 %files system-riscv64
1612 %defattr(644,root,root,755)
1613 %attr(755,root,root) %{_bindir}/qemu-system-riscv64
1614 %{_datadir}/%{name}/opensbi-riscv64-generic-fw_dynamic.bin
1617 %defattr(644,root,root,755)
1618 %attr(755,root,root) %{_bindir}/qemu-system-rx
1621 %defattr(644,root,root,755)
1622 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1623 %{_datadir}/%{name}/s390-ccw.img
1624 %{_datadir}/%{name}/s390-netboot.img
1627 %defattr(644,root,root,755)
1628 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1629 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1632 %defattr(644,root,root,755)
1633 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1634 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1635 %{_datadir}/%{name}/QEMU,cgthree.bin
1636 %{_datadir}/%{name}/QEMU,tcx.bin
1637 %{_datadir}/%{name}/openbios-sparc32
1638 %{_datadir}/%{name}/openbios-sparc64
1640 %files system-tricore
1641 %defattr(644,root,root,755)
1642 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1645 %defattr(644,root,root,755)
1646 %attr(755,root,root) %{_bindir}/qemu-system-i386
1647 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1648 %ifarch %{ix86} %{x8664} x32
1649 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1650 /lib/udev/rules.d/80-kvm.rules
1652 %{_datadir}/%{name}/bios.bin
1653 %{_datadir}/%{name}/bios-256k.bin
1654 %{_datadir}/%{name}/bios-microvm.bin
1655 %{_datadir}/%{name}/edk2-i386-code.fd
1656 %{_datadir}/%{name}/edk2-i386-secure-code.fd
1657 %{_datadir}/%{name}/edk2-i386-vars.fd
1658 %{_datadir}/%{name}/edk2-x86_64-code.fd
1659 %{_datadir}/%{name}/edk2-x86_64-secure-code.fd
1660 %{_datadir}/%{name}/efi-e1000e.rom
1661 %{_datadir}/%{name}/efi-e1000.rom
1662 %{_datadir}/%{name}/efi-eepro100.rom
1663 %{_datadir}/%{name}/efi-ne2k_pci.rom
1664 %{_datadir}/%{name}/efi-pcnet.rom
1665 %{_datadir}/%{name}/efi-rtl8139.rom
1666 %{_datadir}/%{name}/efi-virtio.rom
1667 %{_datadir}/%{name}/efi-vmxnet3.rom
1668 %{_datadir}/%{name}/kvmvapic.bin
1669 %{_datadir}/%{name}/linuxboot.bin
1670 %{_datadir}/%{name}/linuxboot_dma.bin
1671 %{_datadir}/%{name}/multiboot.bin
1672 %{_datadir}/%{name}/multiboot_dma.bin
1673 %{_datadir}/%{name}/pvh.bin
1674 %{_datadir}/%{name}/pxe-e1000.rom
1675 %{_datadir}/%{name}/pxe-eepro100.rom
1676 %{_datadir}/%{name}/pxe-ne2k_pci.rom
1677 %{_datadir}/%{name}/pxe-pcnet.rom
1678 %{_datadir}/%{name}/pxe-rtl8139.rom
1679 %{_datadir}/%{name}/pxe-virtio.rom
1680 %{_datadir}/%{name}/qboot.rom
1681 %{_datadir}/%{name}/sgabios.bin
1682 %{_datadir}/%{name}/vgabios.bin
1683 %{_datadir}/%{name}/vgabios-ati.bin
1684 %{_datadir}/%{name}/vgabios-bochs-display.bin
1685 %{_datadir}/%{name}/vgabios-cirrus.bin
1686 %{_datadir}/%{name}/vgabios-qxl.bin
1687 %{_datadir}/%{name}/vgabios-ramfb.bin
1688 %{_datadir}/%{name}/vgabios-stdvga.bin
1689 %{_datadir}/%{name}/vgabios-virtio.bin
1690 %{_datadir}/%{name}/vgabios-vmware.bin
1691 %{_datadir}/%{name}/firmware/50-edk2-i386-secure.json
1692 %{_datadir}/%{name}/firmware/50-edk2-x86_64-secure.json
1693 %{_datadir}/%{name}/firmware/60-edk2-i386.json
1694 %{_datadir}/%{name}/firmware/60-edk2-x86_64.json
1696 %files system-xtensa
1697 %defattr(644,root,root,755)
1698 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1699 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1702 %defattr(644,root,root,755)
1703 %attr(755,root,root) %{_bindir}/qemu-ga
1704 /lib/udev/rules.d/99-qemu-guest-agent.rules
1705 %{systemdunitdir}/qemu-guest-agent.service
1706 %attr(754,root,root) /etc/rc.d/init.d/qemu-ga
1707 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/qemu-ga
1708 %{_mandir}/man7/qemu-ga-ref.7*
1709 %{_mandir}/man8/qemu-ga.8*
1711 %files module-audio-jack
1712 %defattr(644,root,root,755)
1713 %attr(755,root,root) %{_libdir}/%{name}/audio-jack.so
1715 %files module-block-curl
1716 %defattr(644,root,root,755)
1717 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1719 %if %{with glusterfs}
1720 %files module-block-gluster
1721 %defattr(644,root,root,755)
1722 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1726 %files module-block-iscsi
1727 %defattr(644,root,root,755)
1728 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1732 %files module-block-nfs
1733 %defattr(644,root,root,755)
1734 %attr(755,root,root) %{_libdir}/%{name}/block-nfs.so
1738 %files module-block-rbd
1739 %defattr(644,root,root,755)
1740 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1743 %files module-block-ssh
1744 %defattr(644,root,root,755)
1745 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so
1747 %files module-ui-dbus
1748 %defattr(644,root,root,755)
1749 %attr(755,root,root) %{_libdir}/%{name}/audio-dbus.so
1750 %attr(755,root,root) %{_libdir}/%{name}/ui-dbus.so
1753 %files module-ui-gtk
1754 %defattr(644,root,root,755)
1755 %attr(755,root,root) %{_libdir}/%{name}/ui-gtk.so
1759 %files module-ui-sdl
1760 %defattr(644,root,root,755)
1761 %attr(755,root,root) %{_libdir}/%{name}/audio-sdl.so
1762 %attr(755,root,root) %{_libdir}/%{name}/ui-sdl.so
1765 %if %{with systemtap}
1766 %files -n systemtap-qemu
1767 %defattr(644,root,root,755)
1768 %attr(755,root,root) %{_bindir}/qemu-trace-stap
1769 %{_datadir}/systemtap/tapset/qemu-*.stp
1770 %{_mandir}/man1/qemu-trace-stap.1*
1773 %if %{with vfio_user}
1774 %files -n libvfio-user
1775 %defattr(644,root,root,755)
1776 %attr(755,root,root) %{_libdir}/libvfio-user.so.*.*.*
1777 %attr(755,root,root) %ghost %{_libdir}/libvfio-user.so.0
1779 %files -n libvfio-user-devel
1780 %defattr(644,root,root,755)
1781 %attr(755,root,root) %{_libdir}/libvfio-user.so
1782 %{_includedir}/vfio-user