]> TLD Linux GIT Repositories - packages/qemu.git/blob - qemu.spec
- updated to 8.0.3, sync with PLD spec changes
[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 URL:            https://www.qemu.org/
69 %{?with_opengl:BuildRequires:   Mesa-libgbm-devel}
70 %{?with_opengl:BuildRequires:   OpenGL-GLX-devel}
71 %{?with_opengl:BuildRequires:   OpenGL-devel}
72 %{?with_sdl:BuildRequires:      SDL2-devel >= 2.0}
73 %{?with_sdl:BuildRequires:      SDL2_image-devel >= 2.0}
74 BuildRequires:  alsa-lib-devel
75 %{?with_brlapi:BuildRequires:   brlapi-devel}
76 BuildRequires:  bzip2-devel
77 BuildRequires:  capstone-devel >= 4.0
78 %{?with_ceph:BuildRequires:     ceph-devel >= 12}
79 BuildRequires:  curl-devel >= 7.29.0
80 BuildRequires:  cyrus-sasl-devel >= 2
81 BuildRequires:  daxctl-devel >= 57
82 BuildRequires:  gcc >= 6:7.4
83 BuildRequires:  gettext-tools
84 BuildRequires:  glib2-devel >= 1:2.64
85 # minimal is 3.4 but new features are used up to 6
86 %{?with_glusterfs:BuildRequires:        glusterfs-devel >= 6}
87 BuildRequires:  gnutls-devel >= 3.6.14
88 %{?with_gtk3:BuildRequires:     gtk+3-devel >= 3.22.0}
89 BuildRequires:  jack-audio-connection-kit-devel
90 # for tests
91 #BuildRequires: keyutils-devel
92 BuildRequires:  libaio-devel
93 BuildRequires:  libbpf-devel
94 %{?with_smartcard:BuildRequires:        libcacard-devel >= 2.5.1}
95 BuildRequires:  libcap-ng-devel
96 BuildRequires:  libdrm-devel
97 %{?with_opengl:BuildRequires:   libepoxy-devel}
98 BuildRequires:  libfdt-devel >= 1.5.1
99 BuildRequires:  libfuse3-devel >= 3.8
100 %{?with_rdma:BuildRequires:     libibverbs-devel}
101 %{?with_iscsi:BuildRequires:    libiscsi-devel >= 1.9.0}
102 %{?with_rdma:BuildRequires:     libibumad-devel}
103 BuildRequires:  libjpeg-devel
104 %{?with_libnfs:BuildRequires:   libnfs-devel >= 1.9.3}
105 BuildRequires:  libpng-devel >= 2:1.6.34
106 %{?with_rdma:BuildRequires:     librdmacm-devel}
107 %{?with_seccomp:BuildRequires:  libseccomp-devel >= 2.3.0}
108 BuildRequires:  libselinux-devel
109 BuildRequires:  libssh-devel >= 0.8.7
110 BuildRequires:  libslirp-devel >= 4.1.0
111 # for tests only
112 #BuildRequires: libtasn1-devel
113 BuildRequires:  libu2f-emu-devel
114 BuildRequires:  libusb-devel >= 1.0.22
115 BuildRequires:  liburing-devel >= 0.3
116 BuildRequires:  libuuid-devel
117 BuildRequires:  libxml2-devel >= 2.0
118 %{?with_lttng:BuildRequires:    lttng-ust-devel >= 2.1}
119 BuildRequires:  lzfse-devel
120 BuildRequires:  lzo-devel >= 2
121 BuildRequires:  meson >= 0.59.3
122 %{?with_multipath:BuildRequires:        multipath-tools-devel}
123 BuildRequires:  ncurses-devel
124 # also libgcrypt-devel >= 1.8 possible, but gnutls already pulls nettle
125 BuildRequires:  nettle-devel >= 3.4
126 BuildRequires:  ninja
127 %{?with_smartcard:BuildRequires:        nss-devel >= 1:3.12.8}
128 BuildRequires:  numactl-devel
129 BuildRequires:  pam-devel
130 BuildRequires:  perl-Encode
131 BuildRequires:  perl-tools-pod
132 BuildRequires:  pixman-devel >= 0.21.8
133 BuildRequires:  pkgconfig
134 %{?with_pmem:BuildRequires:     pmdk-devel}
135 %{?with_pulseaudio:BuildRequires:       pulseaudio-devel}
136 BuildRequires:  python3 >= 1:3.6
137 BuildRequires:  python3-sphinx_rtd_theme
138 BuildRequires:  rpm-build >= 4.6
139 BuildRequires:  rpmbuild(macros) >= 1.644
140 %{?with_system_seabios:BuildRequires:   seabios}
141 BuildRequires:  sed >= 4.0
142 %{?with_snappy:BuildRequires:   snappy-devel}
143 BuildRequires:  sphinx-pdg
144 %if %{with spice}
145 BuildRequires:  spice-protocol >= 0.12.3
146 BuildRequires:  spice-server-devel >= 0.12.5
147 %endif
148 %{?with_systemtap:BuildRequires:        systemtap-sdt-devel}
149 BuildRequires:  tar >= 1:1.22
150 BuildRequires:  texi2html
151 BuildRequires:  texinfo
152 %{?with_multipath:BuildRequires:        udev-devel}
153 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
154 %{?with_lttng:BuildRequires:    userspace-rcu-devel}
155 BuildRequires:  vde2-devel
156 BuildRequires:  which
157 %{?with_virgl:BuildRequires:    virglrenderer-devel}
158 %{?with_vte:BuildRequires:      vte-devel >= 0.32.0}
159 # xencontrol xenstore xenguest xenforeignmemory xengnttab xenevtchn xendevicemodel; xentoolcore for xen 4.10+
160 # min version is 4.2, more features up to 4.11
161 %{?with_xen:BuildRequires:      xen-devel >= 4.11}
162 BuildRequires:  xfsprogs-devel
163 %if %{with xkbcommon}
164 BuildRequires:  xkeyboard-config
165 BuildRequires:  xorg-lib-libxkbcommon-devel
166 %endif
167 BuildRequires:  xorg-lib-libX11-devel
168 BuildRequires:  xz
169 BuildRequires:  zlib-devel
170 BuildRequires:  zstd-devel >= 1.4.0
171 %if %{with user_static}
172 BuildRequires:  glib2-static >= 1:2.74
173 BuildRequires:  glibc-static
174 BuildRequires:  pcre2-8-static >= 10.32
175 BuildRequires:  zlib-static
176 %endif
177 Requires:       %{name}-img = %{version}-%{release}
178 Requires:       %{name}-system-aarch64 = %{version}-%{release}
179 Requires:       %{name}-system-alpha = %{version}-%{release}
180 Requires:       %{name}-system-arm = %{version}-%{release}
181 Requires:       %{name}-system-avr = %{version}-%{release}
182 Requires:       %{name}-system-cris = %{version}-%{release}
183 Requires:       %{name}-system-hppa = %{version}-%{release}
184 Requires:       %{name}-system-m68k = %{version}-%{release}
185 Requires:       %{name}-system-microblaze = %{version}-%{release}
186 Requires:       %{name}-system-mips = %{version}-%{release}
187 Requires:       %{name}-system-nios2 = %{version}-%{release}
188 Requires:       %{name}-system-or1k = %{version}-%{release}
189 Requires:       %{name}-system-ppc = %{version}-%{release}
190 Requires:       %{name}-system-riscv32 = %{version}-%{release}
191 Requires:       %{name}-system-riscv64 = %{version}-%{release}
192 Requires:       %{name}-system-rx = %{version}-%{release}
193 Requires:       %{name}-system-s390x = %{version}-%{release}
194 Requires:       %{name}-system-sh4 = %{version}-%{release}
195 Requires:       %{name}-system-sparc = %{version}-%{release}
196 Requires:       %{name}-system-tricore = %{version}-%{release}
197 Requires:       %{name}-system-x86 = %{version}-%{release}
198 Requires:       %{name}-system-xtensa = %{version}-%{release}
199 Requires:       %{name}-user = %{version}-%{release}
200 Obsoletes:      qemu-kvm < 2
201 ExcludeArch:    i386
202 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
203
204 %define systempkg_req \
205 Requires:       capstone >= 4.0 \
206 Requires:       daxctl-libs >= 57 \
207 %{?with_smartcard:Requires:     libcacard >= 2.5.1} \
208 Requires:       libfdt >= 1.5.1 \
209 Requires:       libfuse3 >= 3.8 \
210 %{?with_iscsi:Requires: libiscsi >= 1.9.0} \
211 Requires:       libpng >= 2:1.6.34 \
212 %if %{with seccomp} \
213 Requires:       libseccomp >= 2.3.0 \
214 %endif \
215 Requires:       libslirp >= 4.1.0 \
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
998 %{__sed} -i '1s,/usr/bin/env python3,%{__python3},' scripts/qemu-trace-stap
999
1000 %if %{with systemtap}
1001 # don't require stap binary during build
1002 %{__sed} -i -e "s/stap.found()/true/" meson.build docs/meson.build scripts/meson.build
1003 %endif
1004 %build
1005
1006 build() {
1007         local target=$1
1008         shift
1009
1010         install -d build-$target
1011         cd build-$target
1012
1013         ../configure \
1014         --prefix=%{_prefix} \
1015         --libdir=%{_libdir} \
1016         --libexecdir=%{_libexecdir} \
1017         --sysconfdir=%{_sysconfdir} \
1018         --localstatedir=%{_localstatedir} \
1019         --interp-prefix=%{_libdir}/qemu/lib-%%M \
1020         --cc="%{__cc}" \
1021         --cxx="%{__cxx}" \
1022         --host-cc="%{__cc}" \
1023         --disable-strip \
1024         --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
1025         --enable-kvm \
1026         "$@"
1027
1028         %{__make} \
1029                 V=1 \
1030                 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
1031
1032         cd ..
1033 }
1034
1035 build dynamic \
1036         --extra-cflags="%{rpmcflags} %{rpmcppflags}" \
1037         --extra-ldflags="%{rpmldflags} -Wl,-z,relro -Wl,-z,now" \
1038         --audio-drv-list="alsa,jack%{?with_oss:,oss}%{?with_pulseaudio:,pa}%{?with_sdl:,sdl}" \
1039         --enable-attr \
1040         %{__enable_disable brlapi} \
1041         --enable-cap-ng \
1042         --enable-capstone \
1043         --enable-curl \
1044         --enable-curses \
1045         --enable-docs \
1046         --enable-fdt \
1047         %{__enable_disable glusterfs} \
1048         %{!?with_gtk3:--disable-gtk} \
1049         %{__enable_disable iscsi libiscsi} \
1050         %{__enable_disable libnfs} \
1051         %{__enable_disable pmem libpmem} \
1052         --enable-lzo \
1053         %{__enable_disable multipath mpath} \
1054         --enable-modules \
1055         --disable-netmap \
1056         --enable-nettle \
1057         %{__enable_disable ceph rbd} \
1058         %{__enable_disable rdma} \
1059         %{__enable_disable sdl} \
1060         %{__enable_disable seccomp} \
1061         --enable-slirp=system \
1062         %{__enable_disable spice} \
1063         %{__enable_disable smartcard} \
1064         %{__enable_disable snappy} \
1065         --enable-tpm \
1066         %{__enable_disable usbredir usb-redir} \
1067         --enable-vde \
1068         %{__enable_disable virgl virglrenderer} \
1069         --enable-virtfs \
1070         --enable-vnc-jpeg \
1071         --enable-vnc-sasl \
1072         %{!?with_vte:--disable-vte} \
1073         %{__enable_disable xen} \
1074         %{__enable_disable xkbcommon}
1075
1076 %if %{with user_static}
1077 build static \
1078         --disable-brlapi \
1079         --disable-cap-ng \
1080         --disable-capstone \
1081         --disable-curl \
1082         --disable-curses \
1083         --disable-gcrypt \
1084         --disable-gnutls \
1085         --disable-gtk \
1086         --disable-guest-agent \
1087         --disable-guest-agent-msi \
1088         --disable-libnfs \
1089         --disable-linux-io-uring \
1090         --disable-mpath \
1091         --disable-nettle \
1092         --disable-pie \
1093         --disable-sdl \
1094         --disable-slirp \
1095         --disable-spice \
1096         --disable-system \
1097         --disable-tools \
1098         --enable-user \
1099         --disable-xkbcommon \
1100         --disable-zstd \
1101         --static
1102 %endif
1103
1104 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
1105
1106 %install
1107 rm -rf $RPM_BUILD_ROOT
1108 install -d \
1109         $RPM_BUILD_ROOT/etc/{qemu,sysconfig,modules-load.d,rc.d/init.d,logrotate.d} \
1110         $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,/lib/udev/rules.d,%{_sbindir}}
1111
1112 %if %{with user_static}
1113 %{__make} -C build-static install \
1114         %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
1115         DESTDIR=$RPM_BUILD_ROOT
1116
1117 # Give all QEMU user emulators a -static suffix
1118 for src in $RPM_BUILD_ROOT%{_bindir}/qemu-*; do
1119         %{__mv} $src $src-static
1120 done
1121
1122 %endif
1123
1124 %{__make} -C build-dynamic install \
1125         %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
1126         DESTDIR=$RPM_BUILD_ROOT
1127
1128 # let rpm generate dependencies
1129 chmod 755 $RPM_BUILD_ROOT%{_libdir}/%{name}/*.so
1130
1131 echo "#allow br0" > $RPM_BUILD_ROOT/etc/qemu/bridge.conf
1132
1133 install -d $RPM_BUILD_ROOT%{_sysconfdir}
1134 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
1135 #!/bin/sh
1136
1137 EOF
1138
1139 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
1140
1141 %ifarch %{ix86} %{x8664} x32
1142 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
1143 install -p %{SOURCE4} $RPM_BUILD_ROOT/lib/udev/rules.d
1144 %endif
1145
1146 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
1147 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
1148
1149 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
1150 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
1151
1152 # For the qemu-guest-agent subpackage install the udev rules.
1153 install -p %{SOURCE12} $RPM_BUILD_ROOT/lib/udev/rules.d
1154
1155 install -p %{SOURCE13} $RPM_BUILD_ROOT/etc/rc.d/init.d/qemu-ga
1156 install -p %{SOURCE14} $RPM_BUILD_ROOT/etc/logrotate.d/qemu-ga
1157
1158 %if %{with system_seabios}
1159 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
1160 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
1161 %endif
1162
1163 %if %{with gtk3}
1164 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
1165 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
1166 %find_lang %{name}
1167 %else
1168 : > qemu.lang
1169 %endif
1170
1171 for t in client server; do
1172         cp -p build-dynamic/contrib/ivshmem-$t/ivshmem-$t $RPM_BUILD_ROOT%{_bindir}
1173 done
1174
1175 # test modules
1176 %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/accel-qtest-*.so
1177 # Windows installer icon, not used
1178 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/qemu-nsis.bmp
1179 # packaged as %doc
1180 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/edk2-licenses.txt
1181
1182 # cleanup Sphinx files
1183 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/{.buildinfo,objects.inv}
1184
1185 %clean
1186 rm -rf $RPM_BUILD_ROOT
1187
1188 %pre common
1189 %groupadd -g 160 kvm
1190 %groupadd -g 276 qemu
1191 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
1192
1193 %postun common
1194 if [ "$1" = "0" ]; then
1195         %userremove qemu
1196         %groupremove qemu
1197         %groupremove kvm
1198 fi
1199
1200 %post guest-agent
1201 /sbin/chkconfig --add qemu-ga
1202 %service qemu-ga restart "qemu-ga"
1203
1204 %preun guest-agent
1205 if [ "$1" = "0" ]; then
1206         %service qemu-ga stop
1207         /sbin/chkconfig --del qemu-ga
1208 fi
1209
1210 %files
1211 %defattr(644,root,root,755)
1212
1213 %files common -f %{name}.lang
1214 %defattr(644,root,root,755)
1215 %doc LICENSE README.rst pc-bios/edk2-licenses.txt
1216 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
1217 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
1218 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
1219 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
1220 %dir /etc/qemu
1221 %attr(640,root,qemu) %config(noreplace) %verify(not md5 mtime size) /etc/qemu/bridge.conf
1222 %attr(755,root,root) %{_bindir}/elf2dmp
1223 %attr(755,root,root) %{_bindir}/qemu-edid
1224 %if %{with xkbcommon}
1225 %attr(755,root,root) %{_bindir}/qemu-keymap
1226 %endif
1227 %attr(755,root,root) %{_bindir}/qemu-nbd
1228 %attr(755,root,root) %{_bindir}/qemu-pr-helper
1229 %attr(755,root,root) %{_bindir}/qemu-storage-daemon
1230 %attr(755,root,root) %{_sbindir}/ksmctl
1231 %attr(755,root,root) %{_sbindir}/ksmtuned
1232 %attr(755,root,root) %{_libexecdir}/qemu-bridge-helper
1233 %if %{with virgl}
1234 %attr(755,root,root) %{_libexecdir}/vhost-user-gpu
1235 %endif
1236 %attr(755,root,root) %{_libexecdir}/virtfs-proxy-helper
1237 %dir %{_libdir}/%{name}
1238 # modules without too many external dependencies
1239 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-bz2.so
1240 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-lzfse.so
1241 %attr(755,root,root) %{_libdir}/%{name}/audio-alsa.so
1242 %if %{with oss}
1243 %attr(755,root,root) %{_libdir}/%{name}/audio-oss.so
1244 %endif
1245 %if %{with pulseaudio}
1246 %attr(755,root,root) %{_libdir}/%{name}/audio-pa.so
1247 %endif
1248 %if %{with spice}
1249 %attr(755,root,root) %{_libdir}/%{name}/audio-spice.so
1250 %attr(755,root,root) %{_libdir}/%{name}/chardev-spice.so
1251 %attr(755,root,root) %{_libdir}/%{name}/hw-display-qxl.so
1252 %endif
1253 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu.so
1254 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-gl.so
1255 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-pci.so
1256 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-gpu-pci-gl.so
1257 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-vga.so
1258 %attr(755,root,root) %{_libdir}/%{name}/hw-display-virtio-vga-gl.so
1259 %attr(755,root,root) %{_libdir}/%{name}/hw-s390x-virtio-gpu-ccw.so
1260 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-host.so
1261 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-redirect.so
1262 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-smartcard.so
1263 %attr(755,root,root) %{_libdir}/%{name}/ui-curses.so
1264 %attr(755,root,root) %{_libdir}/%{name}/ui-egl-headless.so
1265 %if %{with opengl}
1266 %attr(755,root,root) %{_libdir}/%{name}/ui-opengl.so
1267 %endif
1268 %if %{with spice}
1269 %attr(755,root,root) %{_libdir}/%{name}/ui-spice-app.so
1270 %attr(755,root,root) %{_libdir}/%{name}/ui-spice-core.so
1271 %endif
1272 %dir %{_datadir}/%{name}
1273 %dir %{_datadir}/%{name}/firmware
1274 %{_datadir}/%{name}/keymaps
1275 %{_datadir}/%{name}/trace-events-all
1276 %dir %{_datadir}/%{name}/vhost-user
1277 %if %{with virgl}
1278 %{_datadir}/%{name}/vhost-user/50-qemu-gpu.json
1279 %endif
1280 %{_desktopdir}/qemu.desktop
1281 %{_iconsdir}/hicolor/*x*/apps/qemu.png
1282 %{_iconsdir}/hicolor/32x32/apps/qemu.bmp
1283 %{_iconsdir}/hicolor/scalable/apps/qemu.svg
1284 %{_mandir}/man1/qemu.1*
1285 %{_mandir}/man1/qemu-storage-daemon.1*
1286 %{_mandir}/man1/virtfs-proxy-helper.1*
1287 %{_mandir}/man7/qemu-block-drivers.7*
1288 %{_mandir}/man7/qemu-cpu-models.7*
1289 %{_mandir}/man7/qemu-qmp-ref.7*
1290 %{_mandir}/man7/qemu-storage-daemon-qmp-ref.7*
1291 %{_mandir}/man8/qemu-nbd.8*
1292 %{_mandir}/man8/qemu-pr-helper.8*
1293 %{_docdir}/qemu
1294
1295 %files devel
1296 %defattr(644,root,root,755)
1297 %{_includedir}/qemu-plugin.h
1298
1299 %files img
1300 %defattr(644,root,root,755)
1301 %attr(755,root,root) %{_bindir}/qemu-img
1302 %{_mandir}/man1/qemu-img.1*
1303
1304 %files ivshmem
1305 %defattr(644,root,root,755)
1306 %attr(755,root,root) %{_bindir}/ivshmem-client
1307 %attr(755,root,root) %{_bindir}/ivshmem-server
1308
1309 %files user
1310 %defattr(644,root,root,755)
1311 %attr(755,root,root) %{_bindir}/qemu-aarch64
1312 %attr(755,root,root) %{_bindir}/qemu-aarch64_be
1313 %attr(755,root,root) %{_bindir}/qemu-alpha
1314 %attr(755,root,root) %{_bindir}/qemu-arm
1315 %attr(755,root,root) %{_bindir}/qemu-armeb
1316 %attr(755,root,root) %{_bindir}/qemu-cris
1317 %attr(755,root,root) %{_bindir}/qemu-hexagon
1318 %attr(755,root,root) %{_bindir}/qemu-hppa
1319 %attr(755,root,root) %{_bindir}/qemu-i386
1320 %attr(755,root,root) %{_bindir}/qemu-io
1321 %attr(755,root,root) %{_bindir}/qemu-loongarch64
1322 %attr(755,root,root) %{_bindir}/qemu-m68k
1323 %attr(755,root,root) %{_bindir}/qemu-microblaze
1324 %attr(755,root,root) %{_bindir}/qemu-microblazeel
1325 %attr(755,root,root) %{_bindir}/qemu-mips
1326 %attr(755,root,root) %{_bindir}/qemu-mipsel
1327 %attr(755,root,root) %{_bindir}/qemu-mips64
1328 %attr(755,root,root) %{_bindir}/qemu-mips64el
1329 %attr(755,root,root) %{_bindir}/qemu-mipsn32
1330 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
1331 %attr(755,root,root) %{_bindir}/qemu-nios2
1332 %attr(755,root,root) %{_bindir}/qemu-or1k
1333 %attr(755,root,root) %{_bindir}/qemu-ppc
1334 %attr(755,root,root) %{_bindir}/qemu-ppc64
1335 %attr(755,root,root) %{_bindir}/qemu-ppc64le
1336 %attr(755,root,root) %{_bindir}/qemu-riscv32
1337 %attr(755,root,root) %{_bindir}/qemu-riscv64
1338 %attr(755,root,root) %{_bindir}/qemu-s390x
1339 %attr(755,root,root) %{_bindir}/qemu-sh4
1340 %attr(755,root,root) %{_bindir}/qemu-sh4eb
1341 %attr(755,root,root) %{_bindir}/qemu-sparc
1342 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
1343 %attr(755,root,root) %{_bindir}/qemu-sparc64
1344 %attr(755,root,root) %{_bindir}/qemu-x86_64
1345 %attr(755,root,root) %{_bindir}/qemu-xtensa
1346 %attr(755,root,root) %{_bindir}/qemu-xtensaeb
1347
1348 %if %{with user_static}
1349 %files user-static
1350 %defattr(644,root,root,755)
1351 %attr(755,root,root) %{_bindir}/qemu-aarch64-static
1352 %attr(755,root,root) %{_bindir}/qemu-aarch64_be-static
1353 %attr(755,root,root) %{_bindir}/qemu-alpha-static
1354 %attr(755,root,root) %{_bindir}/qemu-arm-static
1355 %attr(755,root,root) %{_bindir}/qemu-armeb-static
1356 %attr(755,root,root) %{_bindir}/qemu-cris-static
1357 %attr(755,root,root) %{_bindir}/qemu-hexagon-static
1358 %attr(755,root,root) %{_bindir}/qemu-hppa-static
1359 %attr(755,root,root) %{_bindir}/qemu-i386-static
1360 %attr(755,root,root) %{_bindir}/qemu-loongarch64-static
1361 %attr(755,root,root) %{_bindir}/qemu-m68k-static
1362 %attr(755,root,root) %{_bindir}/qemu-microblaze-static
1363 %attr(755,root,root) %{_bindir}/qemu-microblazeel-static
1364 %attr(755,root,root) %{_bindir}/qemu-mips-static
1365 %attr(755,root,root) %{_bindir}/qemu-mips64-static
1366 %attr(755,root,root) %{_bindir}/qemu-mips64el-static
1367 %attr(755,root,root) %{_bindir}/qemu-mipsel-static
1368 %attr(755,root,root) %{_bindir}/qemu-mipsn32-static
1369 %attr(755,root,root) %{_bindir}/qemu-mipsn32el-static
1370 %attr(755,root,root) %{_bindir}/qemu-nios2-static
1371 %attr(755,root,root) %{_bindir}/qemu-or1k-static
1372 %attr(755,root,root) %{_bindir}/qemu-ppc-static
1373 %attr(755,root,root) %{_bindir}/qemu-ppc64-static
1374 %attr(755,root,root) %{_bindir}/qemu-ppc64le-static
1375 %attr(755,root,root) %{_bindir}/qemu-riscv32-static
1376 %attr(755,root,root) %{_bindir}/qemu-riscv64-static
1377 %attr(755,root,root) %{_bindir}/qemu-s390x-static
1378 %attr(755,root,root) %{_bindir}/qemu-sh4-static
1379 %attr(755,root,root) %{_bindir}/qemu-sh4eb-static
1380 %attr(755,root,root) %{_bindir}/qemu-sparc-static
1381 %attr(755,root,root) %{_bindir}/qemu-sparc32plus-static
1382 %attr(755,root,root) %{_bindir}/qemu-sparc64-static
1383 %attr(755,root,root) %{_bindir}/qemu-x86_64-static
1384 %attr(755,root,root) %{_bindir}/qemu-xtensa-static
1385 %attr(755,root,root) %{_bindir}/qemu-xtensaeb-static
1386 %if %{with systemtap}
1387 %attr(755,root,root) %{_bindir}/qemu-trace-stap-static
1388 %endif
1389 %endif
1390
1391 %files system-aarch64
1392 %defattr(644,root,root,755)
1393 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1394 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-aarch64.so
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 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-alpha.so
1402 %{_datadir}/%{name}/palcode-clipper
1403
1404 %files system-arm
1405 %defattr(644,root,root,755)
1406 %attr(755,root,root) %{_bindir}/qemu-system-arm
1407 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-arm.so
1408 %{_datadir}/%{name}/edk2-arm-code.fd
1409 %{_datadir}/%{name}/edk2-arm-vars.fd
1410 %{_datadir}/%{name}/firmware/60-edk2-arm.json
1411 %{_datadir}/%{name}/npcm7xx_bootrom.bin
1412
1413 %files system-avr
1414 %defattr(644,root,root,755)
1415 %attr(755,root,root) %{_bindir}/qemu-system-avr
1416 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-avr.so
1417 %files system-cris
1418 %defattr(644,root,root,755)
1419 %attr(755,root,root) %{_bindir}/qemu-system-cris
1420 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-cris.so
1421
1422 %files system-hppa
1423 %defattr(644,root,root,755)
1424 %attr(755,root,root) %{_bindir}/qemu-system-hppa
1425 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-hppa.so
1426 %{_datadir}/%{name}/hppa-firmware.img
1427
1428 %files system-loongarch
1429 %defattr(644,root,root,755)
1430 %attr(755,root,root) %{_bindir}/qemu-system-loongarch64
1431 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-loongarch64.so
1432
1433 %files system-m68k
1434 %defattr(644,root,root,755)
1435 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1436 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-m68k.so
1437
1438 %files system-microblaze
1439 %defattr(644,root,root,755)
1440 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1441 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1442 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-microblaze.so
1443 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-microblazeel.so
1444
1445 %files system-mips
1446 %defattr(644,root,root,755)
1447 %attr(755,root,root) %{_bindir}/qemu-system-mips
1448 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1449 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1450 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1451 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-mips.so
1452 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-mips64.so
1453 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-mips64el.so
1454 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-mipsel.so
1455
1456 %files system-nios2
1457 %defattr(644,root,root,755)
1458 %attr(755,root,root) %{_bindir}/qemu-system-nios2
1459 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-nios2.so
1460
1461 %files system-or1k
1462 %defattr(644,root,root,755)
1463 %attr(755,root,root) %{_bindir}/qemu-system-or1k
1464 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-or1k.so
1465
1466 %files system-ppc
1467 %defattr(644,root,root,755)
1468 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1469 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1470 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-ppc.so
1471 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-ppc64.so
1472 %{_datadir}/%{name}/bamboo.dtb
1473 %{_datadir}/%{name}/canyonlands.dtb
1474 %{_datadir}/%{name}/openbios-ppc
1475 %{_datadir}/%{name}/petalogix-ml605.dtb
1476 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
1477 %{_datadir}/%{name}/qemu_vga.ndrv
1478 %{_datadir}/%{name}/skiboot.lid
1479 %{_datadir}/%{name}/slof.bin
1480 %{_datadir}/%{name}/u-boot.e500
1481 %{_datadir}/%{name}/u-boot-sam460-20100605.bin
1482
1483 %files system-riscv32
1484 %defattr(644,root,root,755)
1485 %attr(755,root,root) %{_bindir}/qemu-system-riscv32
1486 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-riscv32.so
1487 %{_datadir}/%{name}/opensbi-riscv32-generic-fw_dynamic.bin
1488
1489 %files system-riscv64
1490 %defattr(644,root,root,755)
1491 %attr(755,root,root) %{_bindir}/qemu-system-riscv64
1492 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-riscv64.so
1493 %{_datadir}/%{name}/opensbi-riscv64-generic-fw_dynamic.bin
1494
1495 %files system-rx
1496 %defattr(644,root,root,755)
1497 %attr(755,root,root) %{_bindir}/qemu-system-rx
1498 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-rx.so
1499
1500 %files system-s390x
1501 %defattr(644,root,root,755)
1502 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1503 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-s390x.so
1504 %{_datadir}/%{name}/s390-ccw.img
1505 %{_datadir}/%{name}/s390-netboot.img
1506
1507 %files system-sh4
1508 %defattr(644,root,root,755)
1509 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1510 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1511 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-sh4.so
1512 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-sh4eb.so
1513
1514 %files system-sparc
1515 %defattr(644,root,root,755)
1516 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1517 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1518 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-sparc.so
1519 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-sparc64.so
1520 %{_datadir}/%{name}/QEMU,cgthree.bin
1521 %{_datadir}/%{name}/QEMU,tcx.bin
1522 %{_datadir}/%{name}/openbios-sparc32
1523 %{_datadir}/%{name}/openbios-sparc64
1524
1525 %files system-tricore
1526 %defattr(644,root,root,755)
1527 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1528 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-tricore.so
1529
1530 %files system-x86
1531 %defattr(644,root,root,755)
1532 %attr(755,root,root) %{_bindir}/qemu-system-i386
1533 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1534 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-i386.so
1535 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-x86_64.so
1536 %attr(755,root,root) %{_libdir}/%{name}/accel-tcg-i386.so
1537 %attr(755,root,root) %{_libdir}/%{name}/accel-tcg-x86_64.so
1538 %ifarch %{ix86} %{x8664} x32
1539 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1540 /lib/udev/rules.d/80-kvm.rules
1541 %endif
1542 %{_datadir}/%{name}/bios.bin
1543 %{_datadir}/%{name}/bios-256k.bin
1544 %{_datadir}/%{name}/bios-microvm.bin
1545 %{_datadir}/%{name}/edk2-i386-code.fd
1546 %{_datadir}/%{name}/edk2-i386-secure-code.fd
1547 %{_datadir}/%{name}/edk2-i386-vars.fd
1548 %{_datadir}/%{name}/edk2-x86_64-code.fd
1549 %{_datadir}/%{name}/edk2-x86_64-secure-code.fd
1550 %{_datadir}/%{name}/efi-e1000e.rom
1551 %{_datadir}/%{name}/efi-e1000.rom
1552 %{_datadir}/%{name}/efi-eepro100.rom
1553 %{_datadir}/%{name}/efi-ne2k_pci.rom
1554 %{_datadir}/%{name}/efi-pcnet.rom
1555 %{_datadir}/%{name}/efi-rtl8139.rom
1556 %{_datadir}/%{name}/efi-virtio.rom
1557 %{_datadir}/%{name}/efi-vmxnet3.rom
1558 %{_datadir}/%{name}/kvmvapic.bin
1559 %{_datadir}/%{name}/linuxboot.bin
1560 %{_datadir}/%{name}/linuxboot_dma.bin
1561 %{_datadir}/%{name}/multiboot.bin
1562 %{_datadir}/%{name}/multiboot_dma.bin
1563 %{_datadir}/%{name}/pvh.bin
1564 %{_datadir}/%{name}/pxe-e1000.rom
1565 %{_datadir}/%{name}/pxe-eepro100.rom
1566 %{_datadir}/%{name}/pxe-ne2k_pci.rom
1567 %{_datadir}/%{name}/pxe-pcnet.rom
1568 %{_datadir}/%{name}/pxe-rtl8139.rom
1569 %{_datadir}/%{name}/pxe-virtio.rom
1570 %{_datadir}/%{name}/qboot.rom
1571 %{_datadir}/%{name}/vgabios.bin
1572 %{_datadir}/%{name}/vgabios-ati.bin
1573 %{_datadir}/%{name}/vgabios-bochs-display.bin
1574 %{_datadir}/%{name}/vgabios-cirrus.bin
1575 %{_datadir}/%{name}/vgabios-qxl.bin
1576 %{_datadir}/%{name}/vgabios-ramfb.bin
1577 %{_datadir}/%{name}/vgabios-stdvga.bin
1578 %{_datadir}/%{name}/vgabios-virtio.bin
1579 %{_datadir}/%{name}/vgabios-vmware.bin
1580 %{_datadir}/%{name}/vof.bin
1581 %{_datadir}/%{name}/vof-nvram.bin
1582 %{_datadir}/%{name}/firmware/50-edk2-i386-secure.json
1583 %{_datadir}/%{name}/firmware/50-edk2-x86_64-secure.json
1584 %{_datadir}/%{name}/firmware/60-edk2-i386.json
1585 %{_datadir}/%{name}/firmware/60-edk2-x86_64.json
1586
1587 %files system-xtensa
1588 %defattr(644,root,root,755)
1589 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1590 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1591 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-xtensa.so
1592 %attr(755,root,root) %{_libdir}/%{name}/accel-qtest-xtensaeb.so
1593
1594 %files guest-agent
1595 %defattr(644,root,root,755)
1596 %attr(755,root,root) %{_bindir}/qemu-ga
1597 /lib/udev/rules.d/99-qemu-guest-agent.rules
1598 %attr(754,root,root) /etc/rc.d/init.d/qemu-ga
1599 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/qemu-ga
1600 %{_mandir}/man7/qemu-ga-ref.7*
1601 %{_mandir}/man8/qemu-ga.8*
1602
1603 %files module-audio-jack
1604 %defattr(644,root,root,755)
1605 %attr(755,root,root) %{_libdir}/%{name}/audio-jack.so
1606
1607 %files module-block-curl
1608 %defattr(644,root,root,755)
1609 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1610
1611 %if %{with glusterfs}
1612 %files module-block-gluster
1613 %defattr(644,root,root,755)
1614 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1615 %endif
1616
1617 %if %{with iscsi}
1618 %files module-block-iscsi
1619 %defattr(644,root,root,755)
1620 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1621 %endif
1622
1623 %if %{with libnfs}
1624 %files module-block-nfs
1625 %defattr(644,root,root,755)
1626 %attr(755,root,root) %{_libdir}/%{name}/block-nfs.so
1627 %endif
1628
1629 %if %{with ceph}
1630 %files module-block-rbd
1631 %defattr(644,root,root,755)
1632 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1633 %endif
1634
1635 %files module-block-ssh
1636 %defattr(644,root,root,755)
1637 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so
1638
1639 %files module-ui-dbus
1640 %defattr(644,root,root,755)
1641 %attr(755,root,root) %{_libdir}/%{name}/audio-dbus.so
1642 %attr(755,root,root) %{_libdir}/%{name}/ui-dbus.so
1643
1644 %if %{with gtk3}
1645 %files module-ui-gtk
1646 %defattr(644,root,root,755)
1647 %attr(755,root,root) %{_libdir}/%{name}/ui-gtk.so
1648 %endif
1649
1650 %if %{with sdl}
1651 %files module-ui-sdl
1652 %defattr(644,root,root,755)
1653 %attr(755,root,root) %{_libdir}/%{name}/audio-sdl.so
1654 %attr(755,root,root) %{_libdir}/%{name}/ui-sdl.so
1655 %endif
1656
1657 %if %{with systemtap}
1658 %files -n systemtap-qemu
1659 %defattr(644,root,root,755)
1660 %attr(755,root,root) %{_bindir}/qemu-trace-stap
1661 %{_datadir}/systemtap/tapset/qemu-*.stp
1662 %{_mandir}/man1/qemu-trace-stap.1*
1663 %endif