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_vfio_user:Requires: json-c >= 0.11} \
220 %{?with_smartcard:Requires: libcacard >= 2.5.1} \
221 Requires: libfdt >= 1.5.1 \
222 Requires: libfuse3 >= 3.8 \
223 %{?with_iscsi:Requires: libiscsi >= 1.9.0} \
224 Requires: libpng >= 2:1.6.34 \
225 %if %{with seccomp} \
226 Requires: libseccomp >= 2.3.0 \
228 Requires: libslirp >= 4.1.0 \
229 Requires: liburing >= 0.3 \
230 Requires: libusb >= 1.0.22 \
231 Requires: pixman >= 0.21.8 \
233 Requires: spice-server-libs >= 0.12.5 \
235 %if %{with usbredir} \
236 Requires: usbredir >= 0.6 \
239 # don't strip/chrpath anything in there; these are boot images, roms etc
240 %define _noautostrip .*%{_datadir}/qemu/.*
241 %define _noautochrpath .*%{_datadir}/qemu/.*
244 QEMU is a FAST! processor emulator. By using dynamic translation it
245 achieves a reasonnable speed while being easy to port on new host
246 CPUs. QEMU has two operating modes:
248 - User mode emulation. In this mode, QEMU can launch Linux processes
249 compiled for one CPU on another CPU. Linux system calls are converted
250 because of endianness and 32/64 bit mismatches. Wine (Windows
251 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
253 - Full system emulation. In this mode, QEMU emulates a full system,
254 including a processor and various peripherials. It can also be used to
255 provide virtual hosting of several virtual PC on a single server.
257 %description -l pl.UTF-8
258 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
259 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
260 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
262 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
263 procesy linuksowe skompilowane dla jednego procesora na innym
264 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
265 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
266 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
269 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
270 włączając w to procesor i różne urządzenia peryferyjne. Może być także
271 używane do wirtualnego hostowania kilku wirtualnych pecetów na
272 pojedynczym serwerze.
275 Summary: Header file for QEMU plugins development
276 Summary(pl.UTF-8): Plik nagłówkowy do tworzenia wtyczek QEMU
277 Group: Development/Libraries
281 Header file for QEMU plugins development.
283 %description devel -l pl.UTF-8
284 Plik nagłówkowy do tworzenia wtyczek QEMU.
287 Summary: QEMU common files needed by all QEMU targets
288 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
289 Group: Applications/Emulators
290 Requires(post,preun,postun): systemd-units >= 38
291 Requires(postun): /usr/sbin/groupdel
292 Requires(postun): /usr/sbin/userdel
293 Requires(pre): /bin/id
294 Requires(pre): /usr/bin/getgid
295 Requires(pre): /usr/sbin/groupadd
296 Requires(pre): /usr/sbin/useradd
297 Requires: glib2 >= 1:2.64
298 Requires: gnutls-libs >= 3.6.14
299 %{?with_gtk3:Requires: gtk+3 >= 3.22.0}
300 Requires: nettle >= 3.4
301 Requires: systemd-units >= 38
302 %{?with_vte:Requires: vte >= 0.32.0}
303 Requires: zstd >= 1.4.0
304 Provides: group(qemu)
306 Obsoletes: qemu-kvm-common < 2
307 Obsoletes: qemu-module-block-archipelago < 2.9.0
308 Obsoletes: qemu-system-lm32 < 5.2
309 Obsoletes: qemu-system-moxie < 6.1
310 Obsoletes: qemu-system-unicore32 < 5.2
311 Conflicts: qemu < 1.0-2
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 common files needed by all QEMU targets.
319 %description common -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 wspólne pliki wymagane przez wszystkie
327 Summary: QEMU command line tool for manipulating disk images
328 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
329 Group: Applications/Emulators
330 Obsoletes: qemu-kvm-img < 2
331 Conflicts: qemu < 1.0-2
334 This package provides a command line tool for manipulating disk
337 %description img -l pl.UTF-8
338 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
342 Summary: QEMU user mode emulation of qemu targets
343 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
344 Group: Applications/Emulators
345 Requires: %{name}-common = %{version}-%{release}
346 Requires(post,postun): systemd-units >= 38
347 Requires: systemd-units >= 38
348 Obsoletes: qemu-kvm-user < 2
351 QEMU is a generic and open source processor emulator which achieves a
352 good emulation speed by using dynamic translation.
354 This package provides the user mode emulation of QEMU targets.
356 %description user -l pl.UTF-8
357 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
358 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
360 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
363 Summary: QEMU user mode emulation of qemu targets static build
364 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu - wersja statyczna
365 Group: Applications/Emulators
366 Requires(post,postun): systemd-units >= 38
367 Requires: systemd-units >= 38
369 %description user-static
370 QEMU is a generic and open source processor emulator which achieves a
371 good emulation speed by using dynamic translation.
373 This package provides the user mode emulation of qemu targets built as
376 %description user-static -l pl.UTF-8
377 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
378 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
380 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU w
381 oparciu o programy wykonywalne zbudowane statycznie.
383 %package system-aarch64
384 Summary: QEMU system emulator for AArch64
385 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
386 Group: Applications/Emulators
387 Requires: %{name}-common = %{version}-%{release}
389 Obsoletes: qemu-kvm-system-aarch64 < 2
391 %description system-aarch64
392 QEMU is a generic and open source processor emulator which achieves a
393 good emulation speed by using dynamic translation.
395 This package provides the system emulator with AArch64 (ARM64) CPU.
397 %description system-aarch64 -l pl.UTF-8
398 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
399 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
401 Ten pakiet zawiera emulator systemu z procesorem AArch64 (ARM64).
403 %package system-alpha
404 Summary: QEMU system emulator for Alpha
405 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
406 Group: Applications/Emulators
407 Requires: %{name}-common = %{version}-%{release}
409 Obsoletes: qemu-kvm-system-alpha < 2
411 %description system-alpha
412 QEMU is a generic and open source processor emulator which achieves a
413 good emulation speed by using dynamic translation.
415 This package provides the system emulator with Alpha CPU.
417 %description system-alpha -l pl.UTF-8
418 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
419 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
421 Ten pakiet zawiera emulator systemu z procesorem Alpha.
424 Summary: QEMU system emulator for 32-bit ARM
425 Summary(pl.UTF-8): QEMU - emulator systemu z 32-bitowym procesorem ARM
426 Group: Applications/Emulators
427 Requires: %{name}-common = %{version}-%{release}
429 Obsoletes: qemu-kvm-system-arm < 2
431 %description system-arm
432 QEMU is a generic and open source processor emulator which achieves a
433 good emulation speed by using dynamic translation.
435 This package provides the system emulator for 32-bit ARM.
437 %description system-arm -l pl.UTF-8
438 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
439 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
441 Ten pakiet zawiera emulator systemu z 32-bitowym procesorem ARM.
444 Summary: QEMU system emulator for AVR
445 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AVR
446 Group: Applications/Emulators
447 Requires: %{name}-common = %{version}-%{release}
449 Obsoletes: qemu-kvm-system-avr < 2
451 %description system-avr
452 QEMU is a generic and open source processor emulator which achieves a
453 good emulation speed by using dynamic translation.
455 This package provides the system emulator for AVR.
457 %description system-avr -l pl.UTF-8
458 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
459 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
461 Ten pakiet zawiera emulator systemu z procesorem AVR.
464 Summary: QEMU system emulator for CRIS
465 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
466 Group: Applications/Emulators
467 Requires: %{name}-common = %{version}-%{release}
469 Obsoletes: qemu-kvm-system-cris < 2
471 %description system-cris
472 QEMU is a generic and open source processor emulator which achieves a
473 good emulation speed by using dynamic translation.
475 This package provides the system emulator with CRIS CPU.
477 %description system-cris -l pl.UTF-8
478 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
479 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
481 Ten pakiet zawiera emulator systemu z procesorem CRIS.
484 Summary: QEMU system emulator for HP/PA
485 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem HP/PA
486 Group: Applications/Emulators
487 Requires: %{name}-common = %{version}-%{release}
490 %description system-hppa
491 QEMU is a generic and open source processor emulator which achieves a
492 good emulation speed by using dynamic translation.
494 This package provides the system emulator with HP/PA (PA-RISC) CPU.
496 %description system-hppa -l pl.UTF-8
497 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
498 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
500 Ten pakiet zawiera emulator systemu z procesorem HP/PA (PA-RISC).
503 Summary: QEMU system emulator for m68k
504 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
505 Group: Applications/Emulators
506 Requires: %{name}-common = %{version}-%{release}
508 Obsoletes: qemu-kvm-system-m68k < 2
510 %description system-m68k
511 QEMU is a generic and open source processor emulator which achieves a
512 good emulation speed by using dynamic translation.
514 This package provides the system emulator with m68k (Motorola 68xxx)
517 %description system-m68k -l pl.UTF-8
518 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
519 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
521 Ten pakiet zawiera emulator systemu z procesorem m68k (Motorola
524 %package system-microblaze
525 Summary: QEMU system emulator for MicroBlaze
526 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
527 Group: Applications/Emulators
528 Requires: %{name}-common = %{version}-%{release}
530 Obsoletes: qemu-kvm-system-microblaze < 2
532 %description system-microblaze
533 QEMU is a generic and open source processor emulator which achieves a
534 good emulation speed by using dynamic translation.
536 This package provides the system emulator with MicroBlaze CPU.
538 %description system-microblaze -l pl.UTF-8
539 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
540 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
542 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
545 Summary: QEMU system emulator for MIPS
546 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
547 Group: Applications/Emulators
548 Requires: %{name}-common = %{version}-%{release}
550 Obsoletes: qemu-kvm-system-mips < 2
552 %description system-mips
553 QEMU is a generic and open source processor emulator which achieves a
554 good emulation speed by using dynamic translation.
556 This package provides the system emulator with MIPS CPU.
558 %description system-mips -l pl.UTF-8
559 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
560 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
562 Ten pakiet zawiera emulator systemu z procesorem MIPS.
564 %package system-nios2
565 Summary: QEMU system emulator for Nios II
566 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Nios II
567 Group: Applications/Emulators
568 Requires: %{name}-common = %{version}-%{release}
571 %description system-nios2
572 QEMU is a generic and open source processor emulator which achieves a
573 good emulation speed by using dynamic translation.
575 This package provides the system emulator with Nios II CPU.
577 %description system-nios2 -l pl.UTF-8
578 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
579 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
581 Ten pakiet zawiera emulator systemu z procesorem Nios II.
584 Summary: QEMU system emulator for OpenRISC
585 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
586 Group: Applications/Emulators
587 Requires: %{name}-common = %{version}-%{release}
589 Obsoletes: qemu-kvm-system-or1k < 2
590 Obsoletes: qemu-system-or32 < 2.9.0
592 %description system-or1k
593 QEMU is a generic and open source processor emulator which achieves a
594 good emulation speed by using dynamic translation.
596 This package provides the system emulator with OpenRISC CPU.
598 %description system-or1k -l pl.UTF-8
599 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
600 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
602 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
605 Summary: QEMU system emulator for PowerPC
606 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
607 Group: Applications/Emulators
608 Requires: %{name}-common = %{version}-%{release}
610 Obsoletes: qemu-kvm-system-ppc < 2
612 %description system-ppc
613 QEMU is a generic and open source processor emulator which achieves a
614 good emulation speed by using dynamic translation.
616 This package provides the system emulator with PowerPC CPU.
618 %description system-ppc -l pl.UTF-8
619 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
620 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
622 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
624 %package system-riscv32
625 Summary: QEMU system emulator for RISC-V (32 bit)
626 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (32 bit)
627 Group: Applications/Emulators
628 Requires: %{name}-common = %{version}-%{release}
631 %description system-riscv32
632 QEMU is a generic and open source processor emulator which achieves a
633 good emulation speed by using dynamic translation.
635 This package provides the system emulator with RISC-V (32 bit) CPU.
637 %description system-riscv32 -l pl.UTF-8
638 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
639 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
641 Ten pakiet zawiera emulator systemu z procesorem RISC-V (32 bit).
643 %package system-riscv64
644 Summary: QEMU system emulator for RISC-V (64 bit)
645 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (64 bitowym)
646 Group: Applications/Emulators
647 Requires: %{name}-common = %{version}-%{release}
650 %description system-riscv64
651 QEMU is a generic and open source processor emulator which achieves a
652 good emulation speed by using dynamic translation.
654 This package provides the system emulator with RISC-V (64 bit) CPU.
656 %description system-riscv64 -l pl.UTF-8
657 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
658 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
660 Ten pakiet zawiera emulator systemu z procesorem RISC-V (64-bitowym).
663 Summary: QEMU system emulator for Renesas RX
664 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Renesas RX
665 Group: Applications/Emulators
666 Requires: %{name}-common = %{version}-%{release}
669 %description system-rx
670 QEMU is a generic and open source processor emulator which achieves a
671 good emulation speed by using dynamic translation.
673 This package provides the system emulator with Renesas RX CPU.
675 %description system-rx -l pl.UTF-8
676 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
677 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
679 Ten pakiet zawiera emulator systemu z procesorem Renesas RX.
681 %package system-s390x
682 Summary: QEMU system emulator for S390x (IBM Z)
683 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390x (IBM Z)
684 Group: Applications/Emulators
685 Requires: %{name}-common = %{version}-%{release}
687 Obsoletes: qemu-kvm-system-s390x < 2
689 %description system-s390x
690 QEMU is a generic and open source processor emulator which achieves a
691 good emulation speed by using dynamic translation.
693 This package provides the system emulator with S390x (IBM Z) CPU.
695 %description system-s390x -l pl.UTF-8
696 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
697 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
699 Ten pakiet zawiera emulator systemu z procesorem S390x (IBM Z).
702 Summary: QEMU system emulator for SH4
703 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
704 Group: Applications/Emulators
705 Requires: %{name}-common = %{version}-%{release}
707 Obsoletes: qemu-kvm-system-sh4 < 2
709 %description system-sh4
710 QEMU is a generic and open source processor emulator which achieves a
711 good emulation speed by using dynamic translation.
713 This package provides the system emulator with SH4 CPU.
715 %description system-sh4 -l pl.UTF-8
716 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
717 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
719 Ten pakiet zawiera emulator systemu z procesorem SH4.
721 %package system-sparc
722 Summary: QEMU system emulator for SPARC
723 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
724 Group: Applications/Emulators
725 Requires: %{name}-common = %{version}-%{release}
727 Obsoletes: qemu-kvm-system-sparc < 2
729 %description system-sparc
730 QEMU is a generic and open source processor emulator which achieves a
731 good emulation speed by using dynamic translation.
733 This package provides the system emulator with SPARC/SPARC64 CPU.
735 %description system-sparc -l pl.UTF-8
736 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
737 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
739 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
741 %package system-tricore
742 Summary: QEMU system emulator for TriCore
743 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
744 Group: Applications/Emulators
745 Requires: %{name}-common = %{version}-%{release}
748 %description system-tricore
749 QEMU is a generic and open source processor emulator which achieves a
750 good emulation speed by using dynamic translation.
752 This package provides the system emulator with TriCore CPU.
754 %description system-tricore -l pl.UTF-8
755 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
756 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
758 Ten pakiet zawiera emulator systemu z procesorem TriCore.
761 Summary: QEMU system emulator for x86
762 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
763 Group: Applications/Emulators
764 Requires: %{name}-common = %{version}-%{release}
765 %{?with_vfio_user:Requires: libvfio-user = %{version}-%{release}}
766 %{?with_system_seabios:Requires: seabios}
769 Obsoletes: qemu-kvm-system-x86 < 2
771 %description system-x86
772 QEMU is a generic and open source processor emulator which achieves a
773 good emulation speed by using dynamic translation.
775 This package provides the system emulator with x86 CPU.
777 %description system-x86 -l pl.UTF-8
778 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
779 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
781 Ten pakiet zawiera emulator systemu z procesorem x86.
783 %package system-xtensa
784 Summary: QEMU system emulator for Xtensa
785 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
786 Group: Applications/Emulators
787 Requires: %{name}-common = %{version}-%{release}
789 Obsoletes: qemu-kvm-system-xtensa < 2
791 %description system-xtensa
792 QEMU is a generic and open source processor emulator which achieves a
793 good emulation speed by using dynamic translation.
795 This package provides the system emulator with Xtensa CPU.
797 %description system-xtensa -l pl.UTF-8
798 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
799 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
801 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
804 Summary: QEMU guest agent
805 Summary(pl.UTF-8): Agent gościa QEMU
807 Requires(post,preun,postun): systemd-units >= 38
808 Requires: glib2 >= 1:2.64
809 Requires: liburing >= 0.3
810 Requires: systemd-units >= 38
811 Obsoletes: qemu-kvm-guest-agent < 2
812 Conflicts: SysVinit < 2.96-2
814 %description guest-agent
815 QEMU is a generic and open source processor emulator which achieves a
816 good emulation speed by using dynamic translation.
818 This package provides an agent to run inside guests, which
819 communicates with the host over a virtio-serial channel named
820 "org.qemu.guest_agent.0".
822 This package does not need to be installed on the host OS.
824 %description guest-agent -l pl.UTF-8
825 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
826 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
828 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
829 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
830 "org.qemu.guest_agent.0".
832 Ten pakiet nie musi być zainstalowany w systemie hosta.
834 %package module-audio-jack
835 Summary: QEMU module for JACK audio output
836 Summary(pl.UTF-8): Moduł QEMU z wyjściem dźwięku JACK
837 Group: Applications/Emulators
838 Requires: %{name}-common = %{version}-%{release}
840 %description module-audio-jack
841 QEMU module for JACK audio output.
843 %description module-audio-jack -l pl.UTF-8
844 Moduł QEMU z wyjściem dźwięku JACK.
846 %package module-block-curl
847 Summary: QEMU module for 'curl' block devices
848 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
849 Group: Applications/Emulators
850 Requires: %{name}-common = %{version}-%{release}
851 Requires: curl-libs >= 7.29.0
853 %description module-block-curl
854 QEMU block device support for CURL. It allows to access remote disks
855 over http, https, ftp and other transports provided by the CURL
858 %description module-block-curl -l pl.UTF-8
859 Moduł QEMU dla urządeń blokowych CURL. Pozwala na dostęp do zdalnych
860 dysków poprzez http, https, ftp i inne protokoły obsługiwane przez
863 %package module-block-gluster
864 Summary: QEMU module for 'gluster' block devices
865 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
866 Group: Applications/Emulators
867 Requires: %{name}-common = %{version}-%{release}
868 Requires: glusterfs-libs >= 6
870 %description module-block-gluster
871 QEMU block device support for remote Gluster storage.
873 %description module-block-gluster -l pl.UTF-8
874 Moduł urządzeń blokowych QEMU do dostępu do zdalnej przestrzeni
877 %package module-block-iscsi
878 Summary: QEMU module for 'iscsi' block devices
879 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
880 Group: Applications/Emulators
881 Requires: %{name}-common = %{version}-%{release}
882 Requires: libiscsi >= 1.9.0
884 %description module-block-iscsi
885 QEMU block device support for iSCSI volumes.
887 %description module-block-iscsi -l pl.UTF-8
888 Moduł urządzeń blokowych QEMU do dostępu do wolumenów iSCSI.
890 %package module-block-nfs
891 Summary: QEMU module for 'nfs' block devices
892 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'nfs'
893 Group: Applications/Emulators
894 Requires: %{name}-common = %{version}-%{release}
895 Requires: libnfs >= 1.9.3
897 %description module-block-nfs
898 QEMU block device support for remote NFS storage.
900 %description module-block-nfs -l pl.UTF-8
901 Moduł urządzeń blokowych QEMU do dostępu do zdalnej przestrzeni po
904 %package module-block-rbd
905 Summary: QEMU module for 'rbd' block devices
906 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
907 Group: Applications/Emulators
908 Requires: %{name}-common = %{version}-%{release}
909 Requires: ceph-libs >= 12
911 %description module-block-rbd
912 QEMU block device support for Ceph/RBD volumes.
914 %description module-block-rbd -l pl.UTF-8
915 Moduł urządzeń blokowych QEMU do wolumenów Ceph/RBD.
917 %package module-block-ssh
918 Summary: QEMU module for 'ssh' block devices
919 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
920 Group: Applications/Emulators
921 Requires: %{name}-common = %{version}-%{release}
922 Requires: libssh >= 0.8.7
924 %description module-block-ssh
925 QEMU block device support for accessing remote disks using the Secure
926 Shell (SSH) protocol.
928 %description module-block-ssh -l pl.UTF-8
929 Moduł urządzeń blokowych QEMU do dostępu do zdalnych dysków poprzez
930 protokół SSH (Secure Shell).
932 %package module-ui-dbus
933 Summary: QEMU DBus UI driver
934 Summary(pl.UTF-8): Sterownik interfejsu użytkownika DBus dla QEMU
935 Group: Applications/Emulators
936 Requires: %{name}-common = %{version}-%{release}
938 %description module-ui-dbus
941 %description module-ui-dbus -l pl.UTF-8
942 Sterownik interfejsu użytkownika DBus dla QEMU.
944 %package module-ui-gtk
945 Summary: QEMU GTK UI driver
946 Summary(pl.UTF-8): Sterownik interfejsu użytkownika GTK dla QEMU
947 Group: Applications/Emulators
948 Requires: %{name}-common = %{version}-%{release}
950 %description module-ui-gtk
953 %description module-ui-gtk -l pl.UTF-8
954 Sterownik interfejsu użytkownika GTK dla QEMU.
956 %package module-ui-sdl
957 Summary: QEMU SDL UI and audio driver
958 Summary(pl.UTF-8): Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU
959 Group: Applications/Emulators
960 Requires: %{name}-common = %{version}-%{release}
962 %description module-ui-sdl
963 QEMU SDL UI and audio driver.
965 %description module-ui-sdl -l pl.UTF-8
966 Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU.
968 %package -n systemtap-qemu
969 Summary: systemtap/dtrace probes for QEMU
970 Summary(pl.UTF-8): Sondy systemtap/dtrace dla QEMU
971 Group: Development/Tools
972 Requires: %{name}-common = %{version}-%{release}
973 Requires: systemtap-client
975 %description -n systemtap-qemu
976 systemtap/dtrace probes for QEMU.
978 %description -n systemtap-qemu -l pl.UTF-8
979 Sondy systemtap/dtrace dla QEMU.
981 %package -n libvfio-user
982 Summary: vfio-user library
983 Summary(pl.UTF-8): Biblioteka vfio-user
985 Requires: json-c >= 0.11
987 %description -n libvfio-user
988 vfio-user is a framework that allows implementing PCI devices in
989 userspace. Clients (such as qemu) talk the vfio-user protocol over a
990 UNIX socket to a server. This library, libvfio-user, provides an API
991 for implementing such servers.
993 %description -n libvfio-user -l pl.UTF-8
994 vfio-user to szkielet pozwalający implementować urządzenia PCI w
995 przestrzeni użytkownika. Klienci (jak qemu) komunikują się z serwerem
996 protokołem vfio-user przez gniazdo uniksowe.
998 %package -n libvfio-user-devel
999 Summary: Header files for vfio-user library
1000 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki vfio-user
1001 Group: Development/Libraries
1002 Requires: libvfio-user = %{version}-%{release}
1004 %description -n libvfio-user-devel
1005 Header files for vfio-user library.
1007 %description -n libvfio-user-devel -l pl.UTF-8
1008 Pliki nagłówkowe biblioteki vfio-user.
1021 %{__sed} -i '1s,/usr/bin/env python3,%{__python3},' scripts/qemu-trace-stap
1023 %if %{with systemtap}
1024 # don't require stap binary during build
1025 %{__sed} -i -e "s/stap.found()/true/" meson.build docs/meson.build scripts/meson.build
1034 install -d build-$target
1038 --prefix=%{_prefix} \
1039 --libdir=%{_libdir} \
1040 --libexecdir=%{_libexecdir} \
1041 --sysconfdir=%{_sysconfdir} \
1042 --localstatedir=%{_localstatedir} \
1043 --interp-prefix=%{_libdir}/qemu/lib-%%M \
1046 --host-cc="%{__cc}" \
1048 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
1054 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
1060 --extra-cflags="%{rpmcflags} %{rpmcppflags}" \
1061 --extra-ldflags="%{rpmldflags} -Wl,-z,relro -Wl,-z,now" \
1062 --audio-drv-list="alsa,jack%{?with_oss:,oss}%{?with_pulseaudio:,pa}%{?with_sdl:,sdl}" \
1064 %{__enable_disable brlapi} \
1065 %{__enable_disable canokey} \
1072 %{__enable_disable glusterfs} \
1073 %{!?with_gtk3:--disable-gtk} \
1074 %{__enable_disable iscsi libiscsi} \
1075 %{__enable_disable libnfs} \
1076 %{__enable_disable pmem libpmem} \
1078 %{__enable_disable multipath mpath} \
1082 %{__enable_disable ceph rbd} \
1083 %{__enable_disable rdma} \
1084 %{__enable_disable sdl} \
1085 %{__enable_disable seccomp} \
1087 %{__enable_disable spice} \
1088 %{__enable_disable smartcard} \
1089 %{__enable_disable snappy} \
1091 %{__enable_disable usbredir usb-redir} \
1093 %{?with_vfio_user:--enable-vfio-user-server} \
1094 %{__enable_disable virgl virglrenderer} \
1098 %{!?with_vte:--disable-vte} \
1099 %{__enable_disable xen} \
1100 %{__enable_disable xkbcommon}
1102 %if %{with user_static}
1107 --disable-capstone \
1113 --disable-guest-agent \
1114 --disable-guest-agent-msi \
1116 --disable-linux-io-uring \
1126 --disable-xkbcommon \
1131 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
1134 rm -rf $RPM_BUILD_ROOT
1135 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
1136 $RPM_BUILD_ROOT/etc/{qemu,sysconfig,modules-load.d,rc.d/init.d,logrotate.d} \
1137 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,/lib/udev/rules.d,%{_sbindir}}
1139 %if %{with user_static}
1140 %{__make} -C build-static install \
1141 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
1142 DESTDIR=$RPM_BUILD_ROOT
1144 # Give all QEMU user emulators a -static suffix
1145 for src in $RPM_BUILD_ROOT%{_bindir}/qemu-*; do
1146 %{__mv} $src $src-static
1151 %{__make} -C build-dynamic install \
1152 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
1153 DESTDIR=$RPM_BUILD_ROOT
1155 # let rpm generate dependencies
1156 chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/*.so
1158 echo "#allow br0" > $RPM_BUILD_ROOT/etc/qemu/bridge.conf
1160 install -d $RPM_BUILD_ROOT%{_sysconfdir}
1161 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
1166 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
1168 %ifarch %{ix86} %{x8664} x32
1169 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
1170 install -p %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/rules.d
1173 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
1174 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
1175 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
1177 install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
1178 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
1179 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
1181 # For the qemu-guest-agent subpackage install the systemd
1182 # service and udev rules.
1183 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
1184 install -p %{SOURCE12} $RPM_BUILD_ROOT/lib/udev/rules.d
1186 install -p %{SOURCE13} $RPM_BUILD_ROOT/etc/rc.d/init.d/qemu-ga
1187 install -p %{SOURCE14} $RPM_BUILD_ROOT/etc/logrotate.d/qemu-ga
1189 cp -p %{SOURCE15} %{SOURCE16} $RPM_BUILD_ROOT%{systemdunitdir}
1193 %ifnarch %{ix86} %{x8664} x32
1207 microblaze microblazeel \
1223 %ifnarch ppc ppc64 ppc64le
1226 %ifnarch sparc sparc64
1227 sparc sparc32plus sparc64 \
1238 if [ -n "$BINFMT_CPUS" ]; then
1239 for cpu in $BINFMT_CPUS; do
1240 bash ./scripts/qemu-binfmt-conf.sh --systemd "$cpu" --exportdir $RPM_BUILD_ROOT/usr/lib/binfmt.d --qemu-path %{_bindir}
1242 for i in $RPM_BUILD_ROOT/usr/lib/binfmt.d/*.conf; do
1243 %{__mv} $i ${i%.conf}-dynamic.conf
1246 %if %{with user_static}
1247 for regularfmt in $RPM_BUILD_ROOT/usr/lib/binfmt.d/*; do
1248 staticfmt="${regularfmt%\-dynamic.conf}-static.conf"
1249 cat $regularfmt | tr -d '\n' | sed "s/:$/-static:F/" > $staticfmt
1254 %if %{with system_seabios}
1255 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
1256 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
1260 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
1261 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
1267 for t in client server; do
1268 cp -p build-dynamic/contrib/ivshmem-$t/ivshmem-$t $RPM_BUILD_ROOT%{_bindir}
1272 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/accel-qtest-*.so
1273 # Windows installer icon, not used
1274 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/qemu-nsis.bmp
1276 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/edk2-licenses.txt
1278 # cleanup Sphinx files
1279 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/{.buildinfo,objects.inv}
1282 rm -rf $RPM_BUILD_ROOT
1285 %groupadd -g 160 kvm
1286 %groupadd -g 276 qemu
1287 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
1290 %systemd_post ksm.service
1291 %systemd_post ksmtuned.service
1294 %systemd_preun ksm.service
1295 %systemd_preun ksmtuned.service
1298 if [ "$1" = "0" ]; then
1305 %triggerpostun common -- qemu-common < 1.6.1-4
1306 %systemd_trigger ksm.service
1307 %systemd_trigger ksmtuned.service
1308 %systemd_trigger qemu-pr-helper.service
1311 %systemd_post systemd-binfmt.service
1314 %systemd_post systemd-binfmt.service
1317 %systemd_post systemd-binfmt.service
1320 %systemd_post systemd-binfmt.service
1323 /sbin/chkconfig --add qemu-ga
1324 %service qemu-ga restart "qemu-ga"
1328 if [ "$1" = "0" ]; then
1329 %service qemu-ga stop
1330 /sbin/chkconfig --del qemu-ga
1332 %systemd_preun qemu-guest-agent.service
1337 %post -n libvfio-user -p /sbin/ldconfig
1338 %postun -n libvfio-user -p /sbin/ldconfig
1341 %defattr(644,root,root,755)
1344 %defattr(644,root,root,755)
1345 %{_includedir}/qemu-plugin.h
1347 %files common -f %{name}.lang
1348 %defattr(644,root,root,755)
1349 %doc LICENSE README.rst pc-bios/edk2-licenses.txt
1350 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
1351 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
1352 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
1353 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
1355 %attr(640,root,qemu) %config(noreplace) %verify(not md5 mtime size) /etc/qemu/bridge.conf
1356 %{systemdunitdir}/ksm.service
1357 %{systemdunitdir}/ksmtuned.service
1358 %{systemdunitdir}/qemu-pr-helper.service
1359 %{systemdunitdir}/qemu-pr-helper.socket
1360 %attr(755,root,root) %{_bindir}/elf2dmp
1361 %attr(755,root,root) %{_bindir}/ivshmem-client
1362 %attr(755,root,root) %{_bindir}/ivshmem-server
1363 %attr(755,root,root) %{_bindir}/qemu-edid
1364 %if %{with xkbcommon}
1365 %attr(755,root,root) %{_bindir}/qemu-keymap
1367 %attr(755,root,root) %{_bindir}/qemu-nbd
1368 %attr(755,root,root) %{_bindir}/qemu-pr-helper
1369 %attr(755,root,root) %{_bindir}/qemu-storage-daemon
1370 %attr(755,root,root) %{_sbindir}/ksmctl
1371 %attr(755,root,root) %{_sbindir}/ksmtuned
1372 %attr(755,root,root) %{_libexecdir}/qemu-bridge-helper
1374 %attr(755,root,root) %{_libexecdir}/vhost-user-gpu
1376 %attr(755,root,root) %{_libexecdir}/virtfs-proxy-helper
1377 %attr(755,root,root) %{_libexecdir}/virtiofsd
1378 %dir %{_libdir}/%{name}
1379 # modules without too many external dependencies
1380 %attr(755,root,root) %{_libdir}/%{name}/block-blkio.so
1381 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-bz2.so
1382 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-lzfse.so
1383 %attr(755,root,root) %{_libdir}/%{name}/accel-tcg-i386.so
1384 %attr(755,root,root) %{_libdir}/%{name}/accel-tcg-x86_64.so
1385 %attr(755,root,root) %{_libdir}/%{name}/audio-alsa.so
1387 %attr(755,root,root) %{_libdir}/%{name}/audio-oss.so
1389 %if %{with pulseaudio}
1390 %attr(755,root,root) %{_libdir}/%{name}/audio-pa.so
1393 %attr(755,root,root) %{_libdir}/%{name}/chardev-baum.so
1395 %attr(755,root,root) %{_libdir}/%{name}/hw-display-qxl.so
1396 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu.so
1397 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-gl.so
1398 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-pci.so
1399 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-pci-gl.so
1400 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-vga.so
1401 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-vga-gl.so
1402 %attr(755,root,root) %{_libdir}/%{name}/hw-s390x-virtio-gpu-ccw.so
1403 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-host.so
1404 %attr(755,root,root) %{_libdir}/%{name}/ui-curses.so
1405 %if %{with usbredir}
1406 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-redirect.so
1408 %if %{with smartcard}
1409 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-smartcard.so
1412 %attr(755,root,root) %{_libdir}/%{name}/ui-egl-headless.so
1413 %attr(755,root,root) %{_libdir}/%{name}/ui-opengl.so
1416 %attr(755,root,root) %{_libdir}/%{name}/audio-spice.so
1417 %attr(755,root,root) %{_libdir}/%{name}/chardev-spice.so
1418 %attr(755,root,root) %{_libdir}/%{name}/ui-spice-app.so
1419 %attr(755,root,root) %{_libdir}/%{name}/ui-spice-core.so
1421 %dir %{_datadir}/%{name}
1422 %dir %{_datadir}/%{name}/firmware
1423 %{_datadir}/%{name}/keymaps
1424 %{_datadir}/%{name}/trace-events-all
1425 %dir %{_datadir}/%{name}/vhost-user
1427 %{_datadir}/%{name}/vhost-user/50-qemu-gpu.json
1429 %{_datadir}/%{name}/vhost-user/50-qemu-virtiofsd.json
1430 %{_desktopdir}/qemu.desktop
1431 %{_iconsdir}/hicolor/*x*/apps/qemu.png
1432 %{_iconsdir}/hicolor/32x32/apps/qemu.bmp
1433 %{_iconsdir}/hicolor/scalable/apps/qemu.svg
1434 %{_mandir}/man1/qemu.1*
1435 %{_mandir}/man1/qemu-storage-daemon.1*
1436 %{_mandir}/man1/virtfs-proxy-helper.1*
1437 %{_mandir}/man1/virtiofsd.1*
1438 %{_mandir}/man7/qemu-block-drivers.7*
1439 %{_mandir}/man7/qemu-cpu-models.7*
1440 %{_mandir}/man7/qemu-qmp-ref.7*
1441 %{_mandir}/man7/qemu-storage-daemon-qmp-ref.7*
1442 %{_mandir}/man8/qemu-nbd.8*
1443 %{_mandir}/man8/qemu-pr-helper.8*
1447 %defattr(644,root,root,755)
1448 %attr(755,root,root) %{_bindir}/qemu-img
1449 %{_mandir}/man1/qemu-img.1*
1452 %defattr(644,root,root,755)
1453 /usr/lib/binfmt.d/qemu-*-dynamic.conf
1454 %attr(755,root,root) %{_bindir}/qemu-aarch64
1455 %attr(755,root,root) %{_bindir}/qemu-aarch64_be
1456 %attr(755,root,root) %{_bindir}/qemu-alpha
1457 %attr(755,root,root) %{_bindir}/qemu-arm
1458 %attr(755,root,root) %{_bindir}/qemu-armeb
1459 %attr(755,root,root) %{_bindir}/qemu-cris
1460 %attr(755,root,root) %{_bindir}/qemu-hexagon
1461 %attr(755,root,root) %{_bindir}/qemu-hppa
1462 %attr(755,root,root) %{_bindir}/qemu-i386
1463 %attr(755,root,root) %{_bindir}/qemu-io
1464 %attr(755,root,root) %{_bindir}/qemu-loongarch64
1465 %attr(755,root,root) %{_bindir}/qemu-m68k
1466 %attr(755,root,root) %{_bindir}/qemu-microblaze
1467 %attr(755,root,root) %{_bindir}/qemu-microblazeel
1468 %attr(755,root,root) %{_bindir}/qemu-mips
1469 %attr(755,root,root) %{_bindir}/qemu-mipsel
1470 %attr(755,root,root) %{_bindir}/qemu-mips64
1471 %attr(755,root,root) %{_bindir}/qemu-mips64el
1472 %attr(755,root,root) %{_bindir}/qemu-mipsn32
1473 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
1474 %attr(755,root,root) %{_bindir}/qemu-nios2
1475 %attr(755,root,root) %{_bindir}/qemu-or1k
1476 %attr(755,root,root) %{_bindir}/qemu-ppc
1477 %attr(755,root,root) %{_bindir}/qemu-ppc64
1478 %attr(755,root,root) %{_bindir}/qemu-ppc64le
1479 %attr(755,root,root) %{_bindir}/qemu-riscv32
1480 %attr(755,root,root) %{_bindir}/qemu-riscv64
1481 %attr(755,root,root) %{_bindir}/qemu-s390x
1482 %attr(755,root,root) %{_bindir}/qemu-sh4
1483 %attr(755,root,root) %{_bindir}/qemu-sh4eb
1484 %attr(755,root,root) %{_bindir}/qemu-sparc
1485 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
1486 %attr(755,root,root) %{_bindir}/qemu-sparc64
1487 %attr(755,root,root) %{_bindir}/qemu-x86_64
1488 %attr(755,root,root) %{_bindir}/qemu-xtensa
1489 %attr(755,root,root) %{_bindir}/qemu-xtensaeb
1491 %if %{with user_static}
1493 %defattr(644,root,root,755)
1494 /usr/lib/binfmt.d/qemu-*-static.conf
1495 %attr(755,root,root) %{_bindir}/qemu-aarch64-static
1496 %attr(755,root,root) %{_bindir}/qemu-aarch64_be-static
1497 %attr(755,root,root) %{_bindir}/qemu-alpha-static
1498 %attr(755,root,root) %{_bindir}/qemu-arm-static
1499 %attr(755,root,root) %{_bindir}/qemu-armeb-static
1500 %attr(755,root,root) %{_bindir}/qemu-cris-static
1501 %attr(755,root,root) %{_bindir}/qemu-hexagon-static
1502 %attr(755,root,root) %{_bindir}/qemu-hppa-static
1503 %attr(755,root,root) %{_bindir}/qemu-i386-static
1504 %attr(755,root,root) %{_bindir}/qemu-loongarch64-static
1505 %attr(755,root,root) %{_bindir}/qemu-m68k-static
1506 %attr(755,root,root) %{_bindir}/qemu-microblaze-static
1507 %attr(755,root,root) %{_bindir}/qemu-microblazeel-static
1508 %attr(755,root,root) %{_bindir}/qemu-mips-static
1509 %attr(755,root,root) %{_bindir}/qemu-mips64-static
1510 %attr(755,root,root) %{_bindir}/qemu-mips64el-static
1511 %attr(755,root,root) %{_bindir}/qemu-mipsel-static
1512 %attr(755,root,root) %{_bindir}/qemu-mipsn32-static
1513 %attr(755,root,root) %{_bindir}/qemu-mipsn32el-static
1514 %attr(755,root,root) %{_bindir}/qemu-nios2-static
1515 %attr(755,root,root) %{_bindir}/qemu-or1k-static
1516 %attr(755,root,root) %{_bindir}/qemu-ppc-static
1517 %attr(755,root,root) %{_bindir}/qemu-ppc64-static
1518 %attr(755,root,root) %{_bindir}/qemu-ppc64le-static
1519 %attr(755,root,root) %{_bindir}/qemu-riscv32-static
1520 %attr(755,root,root) %{_bindir}/qemu-riscv64-static
1521 %attr(755,root,root) %{_bindir}/qemu-s390x-static
1522 %attr(755,root,root) %{_bindir}/qemu-sh4-static
1523 %attr(755,root,root) %{_bindir}/qemu-sh4eb-static
1524 %attr(755,root,root) %{_bindir}/qemu-sparc-static
1525 %attr(755,root,root) %{_bindir}/qemu-sparc32plus-static
1526 %attr(755,root,root) %{_bindir}/qemu-sparc64-static
1527 %attr(755,root,root) %{_bindir}/qemu-x86_64-static
1528 %attr(755,root,root) %{_bindir}/qemu-xtensa-static
1529 %attr(755,root,root) %{_bindir}/qemu-xtensaeb-static
1530 %{?with_systemtap:%attr(755,root,root) %{_bindir}/qemu-trace-stap-static}
1533 %files system-aarch64
1534 %defattr(644,root,root,755)
1535 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1536 %{_datadir}/%{name}/edk2-aarch64-code.fd
1537 %{_datadir}/%{name}/firmware/60-edk2-aarch64.json
1540 %defattr(644,root,root,755)
1541 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1542 %{_datadir}/%{name}/palcode-clipper
1545 %defattr(644,root,root,755)
1546 %attr(755,root,root) %{_bindir}/qemu-system-arm
1547 %{_datadir}/%{name}/edk2-arm-code.fd
1548 %{_datadir}/%{name}/edk2-arm-vars.fd
1549 %{_datadir}/%{name}/firmware/60-edk2-arm.json
1550 %{_datadir}/%{name}/npcm7xx_bootrom.bin
1553 %defattr(644,root,root,755)
1554 %attr(755,root,root) %{_bindir}/qemu-system-avr
1557 %defattr(644,root,root,755)
1558 %attr(755,root,root) %{_bindir}/qemu-system-cris
1561 %defattr(644,root,root,755)
1562 %attr(755,root,root) %{_bindir}/qemu-system-hppa
1563 %{_datadir}/%{name}/hppa-firmware.img
1566 %defattr(644,root,root,755)
1567 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1569 %files system-microblaze
1570 %defattr(644,root,root,755)
1571 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1572 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1575 %defattr(644,root,root,755)
1576 %attr(755,root,root) %{_bindir}/qemu-system-loongarch64
1577 %attr(755,root,root) %{_bindir}/qemu-system-mips
1578 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1579 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1580 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1583 %defattr(644,root,root,755)
1584 %attr(755,root,root) %{_bindir}/qemu-system-nios2
1587 %defattr(644,root,root,755)
1588 %attr(755,root,root) %{_bindir}/qemu-system-or1k
1591 %defattr(644,root,root,755)
1592 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1593 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1594 %{_datadir}/%{name}/bamboo.dtb
1595 %{_datadir}/%{name}/canyonlands.dtb
1596 %{_datadir}/%{name}/openbios-ppc
1597 %{_datadir}/%{name}/petalogix-ml605.dtb
1598 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
1599 %{_datadir}/%{name}/qemu_vga.ndrv
1600 %{_datadir}/%{name}/skiboot.lid
1601 %{_datadir}/%{name}/slof.bin
1602 %{_datadir}/%{name}/u-boot.e500
1603 %{_datadir}/%{name}/u-boot-sam460-20100605.bin
1604 %{_datadir}/%{name}/vof.bin
1605 %{_datadir}/%{name}/vof-nvram.bin
1607 %files system-riscv32
1608 %defattr(644,root,root,755)
1609 %attr(755,root,root) %{_bindir}/qemu-system-riscv32
1610 %{_datadir}/%{name}/opensbi-riscv32-generic-fw_dynamic.bin
1612 %files system-riscv64
1613 %defattr(644,root,root,755)
1614 %attr(755,root,root) %{_bindir}/qemu-system-riscv64
1615 %{_datadir}/%{name}/opensbi-riscv64-generic-fw_dynamic.bin
1618 %defattr(644,root,root,755)
1619 %attr(755,root,root) %{_bindir}/qemu-system-rx
1622 %defattr(644,root,root,755)
1623 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1624 %{_datadir}/%{name}/s390-ccw.img
1625 %{_datadir}/%{name}/s390-netboot.img
1628 %defattr(644,root,root,755)
1629 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1630 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1633 %defattr(644,root,root,755)
1634 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1635 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1636 %{_datadir}/%{name}/QEMU,cgthree.bin
1637 %{_datadir}/%{name}/QEMU,tcx.bin
1638 %{_datadir}/%{name}/openbios-sparc32
1639 %{_datadir}/%{name}/openbios-sparc64
1641 %files system-tricore
1642 %defattr(644,root,root,755)
1643 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1646 %defattr(644,root,root,755)
1647 %attr(755,root,root) %{_bindir}/qemu-system-i386
1648 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1649 %ifarch %{ix86} %{x8664} x32
1650 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1651 /lib/udev/rules.d/80-kvm.rules
1653 %{_datadir}/%{name}/bios.bin
1654 %{_datadir}/%{name}/bios-256k.bin
1655 %{_datadir}/%{name}/bios-microvm.bin
1656 %{_datadir}/%{name}/edk2-i386-code.fd
1657 %{_datadir}/%{name}/edk2-i386-secure-code.fd
1658 %{_datadir}/%{name}/edk2-i386-vars.fd
1659 %{_datadir}/%{name}/edk2-x86_64-code.fd
1660 %{_datadir}/%{name}/edk2-x86_64-secure-code.fd
1661 %{_datadir}/%{name}/efi-e1000e.rom
1662 %{_datadir}/%{name}/efi-e1000.rom
1663 %{_datadir}/%{name}/efi-eepro100.rom
1664 %{_datadir}/%{name}/efi-ne2k_pci.rom
1665 %{_datadir}/%{name}/efi-pcnet.rom
1666 %{_datadir}/%{name}/efi-rtl8139.rom
1667 %{_datadir}/%{name}/efi-virtio.rom
1668 %{_datadir}/%{name}/efi-vmxnet3.rom
1669 %{_datadir}/%{name}/kvmvapic.bin
1670 %{_datadir}/%{name}/linuxboot.bin
1671 %{_datadir}/%{name}/linuxboot_dma.bin
1672 %{_datadir}/%{name}/multiboot.bin
1673 %{_datadir}/%{name}/multiboot_dma.bin
1674 %{_datadir}/%{name}/pvh.bin
1675 %{_datadir}/%{name}/pxe-e1000.rom
1676 %{_datadir}/%{name}/pxe-eepro100.rom
1677 %{_datadir}/%{name}/pxe-ne2k_pci.rom
1678 %{_datadir}/%{name}/pxe-pcnet.rom
1679 %{_datadir}/%{name}/pxe-rtl8139.rom
1680 %{_datadir}/%{name}/pxe-virtio.rom
1681 %{_datadir}/%{name}/qboot.rom
1682 %{_datadir}/%{name}/sgabios.bin
1683 %{_datadir}/%{name}/vgabios.bin
1684 %{_datadir}/%{name}/vgabios-ati.bin
1685 %{_datadir}/%{name}/vgabios-bochs-display.bin
1686 %{_datadir}/%{name}/vgabios-cirrus.bin
1687 %{_datadir}/%{name}/vgabios-qxl.bin
1688 %{_datadir}/%{name}/vgabios-ramfb.bin
1689 %{_datadir}/%{name}/vgabios-stdvga.bin
1690 %{_datadir}/%{name}/vgabios-virtio.bin
1691 %{_datadir}/%{name}/vgabios-vmware.bin
1692 %{_datadir}/%{name}/firmware/50-edk2-i386-secure.json
1693 %{_datadir}/%{name}/firmware/50-edk2-x86_64-secure.json
1694 %{_datadir}/%{name}/firmware/60-edk2-i386.json
1695 %{_datadir}/%{name}/firmware/60-edk2-x86_64.json
1697 %files system-xtensa
1698 %defattr(644,root,root,755)
1699 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1700 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1703 %defattr(644,root,root,755)
1704 %attr(755,root,root) %{_bindir}/qemu-ga
1705 /lib/udev/rules.d/99-qemu-guest-agent.rules
1706 %{systemdunitdir}/qemu-guest-agent.service
1707 %attr(754,root,root) /etc/rc.d/init.d/qemu-ga
1708 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/qemu-ga
1709 %{_mandir}/man7/qemu-ga-ref.7*
1710 %{_mandir}/man8/qemu-ga.8*
1712 %files module-audio-jack
1713 %defattr(644,root,root,755)
1714 %attr(755,root,root) %{_libdir}/%{name}/audio-jack.so
1716 %files module-block-curl
1717 %defattr(644,root,root,755)
1718 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1720 %if %{with glusterfs}
1721 %files module-block-gluster
1722 %defattr(644,root,root,755)
1723 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1727 %files module-block-iscsi
1728 %defattr(644,root,root,755)
1729 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1733 %files module-block-nfs
1734 %defattr(644,root,root,755)
1735 %attr(755,root,root) %{_libdir}/%{name}/block-nfs.so
1739 %files module-block-rbd
1740 %defattr(644,root,root,755)
1741 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1744 %files module-block-ssh
1745 %defattr(644,root,root,755)
1746 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so
1748 %files module-ui-dbus
1749 %defattr(644,root,root,755)
1750 %attr(755,root,root) %{_libdir}/%{name}/audio-dbus.so
1751 %attr(755,root,root) %{_libdir}/%{name}/ui-dbus.so
1754 %files module-ui-gtk
1755 %defattr(644,root,root,755)
1756 %attr(755,root,root) %{_libdir}/%{name}/ui-gtk.so
1760 %files module-ui-sdl
1761 %defattr(644,root,root,755)
1762 %attr(755,root,root) %{_libdir}/%{name}/audio-sdl.so
1763 %attr(755,root,root) %{_libdir}/%{name}/ui-sdl.so
1766 %if %{with systemtap}
1767 %files -n systemtap-qemu
1768 %defattr(644,root,root,755)
1769 %attr(755,root,root) %{_bindir}/qemu-trace-stap
1770 %{_datadir}/systemtap/tapset/qemu-*.stp
1771 %{_mandir}/man1/qemu-trace-stap.1*
1774 %if %{with vfio_user}
1775 %files -n libvfio-user
1776 %defattr(644,root,root,755)
1777 %attr(755,root,root) %{_libdir}/libvfio-user.so.*.*.*
1778 %attr(755,root,root) %ghost %{_libdir}/libvfio-user.so.0
1780 %files -n libvfio-user-devel
1781 %defattr(644,root,root,755)
1782 %attr(755,root,root) %{_libdir}/libvfio-user.so
1783 %{_includedir}/vfio-user