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