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