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