]> TLD Linux GIT Repositories - packages/qemu.git/blob - qemu.spec
- merged two fixes from PLD, dropped test modules, dropped libslirp
[packages/qemu.git] / qemu.spec
1 # TODO:
2 # plugins? (probes)
3 #
4 # Conditional build:
5 %bcond_without  sdl             # SDL UI and audio support
6 %bcond_without  opengl          # Don't require GL deps
7 %bcond_with     ceph            # Ceph/RBD support
8 %bcond_without  glusterfs       # GlusterFS backend
9 %bcond_without  rdma            # RDMA-based migration support
10 %bcond_without  gtk3            # Do not build GTK+ UI
11 %bcond_without  vte             # VTE support in GTK+ UI
12 %bcond_without  spice           # SPICE support
13 %bcond_without  oss             # OSS audio support
14 %bcond_without  pulseaudio      # PulseAudio audio support
15 %bcond_without  xen             # Xen backend driver support
16 %bcond_with     brlapi          # brlapi support
17 %bcond_without  smartcard       # smartcard-nss support
18 %bcond_without  iscsi           # iscsi support
19 %bcond_without  libnfs          # NFS support
20 %bcond_without  multipath       # Multipath support
21 %bcond_without  pmem            # libpmem (persistent memory) support
22 %bcond_without  seccomp         # seccomp support
23 %bcond_without  usbredir        # usb network redirection support
24 %bcond_without  system_seabios  # system seabios binary
25 %bcond_without  snappy          # snappy compression library
26 %bcond_without  user_static     # build linux-user static packages
27 %bcond_with     lttng           # lttng-ust trace backend support [needs update]
28 %bcond_without  systemtap       # SystemTap/dtrace trace backend support
29 %bcond_without  virgl           # build virgl support
30 %bcond_without  xkbcommon       # xkbcommon support
31
32 %if %{without gtk3}
33 %undefine       with_vte
34 %endif
35 %ifarch x32
36 %undefine       with_xen
37 %endif
38 %ifnarch %{x8664} aarch64
39 %undefine       with_ceph
40 %undefine       with_pmem
41 %endif
42
43 Summary:        QEMU CPU Emulator
44 Summary(pl.UTF-8):      QEMU - emulator procesora
45 Name:           qemu
46 Version:        8.0.3
47 Release:        1
48 License:        GPL v2, BSD (edk2 firmware files)
49 Group:          Applications/Emulators
50 Source0:        https://download.qemu.org/%{name}-%{version}.tar.xz
51 # Source0-md5:  d41853bffb18878dd1ff7afc2eb41f1a
52 # Loads kvm kernel modules at boot
53 Source3:        kvm-modules-load.conf
54 # Creates /dev/kvm
55 Source4:        80-kvm.rules
56 # KSM control scripts
57 Source6:        ksm.sysconfig
58 Source7:        ksmctl.c
59 Source9:        ksmtuned
60 Source10:       ksmtuned.conf
61 Source12:       99-%{name}-guest-agent.rules
62 Source13:       %{name}-guest-agent.init
63 Source14:       %{name}-guest-agent.logrotate
64 Patch0:         %{name}-no-fortify.patch
65 Patch2:         %{name}-execve.patch
66 Patch3:         %{name}-xattr.patch
67 Patch4:         libjpeg-boolean.patch
68 Patch5:         %{name}-u2f-emu.patch
69 Patch6:         %{name}-linux-mount.patch
70 URL:            https://www.qemu.org/
71 %{?with_opengl:BuildRequires:   Mesa-libgbm-devel}
72 %{?with_opengl:BuildRequires:   OpenGL-GLX-devel}
73 %{?with_opengl:BuildRequires:   OpenGL-devel}
74 %{?with_sdl:BuildRequires:      SDL2-devel >= 2.0}
75 %{?with_sdl:BuildRequires:      SDL2_image-devel >= 2.0}
76 BuildRequires:  alsa-lib-devel
77 %{?with_brlapi:BuildRequires:   brlapi-devel}
78 BuildRequires:  bzip2-devel
79 BuildRequires:  capstone-devel >= 4.0
80 %{?with_ceph:BuildRequires:     ceph-devel >= 12}
81 BuildRequires:  curl-devel >= 7.29.0
82 BuildRequires:  cyrus-sasl-devel >= 2
83 BuildRequires:  daxctl-devel >= 57
84 BuildRequires:  gcc >= 6:7.4
85 BuildRequires:  gettext-tools
86 BuildRequires:  glib2-devel >= 1:2.64
87 # minimal is 3.4 but new features are used up to 6
88 %{?with_glusterfs:BuildRequires:        glusterfs-devel >= 6}
89 BuildRequires:  gnutls-devel >= 3.6.14
90 %{?with_gtk3:BuildRequires:     gtk+3-devel >= 3.22.0}
91 BuildRequires:  jack-audio-connection-kit-devel
92 # for tests
93 #BuildRequires: keyutils-devel
94 BuildRequires:  libaio-devel
95 BuildRequires:  libbpf-devel
96 %{?with_smartcard:BuildRequires:        libcacard-devel >= 2.5.1}
97 BuildRequires:  libcap-ng-devel
98 BuildRequires:  libdrm-devel
99 %{?with_opengl:BuildRequires:   libepoxy-devel}
100 BuildRequires:  libfdt-devel >= 1.5.1
101 BuildRequires:  libfuse3-devel >= 3.8
102 %{?with_rdma:BuildRequires:     libibverbs-devel}
103 %{?with_iscsi:BuildRequires:    libiscsi-devel >= 1.9.0}
104 %{?with_rdma:BuildRequires:     libibumad-devel}
105 BuildRequires:  libjpeg-devel
106 %{?with_libnfs:BuildRequires:   libnfs-devel >= 1.9.3}
107 BuildRequires:  libpng-devel >= 2:1.6.34
108 %{?with_rdma:BuildRequires:     librdmacm-devel}
109 %{?with_seccomp:BuildRequires:  libseccomp-devel >= 2.3.0}
110 BuildRequires:  libselinux-devel
111 BuildRequires:  libssh-devel >= 0.8.7
112 # for tests only
113 #BuildRequires: libtasn1-devel
114 BuildRequires:  libu2f-emu-devel
115 BuildRequires:  libusb-devel >= 1.0.22
116 BuildRequires:  liburing-devel >= 0.3
117 BuildRequires:  libuuid-devel
118 BuildRequires:  libxml2-devel >= 2.0
119 %{?with_lttng:BuildRequires:    lttng-ust-devel >= 2.1}
120 BuildRequires:  lzfse-devel
121 BuildRequires:  lzo-devel >= 2
122 BuildRequires:  meson >= 0.59.3
123 %{?with_multipath:BuildRequires:        multipath-tools-devel}
124 BuildRequires:  ncurses-devel
125 # also libgcrypt-devel >= 1.8 possible, but gnutls already pulls nettle
126 BuildRequires:  nettle-devel >= 3.4
127 BuildRequires:  ninja
128 %{?with_smartcard:BuildRequires:        nss-devel >= 1:3.12.8}
129 BuildRequires:  numactl-devel
130 BuildRequires:  pam-devel
131 BuildRequires:  perl-Encode
132 BuildRequires:  perl-tools-pod
133 BuildRequires:  pixman-devel >= 0.21.8
134 BuildRequires:  pkgconfig
135 %{?with_pmem:BuildRequires:     pmdk-devel}
136 %{?with_pulseaudio:BuildRequires:       pulseaudio-devel}
137 BuildRequires:  python3 >= 1:3.6
138 BuildRequires:  python3-sphinx_rtd_theme
139 BuildRequires:  rpm-build >= 4.6
140 BuildRequires:  rpmbuild(macros) >= 1.644
141 %{?with_system_seabios:BuildRequires:   seabios}
142 BuildRequires:  sed >= 4.0
143 %{?with_snappy:BuildRequires:   snappy-devel}
144 BuildRequires:  sphinx-pdg
145 %if %{with spice}
146 BuildRequires:  spice-protocol >= 0.12.3
147 BuildRequires:  spice-server-devel >= 0.12.5
148 %endif
149 %{?with_systemtap:BuildRequires:        systemtap-sdt-devel}
150 BuildRequires:  tar >= 1:1.22
151 BuildRequires:  texi2html
152 BuildRequires:  texinfo
153 %{?with_multipath:BuildRequires:        udev-devel}
154 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
155 %{?with_lttng:BuildRequires:    userspace-rcu-devel}
156 BuildRequires:  vde2-devel
157 BuildRequires:  which
158 %{?with_virgl:BuildRequires:    virglrenderer-devel}
159 %{?with_vte:BuildRequires:      vte-devel >= 0.32.0}
160 # xencontrol xenstore xenguest xenforeignmemory xengnttab xenevtchn xendevicemodel; xentoolcore for xen 4.10+
161 # min version is 4.2, more features up to 4.11
162 %{?with_xen:BuildRequires:      xen-devel >= 4.11}
163 BuildRequires:  xfsprogs-devel
164 %if %{with xkbcommon}
165 BuildRequires:  xkeyboard-config
166 BuildRequires:  xorg-lib-libxkbcommon-devel
167 %endif
168 BuildRequires:  xorg-lib-libX11-devel
169 BuildRequires:  xz
170 BuildRequires:  zlib-devel
171 BuildRequires:  zstd-devel >= 1.4.0
172 %if %{with user_static}
173 BuildRequires:  glib2-static >= 1:2.74
174 BuildRequires:  glibc-static
175 BuildRequires:  pcre2-8-static >= 10.32
176 BuildRequires:  zlib-static
177 %endif
178 Requires:       %{name}-img = %{version}-%{release}
179 Requires:       %{name}-system-aarch64 = %{version}-%{release}
180 Requires:       %{name}-system-alpha = %{version}-%{release}
181 Requires:       %{name}-system-arm = %{version}-%{release}
182 Requires:       %{name}-system-avr = %{version}-%{release}
183 Requires:       %{name}-system-cris = %{version}-%{release}
184 Requires:       %{name}-system-hppa = %{version}-%{release}
185 Requires:       %{name}-system-m68k = %{version}-%{release}
186 Requires:       %{name}-system-microblaze = %{version}-%{release}
187 Requires:       %{name}-system-mips = %{version}-%{release}
188 Requires:       %{name}-system-nios2 = %{version}-%{release}
189 Requires:       %{name}-system-or1k = %{version}-%{release}
190 Requires:       %{name}-system-ppc = %{version}-%{release}
191 Requires:       %{name}-system-riscv32 = %{version}-%{release}
192 Requires:       %{name}-system-riscv64 = %{version}-%{release}
193 Requires:       %{name}-system-rx = %{version}-%{release}
194 Requires:       %{name}-system-s390x = %{version}-%{release}
195 Requires:       %{name}-system-sh4 = %{version}-%{release}
196 Requires:       %{name}-system-sparc = %{version}-%{release}
197 Requires:       %{name}-system-tricore = %{version}-%{release}
198 Requires:       %{name}-system-x86 = %{version}-%{release}
199 Requires:       %{name}-system-xtensa = %{version}-%{release}
200 Requires:       %{name}-user = %{version}-%{release}
201 Obsoletes:      qemu-kvm < 2
202 ExcludeArch:    i386
203 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
204
205 %define systempkg_req \
206 Requires:       capstone >= 4.0 \
207 Requires:       daxctl-libs >= 57 \
208 %{?with_smartcard:Requires:     libcacard >= 2.5.1} \
209 Requires:       libfdt >= 1.5.1 \
210 Requires:       libfuse3 >= 3.8 \
211 %{?with_iscsi:Requires: libiscsi >= 1.9.0} \
212 Requires:       libpng >= 2:1.6.34 \
213 %if %{with seccomp} \
214 Requires:       libseccomp >= 2.3.0 \
215 %endif \
216 Requires:       liburing >= 0.3 \
217 Requires:       libusb >= 1.0.22 \
218 Requires:       pixman >= 0.21.8 \
219 %if %{with spice} \
220 Requires:       spice-server-libs >= 0.12.5 \
221 %endif \
222 %if %{with usbredir} \
223 Requires:       usbredir >= 0.6 \
224 %endif
225
226 # don't strip/chrpath anything in there; these are boot images, roms etc
227 %define         _noautostrip    .*%{_datadir}/qemu/.*
228 %define         _noautochrpath  .*%{_datadir}/qemu/.*
229
230 %description
231 QEMU is a FAST! processor emulator. By using dynamic translation it
232 achieves a reasonnable speed while being easy to port on new host
233 CPUs. QEMU has two operating modes:
234
235 - User mode emulation. In this mode, QEMU can launch Linux processes
236   compiled for one CPU on another CPU. Linux system calls are converted
237   because of endianness and 32/64 bit mismatches. Wine (Windows
238   emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
239
240 - Full system emulation. In this mode, QEMU emulates a full system,
241   including a processor and various peripherials. It can also be used to
242   provide virtual hosting of several virtual PC on a single server.
243
244 %description -l pl.UTF-8
245 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
246 tÅ‚umaczenia osiÄ…ga rozsÄ…dnÄ… szybkość i jest Å‚atwy do przeportowania,
247 aby dziaÅ‚aÅ‚ na kolejnych procesorach. QEMU ma dwa tryby pracy:
248
249 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
250   procesy linuksowe skompilowane dla jednego procesora na innym
251   procesorze. Linuksowe wywoÅ‚ania systemowe sÄ… tÅ‚umaczone ze wzglÄ™du na
252   niezgodność kolejnoÅ›ci bajtów w sÅ‚owie i 32/64-bitowego rozmiaru
253   sÅ‚owa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
254   cele QEMU.
255
256 - PeÅ‚na emulacja systemu. W tym trybie QEMU emuluje caÅ‚y system,
257   wÅ‚Ä…czajÄ…c w to procesor i różne urzÄ…dzenia peryferyjne. Może być także
258   używane do wirtualnego hostowania kilku wirtualnych pecetów na
259   pojedynczym serwerze.
260
261 %package common
262 Summary:        QEMU common files needed by all QEMU targets
263 Summary(pl.UTF-8):      Wspólne pliki QEMU wymagane przez wszystkie Å›rodowiska QEMU
264 Group:          Applications/Emulators
265 Requires(postun):       /usr/sbin/groupdel
266 Requires(postun):       /usr/sbin/userdel
267 Requires(pre):  /bin/id
268 Requires(pre):  /usr/bin/getgid
269 Requires(pre):  /usr/sbin/groupadd
270 Requires(pre):  /usr/sbin/useradd
271 Requires:       glib2 >= 1:2.64
272 Requires:       gnutls-libs >= 3.6.14
273 %{?with_gtk3:Requires:  gtk+3 >= 3.22.0}
274 Requires:       nettle >= 3.4
275 %{?with_vte:Requires:   vte >= 0.32.0}
276 Requires:       zstd >= 1.4.0
277 Provides:       group(qemu)
278 Provides:       user(qemu)
279 Obsoletes:      qemu-kvm-common < 2
280 Obsoletes:      qemu-module-block-archipelago < 2.9.0
281 Obsoletes:      qemu-system-lm32 < 5.2
282 Obsoletes:      qemu-system-moxie < 6.1
283 Obsoletes:      qemu-system-unicore32 < 5.2
284 Conflicts:      qemu < 1.0-2
285
286 %description common
287 QEMU is a generic and open source processor emulator which achieves a
288 good emulation speed by using dynamic translation.
289
290 This package provides the common files needed by all QEMU targets.
291
292 %description common -l pl.UTF-8
293 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
294 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
295
296 Ten pakiet udostÄ™pnia wspólne pliki wymagane przez wszystkie
297 Å›rodowiska QEMU.
298
299 %package devel
300 Summary:        Header file for QEMU plugins development
301 Summary(pl.UTF-8):      Plik nagłówkowy do tworzenia wtyczek QEMU
302 Group:          Development/Libraries
303 BuildArch:      noarch
304
305 %description devel
306 Header file for QEMU plugins development.
307
308 %description devel -l pl.UTF-8
309 Plik nagłówkowy do tworzenia wtyczek QEMU.
310
311 %package img
312 Summary:        QEMU command line tool for manipulating disk images
313 Summary(pl.UTF-8):      NarzÄ™dzie QEMU do operacji na obrazach dysków
314 Group:          Applications/Emulators
315 Obsoletes:      qemu-kvm-img < 2
316 Conflicts:      qemu < 1.0-2
317
318 %description img
319 This package provides a command line tool for manipulating disk
320 images.
321
322 %description img -l pl.UTF-8
323 Ten pakiet udostÄ™pnia dziaÅ‚ajÄ…ce z linii poleceÅ„ narzÄ™dzia do operacji
324 na obrazach dysków.
325
326 %package ivshmem
327 Summary:        Client and server for QEMU ivshmem device
328 Summary(pl.UTF-8):      Klient i serwer dla urzÄ\85dzeia ivshmem QEMU
329 Group:          Development/Tools
330
331 %description ivshmem
332 This package provides client and server tools for QEMU's ivshmem
333 device.
334
335 %description ivshmem -l pl.UTF-8
336 Ten pakiet udostÄ™pnia dziaÅ‚ajÄ…ce z linii poleceÅ„ narzÄ™dzia dla
337 urzÄ…dzenia ivshmem QEMU.
338
339 %package user
340 Summary:        QEMU user mode emulation of qemu targets
341 Summary(pl.UTF-8):      QEMU - emulacja trybu użytkownika Å›rodowisk qemu
342 Group:          Applications/Emulators
343 Requires:       %{name}-common = %{version}-%{release}
344 Obsoletes:      qemu-kvm-user < 2
345
346 %description user
347 QEMU is a generic and open source processor emulator which achieves a
348 good emulation speed by using dynamic translation.
349
350 This package provides the user mode emulation of QEMU targets.
351
352 %description user -l pl.UTF-8
353 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
354 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
355
356 Ten pakiet udostÄ™pnia emulacjÄ™ trybu użytkownika Å›rodowisk QEMU.
357
358 %package user-static
359 Summary:        QEMU user mode emulation of qemu targets static build
360 Summary(pl.UTF-8):      QEMU - emulacja trybu użytkownika Å›rodowisk qemu - wersja statyczna
361 Group:          Applications/Emulators
362
363 %description user-static
364 QEMU is a generic and open source processor emulator which achieves a
365 good emulation speed by using dynamic translation.
366
367 This package provides the user mode emulation of qemu targets built as
368 static binaries.
369
370 %description user-static -l pl.UTF-8
371 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
372 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
373
374 Ten pakiet udostÄ™pnia emulacjÄ™ trybu użytkownika Å›rodowisk QEMU w
375 oparciu o programy wykonywalne zbudowane statycznie.
376
377 %package system-aarch64
378 Summary:        QEMU system emulator for AArch64
379 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem AArch64
380 Group:          Applications/Emulators
381 Requires:       %{name}-common = %{version}-%{release}
382 %systempkg_req
383 Obsoletes:      qemu-kvm-system-aarch64 < 2
384
385 %description system-aarch64
386 QEMU is a generic and open source processor emulator which achieves a
387 good emulation speed by using dynamic translation.
388
389 This package provides the system emulator with AArch64 (ARM64) CPU.
390
391 %description system-aarch64 -l pl.UTF-8
392 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
393 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
394
395 Ten pakiet zawiera emulator systemu z procesorem AArch64 (ARM64).
396
397 %package system-alpha
398 Summary:        QEMU system emulator for Alpha
399 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem Alpha
400 Group:          Applications/Emulators
401 Requires:       %{name}-common = %{version}-%{release}
402 %systempkg_req
403 Obsoletes:      qemu-kvm-system-alpha < 2
404
405 %description system-alpha
406 QEMU is a generic and open source processor emulator which achieves a
407 good emulation speed by using dynamic translation.
408
409 This package provides the system emulator with Alpha CPU.
410
411 %description system-alpha -l pl.UTF-8
412 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
413 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
414
415 Ten pakiet zawiera emulator systemu z procesorem Alpha.
416
417 %package system-arm
418 Summary:        QEMU system emulator for 32-bit ARM
419 Summary(pl.UTF-8):      QEMU - emulator systemu z 32-bitowym procesorem ARM
420 Group:          Applications/Emulators
421 Requires:       %{name}-common = %{version}-%{release}
422 %systempkg_req
423 Obsoletes:      qemu-kvm-system-arm < 2
424
425 %description system-arm
426 QEMU is a generic and open source processor emulator which achieves a
427 good emulation speed by using dynamic translation.
428
429 This package provides the system emulator for 32-bit ARM.
430
431 %description system-arm -l pl.UTF-8
432 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
433 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
434
435 Ten pakiet zawiera emulator systemu z 32-bitowym procesorem ARM.
436
437 %package system-avr
438 Summary:        QEMU system emulator for AVR
439 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem AVR
440 Group:          Applications/Emulators
441 Requires:       %{name}-common = %{version}-%{release}
442 %systempkg_req
443 Obsoletes:      qemu-kvm-system-avr < 2
444
445 %description system-avr
446 QEMU is a generic and open source processor emulator which achieves a
447 good emulation speed by using dynamic translation.
448
449 This package provides the system emulator for AVR.
450
451 %description system-avr -l pl.UTF-8
452 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
453 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
454
455 Ten pakiet zawiera emulator systemu z procesorem AVR.
456
457 %package system-cris
458 Summary:        QEMU system emulator for CRIS
459 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem CRIS
460 Group:          Applications/Emulators
461 Requires:       %{name}-common = %{version}-%{release}
462 %systempkg_req
463 Obsoletes:      qemu-kvm-system-cris < 2
464
465 %description system-cris
466 QEMU is a generic and open source processor emulator which achieves a
467 good emulation speed by using dynamic translation.
468
469 This package provides the system emulator with CRIS CPU.
470
471 %description system-cris -l pl.UTF-8
472 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
473 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
474
475 Ten pakiet zawiera emulator systemu z procesorem CRIS.
476
477 %package system-hppa
478 Summary:        QEMU system emulator for HP/PA
479 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem HP/PA
480 Group:          Applications/Emulators
481 Requires:       %{name}-common = %{version}-%{release}
482 %systempkg_req
483
484 %description system-hppa
485 QEMU is a generic and open source processor emulator which achieves a
486 good emulation speed by using dynamic translation.
487
488 This package provides the system emulator with HP/PA (PA-RISC) CPU.
489
490 %description system-hppa -l pl.UTF-8
491 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
492 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
493
494 Ten pakiet zawiera emulator systemu z procesorem HP/PA (PA-RISC).
495
496 %package system-loongarch
497 Summary:        QEMU system emulator for Loongson
498 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem Loongson
499 Group:          Applications/Emulators
500 Requires:       %{name}-common = %{version}-%{release}
501 %systempkg_req
502
503 %description system-loongarch
504 QEMU is a generic and open source processor emulator which achieves a
505 good emulation speed by using dynamic translation.
506
507 This package provides the system emulator with Loongson CPU.
508
509 %description system-loongarch -l pl.UTF-8
510 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
511 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
512
513 Ten pakiet zawiera emulator systemu z procesorem Loongson.
514
515 %package system-m68k
516 Summary:        QEMU system emulator for m68k
517 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem m68k
518 Group:          Applications/Emulators
519 Requires:       %{name}-common = %{version}-%{release}
520 %systempkg_req
521 Obsoletes:      qemu-kvm-system-m68k < 2
522
523 %description system-m68k
524 QEMU is a generic and open source processor emulator which achieves a
525 good emulation speed by using dynamic translation.
526
527 This package provides the system emulator with m68k (Motorola 68xxx)
528 CPU.
529
530 %description system-m68k -l pl.UTF-8
531 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
532 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
533
534 Ten pakiet zawiera emulator systemu z procesorem m68k (Motorola
535 68xxx).
536
537 %package system-microblaze
538 Summary:        QEMU system emulator for MicroBlaze
539 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem MicroBlaze
540 Group:          Applications/Emulators
541 Requires:       %{name}-common = %{version}-%{release}
542 %systempkg_req
543 Obsoletes:      qemu-kvm-system-microblaze < 2
544
545 %description system-microblaze
546 QEMU is a generic and open source processor emulator which achieves a
547 good emulation speed by using dynamic translation.
548
549 This package provides the system emulator with MicroBlaze CPU.
550
551 %description system-microblaze -l pl.UTF-8
552 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
553 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
554
555 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
556
557 %package system-mips
558 Summary:        QEMU system emulator for MIPS
559 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem MIPS
560 Group:          Applications/Emulators
561 Requires:       %{name}-common = %{version}-%{release}
562 %systempkg_req
563 Obsoletes:      qemu-kvm-system-mips < 2
564
565 %description system-mips
566 QEMU is a generic and open source processor emulator which achieves a
567 good emulation speed by using dynamic translation.
568
569 This package provides the system emulator with MIPS CPU.
570
571 %description system-mips -l pl.UTF-8
572 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
573 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
574
575 Ten pakiet zawiera emulator systemu z procesorem MIPS.
576
577 %package system-nios2
578 Summary:        QEMU system emulator for Nios II
579 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem Nios II
580 Group:          Applications/Emulators
581 Requires:       %{name}-common = %{version}-%{release}
582 %systempkg_req
583
584 %description system-nios2
585 QEMU is a generic and open source processor emulator which achieves a
586 good emulation speed by using dynamic translation.
587
588 This package provides the system emulator with Nios II CPU.
589
590 %description system-nios2 -l pl.UTF-8
591 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
592 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
593
594 Ten pakiet zawiera emulator systemu z procesorem Nios II.
595
596 %package system-or1k
597 Summary:        QEMU system emulator for OpenRISC
598 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem OpenRISC
599 Group:          Applications/Emulators
600 Requires:       %{name}-common = %{version}-%{release}
601 %systempkg_req
602 Obsoletes:      qemu-kvm-system-or1k < 2
603 Obsoletes:      qemu-system-or32 < 2.9.0
604
605 %description system-or1k
606 QEMU is a generic and open source processor emulator which achieves a
607 good emulation speed by using dynamic translation.
608
609 This package provides the system emulator with OpenRISC CPU.
610
611 %description system-or1k -l pl.UTF-8
612 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
613 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
614
615 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
616
617 %package system-ppc
618 Summary:        QEMU system emulator for PowerPC
619 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem PowerPC
620 Group:          Applications/Emulators
621 Requires:       %{name}-common = %{version}-%{release}
622 %systempkg_req
623 Obsoletes:      qemu-kvm-system-ppc < 2
624
625 %description system-ppc
626 QEMU is a generic and open source processor emulator which achieves a
627 good emulation speed by using dynamic translation.
628
629 This package provides the system emulator with PowerPC CPU.
630
631 %description system-ppc -l pl.UTF-8
632 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
633 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
634
635 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
636
637 %package system-riscv32
638 Summary:        QEMU system emulator for RISC-V (32 bit)
639 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem RISC-V (32 bit)
640 Group:          Applications/Emulators
641 Requires:       %{name}-common = %{version}-%{release}
642 %systempkg_req
643
644 %description system-riscv32
645 QEMU is a generic and open source processor emulator which achieves a
646 good emulation speed by using dynamic translation.
647
648 This package provides the system emulator with RISC-V (32 bit) CPU.
649
650 %description system-riscv32 -l pl.UTF-8
651 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
652 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
653
654 Ten pakiet zawiera emulator systemu z procesorem RISC-V (32 bit).
655
656 %package system-riscv64
657 Summary:        QEMU system emulator for RISC-V (64 bit)
658 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem RISC-V (64 bitowym)
659 Group:          Applications/Emulators
660 Requires:       %{name}-common = %{version}-%{release}
661 %systempkg_req
662
663 %description system-riscv64
664 QEMU is a generic and open source processor emulator which achieves a
665 good emulation speed by using dynamic translation.
666
667 This package provides the system emulator with RISC-V (64 bit) CPU.
668
669 %description system-riscv64 -l pl.UTF-8
670 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
671 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
672
673 Ten pakiet zawiera emulator systemu z procesorem RISC-V (64-bitowym).
674
675 %package system-rx
676 Summary:        QEMU system emulator for Renesas RX
677 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem Renesas RX
678 Group:          Applications/Emulators
679 Requires:       %{name}-common = %{version}-%{release}
680 %systempkg_req
681
682 %description system-rx
683 QEMU is a generic and open source processor emulator which achieves a
684 good emulation speed by using dynamic translation.
685
686 This package provides the system emulator with Renesas RX CPU.
687
688 %description system-rx -l pl.UTF-8
689 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
690 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
691
692 Ten pakiet zawiera emulator systemu z procesorem Renesas RX.
693
694 %package system-s390x
695 Summary:        QEMU system emulator for S390x (IBM Z)
696 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem S390x (IBM Z)
697 Group:          Applications/Emulators
698 Requires:       %{name}-common = %{version}-%{release}
699 %systempkg_req
700 Obsoletes:      qemu-kvm-system-s390x < 2
701
702 %description system-s390x
703 QEMU is a generic and open source processor emulator which achieves a
704 good emulation speed by using dynamic translation.
705
706 This package provides the system emulator with S390x (IBM Z) CPU.
707
708 %description system-s390x -l pl.UTF-8
709 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
710 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
711
712 Ten pakiet zawiera emulator systemu z procesorem S390x (IBM Z).
713
714 %package system-sh4
715 Summary:        QEMU system emulator for SH4
716 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem SH4
717 Group:          Applications/Emulators
718 Requires:       %{name}-common = %{version}-%{release}
719 %systempkg_req
720 Obsoletes:      qemu-kvm-system-sh4 < 2
721
722 %description system-sh4
723 QEMU is a generic and open source processor emulator which achieves a
724 good emulation speed by using dynamic translation.
725
726 This package provides the system emulator with SH4 CPU.
727
728 %description system-sh4 -l pl.UTF-8
729 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
730 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
731
732 Ten pakiet zawiera emulator systemu z procesorem SH4.
733
734 %package system-sparc
735 Summary:        QEMU system emulator for SPARC
736 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem SPARC
737 Group:          Applications/Emulators
738 Requires:       %{name}-common = %{version}-%{release}
739 %systempkg_req
740 Obsoletes:      qemu-kvm-system-sparc < 2
741
742 %description system-sparc
743 QEMU is a generic and open source processor emulator which achieves a
744 good emulation speed by using dynamic translation.
745
746 This package provides the system emulator with SPARC/SPARC64 CPU.
747
748 %description system-sparc -l pl.UTF-8
749 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
750 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
751
752 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
753
754 %package system-tricore
755 Summary:        QEMU system emulator for TriCore
756 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem TriCore
757 Group:          Applications/Emulators
758 Requires:       %{name}-common = %{version}-%{release}
759 %systempkg_req
760
761 %description system-tricore
762 QEMU is a generic and open source processor emulator which achieves a
763 good emulation speed by using dynamic translation.
764
765 This package provides the system emulator with TriCore CPU.
766
767 %description system-tricore -l pl.UTF-8
768 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
769 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
770
771 Ten pakiet zawiera emulator systemu z procesorem TriCore.
772
773 %package system-x86
774 Summary:        QEMU system emulator for x86
775 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem x86
776 Group:          Applications/Emulators
777 Requires:       %{name}-common = %{version}-%{release}
778 %{?with_system_seabios:Requires:        seabios}
779 %systempkg_req
780 Obsoletes:      kvm < 89
781 Obsoletes:      qemu-kvm-system-x86 < 2
782
783 %description system-x86
784 QEMU is a generic and open source processor emulator which achieves a
785 good emulation speed by using dynamic translation.
786
787 This package provides the system emulator with x86 CPU.
788
789 %description system-x86 -l pl.UTF-8
790 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
791 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
792
793 Ten pakiet zawiera emulator systemu z procesorem x86.
794
795 %package system-xtensa
796 Summary:        QEMU system emulator for Xtensa
797 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem Xtensa
798 Group:          Applications/Emulators
799 Requires:       %{name}-common = %{version}-%{release}
800 %systempkg_req
801 Obsoletes:      qemu-kvm-system-xtensa < 2
802
803 %description system-xtensa
804 QEMU is a generic and open source processor emulator which achieves a
805 good emulation speed by using dynamic translation.
806
807 This package provides the system emulator with Xtensa CPU.
808
809 %description system-xtensa -l pl.UTF-8
810 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
811 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
812
813 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
814
815 %package guest-agent
816 Summary:        QEMU guest agent
817 Summary(pl.UTF-8):      Agent goÅ›cia QEMU
818 Group:          Daemons
819 Requires:       glib2 >= 1:2.64
820 Requires:       liburing >= 0.3
821 Obsoletes:      qemu-kvm-guest-agent < 2
822 Conflicts:      SysVinit < 2.96-2
823
824 %description guest-agent
825 QEMU is a generic and open source processor emulator which achieves a
826 good emulation speed by using dynamic translation.
827
828 This package provides an agent to run inside guests, which
829 communicates with the host over a virtio-serial channel named
830 "org.qemu.guest_agent.0".
831
832 This package does not need to be installed on the host OS.
833
834 %description guest-agent -l pl.UTF-8
835 QEMU to ogólny, majÄ…cy otwarte ÅºródÅ‚a emulator procesora, osiÄ…gajÄ…cy
836 dobrÄ… szybkość emulacji dziÄ™ki użyciu translacji dynamicznej.
837
838 Ten pakiet udostÄ™pnia agenta przeznaczonego do uruchomienia w
839 systemach-goÅ›ciach, komunikujÄ…cego siÄ™ kanaÅ‚em virtio-serial o nazwie
840 "org.qemu.guest_agent.0".
841
842 Ten pakiet nie musi być zainstalowany w systemie hosta.
843
844 %package module-audio-jack
845 Summary:        QEMU module for JACK audio output
846 Summary(pl.UTF-8):      ModuÅ‚ QEMU z wyjÅ›ciem dźwiÄ™ku JACK
847 Group:          Applications/Emulators
848 Requires:       %{name}-common = %{version}-%{release}
849
850 %description module-audio-jack
851 QEMU module for JACK audio output.
852
853 %description module-audio-jack -l pl.UTF-8
854 ModuÅ‚ QEMU z wyjÅ›ciem dźwiÄ™ku JACK.
855
856 %package module-block-curl
857 Summary:        QEMU module for 'curl' block devices
858 Summary(pl.UTF-8):      ModuÅ‚ QEMU dla urzÄ…deÅ„ blokowych typu 'curl'
859 Group:          Applications/Emulators
860 Requires:       %{name}-common = %{version}-%{release}
861 Requires:       curl-libs >= 7.29.0
862
863 %description module-block-curl
864 QEMU block device support for CURL. It allows to access remote disks
865 over http, https, ftp and other transports provided by the CURL
866 library.
867
868 %description module-block-curl -l pl.UTF-8
869 ModuÅ‚ QEMU dla urzÄ…deÅ„ blokowych CURL. Pozwala na dostÄ™p do zdalnych
870 dysków poprzez http, https, ftp i inne protokoÅ‚y obsÅ‚ugiwane przez
871 bibliotekÄ™ CURL.
872
873 %package module-block-gluster
874 Summary:        QEMU module for 'gluster' block devices
875 Summary(pl.UTF-8):      ModuÅ‚ QEMU dla urzÄ…deÅ„ blokowych typu 'gluster'
876 Group:          Applications/Emulators
877 Requires:       %{name}-common = %{version}-%{release}
878 Requires:       glusterfs-libs >= 6
879
880 %description module-block-gluster
881 QEMU block device support for remote Gluster storage.
882
883 %description module-block-gluster -l pl.UTF-8
884 ModuÅ‚ urzÄ…dzeÅ„ blokowych QEMU do dostÄ™pu do zdalnej przestrzeni
885 dyskowej Gluster.
886
887 %package module-block-iscsi
888 Summary:        QEMU module for 'iscsi' block devices
889 Summary(pl.UTF-8):      ModuÅ‚ QEMU dla urzÄ…deÅ„ blokowych typu 'iscsi'
890 Group:          Applications/Emulators
891 Requires:       %{name}-common = %{version}-%{release}
892 Requires:       libiscsi >= 1.9.0
893
894 %description module-block-iscsi
895 QEMU block device support for iSCSI volumes.
896
897 %description module-block-iscsi -l pl.UTF-8
898 ModuÅ‚ urzÄ…dzeÅ„ blokowych QEMU do dostÄ™pu do wolumenów iSCSI.
899
900 %package module-block-nfs
901 Summary:        QEMU module for 'nfs' block devices
902 Summary(pl.UTF-8):      ModuÅ‚ QEMU dla urzÄ…deÅ„ blokowych typu 'nfs'
903 Group:          Applications/Emulators
904 Requires:       %{name}-common = %{version}-%{release}
905 Requires:       libnfs >= 1.9.3
906
907 %description module-block-nfs
908 QEMU block device support for remote NFS storage.
909
910 %description module-block-nfs -l pl.UTF-8
911 ModuÅ‚ urzÄ…dzeÅ„ blokowych QEMU do dostÄ™pu do zdalnej przestrzeni po
912 NFS.
913
914 %package module-block-rbd
915 Summary:        QEMU module for 'rbd' block devices
916 Summary(pl.UTF-8):      ModuÅ‚ QEMU dla urzÄ…deÅ„ blokowych typu 'rbd'
917 Group:          Applications/Emulators
918 Requires:       %{name}-common = %{version}-%{release}
919 Requires:       ceph-libs >= 12
920
921 %description module-block-rbd
922 QEMU block device support for Ceph/RBD volumes.
923
924 %description module-block-rbd -l pl.UTF-8
925 ModuÅ‚ urzÄ…dzeÅ„ blokowych QEMU do wolumenów Ceph/RBD.
926
927 %package module-block-ssh
928 Summary:        QEMU module for 'ssh' block devices
929 Summary(pl.UTF-8):      ModuÅ‚ QEMU dla urzÄ…deÅ„ blokowych typu 'ssh'
930 Group:          Applications/Emulators
931 Requires:       %{name}-common = %{version}-%{release}
932 Requires:       libssh >= 0.8.7
933
934 %description module-block-ssh
935 QEMU block device support for accessing remote disks using the Secure
936 Shell (SSH) protocol.
937
938 %description module-block-ssh -l pl.UTF-8
939 ModuÅ‚ urzÄ…dzeÅ„ blokowych QEMU do dostÄ™pu do zdalnych dysków poprzez
940 protokół SSH (Secure Shell).
941
942 %package module-ui-dbus
943 Summary:        QEMU DBus UI driver
944 Summary(pl.UTF-8):      Sterownik interfejsu użytkownika DBus dla QEMU
945 Group:          Applications/Emulators
946 Requires:       %{name}-common = %{version}-%{release}
947
948 %description module-ui-dbus
949 QEMU DBus UI driver.
950
951 %description module-ui-dbus -l pl.UTF-8
952 Sterownik interfejsu użytkownika DBus dla QEMU.
953
954 %package module-ui-gtk
955 Summary:        QEMU GTK UI driver
956 Summary(pl.UTF-8):      Sterownik interfejsu użytkownika GTK dla QEMU
957 Group:          Applications/Emulators
958 Requires:       %{name}-common = %{version}-%{release}
959
960 %description module-ui-gtk
961 QEMU GTK UI driver.
962
963 %description module-ui-gtk -l pl.UTF-8
964 Sterownik interfejsu użytkownika GTK dla QEMU.
965
966 %package module-ui-sdl
967 Summary:        QEMU SDL UI and audio driver
968 Summary(pl.UTF-8):      Sterownik interfejsu użytkownika i dźwiÄ™ku SDL dla QEMU
969 Group:          Applications/Emulators
970 Requires:       %{name}-common = %{version}-%{release}
971
972 %description module-ui-sdl
973 QEMU SDL UI and audio driver.
974
975 %description module-ui-sdl -l pl.UTF-8
976 Sterownik interfejsu użytkownika i dźwiÄ™ku SDL dla QEMU.
977
978 %package -n systemtap-qemu
979 Summary:        systemtap/dtrace probes for QEMU
980 Summary(pl.UTF-8):      Sondy systemtap/dtrace dla QEMU
981 Group:          Development/Tools
982 Requires:       %{name}-common = %{version}-%{release}
983 Requires:       systemtap-client
984
985 %description -n systemtap-qemu
986 systemtap/dtrace probes for QEMU.
987
988 %description -n systemtap-qemu -l pl.UTF-8
989 Sondy systemtap/dtrace dla QEMU.
990
991 %prep
992 %setup -q
993 %patch0 -p1
994 %patch2 -p1
995 %patch3 -p1
996 %patch4 -p1
997 %patch5 -p1
998 %patch6 -p1
999
1000 %{__sed} -i '1s,/usr/bin/env python3,%{__python3},' scripts/qemu-trace-stap
1001
1002 %if %{with systemtap}
1003 # don't require stap binary during build
1004 %{__sed} -i -e "s/stap.found()/true/" meson.build docs/meson.build scripts/meson.build
1005 %endif
1006 %build
1007
1008 build() {
1009         local target=$1
1010         shift
1011
1012         install -d build-$target
1013         cd build-$target
1014
1015         ../configure \
1016         --prefix=%{_prefix} \
1017         --libdir=%{_libdir} \
1018         --libexecdir=%{_libexecdir} \
1019         --sysconfdir=%{_sysconfdir} \
1020         --localstatedir=%{_localstatedir} \
1021         --interp-prefix=%{_libdir}/qemu/lib-%%M \
1022         --cc="%{__cc}" \
1023         --cxx="%{__cxx}" \
1024         --host-cc="%{__cc}" \
1025         --disable-strip \
1026         --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
1027         --enable-kvm \
1028         "$@"
1029
1030         %{__make} \
1031                 V=1 \
1032                 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
1033
1034         cd ..
1035 }
1036
1037 build dynamic \
1038         --extra-cflags="%{rpmcflags} %{rpmcppflags}" \
1039         --extra-ldflags="%{rpmldflags} -Wl,-z,relro -Wl,-z,now" \
1040         --audio-drv-list="alsa,jack%{?with_oss:,oss}%{?with_pulseaudio:,pa}%{?with_sdl:,sdl}" \
1041         --enable-attr \
1042         %{__enable_disable brlapi} \
1043         --enable-cap-ng \
1044         --enable-capstone \
1045         --enable-curl \
1046         --enable-curses \
1047         --enable-docs \
1048         --enable-fdt \
1049         %{__enable_disable glusterfs} \
1050         %{!?with_gtk3:--disable-gtk} \
1051         %{__enable_disable iscsi libiscsi} \
1052         %{__enable_disable libnfs} \
1053         %{__enable_disable pmem libpmem} \
1054         --enable-lzo \
1055         %{__enable_disable multipath mpath} \
1056         --enable-modules \
1057         --disable-netmap \
1058         --enable-nettle \
1059         %{__enable_disable ceph rbd} \
1060         %{__enable_disable rdma} \
1061         %{__enable_disable sdl} \
1062         %{__enable_disable seccomp} \
1063         %{__enable_disable spice} \
1064         %{__enable_disable smartcard} \
1065         %{__enable_disable snappy} \
1066         --enable-tpm \
1067         %{__enable_disable usbredir usb-redir} \
1068         --enable-vde \
1069         %{__enable_disable virgl virglrenderer} \
1070         --enable-virtfs \
1071         --enable-vnc-jpeg \
1072         --enable-vnc-sasl \
1073         %{!?with_vte:--disable-vte} \
1074         %{__enable_disable xen} \
1075         %{__enable_disable xkbcommon}
1076
1077 %if %{with user_static}
1078 build static \
1079         --disable-brlapi \
1080         --disable-cap-ng \
1081         --disable-capstone \
1082         --disable-curl \
1083         --disable-curses \
1084         --disable-gcrypt \
1085         --disable-gnutls \
1086         --disable-gtk \
1087         --disable-guest-agent \
1088         --disable-guest-agent-msi \
1089         --disable-libnfs \
1090         --disable-linux-io-uring \
1091         --disable-mpath \
1092         --disable-nettle \
1093         --disable-pie \
1094         --disable-sdl \
1095         --disable-slirp \
1096         --disable-spice \
1097         --disable-system \
1098         --disable-tools \
1099         --enable-user \
1100         --disable-xkbcommon \
1101         --disable-zstd \
1102         --static
1103 %endif
1104
1105 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
1106
1107 %install
1108 rm -rf $RPM_BUILD_ROOT
1109 install -d \
1110         $RPM_BUILD_ROOT/etc/{qemu,sysconfig,modules-load.d,rc.d/init.d,logrotate.d} \
1111         $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,/lib/udev/rules.d,%{_sbindir}}
1112
1113 %if %{with user_static}
1114 %{__make} -C build-static install \
1115         %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
1116         DESTDIR=$RPM_BUILD_ROOT
1117
1118 # Give all QEMU user emulators a -static suffix
1119 for src in $RPM_BUILD_ROOT%{_bindir}/qemu-*; do
1120         %{__mv} $src $src-static
1121 done
1122
1123 %endif
1124
1125 %{__make} -C build-dynamic install \
1126         %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
1127         DESTDIR=$RPM_BUILD_ROOT
1128
1129 # let rpm generate dependencies
1130 chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/*.so
1131
1132 echo "#allow br0" > $RPM_BUILD_ROOT/etc/qemu/bridge.conf
1133
1134 install -d $RPM_BUILD_ROOT%{_sysconfdir}
1135 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
1136 #!/bin/sh
1137
1138 EOF
1139
1140 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
1141
1142 %ifarch %{ix86} %{x8664} x32
1143 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
1144 install -p %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/rules.d
1145 %endif
1146
1147 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
1148 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
1149
1150 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
1151 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
1152
1153 # For the qemu-guest-agent subpackage install the udev rules.
1154 install -p %{SOURCE12} $RPM_BUILD_ROOT/lib/udev/rules.d
1155
1156 install -p %{SOURCE13} $RPM_BUILD_ROOT/etc/rc.d/init.d/qemu-ga
1157 install -p %{SOURCE14} $RPM_BUILD_ROOT/etc/logrotate.d/qemu-ga
1158
1159 %if %{with system_seabios}
1160 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
1161 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
1162 %endif
1163
1164 %if %{with gtk3}
1165 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
1166 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
1167 %find_lang %{name}
1168 %else
1169 : > qemu.lang
1170 %endif
1171
1172 for t in client server; do
1173         cp -p build-dynamic/contrib/ivshmem-$t/ivshmem-$t $RPM_BUILD_ROOT%{_bindir}
1174 done
1175
1176 # test modules
1177 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/accel-qtest-*.so
1178 # Windows installer icon, not used
1179 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/qemu-nsis.bmp
1180 # packaged as %doc
1181 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/edk2-licenses.txt
1182
1183 # cleanup Sphinx files
1184 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/{.buildinfo,objects.inv}
1185
1186 %clean
1187 rm -rf $RPM_BUILD_ROOT
1188
1189 %pre common
1190 %groupadd -g 160 kvm
1191 %groupadd -g 276 qemu
1192 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
1193
1194 %postun common
1195 if [ "$1" = "0" ]; then
1196         %userremove qemu
1197         %groupremove qemu
1198         %groupremove kvm
1199 fi
1200
1201 %post guest-agent
1202 /sbin/chkconfig --add qemu-ga
1203 %service qemu-ga restart "qemu-ga"
1204
1205 %preun guest-agent
1206 if [ "$1" = "0" ]; then
1207         %service qemu-ga stop
1208         /sbin/chkconfig --del qemu-ga
1209 fi
1210
1211 %files
1212 %defattr(644,root,root,755)
1213
1214 %files common -f %{name}.lang
1215 %defattr(644,root,root,755)
1216 %doc LICENSE README.rst pc-bios/edk2-licenses.txt
1217 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
1218 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
1219 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
1220 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
1221 %dir /etc/qemu
1222 %attr(640,root,qemu) %config(noreplace) %verify(not md5 mtime size) /etc/qemu/bridge.conf
1223 %attr(755,root,root) %{_bindir}/elf2dmp
1224 %attr(755,root,root) %{_bindir}/qemu-edid
1225 %if %{with xkbcommon}
1226 %attr(755,root,root) %{_bindir}/qemu-keymap
1227 %endif
1228 %attr(755,root,root) %{_bindir}/qemu-nbd
1229 %attr(755,root,root) %{_bindir}/qemu-pr-helper
1230 %attr(755,root,root) %{_bindir}/qemu-storage-daemon
1231 %attr(755,root,root) %{_sbindir}/ksmctl
1232 %attr(755,root,root) %{_sbindir}/ksmtuned
1233 %attr(755,root,root) %{_libexecdir}/qemu-bridge-helper
1234 %if %{with virgl}
1235 %attr(755,root,root) %{_libexecdir}/vhost-user-gpu
1236 %endif
1237 %attr(755,root,root) %{_libexecdir}/virtfs-proxy-helper
1238 %dir %{_libdir}/%{name}
1239 # modules without too many external dependencies
1240 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-bz2.so
1241 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-lzfse.so
1242 %attr(755,root,root) %{_libdir}/%{name}/audio-alsa.so
1243 %if %{with oss}
1244 %attr(755,root,root) %{_libdir}/%{name}/audio-oss.so
1245 %endif
1246 %if %{with pulseaudio}
1247 %attr(755,root,root) %{_libdir}/%{name}/audio-pa.so
1248 %endif
1249 %if %{with spice}
1250 %attr(755,root,root) %{_libdir}/%{name}/audio-spice.so
1251 %attr(755,root,root) %{_libdir}/%{name}/chardev-spice.so
1252 %attr(755,root,root) %{_libdir}/%{name}/hw-display-qxl.so
1253 %endif
1254 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu.so
1255 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-gl.so
1256 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-pci.so
1257 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-pci-gl.so
1258 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-vga.so
1259 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-vga-gl.so
1260 %attr(755,root,root) %{_libdir}/%{name}/hw-s390x-virtio-gpu-ccw.so
1261 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-host.so
1262 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-redirect.so
1263 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-smartcard.so
1264 %attr(755,root,root) %{_libdir}/%{name}/ui-curses.so
1265 %attr(755,root,root) %{_libdir}/%{name}/ui-egl-headless.so
1266 %if %{with opengl}
1267 %attr(755,root,root) %{_libdir}/%{name}/ui-opengl.so
1268 %endif
1269 %if %{with spice}
1270 %attr(755,root,root) %{_libdir}/%{name}/ui-spice-app.so
1271 %attr(755,root,root) %{_libdir}/%{name}/ui-spice-core.so
1272 %endif
1273 %dir %{_datadir}/%{name}
1274 %dir %{_datadir}/%{name}/firmware
1275 %{_datadir}/%{name}/keymaps
1276 %{_datadir}/%{name}/trace-events-all
1277 %dir %{_datadir}/%{name}/vhost-user
1278 %if %{with virgl}
1279 %{_datadir}/%{name}/vhost-user/50-qemu-gpu.json
1280 %endif
1281 %{_desktopdir}/qemu.desktop
1282 %{_iconsdir}/hicolor/*x*/apps/qemu.png
1283 %{_iconsdir}/hicolor/32x32/apps/qemu.bmp
1284 %{_iconsdir}/hicolor/scalable/apps/qemu.svg
1285 %{_mandir}/man1/qemu.1*
1286 %{_mandir}/man1/qemu-storage-daemon.1*
1287 %{_mandir}/man1/virtfs-proxy-helper.1*
1288 %{_mandir}/man7/qemu-block-drivers.7*
1289 %{_mandir}/man7/qemu-cpu-models.7*
1290 %{_mandir}/man7/qemu-qmp-ref.7*
1291 %{_mandir}/man7/qemu-storage-daemon-qmp-ref.7*
1292 %{_mandir}/man8/qemu-nbd.8*
1293 %{_mandir}/man8/qemu-pr-helper.8*
1294 %{_docdir}/qemu
1295
1296 %files devel
1297 %defattr(644,root,root,755)
1298 %{_includedir}/qemu-plugin.h
1299
1300 %files img
1301 %defattr(644,root,root,755)
1302 %attr(755,root,root) %{_bindir}/qemu-img
1303 %{_mandir}/man1/qemu-img.1*
1304
1305 %files ivshmem
1306 %defattr(644,root,root,755)
1307 %attr(755,root,root) %{_bindir}/ivshmem-client
1308 %attr(755,root,root) %{_bindir}/ivshmem-server
1309
1310 %files user
1311 %defattr(644,root,root,755)
1312 %attr(755,root,root) %{_bindir}/qemu-aarch64
1313 %attr(755,root,root) %{_bindir}/qemu-aarch64_be
1314 %attr(755,root,root) %{_bindir}/qemu-alpha
1315 %attr(755,root,root) %{_bindir}/qemu-arm
1316 %attr(755,root,root) %{_bindir}/qemu-armeb
1317 %attr(755,root,root) %{_bindir}/qemu-cris
1318 %attr(755,root,root) %{_bindir}/qemu-hexagon
1319 %attr(755,root,root) %{_bindir}/qemu-hppa
1320 %attr(755,root,root) %{_bindir}/qemu-i386
1321 %attr(755,root,root) %{_bindir}/qemu-io
1322 %attr(755,root,root) %{_bindir}/qemu-loongarch64
1323 %attr(755,root,root) %{_bindir}/qemu-m68k
1324 %attr(755,root,root) %{_bindir}/qemu-microblaze
1325 %attr(755,root,root) %{_bindir}/qemu-microblazeel
1326 %attr(755,root,root) %{_bindir}/qemu-mips
1327 %attr(755,root,root) %{_bindir}/qemu-mipsel
1328 %attr(755,root,root) %{_bindir}/qemu-mips64
1329 %attr(755,root,root) %{_bindir}/qemu-mips64el
1330 %attr(755,root,root) %{_bindir}/qemu-mipsn32
1331 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
1332 %attr(755,root,root) %{_bindir}/qemu-nios2
1333 %attr(755,root,root) %{_bindir}/qemu-or1k
1334 %attr(755,root,root) %{_bindir}/qemu-ppc
1335 %attr(755,root,root) %{_bindir}/qemu-ppc64
1336 %attr(755,root,root) %{_bindir}/qemu-ppc64le
1337 %attr(755,root,root) %{_bindir}/qemu-riscv32
1338 %attr(755,root,root) %{_bindir}/qemu-riscv64
1339 %attr(755,root,root) %{_bindir}/qemu-s390x
1340 %attr(755,root,root) %{_bindir}/qemu-sh4
1341 %attr(755,root,root) %{_bindir}/qemu-sh4eb
1342 %attr(755,root,root) %{_bindir}/qemu-sparc
1343 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
1344 %attr(755,root,root) %{_bindir}/qemu-sparc64
1345 %attr(755,root,root) %{_bindir}/qemu-x86_64
1346 %attr(755,root,root) %{_bindir}/qemu-xtensa
1347 %attr(755,root,root) %{_bindir}/qemu-xtensaeb
1348
1349 %if %{with user_static}
1350 %files user-static
1351 %defattr(644,root,root,755)
1352 %attr(755,root,root) %{_bindir}/qemu-aarch64-static
1353 %attr(755,root,root) %{_bindir}/qemu-aarch64_be-static
1354 %attr(755,root,root) %{_bindir}/qemu-alpha-static
1355 %attr(755,root,root) %{_bindir}/qemu-arm-static
1356 %attr(755,root,root) %{_bindir}/qemu-armeb-static
1357 %attr(755,root,root) %{_bindir}/qemu-cris-static
1358 %attr(755,root,root) %{_bindir}/qemu-hexagon-static
1359 %attr(755,root,root) %{_bindir}/qemu-hppa-static
1360 %attr(755,root,root) %{_bindir}/qemu-i386-static
1361 %attr(755,root,root) %{_bindir}/qemu-loongarch64-static
1362 %attr(755,root,root) %{_bindir}/qemu-m68k-static
1363 %attr(755,root,root) %{_bindir}/qemu-microblaze-static
1364 %attr(755,root,root) %{_bindir}/qemu-microblazeel-static
1365 %attr(755,root,root) %{_bindir}/qemu-mips-static
1366 %attr(755,root,root) %{_bindir}/qemu-mips64-static
1367 %attr(755,root,root) %{_bindir}/qemu-mips64el-static
1368 %attr(755,root,root) %{_bindir}/qemu-mipsel-static
1369 %attr(755,root,root) %{_bindir}/qemu-mipsn32-static
1370 %attr(755,root,root) %{_bindir}/qemu-mipsn32el-static
1371 %attr(755,root,root) %{_bindir}/qemu-nios2-static
1372 %attr(755,root,root) %{_bindir}/qemu-or1k-static
1373 %attr(755,root,root) %{_bindir}/qemu-ppc-static
1374 %attr(755,root,root) %{_bindir}/qemu-ppc64-static
1375 %attr(755,root,root) %{_bindir}/qemu-ppc64le-static
1376 %attr(755,root,root) %{_bindir}/qemu-riscv32-static
1377 %attr(755,root,root) %{_bindir}/qemu-riscv64-static
1378 %attr(755,root,root) %{_bindir}/qemu-s390x-static
1379 %attr(755,root,root) %{_bindir}/qemu-sh4-static
1380 %attr(755,root,root) %{_bindir}/qemu-sh4eb-static
1381 %attr(755,root,root) %{_bindir}/qemu-sparc-static
1382 %attr(755,root,root) %{_bindir}/qemu-sparc32plus-static
1383 %attr(755,root,root) %{_bindir}/qemu-sparc64-static
1384 %attr(755,root,root) %{_bindir}/qemu-x86_64-static
1385 %attr(755,root,root) %{_bindir}/qemu-xtensa-static
1386 %attr(755,root,root) %{_bindir}/qemu-xtensaeb-static
1387 %if %{with systemtap}
1388 %attr(755,root,root) %{_bindir}/qemu-trace-stap-static
1389 %endif
1390 %endif
1391
1392 %files system-aarch64
1393 %defattr(644,root,root,755)
1394 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1395 %{_datadir}/%{name}/edk2-aarch64-code.fd
1396 %{_datadir}/%{name}/firmware/60-edk2-aarch64.json
1397
1398 %files system-alpha
1399 %defattr(644,root,root,755)
1400 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1401 %{_datadir}/%{name}/palcode-clipper
1402
1403 %files system-arm
1404 %defattr(644,root,root,755)
1405 %attr(755,root,root) %{_bindir}/qemu-system-arm
1406 %{_datadir}/%{name}/edk2-arm-code.fd
1407 %{_datadir}/%{name}/edk2-arm-vars.fd
1408 %{_datadir}/%{name}/firmware/60-edk2-arm.json
1409 %{_datadir}/%{name}/npcm7xx_bootrom.bin
1410
1411 %files system-avr
1412 %defattr(644,root,root,755)
1413 %attr(755,root,root) %{_bindir}/qemu-system-avr
1414 %files system-cris
1415 %defattr(644,root,root,755)
1416 %attr(755,root,root) %{_bindir}/qemu-system-cris
1417
1418 %files system-hppa
1419 %defattr(644,root,root,755)
1420 %attr(755,root,root) %{_bindir}/qemu-system-hppa
1421 %{_datadir}/%{name}/hppa-firmware.img
1422
1423 %files system-loongarch
1424 %defattr(644,root,root,755)
1425 %attr(755,root,root) %{_bindir}/qemu-system-loongarch64
1426
1427 %files system-m68k
1428 %defattr(644,root,root,755)
1429 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1430
1431 %files system-microblaze
1432 %defattr(644,root,root,755)
1433 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1434 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1435
1436 %files system-mips
1437 %defattr(644,root,root,755)
1438 %attr(755,root,root) %{_bindir}/qemu-system-mips
1439 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1440 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1441 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1442
1443 %files system-nios2
1444 %defattr(644,root,root,755)
1445 %attr(755,root,root) %{_bindir}/qemu-system-nios2
1446
1447 %files system-or1k
1448 %defattr(644,root,root,755)
1449 %attr(755,root,root) %{_bindir}/qemu-system-or1k
1450
1451 %files system-ppc
1452 %defattr(644,root,root,755)
1453 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1454 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1455 %{_datadir}/%{name}/bamboo.dtb
1456 %{_datadir}/%{name}/canyonlands.dtb
1457 %{_datadir}/%{name}/openbios-ppc
1458 %{_datadir}/%{name}/petalogix-ml605.dtb
1459 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
1460 %{_datadir}/%{name}/qemu_vga.ndrv
1461 %{_datadir}/%{name}/skiboot.lid
1462 %{_datadir}/%{name}/slof.bin
1463 %{_datadir}/%{name}/u-boot.e500
1464 %{_datadir}/%{name}/u-boot-sam460-20100605.bin
1465
1466 %files system-riscv32
1467 %defattr(644,root,root,755)
1468 %attr(755,root,root) %{_bindir}/qemu-system-riscv32
1469 %{_datadir}/%{name}/opensbi-riscv32-generic-fw_dynamic.bin
1470
1471 %files system-riscv64
1472 %defattr(644,root,root,755)
1473 %attr(755,root,root) %{_bindir}/qemu-system-riscv64
1474 %{_datadir}/%{name}/opensbi-riscv64-generic-fw_dynamic.bin
1475
1476 %files system-rx
1477 %defattr(644,root,root,755)
1478 %attr(755,root,root) %{_bindir}/qemu-system-rx
1479
1480 %files system-s390x
1481 %defattr(644,root,root,755)
1482 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1483 %{_datadir}/%{name}/s390-ccw.img
1484 %{_datadir}/%{name}/s390-netboot.img
1485
1486 %files system-sh4
1487 %defattr(644,root,root,755)
1488 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1489 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1490
1491 %files system-sparc
1492 %defattr(644,root,root,755)
1493 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1494 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1495 %{_datadir}/%{name}/QEMU,cgthree.bin
1496 %{_datadir}/%{name}/QEMU,tcx.bin
1497 %{_datadir}/%{name}/openbios-sparc32
1498 %{_datadir}/%{name}/openbios-sparc64
1499
1500 %files system-tricore
1501 %defattr(644,root,root,755)
1502 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1503
1504 %files system-x86
1505 %defattr(644,root,root,755)
1506 %attr(755,root,root) %{_bindir}/qemu-system-i386
1507 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1508 %attr(755,root,root) %{_libdir}/%{name}/accel-tcg-i386.so
1509 %attr(755,root,root) %{_libdir}/%{name}/accel-tcg-x86_64.so
1510 %ifarch %{ix86} %{x8664} x32
1511 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1512 /lib/udev/rules.d/80-kvm.rules
1513 %endif
1514 %{_datadir}/%{name}/bios.bin
1515 %{_datadir}/%{name}/bios-256k.bin
1516 %{_datadir}/%{name}/bios-microvm.bin
1517 %{_datadir}/%{name}/edk2-i386-code.fd
1518 %{_datadir}/%{name}/edk2-i386-secure-code.fd
1519 %{_datadir}/%{name}/edk2-i386-vars.fd
1520 %{_datadir}/%{name}/edk2-x86_64-code.fd
1521 %{_datadir}/%{name}/edk2-x86_64-secure-code.fd
1522 %{_datadir}/%{name}/efi-e1000e.rom
1523 %{_datadir}/%{name}/efi-e1000.rom
1524 %{_datadir}/%{name}/efi-eepro100.rom
1525 %{_datadir}/%{name}/efi-ne2k_pci.rom
1526 %{_datadir}/%{name}/efi-pcnet.rom
1527 %{_datadir}/%{name}/efi-rtl8139.rom
1528 %{_datadir}/%{name}/efi-virtio.rom
1529 %{_datadir}/%{name}/efi-vmxnet3.rom
1530 %{_datadir}/%{name}/kvmvapic.bin
1531 %{_datadir}/%{name}/linuxboot.bin
1532 %{_datadir}/%{name}/linuxboot_dma.bin
1533 %{_datadir}/%{name}/multiboot.bin
1534 %{_datadir}/%{name}/multiboot_dma.bin
1535 %{_datadir}/%{name}/pvh.bin
1536 %{_datadir}/%{name}/pxe-e1000.rom
1537 %{_datadir}/%{name}/pxe-eepro100.rom
1538 %{_datadir}/%{name}/pxe-ne2k_pci.rom
1539 %{_datadir}/%{name}/pxe-pcnet.rom
1540 %{_datadir}/%{name}/pxe-rtl8139.rom
1541 %{_datadir}/%{name}/pxe-virtio.rom
1542 %{_datadir}/%{name}/qboot.rom
1543 %{_datadir}/%{name}/vgabios.bin
1544 %{_datadir}/%{name}/vgabios-ati.bin
1545 %{_datadir}/%{name}/vgabios-bochs-display.bin
1546 %{_datadir}/%{name}/vgabios-cirrus.bin
1547 %{_datadir}/%{name}/vgabios-qxl.bin
1548 %{_datadir}/%{name}/vgabios-ramfb.bin
1549 %{_datadir}/%{name}/vgabios-stdvga.bin
1550 %{_datadir}/%{name}/vgabios-virtio.bin
1551 %{_datadir}/%{name}/vgabios-vmware.bin
1552 %{_datadir}/%{name}/vof.bin
1553 %{_datadir}/%{name}/vof-nvram.bin
1554 %{_datadir}/%{name}/firmware/50-edk2-i386-secure.json
1555 %{_datadir}/%{name}/firmware/50-edk2-x86_64-secure.json
1556 %{_datadir}/%{name}/firmware/60-edk2-i386.json
1557 %{_datadir}/%{name}/firmware/60-edk2-x86_64.json
1558
1559 %files system-xtensa
1560 %defattr(644,root,root,755)
1561 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1562 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1563
1564 %files guest-agent
1565 %defattr(644,root,root,755)
1566 %attr(755,root,root) %{_bindir}/qemu-ga
1567 /lib/udev/rules.d/99-qemu-guest-agent.rules
1568 %attr(754,root,root) /etc/rc.d/init.d/qemu-ga
1569 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/qemu-ga
1570 %{_mandir}/man7/qemu-ga-ref.7*
1571 %{_mandir}/man8/qemu-ga.8*
1572
1573 %files module-audio-jack
1574 %defattr(644,root,root,755)
1575 %attr(755,root,root) %{_libdir}/%{name}/audio-jack.so
1576
1577 %files module-block-curl
1578 %defattr(644,root,root,755)
1579 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1580
1581 %if %{with glusterfs}
1582 %files module-block-gluster
1583 %defattr(644,root,root,755)
1584 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1585 %endif
1586
1587 %if %{with iscsi}
1588 %files module-block-iscsi
1589 %defattr(644,root,root,755)
1590 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1591 %endif
1592
1593 %if %{with libnfs}
1594 %files module-block-nfs
1595 %defattr(644,root,root,755)
1596 %attr(755,root,root) %{_libdir}/%{name}/block-nfs.so
1597 %endif
1598
1599 %if %{with ceph}
1600 %files module-block-rbd
1601 %defattr(644,root,root,755)
1602 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1603 %endif
1604
1605 %files module-block-ssh
1606 %defattr(644,root,root,755)
1607 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so
1608
1609 %files module-ui-dbus
1610 %defattr(644,root,root,755)
1611 %attr(755,root,root) %{_libdir}/%{name}/audio-dbus.so
1612 %attr(755,root,root) %{_libdir}/%{name}/ui-dbus.so
1613
1614 %if %{with gtk3}
1615 %files module-ui-gtk
1616 %defattr(644,root,root,755)
1617 %attr(755,root,root) %{_libdir}/%{name}/ui-gtk.so
1618 %endif
1619
1620 %if %{with sdl}
1621 %files module-ui-sdl
1622 %defattr(644,root,root,755)
1623 %attr(755,root,root) %{_libdir}/%{name}/audio-sdl.so
1624 %attr(755,root,root) %{_libdir}/%{name}/ui-sdl.so
1625 %endif
1626
1627 %if %{with systemtap}
1628 %files -n systemtap-qemu
1629 %defattr(644,root,root,755)
1630 %attr(755,root,root) %{_bindir}/qemu-trace-stap
1631 %{_datadir}/systemtap/tapset/qemu-*.stp
1632 %{_mandir}/man1/qemu-trace-stap.1*
1633 %endif