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