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