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