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