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: c803c9a643131013bef6c3b9b541c5a4
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 Patch9: %{name}-capstone.patch
79 URL: https://www.qemu.org/
80 %{?with_opengl:BuildRequires: Mesa-libgbm-devel}
81 %{?with_opengl:BuildRequires: OpenGL-GLX-devel}
82 %{?with_opengl:BuildRequires: OpenGL-devel}
83 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
84 %{?with_sdl:BuildRequires: SDL2_image-devel >= 2.0}
85 BuildRequires: alsa-lib-devel
87 %{?with_brlapi:BuildRequires: brlapi-devel}
88 BuildRequires: bzip2-devel
89 %{?with_canokey:BuildRequires: canokey-qemu-devel}
90 BuildRequires: capstone-devel >= 4.0
91 %{?with_ceph:BuildRequires: ceph-devel >= 12}
92 BuildRequires: curl-devel >= 7.29.0
93 BuildRequires: cyrus-sasl-devel >= 2
94 BuildRequires: daxctl-devel >= 57
96 BuildRequires: gcc >= 6:7.4
97 BuildRequires: gettext-tools
98 BuildRequires: glib2-devel >= 1:2.64
99 # minimal is 3.4 but new features are used up to 6
100 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 6}
101 BuildRequires: gnutls-devel >= 3.6.14
102 %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.22.0}
103 BuildRequires: jack-audio-connection-kit-devel
104 %{?with_vfio_user:BuildRequires: json-c-devel >= 0.11}
106 #BuildRequires: keyutils-devel
107 BuildRequires: libaio-devel
108 BuildRequires: libbpf-devel
109 %{?with_smartcard:BuildRequires: libcacard-devel >= 2.5.1}
110 BuildRequires: libcap-ng-devel
111 BuildRequires: libdrm-devel
112 %{?with_opengl:BuildRequires: libepoxy-devel}
113 BuildRequires: libfdt-devel >= 1.5.1
114 BuildRequires: libfuse3-devel >= 3.8
115 %{?with_rdma:BuildRequires: libibverbs-devel}
116 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
117 %{?with_rdma:BuildRequires: libibumad-devel}
118 BuildRequires: libjpeg-devel
119 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
120 BuildRequires: libpng-devel >= 2:1.6.34
121 %{?with_rdma:BuildRequires: librdmacm-devel}
122 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.3.0}
123 BuildRequires: libselinux-devel
124 BuildRequires: libssh-devel >= 0.8.7
125 BuildRequires: libslirp-devel >= 4.7
126 BuildRequires: libstdc++-devel >= 6:4.7
128 #BuildRequires: libtasn1-devel
129 BuildRequires: libu2f-emu-devel
130 BuildRequires: libusb-devel >= 1.0.22
131 BuildRequires: liburing-devel >= 0.3
132 BuildRequires: libuuid-devel
133 BuildRequires: libxml2-devel >= 2.0
134 %{?with_lttng:BuildRequires: lttng-ust-devel >= 2.1}
135 BuildRequires: lzfse-devel
136 BuildRequires: lzo-devel >= 2
137 BuildRequires: meson >= 0.61.5
138 %{?with_multipath:BuildRequires: multipath-tools-devel}
139 BuildRequires: ncurses-devel
140 # also libgcrypt-devel >= 1.8 possible, but gnutls already pulls nettle
141 BuildRequires: nettle-devel >= 3.4
142 BuildRequires: ninja >= 1.5
143 %{?with_smartcard:BuildRequires: nss-devel >= 1:3.12.8}
144 BuildRequires: numactl-devel
145 BuildRequires: pam-devel
146 BuildRequires: perl-Encode
147 BuildRequires: perl-tools-pod
148 BuildRequires: pixman-devel >= 0.21.8
149 BuildRequires: pkgconfig
150 %{?with_pmem:BuildRequires: pmdk-devel}
151 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
152 BuildRequires: python3 >= 1:3.7
153 BuildRequires: python3-sphinx_rtd_theme
154 BuildRequires: rpm-build >= 4.6
155 BuildRequires: rpmbuild(macros) >= 1.644
156 %{?with_system_seabios:BuildRequires: seabios}
157 BuildRequires: sed >= 4.0
158 %{?with_snappy:BuildRequires: snappy-devel}
159 BuildRequires: sphinx-pdg
161 BuildRequires: spice-protocol >= 0.14.0
162 BuildRequires: spice-server-devel >= 0.14.0
164 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
165 BuildRequires: tar >= 1:1.22
166 BuildRequires: texi2html
167 BuildRequires: texinfo
168 %{?with_multipath:BuildRequires: udev-devel}
169 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
170 %{?with_lttng:BuildRequires: userspace-rcu-devel}
171 BuildRequires: vde2-devel
173 %{?with_virgl:BuildRequires: virglrenderer-devel}
174 %{?with_vte:BuildRequires: vte-devel >= 0.32.0}
175 # xencontrol xenstore xenguest xenforeignmemory xengnttab xenevtchn xendevicemodel; xentoolcore for xen 4.10+
176 # min version is 4.2, more features up to 4.11
177 %{?with_xen:BuildRequires: xen-devel >= 4.11}
178 BuildRequires: xfsprogs-devel
179 %if %{with xkbcommon}
180 BuildRequires: xkeyboard-config
181 BuildRequires: xorg-lib-libxkbcommon-devel
183 BuildRequires: xorg-lib-libX11-devel
185 BuildRequires: zlib-devel
186 BuildRequires: zstd-devel >= 1.4.0
187 %if %{with user_static}
188 BuildRequires: glib2-static >= 1:2.74
189 BuildRequires: glibc-static
190 BuildRequires: libstdc++-static >= 6:4.7
191 BuildRequires: pcre2-8-static >= 10.32
192 BuildRequires: zlib-static
194 Requires: %{name}-img = %{version}-%{release}
195 Requires: %{name}-system-aarch64 = %{version}-%{release}
196 Requires: %{name}-system-alpha = %{version}-%{release}
197 Requires: %{name}-system-arm = %{version}-%{release}
198 Requires: %{name}-system-avr = %{version}-%{release}
199 Requires: %{name}-system-cris = %{version}-%{release}
200 Requires: %{name}-system-hppa = %{version}-%{release}
201 Requires: %{name}-system-m68k = %{version}-%{release}
202 Requires: %{name}-system-microblaze = %{version}-%{release}
203 Requires: %{name}-system-mips = %{version}-%{release}
204 Requires: %{name}-system-nios2 = %{version}-%{release}
205 Requires: %{name}-system-or1k = %{version}-%{release}
206 Requires: %{name}-system-ppc = %{version}-%{release}
207 Requires: %{name}-system-riscv32 = %{version}-%{release}
208 Requires: %{name}-system-riscv64 = %{version}-%{release}
209 Requires: %{name}-system-rx = %{version}-%{release}
210 Requires: %{name}-system-s390x = %{version}-%{release}
211 Requires: %{name}-system-sh4 = %{version}-%{release}
212 Requires: %{name}-system-sparc = %{version}-%{release}
213 Requires: %{name}-system-tricore = %{version}-%{release}
214 Requires: %{name}-system-x86 = %{version}-%{release}
215 Requires: %{name}-system-xtensa = %{version}-%{release}
216 Requires: %{name}-user = %{version}-%{release}
217 Obsoletes: qemu-kvm < 2
219 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
221 %define systempkg_req \
222 Requires: capstone >= 4.0 \
223 Requires: daxctl-libs >= 57 \
224 %{?with_smartcard:Requires: libcacard >= 2.5.1} \
225 Requires: libfdt >= 1.5.1 \
226 Requires: libfuse3 >= 3.8 \
227 %{?with_iscsi:Requires: libiscsi >= 1.9.0} \
228 Requires: libpng >= 2:1.6.34 \
229 %if %{with seccomp} \
230 Requires: libseccomp >= 2.3.0 \
232 Requires: libslirp >= 4.7 \
233 Requires: liburing >= 0.3 \
234 Requires: libusb >= 1.0.22 \
235 Requires: pixman >= 0.21.8 \
237 Requires: spice-server-libs >= 0.14.0 \
239 %if %{with usbredir} \
240 Requires: usbredir >= 0.6 \
243 # don't strip/chrpath anything in there; these are boot images, roms etc
244 %define _noautostrip .*%{_datadir}/qemu/.*
245 %define _noautochrpath .*%{_datadir}/qemu/.*
248 QEMU is a FAST! processor emulator. By using dynamic translation it
249 achieves a reasonnable speed while being easy to port on new host
250 CPUs. QEMU has two operating modes:
252 - User mode emulation. In this mode, QEMU can launch Linux processes
253 compiled for one CPU on another CPU. Linux system calls are converted
254 because of endianness and 32/64 bit mismatches. Wine (Windows
255 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
257 - Full system emulation. In this mode, QEMU emulates a full system,
258 including a processor and various peripherials. It can also be used to
259 provide virtual hosting of several virtual PC on a single server.
261 %description -l pl.UTF-8
262 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
263 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
264 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
266 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
267 procesy linuksowe skompilowane dla jednego procesora na innym
268 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
269 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
270 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
273 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
274 włączając w to procesor i różne urządzenia peryferyjne. Może być także
275 używane do wirtualnego hostowania kilku wirtualnych pecetów na
276 pojedynczym serwerze.
279 Summary: Header file for QEMU plugins development
280 Summary(pl.UTF-8): Plik nagłówkowy do tworzenia wtyczek QEMU
281 Group: Development/Libraries
285 Header file for QEMU plugins development.
287 %description devel -l pl.UTF-8
288 Plik nagłówkowy do tworzenia wtyczek QEMU.
291 Summary: QEMU common files needed by all QEMU targets
292 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
293 Group: Applications/Emulators
294 Requires(post,preun,postun): systemd-units >= 38
295 Requires(postun): /usr/sbin/groupdel
296 Requires(postun): /usr/sbin/userdel
297 Requires(pre): /bin/id
298 Requires(pre): /usr/bin/getgid
299 Requires(pre): /usr/sbin/groupadd
300 Requires(pre): /usr/sbin/useradd
301 Requires: glib2 >= 1:2.64
302 Requires: gnutls-libs >= 3.6.14
303 %{?with_gtk3:Requires: gtk+3 >= 3.22.0}
304 Requires: nettle >= 3.4
305 Requires: systemd-units >= 38
306 %{?with_vte:Requires: vte >= 0.32.0}
307 Requires: zstd >= 1.4.0
309 Provides: group(qemu)
311 Obsoletes: qemu-kvm-common < 2
312 Obsoletes: qemu-module-block-archipelago < 2.9.0
313 Obsoletes: qemu-system-lm32 < 5.2
314 Obsoletes: qemu-system-moxie < 6.1
315 Obsoletes: qemu-system-unicore32 < 5.2
316 Conflicts: qemu < 1.0-2
319 QEMU is a generic and open source processor emulator which achieves a
320 good emulation speed by using dynamic translation.
322 This package provides the common files needed by all QEMU targets.
324 %description common -l pl.UTF-8
325 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
326 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
328 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
332 Summary: QEMU command line tool for manipulating disk images
333 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
334 Group: Applications/Emulators
335 Obsoletes: qemu-kvm-img < 2
336 Conflicts: qemu < 1.0-2
339 This package provides a command line tool for manipulating disk
342 %description img -l pl.UTF-8
343 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
347 Summary: QEMU user mode emulation of qemu targets
348 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
349 Group: Applications/Emulators
350 Requires: %{name}-common = %{version}-%{release}
351 Requires(post,postun): systemd-units >= 38
352 Requires: systemd-units >= 38
353 Obsoletes: qemu-kvm-user < 2
356 QEMU is a generic and open source processor emulator which achieves a
357 good emulation speed by using dynamic translation.
359 This package provides the user mode emulation of QEMU targets.
361 %description user -l pl.UTF-8
362 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
363 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
365 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
368 Summary: QEMU user mode emulation of qemu targets static build
369 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu - wersja statyczna
370 Group: Applications/Emulators
371 Requires(post,postun): systemd-units >= 38
372 Requires: systemd-units >= 38
374 %description user-static
375 QEMU is a generic and open source processor emulator which achieves a
376 good emulation speed by using dynamic translation.
378 This package provides the user mode emulation of qemu targets built as
381 %description user-static -l pl.UTF-8
382 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
383 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
385 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU w
386 oparciu o programy wykonywalne zbudowane statycznie.
388 %package system-aarch64
389 Summary: QEMU system emulator for AArch64
390 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
391 Group: Applications/Emulators
392 Requires: %{name}-common = %{version}-%{release}
394 Obsoletes: qemu-kvm-system-aarch64 < 2
396 %description system-aarch64
397 QEMU is a generic and open source processor emulator which achieves a
398 good emulation speed by using dynamic translation.
400 This package provides the system emulator with AArch64 (ARM64) CPU.
402 %description system-aarch64 -l pl.UTF-8
403 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
404 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
406 Ten pakiet zawiera emulator systemu z procesorem AArch64 (ARM64).
408 %package system-alpha
409 Summary: QEMU system emulator for Alpha
410 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
411 Group: Applications/Emulators
412 Requires: %{name}-common = %{version}-%{release}
414 Obsoletes: qemu-kvm-system-alpha < 2
416 %description system-alpha
417 QEMU is a generic and open source processor emulator which achieves a
418 good emulation speed by using dynamic translation.
420 This package provides the system emulator with Alpha CPU.
422 %description system-alpha -l pl.UTF-8
423 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
424 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
426 Ten pakiet zawiera emulator systemu z procesorem Alpha.
429 Summary: QEMU system emulator for 32-bit ARM
430 Summary(pl.UTF-8): QEMU - emulator systemu z 32-bitowym procesorem ARM
431 Group: Applications/Emulators
432 Requires: %{name}-common = %{version}-%{release}
434 Obsoletes: qemu-kvm-system-arm < 2
436 %description system-arm
437 QEMU is a generic and open source processor emulator which achieves a
438 good emulation speed by using dynamic translation.
440 This package provides the system emulator for 32-bit ARM.
442 %description system-arm -l pl.UTF-8
443 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
444 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
446 Ten pakiet zawiera emulator systemu z 32-bitowym procesorem ARM.
449 Summary: QEMU system emulator for AVR
450 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AVR
451 Group: Applications/Emulators
452 Requires: %{name}-common = %{version}-%{release}
454 Obsoletes: qemu-kvm-system-avr < 2
456 %description system-avr
457 QEMU is a generic and open source processor emulator which achieves a
458 good emulation speed by using dynamic translation.
460 This package provides the system emulator for AVR.
462 %description system-avr -l pl.UTF-8
463 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
464 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
466 Ten pakiet zawiera emulator systemu z procesorem AVR.
469 Summary: QEMU system emulator for CRIS
470 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
471 Group: Applications/Emulators
472 Requires: %{name}-common = %{version}-%{release}
474 Obsoletes: qemu-kvm-system-cris < 2
476 %description system-cris
477 QEMU is a generic and open source processor emulator which achieves a
478 good emulation speed by using dynamic translation.
480 This package provides the system emulator with CRIS CPU.
482 %description system-cris -l pl.UTF-8
483 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
484 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
486 Ten pakiet zawiera emulator systemu z procesorem CRIS.
489 Summary: QEMU system emulator for HP/PA
490 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem HP/PA
491 Group: Applications/Emulators
492 Requires: %{name}-common = %{version}-%{release}
495 %description system-hppa
496 QEMU is a generic and open source processor emulator which achieves a
497 good emulation speed by using dynamic translation.
499 This package provides the system emulator with HP/PA (PA-RISC) CPU.
501 %description system-hppa -l pl.UTF-8
502 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
503 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
505 Ten pakiet zawiera emulator systemu z procesorem HP/PA (PA-RISC).
508 Summary: QEMU system emulator for m68k
509 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
510 Group: Applications/Emulators
511 Requires: %{name}-common = %{version}-%{release}
513 Obsoletes: qemu-kvm-system-m68k < 2
515 %description system-m68k
516 QEMU is a generic and open source processor emulator which achieves a
517 good emulation speed by using dynamic translation.
519 This package provides the system emulator with m68k (Motorola 68xxx)
522 %description system-m68k -l pl.UTF-8
523 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
524 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
526 Ten pakiet zawiera emulator systemu z procesorem m68k (Motorola
529 %package system-microblaze
530 Summary: QEMU system emulator for MicroBlaze
531 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
532 Group: Applications/Emulators
533 Requires: %{name}-common = %{version}-%{release}
535 Obsoletes: qemu-kvm-system-microblaze < 2
537 %description system-microblaze
538 QEMU is a generic and open source processor emulator which achieves a
539 good emulation speed by using dynamic translation.
541 This package provides the system emulator with MicroBlaze CPU.
543 %description system-microblaze -l pl.UTF-8
544 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
545 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
547 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
550 Summary: QEMU system emulator for MIPS
551 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
552 Group: Applications/Emulators
553 Requires: %{name}-common = %{version}-%{release}
555 Obsoletes: qemu-kvm-system-mips < 2
557 %description system-mips
558 QEMU is a generic and open source processor emulator which achieves a
559 good emulation speed by using dynamic translation.
561 This package provides the system emulator with MIPS CPU.
563 %description system-mips -l pl.UTF-8
564 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
565 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
567 Ten pakiet zawiera emulator systemu z procesorem MIPS.
569 %package system-nios2
570 Summary: QEMU system emulator for Nios II
571 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Nios II
572 Group: Applications/Emulators
573 Requires: %{name}-common = %{version}-%{release}
576 %description system-nios2
577 QEMU is a generic and open source processor emulator which achieves a
578 good emulation speed by using dynamic translation.
580 This package provides the system emulator with Nios II CPU.
582 %description system-nios2 -l pl.UTF-8
583 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
584 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
586 Ten pakiet zawiera emulator systemu z procesorem Nios II.
589 Summary: QEMU system emulator for OpenRISC
590 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
591 Group: Applications/Emulators
592 Requires: %{name}-common = %{version}-%{release}
594 Obsoletes: qemu-kvm-system-or1k < 2
595 Obsoletes: qemu-system-or32 < 2.9.0
597 %description system-or1k
598 QEMU is a generic and open source processor emulator which achieves a
599 good emulation speed by using dynamic translation.
601 This package provides the system emulator with OpenRISC CPU.
603 %description system-or1k -l pl.UTF-8
604 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
605 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
607 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
610 Summary: QEMU system emulator for PowerPC
611 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
612 Group: Applications/Emulators
613 Requires: %{name}-common = %{version}-%{release}
615 Obsoletes: qemu-kvm-system-ppc < 2
617 %description system-ppc
618 QEMU is a generic and open source processor emulator which achieves a
619 good emulation speed by using dynamic translation.
621 This package provides the system emulator with PowerPC CPU.
623 %description system-ppc -l pl.UTF-8
624 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
625 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
627 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
629 %package system-riscv32
630 Summary: QEMU system emulator for RISC-V (32 bit)
631 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (32 bit)
632 Group: Applications/Emulators
633 Requires: %{name}-common = %{version}-%{release}
636 %description system-riscv32
637 QEMU is a generic and open source processor emulator which achieves a
638 good emulation speed by using dynamic translation.
640 This package provides the system emulator with RISC-V (32 bit) CPU.
642 %description system-riscv32 -l pl.UTF-8
643 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
644 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
646 Ten pakiet zawiera emulator systemu z procesorem RISC-V (32 bit).
648 %package system-riscv64
649 Summary: QEMU system emulator for RISC-V (64 bit)
650 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (64 bitowym)
651 Group: Applications/Emulators
652 Requires: %{name}-common = %{version}-%{release}
655 %description system-riscv64
656 QEMU is a generic and open source processor emulator which achieves a
657 good emulation speed by using dynamic translation.
659 This package provides the system emulator with RISC-V (64 bit) CPU.
661 %description system-riscv64 -l pl.UTF-8
662 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
663 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
665 Ten pakiet zawiera emulator systemu z procesorem RISC-V (64-bitowym).
668 Summary: QEMU system emulator for Renesas RX
669 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Renesas RX
670 Group: Applications/Emulators
671 Requires: %{name}-common = %{version}-%{release}
674 %description system-rx
675 QEMU is a generic and open source processor emulator which achieves a
676 good emulation speed by using dynamic translation.
678 This package provides the system emulator with Renesas RX CPU.
680 %description system-rx -l pl.UTF-8
681 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
682 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
684 Ten pakiet zawiera emulator systemu z procesorem Renesas RX.
686 %package system-s390x
687 Summary: QEMU system emulator for S390x (IBM Z)
688 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390x (IBM Z)
689 Group: Applications/Emulators
690 Requires: %{name}-common = %{version}-%{release}
692 Obsoletes: qemu-kvm-system-s390x < 2
694 %description system-s390x
695 QEMU is a generic and open source processor emulator which achieves a
696 good emulation speed by using dynamic translation.
698 This package provides the system emulator with S390x (IBM Z) CPU.
700 %description system-s390x -l pl.UTF-8
701 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
702 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
704 Ten pakiet zawiera emulator systemu z procesorem S390x (IBM Z).
707 Summary: QEMU system emulator for SH4
708 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
709 Group: Applications/Emulators
710 Requires: %{name}-common = %{version}-%{release}
712 Obsoletes: qemu-kvm-system-sh4 < 2
714 %description system-sh4
715 QEMU is a generic and open source processor emulator which achieves a
716 good emulation speed by using dynamic translation.
718 This package provides the system emulator with SH4 CPU.
720 %description system-sh4 -l pl.UTF-8
721 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
722 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
724 Ten pakiet zawiera emulator systemu z procesorem SH4.
726 %package system-sparc
727 Summary: QEMU system emulator for SPARC
728 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
729 Group: Applications/Emulators
730 Requires: %{name}-common = %{version}-%{release}
732 Obsoletes: qemu-kvm-system-sparc < 2
734 %description system-sparc
735 QEMU is a generic and open source processor emulator which achieves a
736 good emulation speed by using dynamic translation.
738 This package provides the system emulator with SPARC/SPARC64 CPU.
740 %description system-sparc -l pl.UTF-8
741 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
742 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
744 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
746 %package system-tricore
747 Summary: QEMU system emulator for TriCore
748 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
749 Group: Applications/Emulators
750 Requires: %{name}-common = %{version}-%{release}
753 %description system-tricore
754 QEMU is a generic and open source processor emulator which achieves a
755 good emulation speed by using dynamic translation.
757 This package provides the system emulator with TriCore CPU.
759 %description system-tricore -l pl.UTF-8
760 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
761 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
763 Ten pakiet zawiera emulator systemu z procesorem TriCore.
766 Summary: QEMU system emulator for x86
767 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
768 Group: Applications/Emulators
769 Requires: %{name}-common = %{version}-%{release}
770 %{?with_vfio_user:Requires: libvfio-user = %{version}-%{release}}
771 %{?with_system_seabios:Requires: seabios >= 1.11.0}
774 Obsoletes: qemu-kvm-system-x86 < 2
776 %description system-x86
777 QEMU is a generic and open source processor emulator which achieves a
778 good emulation speed by using dynamic translation.
780 This package provides the system emulator with x86 CPU.
782 %description system-x86 -l pl.UTF-8
783 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
784 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
786 Ten pakiet zawiera emulator systemu z procesorem x86.
788 %package system-xtensa
789 Summary: QEMU system emulator for Xtensa
790 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
791 Group: Applications/Emulators
792 Requires: %{name}-common = %{version}-%{release}
794 Obsoletes: qemu-kvm-system-xtensa < 2
796 %description system-xtensa
797 QEMU is a generic and open source processor emulator which achieves a
798 good emulation speed by using dynamic translation.
800 This package provides the system emulator with Xtensa CPU.
802 %description system-xtensa -l pl.UTF-8
803 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
804 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
806 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
809 Summary: QEMU guest agent
810 Summary(pl.UTF-8): Agent gościa QEMU
812 Requires(post,preun,postun): systemd-units >= 38
813 Requires: glib2 >= 1:2.64
814 Requires: liburing >= 0.3
815 Requires: systemd-units >= 38
816 Obsoletes: qemu-kvm-guest-agent < 2
817 Conflicts: SysVinit < 2.96-2
819 %description guest-agent
820 QEMU is a generic and open source processor emulator which achieves a
821 good emulation speed by using dynamic translation.
823 This package provides an agent to run inside guests, which
824 communicates with the host over a virtio-serial channel named
825 "org.qemu.guest_agent.0".
827 This package does not need to be installed on the host OS.
829 %description guest-agent -l pl.UTF-8
830 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
831 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
833 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
834 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
835 "org.qemu.guest_agent.0".
837 Ten pakiet nie musi być zainstalowany w systemie hosta.
839 %package module-audio-jack
840 Summary: QEMU module for JACK audio output
841 Summary(pl.UTF-8): Moduł QEMU z wyjściem dźwięku JACK
842 Group: Applications/Emulators
843 Requires: %{name}-common = %{version}-%{release}
845 %description module-audio-jack
846 QEMU module for JACK audio output.
848 %description module-audio-jack -l pl.UTF-8
849 Moduł QEMU z wyjściem dźwięku JACK.
851 %package module-block-curl
852 Summary: QEMU module for 'curl' block devices
853 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
854 Group: Applications/Emulators
855 Requires: %{name}-common = %{version}-%{release}
856 Requires: curl-libs >= 7.29.0
858 %description module-block-curl
859 QEMU block device support for CURL. It allows to access remote disks
860 over http, https, ftp and other transports provided by the CURL
863 %description module-block-curl -l pl.UTF-8
864 Moduł QEMU dla urządeń blokowych CURL. Pozwala na dostęp do zdalnych
865 dysków poprzez http, https, ftp i inne protokoły obsługiwane przez
868 %package module-block-gluster
869 Summary: QEMU module for 'gluster' block devices
870 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
871 Group: Applications/Emulators
872 Requires: %{name}-common = %{version}-%{release}
873 Requires: glusterfs-libs >= 6
875 %description module-block-gluster
876 QEMU block device support for remote Gluster storage.
878 %description module-block-gluster -l pl.UTF-8
879 Moduł urządzeń blokowych QEMU do dostępu do zdalnej przestrzeni
882 %package module-block-iscsi
883 Summary: QEMU module for 'iscsi' block devices
884 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
885 Group: Applications/Emulators
886 Requires: %{name}-common = %{version}-%{release}
887 Requires: libiscsi >= 1.9.0
889 %description module-block-iscsi
890 QEMU block device support for iSCSI volumes.
892 %description module-block-iscsi -l pl.UTF-8
893 Moduł urządzeń blokowych QEMU do dostępu do wolumenów iSCSI.
895 %package module-block-nfs
896 Summary: QEMU module for 'nfs' block devices
897 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'nfs'
898 Group: Applications/Emulators
899 Requires: %{name}-common = %{version}-%{release}
900 Requires: libnfs >= 1.9.3
902 %description module-block-nfs
903 QEMU block device support for remote NFS storage.
905 %description module-block-nfs -l pl.UTF-8
906 Moduł urządzeń blokowych QEMU do dostępu do zdalnej przestrzeni po
909 %package module-block-rbd
910 Summary: QEMU module for 'rbd' block devices
911 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
912 Group: Applications/Emulators
913 Requires: %{name}-common = %{version}-%{release}
914 Requires: ceph-libs >= 12
916 %description module-block-rbd
917 QEMU block device support for Ceph/RBD volumes.
919 %description module-block-rbd -l pl.UTF-8
920 Moduł urządzeń blokowych QEMU do wolumenów Ceph/RBD.
922 %package module-block-ssh
923 Summary: QEMU module for 'ssh' block devices
924 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
925 Group: Applications/Emulators
926 Requires: %{name}-common = %{version}-%{release}
927 Requires: libssh >= 0.8.7
929 %description module-block-ssh
930 QEMU block device support for accessing remote disks using the Secure
931 Shell (SSH) protocol.
933 %description module-block-ssh -l pl.UTF-8
934 Moduł urządzeń blokowych QEMU do dostępu do zdalnych dysków poprzez
935 protokół SSH (Secure Shell).
937 %package module-ui-dbus
938 Summary: QEMU DBus UI driver
939 Summary(pl.UTF-8): Sterownik interfejsu użytkownika DBus dla QEMU
940 Group: Applications/Emulators
941 Requires: %{name}-common = %{version}-%{release}
943 %description module-ui-dbus
946 %description module-ui-dbus -l pl.UTF-8
947 Sterownik interfejsu użytkownika DBus dla QEMU.
949 %package module-ui-gtk
950 Summary: QEMU GTK UI driver
951 Summary(pl.UTF-8): Sterownik interfejsu użytkownika GTK dla QEMU
952 Group: Applications/Emulators
953 Requires: %{name}-common = %{version}-%{release}
955 %description module-ui-gtk
958 %description module-ui-gtk -l pl.UTF-8
959 Sterownik interfejsu użytkownika GTK dla QEMU.
961 %package module-ui-sdl
962 Summary: QEMU SDL UI and audio driver
963 Summary(pl.UTF-8): Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU
964 Group: Applications/Emulators
965 Requires: %{name}-common = %{version}-%{release}
967 %description module-ui-sdl
968 QEMU SDL UI and audio driver.
970 %description module-ui-sdl -l pl.UTF-8
971 Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU.
973 %package -n systemtap-qemu
974 Summary: systemtap/dtrace probes for QEMU
975 Summary(pl.UTF-8): Sondy systemtap/dtrace dla QEMU
976 Group: Development/Tools
977 Requires: %{name}-common = %{version}-%{release}
978 Requires: systemtap-client
980 %description -n systemtap-qemu
981 systemtap/dtrace probes for QEMU.
983 %description -n systemtap-qemu -l pl.UTF-8
984 Sondy systemtap/dtrace dla QEMU.
986 %package -n libvfio-user
987 Summary: vfio-user library
988 Summary(pl.UTF-8): Biblioteka vfio-user
990 Requires: json-c >= 0.11
992 %description -n libvfio-user
993 vfio-user is a framework that allows implementing PCI devices in
994 userspace. Clients (such as qemu) talk the vfio-user protocol over a
995 UNIX socket to a server. This library, libvfio-user, provides an API
996 for implementing such servers.
998 %description -n libvfio-user -l pl.UTF-8
999 vfio-user to szkielet pozwalający implementować urządzenia PCI w
1000 przestrzeni użytkownika. Klienci (jak qemu) komunikują się z serwerem
1001 protokołem vfio-user przez gniazdo uniksowe.
1003 %package -n libvfio-user-devel
1004 Summary: Header files for vfio-user library
1005 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki vfio-user
1006 Group: Development/Libraries
1007 Requires: libvfio-user = %{version}-%{release}
1009 %description -n libvfio-user-devel
1010 Header files for vfio-user library.
1012 %description -n libvfio-user-devel -l pl.UTF-8
1013 Pliki nagłówkowe biblioteki vfio-user.
1027 %{__sed} -i '1s,/usr/bin/env python3,%{__python3},' scripts/qemu-trace-stap
1029 %if %{with systemtap}
1030 # don't require stap binary during build
1031 %{__sed} -i -e "s/stap.found()/true/" meson.build docs/meson.build scripts/meson.build
1040 install -d build-$target
1044 --prefix=%{_prefix} \
1045 --libdir=%{_libdir} \
1046 --libexecdir=%{_libexecdir} \
1047 --sysconfdir=%{_sysconfdir} \
1048 --localstatedir=%{_localstatedir} \
1049 --interp-prefix=%{_libdir}/qemu/lib-%%M \
1052 --host-cc="%{__cc}" \
1054 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
1060 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
1066 --extra-cflags="%{rpmcflags} %{rpmcppflags}" \
1067 --extra-ldflags="%{rpmldflags} -Wl,-z,relro -Wl,-z,now" \
1068 --audio-drv-list="alsa,jack%{?with_oss:,oss}%{?with_pulseaudio:,pa}%{?with_sdl:,sdl}" \
1070 %{__enable_disable brlapi} \
1071 %{__enable_disable canokey} \
1078 %{__enable_disable glusterfs} \
1079 %{!?with_gtk3:--disable-gtk} \
1080 %{__enable_disable iscsi libiscsi} \
1081 %{__enable_disable libnfs} \
1082 %{__enable_disable pmem libpmem} \
1084 %{__enable_disable multipath mpath} \
1088 %{__enable_disable ceph rbd} \
1089 %{__enable_disable rdma} \
1090 %{__enable_disable sdl} \
1091 %{__enable_disable seccomp} \
1093 %{__enable_disable spice} \
1094 %{__enable_disable smartcard} \
1095 %{__enable_disable snappy} \
1097 %{__enable_disable usbredir usb-redir} \
1099 %{?with_vfio_user:--enable-vfio-user-server} \
1100 %{__enable_disable virgl virglrenderer} \
1104 %{!?with_vte:--disable-vte} \
1105 %{__enable_disable xen} \
1106 %{__enable_disable xkbcommon}
1108 %if %{with user_static}
1113 --disable-capstone \
1119 --disable-guest-agent \
1120 --disable-guest-agent-msi \
1122 --disable-linux-io-uring \
1132 --disable-xkbcommon \
1137 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
1140 rm -rf $RPM_BUILD_ROOT
1141 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
1142 $RPM_BUILD_ROOT/etc/{qemu,sysconfig,modules-load.d,rc.d/init.d,logrotate.d} \
1143 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,/lib/udev/rules.d,%{_sbindir}}
1145 %if %{with user_static}
1146 %{__make} -C build-static install \
1147 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
1148 DESTDIR=$RPM_BUILD_ROOT
1150 # Give all QEMU user emulators a -static suffix
1151 for src in $RPM_BUILD_ROOT%{_bindir}/qemu-*; do
1152 %{__mv} $src $src-static
1157 %{__make} -C build-dynamic install \
1158 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
1159 DESTDIR=$RPM_BUILD_ROOT
1161 # let rpm generate dependencies
1162 chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/*.so
1164 echo "#allow br0" > $RPM_BUILD_ROOT/etc/qemu/bridge.conf
1166 install -d $RPM_BUILD_ROOT%{_sysconfdir}
1167 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
1172 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
1174 %ifarch %{ix86} %{x8664} x32
1175 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
1176 install -p %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/rules.d
1179 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
1180 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
1181 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
1183 install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
1184 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
1185 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
1187 # For the qemu-guest-agent subpackage install the systemd
1188 # service and udev rules.
1189 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
1190 install -p %{SOURCE12} $RPM_BUILD_ROOT/lib/udev/rules.d
1192 install -p %{SOURCE13} $RPM_BUILD_ROOT/etc/rc.d/init.d/qemu-ga
1193 install -p %{SOURCE14} $RPM_BUILD_ROOT/etc/logrotate.d/qemu-ga
1195 cp -p %{SOURCE15} %{SOURCE16} $RPM_BUILD_ROOT%{systemdunitdir}
1199 %ifnarch %{ix86} %{x8664} x32
1213 microblaze microblazeel \
1229 %ifnarch ppc ppc64 ppc64le
1232 %ifnarch sparc sparc64
1233 sparc sparc32plus sparc64 \
1244 if [ -n "$BINFMT_CPUS" ]; then
1245 for cpu in $BINFMT_CPUS; do
1246 bash ./scripts/qemu-binfmt-conf.sh --systemd "$cpu" --exportdir $RPM_BUILD_ROOT/usr/lib/binfmt.d --qemu-path %{_bindir}
1248 for i in $RPM_BUILD_ROOT/usr/lib/binfmt.d/*.conf; do
1249 %{__mv} $i ${i%.conf}-dynamic.conf
1252 %if %{with user_static}
1253 for regularfmt in $RPM_BUILD_ROOT/usr/lib/binfmt.d/*; do
1254 staticfmt="${regularfmt%\-dynamic.conf}-static.conf"
1255 cat $regularfmt | tr -d '\n' | sed "s/:$/-static:F/" > $staticfmt
1260 %if %{with system_seabios}
1261 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
1262 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
1266 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
1267 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
1273 for t in client server; do
1274 cp -p build-dynamic/contrib/ivshmem-$t/ivshmem-$t $RPM_BUILD_ROOT%{_bindir}
1278 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/accel-qtest-*.so
1279 # Windows installer icon, not used
1280 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/qemu-nsis.bmp
1282 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/edk2-licenses.txt
1284 # cleanup Sphinx files
1285 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/{.buildinfo,objects.inv}
1288 rm -rf $RPM_BUILD_ROOT
1291 %groupadd -g 160 kvm
1292 %groupadd -g 276 qemu
1293 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
1296 %systemd_post ksm.service
1297 %systemd_post ksmtuned.service
1300 %systemd_preun ksm.service
1301 %systemd_preun ksmtuned.service
1304 if [ "$1" = "0" ]; then
1311 %triggerpostun common -- qemu-common < 1.6.1-4
1312 %systemd_trigger ksm.service
1313 %systemd_trigger ksmtuned.service
1314 %systemd_trigger qemu-pr-helper.service
1317 %systemd_post systemd-binfmt.service
1320 %systemd_post systemd-binfmt.service
1323 %systemd_post systemd-binfmt.service
1326 %systemd_post systemd-binfmt.service
1329 /sbin/chkconfig --add qemu-ga
1330 %service qemu-ga restart "qemu-ga"
1334 if [ "$1" = "0" ]; then
1335 %service qemu-ga stop
1336 /sbin/chkconfig --del qemu-ga
1338 %systemd_preun qemu-guest-agent.service
1343 %post -n libvfio-user -p /sbin/ldconfig
1344 %postun -n libvfio-user -p /sbin/ldconfig
1347 %defattr(644,root,root,755)
1350 %defattr(644,root,root,755)
1351 %{_includedir}/qemu-plugin.h
1353 %files common -f %{name}.lang
1354 %defattr(644,root,root,755)
1355 %doc LICENSE README.rst pc-bios/edk2-licenses.txt
1356 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
1357 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
1358 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
1359 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
1361 %attr(640,root,qemu) %config(noreplace) %verify(not md5 mtime size) /etc/qemu/bridge.conf
1362 %{systemdunitdir}/ksm.service
1363 %{systemdunitdir}/ksmtuned.service
1364 %{systemdunitdir}/qemu-pr-helper.service
1365 %{systemdunitdir}/qemu-pr-helper.socket
1366 %attr(755,root,root) %{_bindir}/elf2dmp
1367 %attr(755,root,root) %{_bindir}/ivshmem-client
1368 %attr(755,root,root) %{_bindir}/ivshmem-server
1369 %attr(755,root,root) %{_bindir}/qemu-edid
1370 %if %{with xkbcommon}
1371 %attr(755,root,root) %{_bindir}/qemu-keymap
1373 %attr(755,root,root) %{_bindir}/qemu-nbd
1374 %attr(755,root,root) %{_bindir}/qemu-pr-helper
1375 %attr(755,root,root) %{_bindir}/qemu-storage-daemon
1376 %attr(755,root,root) %{_sbindir}/ksmctl
1377 %attr(755,root,root) %{_sbindir}/ksmtuned
1378 %attr(755,root,root) %{_libexecdir}/qemu-bridge-helper
1380 %attr(755,root,root) %{_libexecdir}/vhost-user-gpu
1382 %attr(755,root,root) %{_libexecdir}/virtfs-proxy-helper
1383 %dir %{_libdir}/%{name}
1384 # modules without too many external dependencies
1385 %attr(755,root,root) %{_libdir}/%{name}/block-blkio.so
1386 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-bz2.so
1387 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-lzfse.so
1388 %attr(755,root,root) %{_libdir}/%{name}/accel-tcg-i386.so
1389 %attr(755,root,root) %{_libdir}/%{name}/accel-tcg-x86_64.so
1390 %attr(755,root,root) %{_libdir}/%{name}/audio-alsa.so
1392 %attr(755,root,root) %{_libdir}/%{name}/audio-oss.so
1394 %if %{with pulseaudio}
1395 %attr(755,root,root) %{_libdir}/%{name}/audio-pa.so
1398 %attr(755,root,root) %{_libdir}/%{name}/chardev-baum.so
1400 %attr(755,root,root) %{_libdir}/%{name}/hw-display-qxl.so
1401 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu.so
1402 %{?with_virgl:%attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-gl.so}
1403 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-pci.so
1404 %{?with_virgl:%attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-pci-gl.so}
1405 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-vga.so
1406 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-vga-gl.so
1407 %attr(755,root,root) %{_libdir}/%{name}/hw-s390x-virtio-gpu-ccw.so
1408 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-host.so
1409 %attr(755,root,root) %{_libdir}/%{name}/ui-curses.so
1410 %if %{with usbredir}
1411 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-redirect.so
1413 %if %{with smartcard}
1414 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-smartcard.so
1417 %attr(755,root,root) %{_libdir}/%{name}/ui-egl-headless.so
1418 %attr(755,root,root) %{_libdir}/%{name}/ui-opengl.so
1421 %attr(755,root,root) %{_libdir}/%{name}/audio-spice.so
1422 %attr(755,root,root) %{_libdir}/%{name}/chardev-spice.so
1423 %attr(755,root,root) %{_libdir}/%{name}/ui-spice-app.so
1424 %attr(755,root,root) %{_libdir}/%{name}/ui-spice-core.so
1426 %dir %{_datadir}/%{name}
1427 %dir %{_datadir}/%{name}/firmware
1428 %{_datadir}/%{name}/keymaps
1429 %{_datadir}/%{name}/trace-events-all
1431 %dir %{_datadir}/%{name}/vhost-user
1432 %{_datadir}/%{name}/vhost-user/50-qemu-gpu.json
1434 %{_desktopdir}/qemu.desktop
1435 %{_iconsdir}/hicolor/*x*/apps/qemu.png
1436 %{_iconsdir}/hicolor/32x32/apps/qemu.bmp
1437 %{_iconsdir}/hicolor/scalable/apps/qemu.svg
1438 %{_mandir}/man1/qemu.1*
1439 %{_mandir}/man1/qemu-storage-daemon.1*
1440 %{_mandir}/man1/virtfs-proxy-helper.1*
1441 %{_mandir}/man7/qemu-block-drivers.7*
1442 %{_mandir}/man7/qemu-cpu-models.7*
1443 %{_mandir}/man7/qemu-qmp-ref.7*
1444 %{_mandir}/man7/qemu-storage-daemon-qmp-ref.7*
1445 %{_mandir}/man8/qemu-nbd.8*
1446 %{_mandir}/man8/qemu-pr-helper.8*
1450 %defattr(644,root,root,755)
1451 %attr(755,root,root) %{_bindir}/qemu-img
1452 %{_mandir}/man1/qemu-img.1*
1455 %defattr(644,root,root,755)
1456 /usr/lib/binfmt.d/qemu-*-dynamic.conf
1457 %attr(755,root,root) %{_bindir}/qemu-aarch64
1458 %attr(755,root,root) %{_bindir}/qemu-aarch64_be
1459 %attr(755,root,root) %{_bindir}/qemu-alpha
1460 %attr(755,root,root) %{_bindir}/qemu-arm
1461 %attr(755,root,root) %{_bindir}/qemu-armeb
1462 %attr(755,root,root) %{_bindir}/qemu-cris
1463 %attr(755,root,root) %{_bindir}/qemu-hexagon
1464 %attr(755,root,root) %{_bindir}/qemu-hppa
1465 %attr(755,root,root) %{_bindir}/qemu-i386
1466 %attr(755,root,root) %{_bindir}/qemu-io
1467 %attr(755,root,root) %{_bindir}/qemu-loongarch64
1468 %attr(755,root,root) %{_bindir}/qemu-m68k
1469 %attr(755,root,root) %{_bindir}/qemu-microblaze
1470 %attr(755,root,root) %{_bindir}/qemu-microblazeel
1471 %attr(755,root,root) %{_bindir}/qemu-mips
1472 %attr(755,root,root) %{_bindir}/qemu-mipsel
1473 %attr(755,root,root) %{_bindir}/qemu-mips64
1474 %attr(755,root,root) %{_bindir}/qemu-mips64el
1475 %attr(755,root,root) %{_bindir}/qemu-mipsn32
1476 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
1477 %attr(755,root,root) %{_bindir}/qemu-nios2
1478 %attr(755,root,root) %{_bindir}/qemu-or1k
1479 %attr(755,root,root) %{_bindir}/qemu-ppc
1480 %attr(755,root,root) %{_bindir}/qemu-ppc64
1481 %attr(755,root,root) %{_bindir}/qemu-ppc64le
1482 %attr(755,root,root) %{_bindir}/qemu-riscv32
1483 %attr(755,root,root) %{_bindir}/qemu-riscv64
1484 %attr(755,root,root) %{_bindir}/qemu-s390x
1485 %attr(755,root,root) %{_bindir}/qemu-sh4
1486 %attr(755,root,root) %{_bindir}/qemu-sh4eb
1487 %attr(755,root,root) %{_bindir}/qemu-sparc
1488 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
1489 %attr(755,root,root) %{_bindir}/qemu-sparc64
1490 %attr(755,root,root) %{_bindir}/qemu-x86_64
1491 %attr(755,root,root) %{_bindir}/qemu-xtensa
1492 %attr(755,root,root) %{_bindir}/qemu-xtensaeb
1494 %if %{with user_static}
1496 %defattr(644,root,root,755)
1497 /usr/lib/binfmt.d/qemu-*-static.conf
1498 %attr(755,root,root) %{_bindir}/qemu-aarch64-static
1499 %attr(755,root,root) %{_bindir}/qemu-aarch64_be-static
1500 %attr(755,root,root) %{_bindir}/qemu-alpha-static
1501 %attr(755,root,root) %{_bindir}/qemu-arm-static
1502 %attr(755,root,root) %{_bindir}/qemu-armeb-static
1503 %attr(755,root,root) %{_bindir}/qemu-cris-static
1504 %attr(755,root,root) %{_bindir}/qemu-hexagon-static
1505 %attr(755,root,root) %{_bindir}/qemu-hppa-static
1506 %attr(755,root,root) %{_bindir}/qemu-i386-static
1507 %attr(755,root,root) %{_bindir}/qemu-loongarch64-static
1508 %attr(755,root,root) %{_bindir}/qemu-m68k-static
1509 %attr(755,root,root) %{_bindir}/qemu-microblaze-static
1510 %attr(755,root,root) %{_bindir}/qemu-microblazeel-static
1511 %attr(755,root,root) %{_bindir}/qemu-mips-static
1512 %attr(755,root,root) %{_bindir}/qemu-mips64-static
1513 %attr(755,root,root) %{_bindir}/qemu-mips64el-static
1514 %attr(755,root,root) %{_bindir}/qemu-mipsel-static
1515 %attr(755,root,root) %{_bindir}/qemu-mipsn32-static
1516 %attr(755,root,root) %{_bindir}/qemu-mipsn32el-static
1517 %attr(755,root,root) %{_bindir}/qemu-nios2-static
1518 %attr(755,root,root) %{_bindir}/qemu-or1k-static
1519 %attr(755,root,root) %{_bindir}/qemu-ppc-static
1520 %attr(755,root,root) %{_bindir}/qemu-ppc64-static
1521 %attr(755,root,root) %{_bindir}/qemu-ppc64le-static
1522 %attr(755,root,root) %{_bindir}/qemu-riscv32-static
1523 %attr(755,root,root) %{_bindir}/qemu-riscv64-static
1524 %attr(755,root,root) %{_bindir}/qemu-s390x-static
1525 %attr(755,root,root) %{_bindir}/qemu-sh4-static
1526 %attr(755,root,root) %{_bindir}/qemu-sh4eb-static
1527 %attr(755,root,root) %{_bindir}/qemu-sparc-static
1528 %attr(755,root,root) %{_bindir}/qemu-sparc32plus-static
1529 %attr(755,root,root) %{_bindir}/qemu-sparc64-static
1530 %attr(755,root,root) %{_bindir}/qemu-x86_64-static
1531 %attr(755,root,root) %{_bindir}/qemu-xtensa-static
1532 %attr(755,root,root) %{_bindir}/qemu-xtensaeb-static
1533 %{?with_systemtap:%attr(755,root,root) %{_bindir}/qemu-trace-stap-static}
1536 %files system-aarch64
1537 %defattr(644,root,root,755)
1538 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1539 %{_datadir}/%{name}/edk2-aarch64-code.fd
1540 %{_datadir}/%{name}/firmware/60-edk2-aarch64.json
1543 %defattr(644,root,root,755)
1544 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1545 %{_datadir}/%{name}/palcode-clipper
1548 %defattr(644,root,root,755)
1549 %attr(755,root,root) %{_bindir}/qemu-system-arm
1550 %{_datadir}/%{name}/edk2-arm-code.fd
1551 %{_datadir}/%{name}/edk2-arm-vars.fd
1552 %{_datadir}/%{name}/firmware/60-edk2-arm.json
1553 %{_datadir}/%{name}/npcm7xx_bootrom.bin
1556 %defattr(644,root,root,755)
1557 %attr(755,root,root) %{_bindir}/qemu-system-avr
1560 %defattr(644,root,root,755)
1561 %attr(755,root,root) %{_bindir}/qemu-system-cris
1564 %defattr(644,root,root,755)
1565 %attr(755,root,root) %{_bindir}/qemu-system-hppa
1566 %{_datadir}/%{name}/hppa-firmware.img
1569 %defattr(644,root,root,755)
1570 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1572 %files system-microblaze
1573 %defattr(644,root,root,755)
1574 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1575 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1578 %defattr(644,root,root,755)
1579 %attr(755,root,root) %{_bindir}/qemu-system-loongarch64
1580 %attr(755,root,root) %{_bindir}/qemu-system-mips
1581 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1582 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1583 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1586 %defattr(644,root,root,755)
1587 %attr(755,root,root) %{_bindir}/qemu-system-nios2
1590 %defattr(644,root,root,755)
1591 %attr(755,root,root) %{_bindir}/qemu-system-or1k
1594 %defattr(644,root,root,755)
1595 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1596 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1597 %{_datadir}/%{name}/bamboo.dtb
1598 %{_datadir}/%{name}/canyonlands.dtb
1599 %{_datadir}/%{name}/openbios-ppc
1600 %{_datadir}/%{name}/petalogix-ml605.dtb
1601 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
1602 %{_datadir}/%{name}/qemu_vga.ndrv
1603 %{_datadir}/%{name}/skiboot.lid
1604 %{_datadir}/%{name}/slof.bin
1605 %{_datadir}/%{name}/u-boot.e500
1606 %{_datadir}/%{name}/u-boot-sam460-20100605.bin
1607 %{_datadir}/%{name}/vof.bin
1608 %{_datadir}/%{name}/vof-nvram.bin
1610 %files system-riscv32
1611 %defattr(644,root,root,755)
1612 %attr(755,root,root) %{_bindir}/qemu-system-riscv32
1613 %{_datadir}/%{name}/opensbi-riscv32-generic-fw_dynamic.bin
1615 %files system-riscv64
1616 %defattr(644,root,root,755)
1617 %attr(755,root,root) %{_bindir}/qemu-system-riscv64
1618 %{_datadir}/%{name}/opensbi-riscv64-generic-fw_dynamic.bin
1621 %defattr(644,root,root,755)
1622 %attr(755,root,root) %{_bindir}/qemu-system-rx
1625 %defattr(644,root,root,755)
1626 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1627 %{_datadir}/%{name}/s390-ccw.img
1628 %{_datadir}/%{name}/s390-netboot.img
1631 %defattr(644,root,root,755)
1632 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1633 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1636 %defattr(644,root,root,755)
1637 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1638 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1639 %{_datadir}/%{name}/QEMU,cgthree.bin
1640 %{_datadir}/%{name}/QEMU,tcx.bin
1641 %{_datadir}/%{name}/openbios-sparc32
1642 %{_datadir}/%{name}/openbios-sparc64
1644 %files system-tricore
1645 %defattr(644,root,root,755)
1646 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1649 %defattr(644,root,root,755)
1650 %attr(755,root,root) %{_bindir}/qemu-system-i386
1651 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1652 %ifarch %{ix86} %{x8664} x32
1653 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1654 /lib/udev/rules.d/80-kvm.rules
1656 %{_datadir}/%{name}/bios.bin
1657 %{_datadir}/%{name}/bios-256k.bin
1658 %{_datadir}/%{name}/bios-microvm.bin
1659 %{_datadir}/%{name}/edk2-i386-code.fd
1660 %{_datadir}/%{name}/edk2-i386-secure-code.fd
1661 %{_datadir}/%{name}/edk2-i386-vars.fd
1662 %{_datadir}/%{name}/edk2-x86_64-code.fd
1663 %{_datadir}/%{name}/edk2-x86_64-secure-code.fd
1664 %{_datadir}/%{name}/efi-e1000e.rom
1665 %{_datadir}/%{name}/efi-e1000.rom
1666 %{_datadir}/%{name}/efi-eepro100.rom
1667 %{_datadir}/%{name}/efi-ne2k_pci.rom
1668 %{_datadir}/%{name}/efi-pcnet.rom
1669 %{_datadir}/%{name}/efi-rtl8139.rom
1670 %{_datadir}/%{name}/efi-virtio.rom
1671 %{_datadir}/%{name}/efi-vmxnet3.rom
1672 %{_datadir}/%{name}/kvmvapic.bin
1673 %{_datadir}/%{name}/linuxboot.bin
1674 %{_datadir}/%{name}/linuxboot_dma.bin
1675 %{_datadir}/%{name}/multiboot.bin
1676 %{_datadir}/%{name}/multiboot_dma.bin
1677 %{_datadir}/%{name}/pvh.bin
1678 %{_datadir}/%{name}/pxe-e1000.rom
1679 %{_datadir}/%{name}/pxe-eepro100.rom
1680 %{_datadir}/%{name}/pxe-ne2k_pci.rom
1681 %{_datadir}/%{name}/pxe-pcnet.rom
1682 %{_datadir}/%{name}/pxe-rtl8139.rom
1683 %{_datadir}/%{name}/pxe-virtio.rom
1684 %{_datadir}/%{name}/qboot.rom
1685 %{_datadir}/%{name}/vgabios.bin
1686 %{_datadir}/%{name}/vgabios-ati.bin
1687 %{_datadir}/%{name}/vgabios-bochs-display.bin
1688 %{_datadir}/%{name}/vgabios-cirrus.bin
1689 %{_datadir}/%{name}/vgabios-qxl.bin
1690 %{_datadir}/%{name}/vgabios-ramfb.bin
1691 %{_datadir}/%{name}/vgabios-stdvga.bin
1692 %{_datadir}/%{name}/vgabios-virtio.bin
1693 %{_datadir}/%{name}/vgabios-vmware.bin
1694 %{_datadir}/%{name}/firmware/50-edk2-i386-secure.json
1695 %{_datadir}/%{name}/firmware/50-edk2-x86_64-secure.json
1696 %{_datadir}/%{name}/firmware/60-edk2-i386.json
1697 %{_datadir}/%{name}/firmware/60-edk2-x86_64.json
1699 %files system-xtensa
1700 %defattr(644,root,root,755)
1701 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1702 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1705 %defattr(644,root,root,755)
1706 %attr(755,root,root) %{_bindir}/qemu-ga
1707 /lib/udev/rules.d/99-qemu-guest-agent.rules
1708 %{systemdunitdir}/qemu-guest-agent.service
1709 %attr(754,root,root) /etc/rc.d/init.d/qemu-ga
1710 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/qemu-ga
1711 %{_mandir}/man7/qemu-ga-ref.7*
1712 %{_mandir}/man8/qemu-ga.8*
1714 %files module-audio-jack
1715 %defattr(644,root,root,755)
1716 %attr(755,root,root) %{_libdir}/%{name}/audio-jack.so
1718 %files module-block-curl
1719 %defattr(644,root,root,755)
1720 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1722 %if %{with glusterfs}
1723 %files module-block-gluster
1724 %defattr(644,root,root,755)
1725 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1729 %files module-block-iscsi
1730 %defattr(644,root,root,755)
1731 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1735 %files module-block-nfs
1736 %defattr(644,root,root,755)
1737 %attr(755,root,root) %{_libdir}/%{name}/block-nfs.so
1741 %files module-block-rbd
1742 %defattr(644,root,root,755)
1743 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1746 %files module-block-ssh
1747 %defattr(644,root,root,755)
1748 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so
1750 %files module-ui-dbus
1751 %defattr(644,root,root,755)
1752 %attr(755,root,root) %{_libdir}/%{name}/audio-dbus.so
1753 %attr(755,root,root) %{_libdir}/%{name}/ui-dbus.so
1756 %files module-ui-gtk
1757 %defattr(644,root,root,755)
1758 %attr(755,root,root) %{_libdir}/%{name}/ui-gtk.so
1762 %files module-ui-sdl
1763 %defattr(644,root,root,755)
1764 %attr(755,root,root) %{_libdir}/%{name}/audio-sdl.so
1765 %attr(755,root,root) %{_libdir}/%{name}/ui-sdl.so
1768 %if %{with systemtap}
1769 %files -n systemtap-qemu
1770 %defattr(644,root,root,755)
1771 %attr(755,root,root) %{_bindir}/qemu-trace-stap
1772 %{_datadir}/systemtap/tapset/qemu-*.stp
1773 %{_mandir}/man1/qemu-trace-stap.1*
1776 %if %{with vfio_user}
1777 %files -n libvfio-user
1778 %defattr(644,root,root,755)
1779 %attr(755,root,root) %{_libdir}/libvfio-user.so.*.*.*
1780 %attr(755,root,root) %ghost %{_libdir}/libvfio-user.so.0
1782 %files -n libvfio-user-devel
1783 %defattr(644,root,root,755)
1784 %attr(755,root,root) %{_libdir}/libvfio-user.so
1785 %{_includedir}/vfio-user