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
86 %{?with_brlapi:BuildRequires: brlapi-devel}
87 BuildRequires: bzip2-devel
88 %{?with_canokey:BuildRequires: canokey-qemu-devel}
89 BuildRequires: capstone-devel >= 4.0
90 %{?with_ceph:BuildRequires: ceph-devel >= 12}
91 BuildRequires: curl-devel >= 7.29.0
92 BuildRequires: cyrus-sasl-devel >= 2
93 BuildRequires: daxctl-devel >= 57
94 BuildRequires: gcc >= 6:7.4
95 BuildRequires: gettext-tools
96 BuildRequires: glib2-devel >= 1:2.64
97 # minimal is 3.4 but new features are used up to 6
98 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 6}
99 BuildRequires: gnutls-devel >= 3.6.14
100 %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.22.0}
101 BuildRequires: jack-audio-connection-kit-devel
102 %{?with_vfio_user:BuildRequires: json-c-devel >= 0.11}
104 #BuildRequires: keyutils-devel
105 BuildRequires: libaio-devel
106 BuildRequires: libbpf-devel
107 %{?with_smartcard:BuildRequires: libcacard-devel >= 2.5.1}
108 BuildRequires: libcap-ng-devel
109 BuildRequires: libdrm-devel
110 %{?with_opengl:BuildRequires: libepoxy-devel}
111 BuildRequires: libfdt-devel >= 1.5.1
112 BuildRequires: libfuse3-devel >= 3.8
113 %{?with_rdma:BuildRequires: libibverbs-devel}
114 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
115 %{?with_rdma:BuildRequires: libibumad-devel}
116 BuildRequires: libjpeg-devel
117 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
118 BuildRequires: libpng-devel >= 2:1.6.34
119 %{?with_rdma:BuildRequires: librdmacm-devel}
120 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.3.0}
121 BuildRequires: libselinux-devel
122 BuildRequires: libssh-devel >= 0.8.7
123 BuildRequires: libslirp-devel >= 4.7
124 BuildRequires: libstdc++-devel >= 6:4.7
126 #BuildRequires: libtasn1-devel
127 BuildRequires: libu2f-emu-devel
128 BuildRequires: libusb-devel >= 1.0.22
129 BuildRequires: liburing-devel >= 0.3
130 BuildRequires: libuuid-devel
131 BuildRequires: libxml2-devel >= 2.0
132 %{?with_lttng:BuildRequires: lttng-ust-devel >= 2.1}
133 BuildRequires: lzfse-devel
134 BuildRequires: lzo-devel >= 2
135 BuildRequires: meson >= 0.61.5
136 %{?with_multipath:BuildRequires: multipath-tools-devel}
137 BuildRequires: ncurses-devel
138 # also libgcrypt-devel >= 1.8 possible, but gnutls already pulls nettle
139 BuildRequires: nettle-devel >= 3.4
140 BuildRequires: ninja >= 1.5
141 %{?with_smartcard:BuildRequires: nss-devel >= 1:3.12.8}
142 BuildRequires: numactl-devel
143 BuildRequires: pam-devel
144 BuildRequires: perl-Encode
145 BuildRequires: perl-tools-pod
146 BuildRequires: pixman-devel >= 0.21.8
147 BuildRequires: pkgconfig
148 %{?with_pmem:BuildRequires: pmdk-devel}
149 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
150 BuildRequires: python3 >= 1:3.7
151 BuildRequires: python3-sphinx_rtd_theme
152 BuildRequires: rpm-build >= 4.6
153 BuildRequires: rpmbuild(macros) >= 1.644
154 %{?with_system_seabios:BuildRequires: seabios}
155 BuildRequires: sed >= 4.0
156 %{?with_snappy:BuildRequires: snappy-devel}
157 BuildRequires: sphinx-pdg
159 BuildRequires: spice-protocol >= 0.14.0
160 BuildRequires: spice-server-devel >= 0.14.0
162 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
163 BuildRequires: tar >= 1:1.22
164 BuildRequires: texi2html
165 BuildRequires: texinfo
166 %{?with_multipath:BuildRequires: udev-devel}
167 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
168 %{?with_lttng:BuildRequires: userspace-rcu-devel}
169 BuildRequires: vde2-devel
171 %{?with_virgl:BuildRequires: virglrenderer-devel}
172 %{?with_vte:BuildRequires: vte-devel >= 0.32.0}
173 # xencontrol xenstore xenguest xenforeignmemory xengnttab xenevtchn xendevicemodel; xentoolcore for xen 4.10+
174 # min version is 4.2, more features up to 4.11
175 %{?with_xen:BuildRequires: xen-devel >= 4.11}
176 BuildRequires: xfsprogs-devel
177 %if %{with xkbcommon}
178 BuildRequires: xkeyboard-config
179 BuildRequires: xorg-lib-libxkbcommon-devel
181 BuildRequires: xorg-lib-libX11-devel
183 BuildRequires: zlib-devel
184 BuildRequires: zstd-devel >= 1.4.0
185 %if %{with user_static}
186 BuildRequires: glib2-static >= 1:2.74
187 BuildRequires: glibc-static
188 BuildRequires: pcre2-8-static >= 10.32
189 BuildRequires: zlib-static
191 Requires: %{name}-img = %{version}-%{release}
192 Requires: %{name}-system-aarch64 = %{version}-%{release}
193 Requires: %{name}-system-alpha = %{version}-%{release}
194 Requires: %{name}-system-arm = %{version}-%{release}
195 Requires: %{name}-system-avr = %{version}-%{release}
196 Requires: %{name}-system-cris = %{version}-%{release}
197 Requires: %{name}-system-hppa = %{version}-%{release}
198 Requires: %{name}-system-m68k = %{version}-%{release}
199 Requires: %{name}-system-microblaze = %{version}-%{release}
200 Requires: %{name}-system-mips = %{version}-%{release}
201 Requires: %{name}-system-nios2 = %{version}-%{release}
202 Requires: %{name}-system-or1k = %{version}-%{release}
203 Requires: %{name}-system-ppc = %{version}-%{release}
204 Requires: %{name}-system-riscv32 = %{version}-%{release}
205 Requires: %{name}-system-riscv64 = %{version}-%{release}
206 Requires: %{name}-system-rx = %{version}-%{release}
207 Requires: %{name}-system-s390x = %{version}-%{release}
208 Requires: %{name}-system-sh4 = %{version}-%{release}
209 Requires: %{name}-system-sparc = %{version}-%{release}
210 Requires: %{name}-system-tricore = %{version}-%{release}
211 Requires: %{name}-system-x86 = %{version}-%{release}
212 Requires: %{name}-system-xtensa = %{version}-%{release}
213 Requires: %{name}-user = %{version}-%{release}
214 Obsoletes: qemu-kvm < 2
216 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
218 %define systempkg_req \
219 Requires: capstone >= 4.0 \
220 Requires: daxctl-libs >= 57 \
221 %{?with_smartcard:Requires: libcacard >= 2.5.1} \
222 Requires: libfdt >= 1.5.1 \
223 Requires: libfuse3 >= 3.8 \
224 %{?with_iscsi:Requires: libiscsi >= 1.9.0} \
225 Requires: libpng >= 2:1.6.34 \
226 %if %{with seccomp} \
227 Requires: libseccomp >= 2.3.0 \
229 Requires: libslirp >= 4.7 \
230 Requires: liburing >= 0.3 \
231 Requires: libusb >= 1.0.22 \
232 Requires: pixman >= 0.21.8 \
234 Requires: spice-server-libs >= 0.14.0 \
236 %if %{with usbredir} \
237 Requires: usbredir >= 0.6 \
240 # don't strip/chrpath anything in there; these are boot images, roms etc
241 %define _noautostrip .*%{_datadir}/qemu/.*
242 %define _noautochrpath .*%{_datadir}/qemu/.*
245 QEMU is a FAST! processor emulator. By using dynamic translation it
246 achieves a reasonnable speed while being easy to port on new host
247 CPUs. QEMU has two operating modes:
249 - User mode emulation. In this mode, QEMU can launch Linux processes
250 compiled for one CPU on another CPU. Linux system calls are converted
251 because of endianness and 32/64 bit mismatches. Wine (Windows
252 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
254 - Full system emulation. In this mode, QEMU emulates a full system,
255 including a processor and various peripherials. It can also be used to
256 provide virtual hosting of several virtual PC on a single server.
258 %description -l pl.UTF-8
259 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
260 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
261 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
263 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
264 procesy linuksowe skompilowane dla jednego procesora na innym
265 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
266 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
267 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
270 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
271 włączając w to procesor i różne urządzenia peryferyjne. Może być także
272 używane do wirtualnego hostowania kilku wirtualnych pecetów na
273 pojedynczym serwerze.
276 Summary: Header file for QEMU plugins development
277 Summary(pl.UTF-8): Plik nagłówkowy do tworzenia wtyczek QEMU
278 Group: Development/Libraries
282 Header file for QEMU plugins development.
284 %description devel -l pl.UTF-8
285 Plik nagłówkowy do tworzenia wtyczek QEMU.
288 Summary: QEMU common files needed by all QEMU targets
289 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
290 Group: Applications/Emulators
291 Requires(post,preun,postun): systemd-units >= 38
292 Requires(postun): /usr/sbin/groupdel
293 Requires(postun): /usr/sbin/userdel
294 Requires(pre): /bin/id
295 Requires(pre): /usr/bin/getgid
296 Requires(pre): /usr/sbin/groupadd
297 Requires(pre): /usr/sbin/useradd
298 Requires: glib2 >= 1:2.64
299 Requires: gnutls-libs >= 3.6.14
300 %{?with_gtk3:Requires: gtk+3 >= 3.22.0}
301 Requires: nettle >= 3.4
302 Requires: systemd-units >= 38
303 %{?with_vte:Requires: vte >= 0.32.0}
304 Requires: zstd >= 1.4.0
306 Provides: group(qemu)
308 Obsoletes: qemu-kvm-common < 2
309 Obsoletes: qemu-module-block-archipelago < 2.9.0
310 Obsoletes: qemu-system-lm32 < 5.2
311 Obsoletes: qemu-system-moxie < 6.1
312 Obsoletes: qemu-system-unicore32 < 5.2
313 Conflicts: qemu < 1.0-2
316 QEMU is a generic and open source processor emulator which achieves a
317 good emulation speed by using dynamic translation.
319 This package provides the common files needed by all QEMU targets.
321 %description common -l pl.UTF-8
322 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
323 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
325 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
329 Summary: QEMU command line tool for manipulating disk images
330 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
331 Group: Applications/Emulators
332 Obsoletes: qemu-kvm-img < 2
333 Conflicts: qemu < 1.0-2
336 This package provides a command line tool for manipulating disk
339 %description img -l pl.UTF-8
340 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
344 Summary: QEMU user mode emulation of qemu targets
345 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
346 Group: Applications/Emulators
347 Requires: %{name}-common = %{version}-%{release}
348 Requires(post,postun): systemd-units >= 38
349 Requires: systemd-units >= 38
350 Obsoletes: qemu-kvm-user < 2
353 QEMU is a generic and open source processor emulator which achieves a
354 good emulation speed by using dynamic translation.
356 This package provides the user mode emulation of QEMU targets.
358 %description user -l pl.UTF-8
359 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
360 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
362 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
365 Summary: QEMU user mode emulation of qemu targets static build
366 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu - wersja statyczna
367 Group: Applications/Emulators
368 Requires(post,postun): systemd-units >= 38
369 Requires: systemd-units >= 38
371 %description user-static
372 QEMU is a generic and open source processor emulator which achieves a
373 good emulation speed by using dynamic translation.
375 This package provides the user mode emulation of qemu targets built as
378 %description user-static -l pl.UTF-8
379 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
380 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
382 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU w
383 oparciu o programy wykonywalne zbudowane statycznie.
385 %package system-aarch64
386 Summary: QEMU system emulator for AArch64
387 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
388 Group: Applications/Emulators
389 Requires: %{name}-common = %{version}-%{release}
391 Obsoletes: qemu-kvm-system-aarch64 < 2
393 %description system-aarch64
394 QEMU is a generic and open source processor emulator which achieves a
395 good emulation speed by using dynamic translation.
397 This package provides the system emulator with AArch64 (ARM64) CPU.
399 %description system-aarch64 -l pl.UTF-8
400 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
401 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
403 Ten pakiet zawiera emulator systemu z procesorem AArch64 (ARM64).
405 %package system-alpha
406 Summary: QEMU system emulator for Alpha
407 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
408 Group: Applications/Emulators
409 Requires: %{name}-common = %{version}-%{release}
411 Obsoletes: qemu-kvm-system-alpha < 2
413 %description system-alpha
414 QEMU is a generic and open source processor emulator which achieves a
415 good emulation speed by using dynamic translation.
417 This package provides the system emulator with Alpha CPU.
419 %description system-alpha -l pl.UTF-8
420 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
421 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
423 Ten pakiet zawiera emulator systemu z procesorem Alpha.
426 Summary: QEMU system emulator for 32-bit ARM
427 Summary(pl.UTF-8): QEMU - emulator systemu z 32-bitowym procesorem ARM
428 Group: Applications/Emulators
429 Requires: %{name}-common = %{version}-%{release}
431 Obsoletes: qemu-kvm-system-arm < 2
433 %description system-arm
434 QEMU is a generic and open source processor emulator which achieves a
435 good emulation speed by using dynamic translation.
437 This package provides the system emulator for 32-bit ARM.
439 %description system-arm -l pl.UTF-8
440 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
441 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
443 Ten pakiet zawiera emulator systemu z 32-bitowym procesorem ARM.
446 Summary: QEMU system emulator for AVR
447 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AVR
448 Group: Applications/Emulators
449 Requires: %{name}-common = %{version}-%{release}
451 Obsoletes: qemu-kvm-system-avr < 2
453 %description system-avr
454 QEMU is a generic and open source processor emulator which achieves a
455 good emulation speed by using dynamic translation.
457 This package provides the system emulator for AVR.
459 %description system-avr -l pl.UTF-8
460 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
461 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
463 Ten pakiet zawiera emulator systemu z procesorem AVR.
466 Summary: QEMU system emulator for CRIS
467 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
468 Group: Applications/Emulators
469 Requires: %{name}-common = %{version}-%{release}
471 Obsoletes: qemu-kvm-system-cris < 2
473 %description system-cris
474 QEMU is a generic and open source processor emulator which achieves a
475 good emulation speed by using dynamic translation.
477 This package provides the system emulator with CRIS CPU.
479 %description system-cris -l pl.UTF-8
480 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
481 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
483 Ten pakiet zawiera emulator systemu z procesorem CRIS.
486 Summary: QEMU system emulator for HP/PA
487 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem HP/PA
488 Group: Applications/Emulators
489 Requires: %{name}-common = %{version}-%{release}
492 %description system-hppa
493 QEMU is a generic and open source processor emulator which achieves a
494 good emulation speed by using dynamic translation.
496 This package provides the system emulator with HP/PA (PA-RISC) CPU.
498 %description system-hppa -l pl.UTF-8
499 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
500 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
502 Ten pakiet zawiera emulator systemu z procesorem HP/PA (PA-RISC).
505 Summary: QEMU system emulator for m68k
506 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
507 Group: Applications/Emulators
508 Requires: %{name}-common = %{version}-%{release}
510 Obsoletes: qemu-kvm-system-m68k < 2
512 %description system-m68k
513 QEMU is a generic and open source processor emulator which achieves a
514 good emulation speed by using dynamic translation.
516 This package provides the system emulator with m68k (Motorola 68xxx)
519 %description system-m68k -l pl.UTF-8
520 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
521 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
523 Ten pakiet zawiera emulator systemu z procesorem m68k (Motorola
526 %package system-microblaze
527 Summary: QEMU system emulator for MicroBlaze
528 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
529 Group: Applications/Emulators
530 Requires: %{name}-common = %{version}-%{release}
532 Obsoletes: qemu-kvm-system-microblaze < 2
534 %description system-microblaze
535 QEMU is a generic and open source processor emulator which achieves a
536 good emulation speed by using dynamic translation.
538 This package provides the system emulator with MicroBlaze CPU.
540 %description system-microblaze -l pl.UTF-8
541 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
542 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
544 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
547 Summary: QEMU system emulator for MIPS
548 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
549 Group: Applications/Emulators
550 Requires: %{name}-common = %{version}-%{release}
552 Obsoletes: qemu-kvm-system-mips < 2
554 %description system-mips
555 QEMU is a generic and open source processor emulator which achieves a
556 good emulation speed by using dynamic translation.
558 This package provides the system emulator with MIPS CPU.
560 %description system-mips -l pl.UTF-8
561 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
562 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
564 Ten pakiet zawiera emulator systemu z procesorem MIPS.
566 %package system-nios2
567 Summary: QEMU system emulator for Nios II
568 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Nios II
569 Group: Applications/Emulators
570 Requires: %{name}-common = %{version}-%{release}
573 %description system-nios2
574 QEMU is a generic and open source processor emulator which achieves a
575 good emulation speed by using dynamic translation.
577 This package provides the system emulator with Nios II CPU.
579 %description system-nios2 -l pl.UTF-8
580 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
581 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
583 Ten pakiet zawiera emulator systemu z procesorem Nios II.
586 Summary: QEMU system emulator for OpenRISC
587 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
588 Group: Applications/Emulators
589 Requires: %{name}-common = %{version}-%{release}
591 Obsoletes: qemu-kvm-system-or1k < 2
592 Obsoletes: qemu-system-or32 < 2.9.0
594 %description system-or1k
595 QEMU is a generic and open source processor emulator which achieves a
596 good emulation speed by using dynamic translation.
598 This package provides the system emulator with OpenRISC CPU.
600 %description system-or1k -l pl.UTF-8
601 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
602 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
604 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
607 Summary: QEMU system emulator for PowerPC
608 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
609 Group: Applications/Emulators
610 Requires: %{name}-common = %{version}-%{release}
612 Obsoletes: qemu-kvm-system-ppc < 2
614 %description system-ppc
615 QEMU is a generic and open source processor emulator which achieves a
616 good emulation speed by using dynamic translation.
618 This package provides the system emulator with PowerPC CPU.
620 %description system-ppc -l pl.UTF-8
621 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
622 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
624 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
626 %package system-riscv32
627 Summary: QEMU system emulator for RISC-V (32 bit)
628 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (32 bit)
629 Group: Applications/Emulators
630 Requires: %{name}-common = %{version}-%{release}
633 %description system-riscv32
634 QEMU is a generic and open source processor emulator which achieves a
635 good emulation speed by using dynamic translation.
637 This package provides the system emulator with RISC-V (32 bit) CPU.
639 %description system-riscv32 -l pl.UTF-8
640 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
641 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
643 Ten pakiet zawiera emulator systemu z procesorem RISC-V (32 bit).
645 %package system-riscv64
646 Summary: QEMU system emulator for RISC-V (64 bit)
647 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem RISC-V (64 bitowym)
648 Group: Applications/Emulators
649 Requires: %{name}-common = %{version}-%{release}
652 %description system-riscv64
653 QEMU is a generic and open source processor emulator which achieves a
654 good emulation speed by using dynamic translation.
656 This package provides the system emulator with RISC-V (64 bit) CPU.
658 %description system-riscv64 -l pl.UTF-8
659 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
660 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
662 Ten pakiet zawiera emulator systemu z procesorem RISC-V (64-bitowym).
665 Summary: QEMU system emulator for Renesas RX
666 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Renesas RX
667 Group: Applications/Emulators
668 Requires: %{name}-common = %{version}-%{release}
671 %description system-rx
672 QEMU is a generic and open source processor emulator which achieves a
673 good emulation speed by using dynamic translation.
675 This package provides the system emulator with Renesas RX CPU.
677 %description system-rx -l pl.UTF-8
678 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
679 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
681 Ten pakiet zawiera emulator systemu z procesorem Renesas RX.
683 %package system-s390x
684 Summary: QEMU system emulator for S390x (IBM Z)
685 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390x (IBM Z)
686 Group: Applications/Emulators
687 Requires: %{name}-common = %{version}-%{release}
689 Obsoletes: qemu-kvm-system-s390x < 2
691 %description system-s390x
692 QEMU is a generic and open source processor emulator which achieves a
693 good emulation speed by using dynamic translation.
695 This package provides the system emulator with S390x (IBM Z) CPU.
697 %description system-s390x -l pl.UTF-8
698 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
699 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
701 Ten pakiet zawiera emulator systemu z procesorem S390x (IBM Z).
704 Summary: QEMU system emulator for SH4
705 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
706 Group: Applications/Emulators
707 Requires: %{name}-common = %{version}-%{release}
709 Obsoletes: qemu-kvm-system-sh4 < 2
711 %description system-sh4
712 QEMU is a generic and open source processor emulator which achieves a
713 good emulation speed by using dynamic translation.
715 This package provides the system emulator with SH4 CPU.
717 %description system-sh4 -l pl.UTF-8
718 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
719 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
721 Ten pakiet zawiera emulator systemu z procesorem SH4.
723 %package system-sparc
724 Summary: QEMU system emulator for SPARC
725 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
726 Group: Applications/Emulators
727 Requires: %{name}-common = %{version}-%{release}
729 Obsoletes: qemu-kvm-system-sparc < 2
731 %description system-sparc
732 QEMU is a generic and open source processor emulator which achieves a
733 good emulation speed by using dynamic translation.
735 This package provides the system emulator with SPARC/SPARC64 CPU.
737 %description system-sparc -l pl.UTF-8
738 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
739 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
741 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
743 %package system-tricore
744 Summary: QEMU system emulator for TriCore
745 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
746 Group: Applications/Emulators
747 Requires: %{name}-common = %{version}-%{release}
750 %description system-tricore
751 QEMU is a generic and open source processor emulator which achieves a
752 good emulation speed by using dynamic translation.
754 This package provides the system emulator with TriCore CPU.
756 %description system-tricore -l pl.UTF-8
757 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
758 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
760 Ten pakiet zawiera emulator systemu z procesorem TriCore.
763 Summary: QEMU system emulator for x86
764 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
765 Group: Applications/Emulators
766 Requires: %{name}-common = %{version}-%{release}
767 %{?with_vfio_user:Requires: libvfio-user = %{version}-%{release}}
768 %{?with_system_seabios:Requires: seabios >= 1.11.0}
771 Obsoletes: qemu-kvm-system-x86 < 2
773 %description system-x86
774 QEMU is a generic and open source processor emulator which achieves a
775 good emulation speed by using dynamic translation.
777 This package provides the system emulator with x86 CPU.
779 %description system-x86 -l pl.UTF-8
780 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
781 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
783 Ten pakiet zawiera emulator systemu z procesorem x86.
785 %package system-xtensa
786 Summary: QEMU system emulator for Xtensa
787 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
788 Group: Applications/Emulators
789 Requires: %{name}-common = %{version}-%{release}
791 Obsoletes: qemu-kvm-system-xtensa < 2
793 %description system-xtensa
794 QEMU is a generic and open source processor emulator which achieves a
795 good emulation speed by using dynamic translation.
797 This package provides the system emulator with Xtensa CPU.
799 %description system-xtensa -l pl.UTF-8
800 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
801 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
803 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
806 Summary: QEMU guest agent
807 Summary(pl.UTF-8): Agent gościa QEMU
809 Requires(post,preun,postun): systemd-units >= 38
810 Requires: glib2 >= 1:2.64
811 Requires: liburing >= 0.3
812 Requires: systemd-units >= 38
813 Obsoletes: qemu-kvm-guest-agent < 2
814 Conflicts: SysVinit < 2.96-2
816 %description guest-agent
817 QEMU is a generic and open source processor emulator which achieves a
818 good emulation speed by using dynamic translation.
820 This package provides an agent to run inside guests, which
821 communicates with the host over a virtio-serial channel named
822 "org.qemu.guest_agent.0".
824 This package does not need to be installed on the host OS.
826 %description guest-agent -l pl.UTF-8
827 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
828 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
830 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
831 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
832 "org.qemu.guest_agent.0".
834 Ten pakiet nie musi być zainstalowany w systemie hosta.
836 %package module-audio-jack
837 Summary: QEMU module for JACK audio output
838 Summary(pl.UTF-8): Moduł QEMU z wyjściem dźwięku JACK
839 Group: Applications/Emulators
840 Requires: %{name}-common = %{version}-%{release}
842 %description module-audio-jack
843 QEMU module for JACK audio output.
845 %description module-audio-jack -l pl.UTF-8
846 Moduł QEMU z wyjściem dźwięku JACK.
848 %package module-block-curl
849 Summary: QEMU module for 'curl' block devices
850 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
851 Group: Applications/Emulators
852 Requires: %{name}-common = %{version}-%{release}
853 Requires: curl-libs >= 7.29.0
855 %description module-block-curl
856 QEMU block device support for CURL. It allows to access remote disks
857 over http, https, ftp and other transports provided by the CURL
860 %description module-block-curl -l pl.UTF-8
861 Moduł QEMU dla urządeń blokowych CURL. Pozwala na dostęp do zdalnych
862 dysków poprzez http, https, ftp i inne protokoły obsługiwane przez
865 %package module-block-gluster
866 Summary: QEMU module for 'gluster' block devices
867 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
868 Group: Applications/Emulators
869 Requires: %{name}-common = %{version}-%{release}
870 Requires: glusterfs-libs >= 6
872 %description module-block-gluster
873 QEMU block device support for remote Gluster storage.
875 %description module-block-gluster -l pl.UTF-8
876 Moduł urządzeń blokowych QEMU do dostępu do zdalnej przestrzeni
879 %package module-block-iscsi
880 Summary: QEMU module for 'iscsi' block devices
881 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
882 Group: Applications/Emulators
883 Requires: %{name}-common = %{version}-%{release}
884 Requires: libiscsi >= 1.9.0
886 %description module-block-iscsi
887 QEMU block device support for iSCSI volumes.
889 %description module-block-iscsi -l pl.UTF-8
890 Moduł urządzeń blokowych QEMU do dostępu do wolumenów iSCSI.
892 %package module-block-nfs
893 Summary: QEMU module for 'nfs' block devices
894 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'nfs'
895 Group: Applications/Emulators
896 Requires: %{name}-common = %{version}-%{release}
897 Requires: libnfs >= 1.9.3
899 %description module-block-nfs
900 QEMU block device support for remote NFS storage.
902 %description module-block-nfs -l pl.UTF-8
903 Moduł urządzeń blokowych QEMU do dostępu do zdalnej przestrzeni po
906 %package module-block-rbd
907 Summary: QEMU module for 'rbd' block devices
908 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
909 Group: Applications/Emulators
910 Requires: %{name}-common = %{version}-%{release}
911 Requires: ceph-libs >= 12
913 %description module-block-rbd
914 QEMU block device support for Ceph/RBD volumes.
916 %description module-block-rbd -l pl.UTF-8
917 Moduł urządzeń blokowych QEMU do wolumenów Ceph/RBD.
919 %package module-block-ssh
920 Summary: QEMU module for 'ssh' block devices
921 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
922 Group: Applications/Emulators
923 Requires: %{name}-common = %{version}-%{release}
924 Requires: libssh >= 0.8.7
926 %description module-block-ssh
927 QEMU block device support for accessing remote disks using the Secure
928 Shell (SSH) protocol.
930 %description module-block-ssh -l pl.UTF-8
931 Moduł urządzeń blokowych QEMU do dostępu do zdalnych dysków poprzez
932 protokół SSH (Secure Shell).
934 %package module-ui-dbus
935 Summary: QEMU DBus UI driver
936 Summary(pl.UTF-8): Sterownik interfejsu użytkownika DBus dla QEMU
937 Group: Applications/Emulators
938 Requires: %{name}-common = %{version}-%{release}
940 %description module-ui-dbus
943 %description module-ui-dbus -l pl.UTF-8
944 Sterownik interfejsu użytkownika DBus dla QEMU.
946 %package module-ui-gtk
947 Summary: QEMU GTK UI driver
948 Summary(pl.UTF-8): Sterownik interfejsu użytkownika GTK dla QEMU
949 Group: Applications/Emulators
950 Requires: %{name}-common = %{version}-%{release}
952 %description module-ui-gtk
955 %description module-ui-gtk -l pl.UTF-8
956 Sterownik interfejsu użytkownika GTK dla QEMU.
958 %package module-ui-sdl
959 Summary: QEMU SDL UI and audio driver
960 Summary(pl.UTF-8): Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU
961 Group: Applications/Emulators
962 Requires: %{name}-common = %{version}-%{release}
964 %description module-ui-sdl
965 QEMU SDL UI and audio driver.
967 %description module-ui-sdl -l pl.UTF-8
968 Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU.
970 %package -n systemtap-qemu
971 Summary: systemtap/dtrace probes for QEMU
972 Summary(pl.UTF-8): Sondy systemtap/dtrace dla QEMU
973 Group: Development/Tools
974 Requires: %{name}-common = %{version}-%{release}
975 Requires: systemtap-client
977 %description -n systemtap-qemu
978 systemtap/dtrace probes for QEMU.
980 %description -n systemtap-qemu -l pl.UTF-8
981 Sondy systemtap/dtrace dla QEMU.
983 %package -n libvfio-user
984 Summary: vfio-user library
985 Summary(pl.UTF-8): Biblioteka vfio-user
987 Requires: json-c >= 0.11
989 %description -n libvfio-user
990 vfio-user is a framework that allows implementing PCI devices in
991 userspace. Clients (such as qemu) talk the vfio-user protocol over a
992 UNIX socket to a server. This library, libvfio-user, provides an API
993 for implementing such servers.
995 %description -n libvfio-user -l pl.UTF-8
996 vfio-user to szkielet pozwalający implementować urządzenia PCI w
997 przestrzeni użytkownika. Klienci (jak qemu) komunikują się z serwerem
998 protokołem vfio-user przez gniazdo uniksowe.
1000 %package -n libvfio-user-devel
1001 Summary: Header files for vfio-user library
1002 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki vfio-user
1003 Group: Development/Libraries
1004 Requires: libvfio-user = %{version}-%{release}
1006 %description -n libvfio-user-devel
1007 Header files for vfio-user library.
1009 %description -n libvfio-user-devel -l pl.UTF-8
1010 Pliki nagłówkowe biblioteki vfio-user.
1024 %{__sed} -i '1s,/usr/bin/env python3,%{__python3},' scripts/qemu-trace-stap
1026 %if %{with systemtap}
1027 # don't require stap binary during build
1028 %{__sed} -i -e "s/stap.found()/true/" meson.build docs/meson.build scripts/meson.build
1037 install -d build-$target
1041 --prefix=%{_prefix} \
1042 --libdir=%{_libdir} \
1043 --libexecdir=%{_libexecdir} \
1044 --sysconfdir=%{_sysconfdir} \
1045 --localstatedir=%{_localstatedir} \
1046 --interp-prefix=%{_libdir}/qemu/lib-%%M \
1049 --host-cc="%{__cc}" \
1051 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
1057 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
1063 --extra-cflags="%{rpmcflags} %{rpmcppflags}" \
1064 --extra-ldflags="%{rpmldflags} -Wl,-z,relro -Wl,-z,now" \
1065 --audio-drv-list="alsa,jack%{?with_oss:,oss}%{?with_pulseaudio:,pa}%{?with_sdl:,sdl}" \
1067 %{__enable_disable brlapi} \
1068 %{__enable_disable canokey} \
1075 %{__enable_disable glusterfs} \
1076 %{!?with_gtk3:--disable-gtk} \
1077 %{__enable_disable iscsi libiscsi} \
1078 %{__enable_disable libnfs} \
1079 %{__enable_disable pmem libpmem} \
1081 %{__enable_disable multipath mpath} \
1085 %{__enable_disable ceph rbd} \
1086 %{__enable_disable rdma} \
1087 %{__enable_disable sdl} \
1088 %{__enable_disable seccomp} \
1090 %{__enable_disable spice} \
1091 %{__enable_disable smartcard} \
1092 %{__enable_disable snappy} \
1094 %{__enable_disable usbredir usb-redir} \
1096 %{?with_vfio_user:--enable-vfio-user-server} \
1097 %{__enable_disable virgl virglrenderer} \
1101 %{!?with_vte:--disable-vte} \
1102 %{__enable_disable xen} \
1103 %{__enable_disable xkbcommon}
1105 %if %{with user_static}
1110 --disable-capstone \
1116 --disable-guest-agent \
1117 --disable-guest-agent-msi \
1119 --disable-linux-io-uring \
1129 --disable-xkbcommon \
1134 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
1137 rm -rf $RPM_BUILD_ROOT
1138 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
1139 $RPM_BUILD_ROOT/etc/{qemu,sysconfig,modules-load.d,rc.d/init.d,logrotate.d} \
1140 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,/lib/udev/rules.d,%{_sbindir}}
1142 %if %{with user_static}
1143 %{__make} -C build-static install \
1144 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
1145 DESTDIR=$RPM_BUILD_ROOT
1147 # Give all QEMU user emulators a -static suffix
1148 for src in $RPM_BUILD_ROOT%{_bindir}/qemu-*; do
1149 %{__mv} $src $src-static
1154 %{__make} -C build-dynamic install \
1155 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
1156 DESTDIR=$RPM_BUILD_ROOT
1158 # let rpm generate dependencies
1159 chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/*.so
1161 echo "#allow br0" > $RPM_BUILD_ROOT/etc/qemu/bridge.conf
1163 install -d $RPM_BUILD_ROOT%{_sysconfdir}
1164 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
1169 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
1171 %ifarch %{ix86} %{x8664} x32
1172 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
1173 install -p %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/rules.d
1176 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
1177 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
1178 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
1180 install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
1181 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
1182 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
1184 # For the qemu-guest-agent subpackage install the systemd
1185 # service and udev rules.
1186 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
1187 install -p %{SOURCE12} $RPM_BUILD_ROOT/lib/udev/rules.d
1189 install -p %{SOURCE13} $RPM_BUILD_ROOT/etc/rc.d/init.d/qemu-ga
1190 install -p %{SOURCE14} $RPM_BUILD_ROOT/etc/logrotate.d/qemu-ga
1192 cp -p %{SOURCE15} %{SOURCE16} $RPM_BUILD_ROOT%{systemdunitdir}
1196 %ifnarch %{ix86} %{x8664} x32
1210 microblaze microblazeel \
1226 %ifnarch ppc ppc64 ppc64le
1229 %ifnarch sparc sparc64
1230 sparc sparc32plus sparc64 \
1241 if [ -n "$BINFMT_CPUS" ]; then
1242 for cpu in $BINFMT_CPUS; do
1243 bash ./scripts/qemu-binfmt-conf.sh --systemd "$cpu" --exportdir $RPM_BUILD_ROOT/usr/lib/binfmt.d --qemu-path %{_bindir}
1245 for i in $RPM_BUILD_ROOT/usr/lib/binfmt.d/*.conf; do
1246 %{__mv} $i ${i%.conf}-dynamic.conf
1249 %if %{with user_static}
1250 for regularfmt in $RPM_BUILD_ROOT/usr/lib/binfmt.d/*; do
1251 staticfmt="${regularfmt%\-dynamic.conf}-static.conf"
1252 cat $regularfmt | tr -d '\n' | sed "s/:$/-static:F/" > $staticfmt
1257 %if %{with system_seabios}
1258 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
1259 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
1263 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
1264 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
1270 for t in client server; do
1271 cp -p build-dynamic/contrib/ivshmem-$t/ivshmem-$t $RPM_BUILD_ROOT%{_bindir}
1275 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/accel-qtest-*.so
1276 # Windows installer icon, not used
1277 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/qemu-nsis.bmp
1279 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/edk2-licenses.txt
1281 # cleanup Sphinx files
1282 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/{.buildinfo,objects.inv}
1285 rm -rf $RPM_BUILD_ROOT
1288 %groupadd -g 160 kvm
1289 %groupadd -g 276 qemu
1290 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
1293 %systemd_post ksm.service
1294 %systemd_post ksmtuned.service
1297 %systemd_preun ksm.service
1298 %systemd_preun ksmtuned.service
1301 if [ "$1" = "0" ]; then
1308 %triggerpostun common -- qemu-common < 1.6.1-4
1309 %systemd_trigger ksm.service
1310 %systemd_trigger ksmtuned.service
1311 %systemd_trigger qemu-pr-helper.service
1314 %systemd_post systemd-binfmt.service
1317 %systemd_post systemd-binfmt.service
1320 %systemd_post systemd-binfmt.service
1323 %systemd_post systemd-binfmt.service
1326 /sbin/chkconfig --add qemu-ga
1327 %service qemu-ga restart "qemu-ga"
1331 if [ "$1" = "0" ]; then
1332 %service qemu-ga stop
1333 /sbin/chkconfig --del qemu-ga
1335 %systemd_preun qemu-guest-agent.service
1340 %post -n libvfio-user -p /sbin/ldconfig
1341 %postun -n libvfio-user -p /sbin/ldconfig
1344 %defattr(644,root,root,755)
1347 %defattr(644,root,root,755)
1348 %{_includedir}/qemu-plugin.h
1350 %files common -f %{name}.lang
1351 %defattr(644,root,root,755)
1352 %doc LICENSE README.rst pc-bios/edk2-licenses.txt
1353 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
1354 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
1355 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
1356 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
1358 %attr(640,root,qemu) %config(noreplace) %verify(not md5 mtime size) /etc/qemu/bridge.conf
1359 %{systemdunitdir}/ksm.service
1360 %{systemdunitdir}/ksmtuned.service
1361 %{systemdunitdir}/qemu-pr-helper.service
1362 %{systemdunitdir}/qemu-pr-helper.socket
1363 %attr(755,root,root) %{_bindir}/elf2dmp
1364 %attr(755,root,root) %{_bindir}/ivshmem-client
1365 %attr(755,root,root) %{_bindir}/ivshmem-server
1366 %attr(755,root,root) %{_bindir}/qemu-edid
1367 %if %{with xkbcommon}
1368 %attr(755,root,root) %{_bindir}/qemu-keymap
1370 %attr(755,root,root) %{_bindir}/qemu-nbd
1371 %attr(755,root,root) %{_bindir}/qemu-pr-helper
1372 %attr(755,root,root) %{_bindir}/qemu-storage-daemon
1373 %attr(755,root,root) %{_sbindir}/ksmctl
1374 %attr(755,root,root) %{_sbindir}/ksmtuned
1375 %attr(755,root,root) %{_libexecdir}/qemu-bridge-helper
1377 %attr(755,root,root) %{_libexecdir}/vhost-user-gpu
1379 %attr(755,root,root) %{_libexecdir}/virtfs-proxy-helper
1380 %dir %{_libdir}/%{name}
1381 # modules without too many external dependencies
1382 %attr(755,root,root) %{_libdir}/%{name}/block-blkio.so
1383 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-bz2.so
1384 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-lzfse.so
1385 %attr(755,root,root) %{_libdir}/%{name}/accel-tcg-i386.so
1386 %attr(755,root,root) %{_libdir}/%{name}/accel-tcg-x86_64.so
1387 %attr(755,root,root) %{_libdir}/%{name}/audio-alsa.so
1389 %attr(755,root,root) %{_libdir}/%{name}/audio-oss.so
1391 %if %{with pulseaudio}
1392 %attr(755,root,root) %{_libdir}/%{name}/audio-pa.so
1395 %attr(755,root,root) %{_libdir}/%{name}/chardev-baum.so
1397 %attr(755,root,root) %{_libdir}/%{name}/hw-display-qxl.so
1398 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu.so
1399 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-gl.so
1400 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-pci.so
1401 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-pci-gl.so
1402 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-vga.so
1403 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-vga-gl.so
1404 %attr(755,root,root) %{_libdir}/%{name}/hw-s390x-virtio-gpu-ccw.so
1405 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-host.so
1406 %attr(755,root,root) %{_libdir}/%{name}/ui-curses.so
1407 %if %{with usbredir}
1408 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-redirect.so
1410 %if %{with smartcard}
1411 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-smartcard.so
1414 %attr(755,root,root) %{_libdir}/%{name}/ui-egl-headless.so
1415 %attr(755,root,root) %{_libdir}/%{name}/ui-opengl.so
1418 %attr(755,root,root) %{_libdir}/%{name}/audio-spice.so
1419 %attr(755,root,root) %{_libdir}/%{name}/chardev-spice.so
1420 %attr(755,root,root) %{_libdir}/%{name}/ui-spice-app.so
1421 %attr(755,root,root) %{_libdir}/%{name}/ui-spice-core.so
1423 %dir %{_datadir}/%{name}
1424 %dir %{_datadir}/%{name}/firmware
1425 %{_datadir}/%{name}/keymaps
1426 %{_datadir}/%{name}/trace-events-all
1427 %dir %{_datadir}/%{name}/vhost-user
1429 %{_datadir}/%{name}/vhost-user/50-qemu-gpu.json
1431 %{_desktopdir}/qemu.desktop
1432 %{_iconsdir}/hicolor/*x*/apps/qemu.png
1433 %{_iconsdir}/hicolor/32x32/apps/qemu.bmp
1434 %{_iconsdir}/hicolor/scalable/apps/qemu.svg
1435 %{_mandir}/man1/qemu.1*
1436 %{_mandir}/man1/qemu-storage-daemon.1*
1437 %{_mandir}/man1/virtfs-proxy-helper.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}/vgabios.bin
1683 %{_datadir}/%{name}/vgabios-ati.bin
1684 %{_datadir}/%{name}/vgabios-bochs-display.bin
1685 %{_datadir}/%{name}/vgabios-cirrus.bin
1686 %{_datadir}/%{name}/vgabios-qxl.bin
1687 %{_datadir}/%{name}/vgabios-ramfb.bin
1688 %{_datadir}/%{name}/vgabios-stdvga.bin
1689 %{_datadir}/%{name}/vgabios-virtio.bin
1690 %{_datadir}/%{name}/vgabios-vmware.bin
1691 %{_datadir}/%{name}/firmware/50-edk2-i386-secure.json
1692 %{_datadir}/%{name}/firmware/50-edk2-x86_64-secure.json
1693 %{_datadir}/%{name}/firmware/60-edk2-i386.json
1694 %{_datadir}/%{name}/firmware/60-edk2-x86_64.json
1696 %files system-xtensa
1697 %defattr(644,root,root,755)
1698 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1699 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1702 %defattr(644,root,root,755)
1703 %attr(755,root,root) %{_bindir}/qemu-ga
1704 /lib/udev/rules.d/99-qemu-guest-agent.rules
1705 %{systemdunitdir}/qemu-guest-agent.service
1706 %attr(754,root,root) /etc/rc.d/init.d/qemu-ga
1707 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/qemu-ga
1708 %{_mandir}/man7/qemu-ga-ref.7*
1709 %{_mandir}/man8/qemu-ga.8*
1711 %files module-audio-jack
1712 %defattr(644,root,root,755)
1713 %attr(755,root,root) %{_libdir}/%{name}/audio-jack.so
1715 %files module-block-curl
1716 %defattr(644,root,root,755)
1717 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1719 %if %{with glusterfs}
1720 %files module-block-gluster
1721 %defattr(644,root,root,755)
1722 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1726 %files module-block-iscsi
1727 %defattr(644,root,root,755)
1728 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1732 %files module-block-nfs
1733 %defattr(644,root,root,755)
1734 %attr(755,root,root) %{_libdir}/%{name}/block-nfs.so
1738 %files module-block-rbd
1739 %defattr(644,root,root,755)
1740 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1743 %files module-block-ssh
1744 %defattr(644,root,root,755)
1745 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so
1747 %files module-ui-dbus
1748 %defattr(644,root,root,755)
1749 %attr(755,root,root) %{_libdir}/%{name}/audio-dbus.so
1750 %attr(755,root,root) %{_libdir}/%{name}/ui-dbus.so
1753 %files module-ui-gtk
1754 %defattr(644,root,root,755)
1755 %attr(755,root,root) %{_libdir}/%{name}/ui-gtk.so
1759 %files module-ui-sdl
1760 %defattr(644,root,root,755)
1761 %attr(755,root,root) %{_libdir}/%{name}/audio-sdl.so
1762 %attr(755,root,root) %{_libdir}/%{name}/ui-sdl.so
1765 %if %{with systemtap}
1766 %files -n systemtap-qemu
1767 %defattr(644,root,root,755)
1768 %attr(755,root,root) %{_bindir}/qemu-trace-stap
1769 %{_datadir}/systemtap/tapset/qemu-*.stp
1770 %{_mandir}/man1/qemu-trace-stap.1*
1773 %if %{with vfio_user}
1774 %files -n libvfio-user
1775 %defattr(644,root,root,755)
1776 %attr(755,root,root) %{_libdir}/libvfio-user.so.*.*.*
1777 %attr(755,root,root) %ghost %{_libdir}/libvfio-user.so.0
1779 %files -n libvfio-user-devel
1780 %defattr(644,root,root,755)
1781 %attr(755,root,root) %{_libdir}/libvfio-user.so
1782 %{_includedir}/vfio-user