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