]> git.pld-linux.org Git - packages/qemu.git/blob - qemu.spec
- updated to 6.0.0
[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:        6.0.0
46 Release:        1
47 License:        GPL v2, BSD (edk2 firmware files)
48 Group:          Applications/Emulators
49 Source0:        https://download.qemu.org/%{name}-%{version}.tar.xz
50 # Source0-md5:  cce185dc0119546e395909e8a71a75bb
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 URL:            https://www.qemu.org/
74 %{?with_opengl:BuildRequires:   Mesa-libgbm-devel}
75 %{?with_opengl:BuildRequires:   OpenGL-GLX-devel}
76 %{?with_opengl:BuildRequires:   OpenGL-devel}
77 %{?with_sdl:BuildRequires:      SDL2-devel >= 2.0}
78 %{?with_sdl:BuildRequires:      SDL2_image-devel >= 2.0}
79 BuildRequires:  alsa-lib-devel
80 %{?with_brlapi:BuildRequires:   brlapi-devel}
81 BuildRequires:  bzip2-devel
82 BuildRequires:  capstone-devel >= 3.0.5
83 %{?with_ceph:BuildRequires:     ceph-devel}
84 BuildRequires:  curl-devel
85 BuildRequires:  cyrus-sasl-devel >= 2
86 BuildRequires:  gettext-tools
87 BuildRequires:  glib2-devel >= 1:2.48
88 # minimal is 3.4 but new features are used up to 6
89 %{?with_glusterfs:BuildRequires:        glusterfs-devel >= 6}
90 BuildRequires:  gnutls-devel >= 3.1.18
91 %{?with_gtk3:BuildRequires:     gtk+3-devel >= 3.22.0}
92 BuildRequires:  libaio-devel
93 %{?with_smartcard:BuildRequires:        libcacard-devel >= 2.5.1}
94 BuildRequires:  libcap-ng-devel
95 BuildRequires:  libdrm-devel
96 %{?with_opengl:BuildRequires:   libepoxy-devel}
97 BuildRequires:  libfdt-devel >= 1.4.2
98 %{?with_rdma:BuildRequires:     libibverbs-devel}
99 %{?with_iscsi:BuildRequires:    libiscsi-devel >= 1.9.0}
100 %{?with_rdma:BuildRequires:     libibumad-devel}
101 BuildRequires:  libjpeg-devel
102 %{?with_libnfs:BuildRequires:   libnfs-devel >= 1.9.3}
103 BuildRequires:  libpng-devel
104 %{?with_rdma:BuildRequires:     librdmacm-devel}
105 %{?with_seccomp:BuildRequires:  libseccomp-devel >= 2.3.0}
106 BuildRequires:  libssh-devel >= 0.8
107 BuildRequires:  libslirp-devel >= 4.0.0
108 # for tests only
109 #BuildRequires: libtasn1-devel
110 BuildRequires:  libusb-devel >= 1.0.22
111 BuildRequires:  liburing-devel
112 BuildRequires:  libuuid-devel
113 BuildRequires:  libxml2-devel >= 2.0
114 %{?with_lttng:BuildRequires:    lttng-ust-devel}
115 BuildRequires:  lzfse-devel
116 BuildRequires:  lzo-devel >= 2
117 BuildRequires:  meson >= 0.55.0
118 %{?with_multipath:BuildRequires:        multipath-tools-devel}
119 BuildRequires:  ncurses-devel
120 # also libgcrypt-devel >= 1.5.0 possible, but gnutls already pulls nettle
121 BuildRequires:  nettle-devel >= 2.7.1
122 BuildRequires:  ninja
123 %{?with_smartcard:BuildRequires:        nss-devel >= 1:3.12.8}
124 BuildRequires:  numactl-devel
125 BuildRequires:  pam-devel
126 BuildRequires:  perl-Encode
127 BuildRequires:  perl-tools-pod
128 BuildRequires:  pixman-devel >= 0.21.8
129 BuildRequires:  pkgconfig
130 %{?with_pmem:BuildRequires:     pmdk-devel}
131 %{?with_pulseaudio:BuildRequires:       pulseaudio-devel}
132 BuildRequires:  python3 >= 1:3.5
133 BuildRequires:  rpmbuild(macros) >= 1.644
134 %{?with_system_seabios:BuildRequires:   seabios}
135 BuildRequires:  sed >= 4.0
136 %{?with_snappy:BuildRequires:   snappy-devel}
137 BuildRequires:  sphinx-pdg
138 %if %{with spice}
139 BuildRequires:  spice-protocol >= 0.12.3
140 BuildRequires:  spice-server-devel >= 0.12.5
141 %endif
142 %{?with_systemtap:BuildRequires:        systemtap-sdt-devel}
143 BuildRequires:  tar >= 1:1.22
144 BuildRequires:  texi2html
145 BuildRequires:  texinfo
146 %{?with_multipath:BuildRequires:        udev-devel}
147 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
148 %{?with_lttng:BuildRequires:    userspace-rcu-devel}
149 BuildRequires:  vde2-devel
150 BuildRequires:  which
151 %{?with_virgl:BuildRequires:    virglrenderer-devel}
152 %{?with_vte:BuildRequires:      vte-devel >= 0.32.0}
153 # xencontrol xenstore xenguest xenforeignmemory xengnttab xenevtchn xendevicemodel; xentoolcore for xen 4.10+
154 # min version is 4.2, more features up to 4.10
155 %{?with_xen:BuildRequires:      xen-devel >= 4.10}
156 BuildRequires:  xfsprogs-devel
157 %if %{with xkbcommon}
158 BuildRequires:  xkeyboard-config
159 BuildRequires:  xorg-lib-libxkbcommon-devel
160 %endif
161 BuildRequires:  xorg-lib-libX11-devel
162 BuildRequires:  xz
163 BuildRequires:  zlib-devel
164 BuildRequires:  zstd-devel >= 1.4.0
165 %if %{with user_static}
166 BuildRequires:  glib2-static >= 1:2.48
167 BuildRequires:  glibc-static
168 BuildRequires:  pcre-static
169 BuildRequires:  zlib-static
170 %endif
171 Requires:       %{name}-img = %{version}-%{release}
172 Requires:       %{name}-system-aarch64 = %{version}-%{release}
173 Requires:       %{name}-system-alpha = %{version}-%{release}
174 Requires:       %{name}-system-arm = %{version}-%{release}
175 Requires:       %{name}-system-avr = %{version}-%{release}
176 Requires:       %{name}-system-cris = %{version}-%{release}
177 Requires:       %{name}-system-hppa = %{version}-%{release}
178 Requires:       %{name}-system-m68k = %{version}-%{release}
179 Requires:       %{name}-system-microblaze = %{version}-%{release}
180 Requires:       %{name}-system-mips = %{version}-%{release}
181 Requires:       %{name}-system-moxie = %{version}-%{release}
182 Requires:       %{name}-system-nios2 = %{version}-%{release}
183 Requires:       %{name}-system-or1k = %{version}-%{release}
184 Requires:       %{name}-system-ppc = %{version}-%{release}
185 Requires:       %{name}-system-riscv32 = %{version}-%{release}
186 Requires:       %{name}-system-riscv64 = %{version}-%{release}
187 Requires:       %{name}-system-rx = %{version}-%{release}
188 Requires:       %{name}-system-s390x = %{version}-%{release}
189 Requires:       %{name}-system-sh4 = %{version}-%{release}
190 Requires:       %{name}-system-sparc = %{version}-%{release}
191 Requires:       %{name}-system-tricore = %{version}-%{release}
192 Requires:       %{name}-system-x86 = %{version}-%{release}
193 Requires:       %{name}-system-xtensa = %{version}-%{release}
194 Requires:       %{name}-user = %{version}-%{release}
195 Obsoletes:      qemu-kvm < 2
196 ExcludeArch:    i386
197 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
198
199 %define systempkg_req \
200 Requires:       capstone >= 3.0.5 \
201 %{?with_smartcard:Requires:     libcacard >= 2.5.1} \
202 Requires:       libfdt >= 1.4.2 \
203 %if %{with seccomp} \
204 Requires:       libseccomp >= 2.3.0 \
205 %endif \
206 Requires:       libslirp >= 4.0.0 \
207 Requires:       libusb >= 1.0.22 \
208 Requires:       pixman >= 0.21.8 \
209 %if %{with spice} \
210 Requires:       spice-server-libs >= 0.12.5 \
211 %endif \
212 %if %{with usbredir} \
213 Requires:       usbredir >= 0.6 \
214 %endif \
215 Requires:       zstd >= 1.4.0
216
217 # don't strip/chrpath anything in there; these are boot images, roms etc
218 %define         _noautostrip    .*%{_datadir}/qemu/.*
219 %define         _noautochrpath  .*%{_datadir}/qemu/.*
220
221 %description
222 QEMU is a FAST! processor emulator. By using dynamic translation it
223 achieves a reasonnable speed while being easy to port on new host
224 CPUs. QEMU has two operating modes:
225
226 - User mode emulation. In this mode, QEMU can launch Linux processes
227   compiled for one CPU on another CPU. Linux system calls are converted
228   because of endianness and 32/64 bit mismatches. Wine (Windows
229   emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
230
231 - Full system emulation. In this mode, QEMU emulates a full system,
232   including a processor and various peripherials. It can also be used to
233   provide virtual hosting of several virtual PC on a single server.
234
235 %description -l pl.UTF-8
236 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
237 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
238 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
239
240 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
241   procesy linuksowe skompilowane dla jednego procesora na innym
242   procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
243   niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
244   słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
245   cele QEMU.
246
247 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
248   włączając w to procesor i różne urządzenia peryferyjne. Może być także
249   używane do wirtualnego hostowania kilku wirtualnych pecetów na
250   pojedynczym serwerze.
251
252 %package common
253 Summary:        QEMU common files needed by all QEMU targets
254 Summary(pl.UTF-8):      Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
255 Group:          Applications/Emulators
256 Requires(post,preun,postun):    systemd-units >= 38
257 Requires(postun):       /usr/sbin/groupdel
258 Requires(postun):       /usr/sbin/userdel
259 Requires(pre):  /bin/id
260 Requires(pre):  /usr/bin/getgid
261 Requires(pre):  /usr/sbin/groupadd
262 Requires(pre):  /usr/sbin/useradd
263 Requires:       glib2 >= 1:2.48
264 Requires:       gnutls-libs >= 3.1.18
265 %{?with_gtk3:Requires:  gtk+3 >= 3.22.0}
266 Requires:       nettle >= 2.7.1
267 Requires:       systemd-units >= 38
268 %{?with_vte:Requires:   vte >= 0.32.0}
269 Provides:       group(qemu)
270 Provides:       user(qemu)
271 Obsoletes:      qemu-kvm-common < 2
272 Obsoletes:      qemu-module-block-archipelago < 2.9.0
273 Conflicts:      qemu < 1.0-2
274
275 %description common
276 QEMU is a generic and open source processor emulator which achieves a
277 good emulation speed by using dynamic translation.
278
279 This package provides the common files needed by all QEMU targets.
280
281 %description common -l pl.UTF-8
282 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
283 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
284
285 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
286 środowiska QEMU.
287
288 %package img
289 Summary:        QEMU command line tool for manipulating disk images
290 Summary(pl.UTF-8):      Narzędzie QEMU do operacji na obrazach dysków
291 Group:          Applications/Emulators
292 Obsoletes:      qemu-kvm-img < 2
293 Conflicts:      qemu < 1.0-2
294
295 %description img
296 This package provides a command line tool for manipulating disk
297 images.
298
299 %description img -l pl.UTF-8
300 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
301 na obrazach dysków.
302
303 %package user
304 Summary:        QEMU user mode emulation of qemu targets
305 Summary(pl.UTF-8):      QEMU - emulacja trybu użytkownika środowisk qemu
306 Group:          Applications/Emulators
307 Requires:       %{name}-common = %{version}-%{release}
308 Requires(post,postun):  systemd-units >= 38
309 Requires:       systemd-units >= 38
310 Obsoletes:      qemu-kvm-user < 2
311
312 %description user
313 QEMU is a generic and open source processor emulator which achieves a
314 good emulation speed by using dynamic translation.
315
316 This package provides the user mode emulation of QEMU targets.
317
318 %description user -l pl.UTF-8
319 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
320 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
321
322 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
323
324 %package user-static
325 Summary:        QEMU user mode emulation of qemu targets static build
326 Summary(pl.UTF-8):      QEMU - emulacja trybu użytkownika środowisk qemu - wersja statyczna
327 Group:          Applications/Emulators
328 Requires(post,postun):  systemd-units >= 38
329 Requires:       systemd-units >= 38
330
331 %description user-static
332 QEMU is a generic and open source processor emulator which achieves a
333 good emulation speed by using dynamic translation.
334
335 This package provides the user mode emulation of qemu targets built as
336 static binaries.
337
338 %description user-static -l pl.UTF-8
339 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
340 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
341
342 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU w
343 oparciu o programy wykonywalne zbudowane statycznie.
344
345 %package system-aarch64
346 Summary:        QEMU system emulator for AArch64
347 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem AArch64
348 Group:          Applications/Emulators
349 Requires:       %{name}-common = %{version}-%{release}
350 %systempkg_req
351 Obsoletes:      qemu-kvm-system-aarch64 < 2
352
353 %description system-aarch64
354 QEMU is a generic and open source processor emulator which achieves a
355 good emulation speed by using dynamic translation.
356
357 This package provides the system emulator with AArch64 (ARM64) CPU.
358
359 %description system-aarch64 -l pl.UTF-8
360 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
361 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
362
363 Ten pakiet zawiera emulator systemu z procesorem AArch64 (ARM64).
364
365 %package system-alpha
366 Summary:        QEMU system emulator for Alpha
367 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem Alpha
368 Group:          Applications/Emulators
369 Requires:       %{name}-common = %{version}-%{release}
370 %systempkg_req
371 Obsoletes:      qemu-kvm-system-alpha < 2
372
373 %description system-alpha
374 QEMU is a generic and open source processor emulator which achieves a
375 good emulation speed by using dynamic translation.
376
377 This package provides the system emulator with Alpha CPU.
378
379 %description system-alpha -l pl.UTF-8
380 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
381 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
382
383 Ten pakiet zawiera emulator systemu z procesorem Alpha.
384
385 %package system-arm
386 Summary:        QEMU system emulator for 32-bit ARM
387 Summary(pl.UTF-8):      QEMU - emulator systemu z 32-bitowym procesorem ARM
388 Group:          Applications/Emulators
389 Requires:       %{name}-common = %{version}-%{release}
390 %systempkg_req
391 Obsoletes:      qemu-kvm-system-arm < 2
392
393 %description system-arm
394 QEMU is a generic and open source processor emulator which achieves a
395 good emulation speed by using dynamic translation.
396
397 This package provides the system emulator for 32-bit ARM.
398
399 %description system-arm -l pl.UTF-8
400 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
401 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
402
403 Ten pakiet zawiera emulator systemu z 32-bitowym procesorem ARM.
404
405 %package system-avr
406 Summary:        QEMU system emulator for AVR
407 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem AVR
408 Group:          Applications/Emulators
409 Requires:       %{name}-common = %{version}-%{release}
410 %systempkg_req
411 Obsoletes:      qemu-kvm-system-avr < 2
412
413 %description system-avr
414 QEMU is a generic and open source processor emulator which achieves a
415 good emulation speed by using dynamic translation.
416
417 This package provides the system emulator for AVR.
418
419 %description system-avr -l pl.UTF-8
420 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
421 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
422
423 Ten pakiet zawiera emulator systemu z procesorem AVR.
424
425 %package system-cris
426 Summary:        QEMU system emulator for CRIS
427 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem CRIS
428 Group:          Applications/Emulators
429 Requires:       %{name}-common = %{version}-%{release}
430 %systempkg_req
431 Obsoletes:      qemu-kvm-system-cris < 2
432
433 %description system-cris
434 QEMU is a generic and open source processor emulator which achieves a
435 good emulation speed by using dynamic translation.
436
437 This package provides the system emulator with CRIS CPU.
438
439 %description system-cris -l pl.UTF-8
440 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
441 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
442
443 Ten pakiet zawiera emulator systemu z procesorem CRIS.
444
445 %package system-hppa
446 Summary:        QEMU system emulator for HP/PA
447 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem HP/PA
448 Group:          Applications/Emulators
449 Requires:       %{name}-common = %{version}-%{release}
450 %systempkg_req
451
452 %description system-hppa
453 QEMU is a generic and open source processor emulator which achieves a
454 good emulation speed by using dynamic translation.
455
456 This package provides the system emulator with HP/PA (PA-RISC) CPU.
457
458 %description system-hppa -l pl.UTF-8
459 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
460 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
461
462 Ten pakiet zawiera emulator systemu z procesorem HP/PA (PA-RISC).
463
464 %package system-m68k
465 Summary:        QEMU system emulator for m68k
466 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem m68k
467 Group:          Applications/Emulators
468 Requires:       %{name}-common = %{version}-%{release}
469 %systempkg_req
470 Obsoletes:      qemu-kvm-system-m68k < 2
471
472 %description system-m68k
473 QEMU is a generic and open source processor emulator which achieves a
474 good emulation speed by using dynamic translation.
475
476 This package provides the system emulator with m68k (Motorola 68xxx)
477 CPU.
478
479 %description system-m68k -l pl.UTF-8
480 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
481 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
482
483 Ten pakiet zawiera emulator systemu z procesorem m68k (Motorola
484 68xxx).
485
486 %package system-microblaze
487 Summary:        QEMU system emulator for MicroBlaze
488 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem MicroBlaze
489 Group:          Applications/Emulators
490 Requires:       %{name}-common = %{version}-%{release}
491 %systempkg_req
492 Obsoletes:      qemu-kvm-system-microblaze < 2
493
494 %description system-microblaze
495 QEMU is a generic and open source processor emulator which achieves a
496 good emulation speed by using dynamic translation.
497
498 This package provides the system emulator with MicroBlaze CPU.
499
500 %description system-microblaze -l pl.UTF-8
501 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
502 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
503
504 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
505
506 %package system-mips
507 Summary:        QEMU system emulator for MIPS
508 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem MIPS
509 Group:          Applications/Emulators
510 Requires:       %{name}-common = %{version}-%{release}
511 %systempkg_req
512 Obsoletes:      qemu-kvm-system-mips < 2
513
514 %description system-mips
515 QEMU is a generic and open source processor emulator which achieves a
516 good emulation speed by using dynamic translation.
517
518 This package provides the system emulator with MIPS CPU.
519
520 %description system-mips -l pl.UTF-8
521 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
522 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
523
524 Ten pakiet zawiera emulator systemu z procesorem MIPS.
525
526 %package system-moxie
527 Summary:        QEMU system emulator for Moxie
528 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem Moxie
529 Group:          Applications/Emulators
530 Requires:       %{name}-common = %{version}-%{release}
531 %systempkg_req
532
533 %description system-moxie
534 QEMU is a generic and open source processor emulator which achieves a
535 good emulation speed by using dynamic translation.
536
537 This package provides the system emulator with Moxie CPU.
538
539 %description system-moxie -l pl.UTF-8
540 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
541 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
542
543 Ten pakiet zawiera emulator systemu z procesorem Moxie.
544
545 %package system-nios2
546 Summary:        QEMU system emulator for Nios II
547 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem Nios II
548 Group:          Applications/Emulators
549 Requires:       %{name}-common = %{version}-%{release}
550 %systempkg_req
551
552 %description system-nios2
553 QEMU is a generic and open source processor emulator which achieves a
554 good emulation speed by using dynamic translation.
555
556 This package provides the system emulator with Nios II CPU.
557
558 %description system-nios2 -l pl.UTF-8
559 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
560 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
561
562 Ten pakiet zawiera emulator systemu z procesorem Nios II.
563
564 %package system-or1k
565 Summary:        QEMU system emulator for OpenRISC
566 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem OpenRISC
567 Group:          Applications/Emulators
568 Requires:       %{name}-common = %{version}-%{release}
569 %systempkg_req
570 Obsoletes:      qemu-kvm-system-or1k < 2
571 Obsoletes:      qemu-system-or32 < 2.9.0
572
573 %description system-or1k
574 QEMU is a generic and open source processor emulator which achieves a
575 good emulation speed by using dynamic translation.
576
577 This package provides the system emulator with OpenRISC CPU.
578
579 %description system-or1k -l pl.UTF-8
580 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
581 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
582
583 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
584
585 %package system-ppc
586 Summary:        QEMU system emulator for PowerPC
587 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem PowerPC
588 Group:          Applications/Emulators
589 Requires:       %{name}-common = %{version}-%{release}
590 %systempkg_req
591 Obsoletes:      qemu-kvm-system-ppc < 2
592
593 %description system-ppc
594 QEMU is a generic and open source processor emulator which achieves a
595 good emulation speed by using dynamic translation.
596
597 This package provides the system emulator with PowerPC CPU.
598
599 %description system-ppc -l pl.UTF-8
600 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
601 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
602
603 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
604
605 %package system-riscv32
606 Summary:        QEMU system emulator for RISC-V (32 bit)
607 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem RISC-V (32 bit)
608 Group:          Applications/Emulators
609 Requires:       %{name}-common = %{version}-%{release}
610 %systempkg_req
611
612 %description system-riscv32
613 QEMU is a generic and open source processor emulator which achieves a
614 good emulation speed by using dynamic translation.
615
616 This package provides the system emulator with RISC-V (32 bit) CPU.
617
618 %description system-riscv32 -l pl.UTF-8
619 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
620 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
621
622 Ten pakiet zawiera emulator systemu z procesorem RISC-V (32 bit).
623
624 %package system-riscv64
625 Summary:        QEMU system emulator for RISC-V (64 bit)
626 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem RISC-V (64 bitowym)
627 Group:          Applications/Emulators
628 Requires:       %{name}-common = %{version}-%{release}
629 %systempkg_req
630
631 %description system-riscv64
632 QEMU is a generic and open source processor emulator which achieves a
633 good emulation speed by using dynamic translation.
634
635 This package provides the system emulator with RISC-V (64 bit) CPU.
636
637 %description system-riscv64 -l pl.UTF-8
638 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
639 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
640
641 Ten pakiet zawiera emulator systemu z procesorem RISC-V (64-bitowym).
642
643 %package system-rx
644 Summary:        QEMU system emulator for Renesas RX
645 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem Renesas RX
646 Group:          Applications/Emulators
647 Requires:       %{name}-common = %{version}-%{release}
648 %systempkg_req
649
650 %description system-rx
651 QEMU is a generic and open source processor emulator which achieves a
652 good emulation speed by using dynamic translation.
653
654 This package provides the system emulator with Renesas RX CPU.
655
656 %description system-rx -l pl.UTF-8
657 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
658 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
659
660 Ten pakiet zawiera emulator systemu z procesorem Renesas RX.
661
662 %package system-s390x
663 Summary:        QEMU system emulator for S390x (IBM Z)
664 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem S390x (IBM Z)
665 Group:          Applications/Emulators
666 Requires:       %{name}-common = %{version}-%{release}
667 %systempkg_req
668 Obsoletes:      qemu-kvm-system-s390x < 2
669
670 %description system-s390x
671 QEMU is a generic and open source processor emulator which achieves a
672 good emulation speed by using dynamic translation.
673
674 This package provides the system emulator with S390x (IBM Z) CPU.
675
676 %description system-s390x -l pl.UTF-8
677 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
678 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
679
680 Ten pakiet zawiera emulator systemu z procesorem S390x (IBM Z).
681
682 %package system-sh4
683 Summary:        QEMU system emulator for SH4
684 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem SH4
685 Group:          Applications/Emulators
686 Requires:       %{name}-common = %{version}-%{release}
687 %systempkg_req
688 Obsoletes:      qemu-kvm-system-sh4 < 2
689
690 %description system-sh4
691 QEMU is a generic and open source processor emulator which achieves a
692 good emulation speed by using dynamic translation.
693
694 This package provides the system emulator with SH4 CPU.
695
696 %description system-sh4 -l pl.UTF-8
697 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
698 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
699
700 Ten pakiet zawiera emulator systemu z procesorem SH4.
701
702 %package system-sparc
703 Summary:        QEMU system emulator for SPARC
704 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem SPARC
705 Group:          Applications/Emulators
706 Requires:       %{name}-common = %{version}-%{release}
707 %systempkg_req
708 Obsoletes:      qemu-kvm-system-sparc < 2
709
710 %description system-sparc
711 QEMU is a generic and open source processor emulator which achieves a
712 good emulation speed by using dynamic translation.
713
714 This package provides the system emulator with SPARC/SPARC64 CPU.
715
716 %description system-sparc -l pl.UTF-8
717 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
718 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
719
720 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
721
722 %package system-tricore
723 Summary:        QEMU system emulator for TriCore
724 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem TriCore
725 Group:          Applications/Emulators
726 Requires:       %{name}-common = %{version}-%{release}
727 %systempkg_req
728
729 %description system-tricore
730 QEMU is a generic and open source processor emulator which achieves a
731 good emulation speed by using dynamic translation.
732
733 This package provides the system emulator with TriCore CPU.
734
735 %description system-tricore -l pl.UTF-8
736 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
737 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
738
739 Ten pakiet zawiera emulator systemu z procesorem TriCore.
740
741 %package system-x86
742 Summary:        QEMU system emulator for x86
743 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem x86
744 Group:          Applications/Emulators
745 Requires:       %{name}-common = %{version}-%{release}
746 %{?with_system_seabios:Requires:        seabios}
747 %systempkg_req
748 Obsoletes:      kvm < 89
749 Obsoletes:      qemu-kvm-system-x86 < 2
750
751 %description system-x86
752 QEMU is a generic and open source processor emulator which achieves a
753 good emulation speed by using dynamic translation.
754
755 This package provides the system emulator with x86 CPU.
756
757 %description system-x86 -l pl.UTF-8
758 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
759 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
760
761 Ten pakiet zawiera emulator systemu z procesorem x86.
762
763 %package system-xtensa
764 Summary:        QEMU system emulator for Xtensa
765 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem Xtensa
766 Group:          Applications/Emulators
767 Requires:       %{name}-common = %{version}-%{release}
768 %systempkg_req
769 Obsoletes:      qemu-kvm-system-xtensa < 2
770
771 %description system-xtensa
772 QEMU is a generic and open source processor emulator which achieves a
773 good emulation speed by using dynamic translation.
774
775 This package provides the system emulator with Xtensa CPU.
776
777 %description system-xtensa -l pl.UTF-8
778 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
779 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
780
781 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
782
783 %package guest-agent
784 Summary:        QEMU guest agent
785 Summary(pl.UTF-8):      Agent gościa QEMU
786 Group:          Daemons
787 Requires(post,preun,postun):    systemd-units >= 38
788 Requires:       glib2 >= 1:2.48
789 Requires:       systemd-units >= 38
790 Obsoletes:      qemu-kvm-guest-agent < 2
791 Conflicts:      SysVinit < 2.96-2
792
793 %description guest-agent
794 QEMU is a generic and open source processor emulator which achieves a
795 good emulation speed by using dynamic translation.
796
797 This package provides an agent to run inside guests, which
798 communicates with the host over a virtio-serial channel named
799 "org.qemu.guest_agent.0".
800
801 This package does not need to be installed on the host OS.
802
803 %description guest-agent -l pl.UTF-8
804 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
805 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
806
807 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
808 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
809 "org.qemu.guest_agent.0".
810
811 Ten pakiet nie musi być zainstalowany w systemie hosta.
812
813 %package module-block-curl
814 Summary:        QEMU module for 'curl' block devices
815 Summary(pl.UTF-8):      Moduł QEMU dla urządeń blokowych typu 'curl'
816 Group:          Applications/Emulators
817 Requires:       %{name}-common = %{version}-%{release}
818
819 %description module-block-curl
820 QEMU block device support for CURL. It allows to access remote disks
821 over http, https, ftp and other transports provided by the CURL
822 library.
823
824 %description module-block-curl -l pl.UTF-8
825 Moduł QEMU dla urządeń blokowych CURL. Pozwala na dostęp do zdalnych
826 dysków poprzez http, https, ftp i inne protokoły obsługiwane przez
827 bibliotekę CURL.
828
829 %package module-block-gluster
830 Summary:        QEMU module for 'gluster' block devices
831 Summary(pl.UTF-8):      Moduł QEMU dla urządeń blokowych typu 'gluster'
832 Group:          Applications/Emulators
833 Requires:       %{name}-common = %{version}-%{release}
834 Requires:       glusterfs-libs >= 6
835
836 %description module-block-gluster
837 QEMU block device support for remote Gluster storage.
838
839 %description module-block-gluster -l pl.UTF-8
840 Moduł urządzeń blokowych QEMU do dostępu do zdalnej przestrzeni
841 dyskowej Gluster.
842
843 %package module-block-iscsi
844 Summary:        QEMU module for 'iscsi' block devices
845 Summary(pl.UTF-8):      Moduł QEMU dla urządeń blokowych typu 'iscsi'
846 Group:          Applications/Emulators
847 Requires:       %{name}-common = %{version}-%{release}
848 Requires:       libiscsi >= 1.9.0
849
850 %description module-block-iscsi
851 QEMU block device support for iSCSI volumes.
852
853 %description module-block-iscsi -l pl.UTF-8
854 Moduł urządzeń blokowych QEMU do dostępu do wolumenów iSCSI.
855
856 %package module-block-nfs
857 Summary:        QEMU module for 'nfs' block devices
858 Summary(pl.UTF-8):      Moduł QEMU dla urządeń blokowych typu 'nfs'
859 Group:          Applications/Emulators
860 Requires:       %{name}-common = %{version}-%{release}
861 Requires:       libnfs >= 1.9.3
862
863 %description module-block-nfs
864 QEMU block device support for remote NFS storage.
865
866 %description module-block-nfs -l pl.UTF-8
867 Moduł urządzeń blokowych QEMU do dostępu do zdalnej przestrzeni po
868 NFS.
869
870 %package module-block-rbd
871 Summary:        QEMU module for 'rbd' block devices
872 Summary(pl.UTF-8):      Moduł QEMU dla urządeń blokowych typu 'rbd'
873 Group:          Applications/Emulators
874 Requires:       %{name}-common = %{version}-%{release}
875
876 %description module-block-rbd
877 QEMU block device support for Ceph/RBD volumes.
878
879 %description module-block-rbd -l pl.UTF-8
880 Moduł urządzeń blokowych QEMU do wolumenów Ceph/RBD.
881
882 %package module-block-ssh
883 Summary:        QEMU module for 'ssh' block devices
884 Summary(pl.UTF-8):      Moduł QEMU dla urządeń blokowych typu 'ssh'
885 Group:          Applications/Emulators
886 Requires:       %{name}-common = %{version}-%{release}
887 Requires:       libssh >= 0.8
888
889 %description module-block-ssh
890 QEMU block device support for accessing remote disks using the Secure
891 Shell (SSH) protocol.
892
893 %description module-block-ssh -l pl.UTF-8
894 Moduł urządzeń blokowych QEMU do dostępu do zdalnych dysków poprzez
895 protokół SSH (Secure Shell).
896
897 %package module-ui-gtk
898 Summary:        QEMU GTK UI driver
899 Summary(pl.UTF-8):      Sterownik interfejsu użytkownika GTK dla QEMU
900 Group:          Applications/Emulators
901 Requires:       %{name}-common = %{version}-%{release}
902
903 %description module-ui-gtk
904 QEMU GTK UI driver.
905
906 %description module-ui-gtk -l pl.UTF-8
907 Sterownik interfejsu użytkownika GTK dla QEMU.
908
909 %package module-ui-sdl
910 Summary:        QEMU SDL UI and audio driver
911 Summary(pl.UTF-8):      Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU
912 Group:          Applications/Emulators
913 Requires:       %{name}-common = %{version}-%{release}
914
915 %description module-ui-sdl
916 QEMU SDL UI and audio driver.
917
918 %description module-ui-sdl -l pl.UTF-8
919 Sterownik interfejsu użytkownika i dźwięku SDL dla QEMU.
920
921 %package -n systemtap-qemu
922 Summary:        systemtap/dtrace probes for QEMU
923 Summary(pl.UTF-8):      Sondy systemtap/dtrace dla QEMU
924 Group:          Development/Tools
925 Requires:       %{name}-common = %{version}-%{release}
926 Requires:       systemtap-client
927
928 %description -n systemtap-qemu
929 systemtap/dtrace probes for QEMU.
930
931 %description -n systemtap-qemu -l pl.UTF-8
932 Sondy systemtap/dtrace dla QEMU.
933
934 %prep
935 %setup -q
936 %patch0 -p1
937 %patch1 -p1
938 %patch2 -p1
939 %patch3 -p1
940 %patch4 -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/{.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}/hw-s390x-virtio-gpu-ccw.so
1313 %attr(755,root,root) %{_libdir}/%{name}/ui-curses.so
1314 %if %{with usbredir}
1315 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-redirect.so
1316 %endif
1317 %if %{with smartcard}
1318 %attr(755,root,root) %{_libdir}/%{name}/hw-usb-smartcard.so
1319 %endif
1320 %if %{with opengl}
1321 %attr(755,root,root) %{_libdir}/%{name}/ui-egl-headless.so
1322 %attr(755,root,root) %{_libdir}/%{name}/ui-opengl.so
1323 %endif
1324 %if %{with spice}
1325 %attr(755,root,root) %{_libdir}/%{name}/audio-spice.so
1326 %attr(755,root,root) %{_libdir}/%{name}/chardev-spice.so
1327 %attr(755,root,root) %{_libdir}/%{name}/ui-spice-app.so
1328 %attr(755,root,root) %{_libdir}/%{name}/ui-spice-core.so
1329 %endif
1330 %dir %{_datadir}/%{name}
1331 %dir %{_datadir}/%{name}/firmware
1332 %{_datadir}/%{name}/keymaps
1333 %{_datadir}/%{name}/trace-events-all
1334 %dir %{_datadir}/%{name}/vhost-user
1335 %if %{with virgl}
1336 %{_datadir}/%{name}/vhost-user/50-qemu-gpu.json
1337 %endif
1338 %{_datadir}/%{name}/vhost-user/50-qemu-virtiofsd.json
1339 %{_desktopdir}/qemu.desktop
1340 %{_iconsdir}/hicolor/*x*/apps/qemu.png
1341 %{_iconsdir}/hicolor/32x32/apps/qemu.bmp
1342 %{_iconsdir}/hicolor/scalable/apps/qemu.svg
1343 %{_mandir}/man1/qemu.1*
1344 %{_mandir}/man1/qemu-storage-daemon.1*
1345 %{_mandir}/man1/virtfs-proxy-helper.1*
1346 %{_mandir}/man1/virtiofsd.1*
1347 %{_mandir}/man7/qemu-block-drivers.7*
1348 %{_mandir}/man7/qemu-cpu-models.7*
1349 %{_mandir}/man7/qemu-qmp-ref.7*
1350 %{_mandir}/man7/qemu-storage-daemon-qmp-ref.7*
1351 %{_mandir}/man8/qemu-nbd.8*
1352 %{_mandir}/man8/qemu-pr-helper.8*
1353 %{_docdir}/qemu
1354
1355 %files img
1356 %defattr(644,root,root,755)
1357 %attr(755,root,root) %{_bindir}/qemu-img
1358 %{_mandir}/man1/qemu-img.1*
1359
1360 %files user
1361 %defattr(644,root,root,755)
1362 /usr/lib/binfmt.d/qemu-*-dynamic.conf
1363 %attr(755,root,root) %{_bindir}/qemu-aarch64
1364 %attr(755,root,root) %{_bindir}/qemu-aarch64_be
1365 %attr(755,root,root) %{_bindir}/qemu-alpha
1366 %attr(755,root,root) %{_bindir}/qemu-arm
1367 %attr(755,root,root) %{_bindir}/qemu-armeb
1368 %attr(755,root,root) %{_bindir}/qemu-cris
1369 %attr(755,root,root) %{_bindir}/qemu-hexagon
1370 %attr(755,root,root) %{_bindir}/qemu-hppa
1371 %attr(755,root,root) %{_bindir}/qemu-i386
1372 %attr(755,root,root) %{_bindir}/qemu-io
1373 %attr(755,root,root) %{_bindir}/qemu-m68k
1374 %attr(755,root,root) %{_bindir}/qemu-microblaze
1375 %attr(755,root,root) %{_bindir}/qemu-microblazeel
1376 %attr(755,root,root) %{_bindir}/qemu-mips
1377 %attr(755,root,root) %{_bindir}/qemu-mipsel
1378 %attr(755,root,root) %{_bindir}/qemu-mips64
1379 %attr(755,root,root) %{_bindir}/qemu-mips64el
1380 %attr(755,root,root) %{_bindir}/qemu-mipsn32
1381 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
1382 %attr(755,root,root) %{_bindir}/qemu-nios2
1383 %attr(755,root,root) %{_bindir}/qemu-or1k
1384 %attr(755,root,root) %{_bindir}/qemu-ppc
1385 %attr(755,root,root) %{_bindir}/qemu-ppc64
1386 %attr(755,root,root) %{_bindir}/qemu-ppc64le
1387 %attr(755,root,root) %{_bindir}/qemu-riscv32
1388 %attr(755,root,root) %{_bindir}/qemu-riscv64
1389 %attr(755,root,root) %{_bindir}/qemu-s390x
1390 %attr(755,root,root) %{_bindir}/qemu-sh4
1391 %attr(755,root,root) %{_bindir}/qemu-sh4eb
1392 %attr(755,root,root) %{_bindir}/qemu-sparc
1393 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
1394 %attr(755,root,root) %{_bindir}/qemu-sparc64
1395 %attr(755,root,root) %{_bindir}/qemu-x86_64
1396 %attr(755,root,root) %{_bindir}/qemu-xtensa
1397 %attr(755,root,root) %{_bindir}/qemu-xtensaeb
1398
1399 %if %{with user_static}
1400 %files user-static
1401 %defattr(644,root,root,755)
1402 /usr/lib/binfmt.d/qemu-*-static.conf
1403 %attr(755,root,root) %{_bindir}/qemu-aarch64-static
1404 %attr(755,root,root) %{_bindir}/qemu-aarch64_be-static
1405 %attr(755,root,root) %{_bindir}/qemu-alpha-static
1406 %attr(755,root,root) %{_bindir}/qemu-arm-static
1407 %attr(755,root,root) %{_bindir}/qemu-armeb-static
1408 %attr(755,root,root) %{_bindir}/qemu-cris-static
1409 %attr(755,root,root) %{_bindir}/qemu-hexagon-static
1410 %attr(755,root,root) %{_bindir}/qemu-hppa-static
1411 %attr(755,root,root) %{_bindir}/qemu-i386-static
1412 %attr(755,root,root) %{_bindir}/qemu-m68k-static
1413 %attr(755,root,root) %{_bindir}/qemu-microblaze-static
1414 %attr(755,root,root) %{_bindir}/qemu-microblazeel-static
1415 %attr(755,root,root) %{_bindir}/qemu-mips-static
1416 %attr(755,root,root) %{_bindir}/qemu-mips64-static
1417 %attr(755,root,root) %{_bindir}/qemu-mips64el-static
1418 %attr(755,root,root) %{_bindir}/qemu-mipsel-static
1419 %attr(755,root,root) %{_bindir}/qemu-mipsn32-static
1420 %attr(755,root,root) %{_bindir}/qemu-mipsn32el-static
1421 %attr(755,root,root) %{_bindir}/qemu-nios2-static
1422 %attr(755,root,root) %{_bindir}/qemu-or1k-static
1423 %attr(755,root,root) %{_bindir}/qemu-ppc-static
1424 %attr(755,root,root) %{_bindir}/qemu-ppc64-static
1425 %attr(755,root,root) %{_bindir}/qemu-ppc64le-static
1426 %attr(755,root,root) %{_bindir}/qemu-riscv32-static
1427 %attr(755,root,root) %{_bindir}/qemu-riscv64-static
1428 %attr(755,root,root) %{_bindir}/qemu-s390x-static
1429 %attr(755,root,root) %{_bindir}/qemu-sh4-static
1430 %attr(755,root,root) %{_bindir}/qemu-sh4eb-static
1431 %attr(755,root,root) %{_bindir}/qemu-sparc-static
1432 %attr(755,root,root) %{_bindir}/qemu-sparc32plus-static
1433 %attr(755,root,root) %{_bindir}/qemu-sparc64-static
1434 %attr(755,root,root) %{_bindir}/qemu-x86_64-static
1435 %attr(755,root,root) %{_bindir}/qemu-xtensa-static
1436 %attr(755,root,root) %{_bindir}/qemu-xtensaeb-static
1437 %{?with_systemtap:%attr(755,root,root) %{_bindir}/qemu-trace-stap-static}
1438 %endif
1439
1440 %files system-aarch64
1441 %defattr(644,root,root,755)
1442 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1443 %{_datadir}/%{name}/edk2-aarch64-code.fd
1444 %{_datadir}/%{name}/firmware/60-edk2-aarch64.json
1445
1446 %files system-alpha
1447 %defattr(644,root,root,755)
1448 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1449 %{_datadir}/%{name}/palcode-clipper
1450
1451 %files system-arm
1452 %defattr(644,root,root,755)
1453 %attr(755,root,root) %{_bindir}/qemu-system-arm
1454 %{_datadir}/%{name}/edk2-arm-code.fd
1455 %{_datadir}/%{name}/edk2-arm-vars.fd
1456 %{_datadir}/%{name}/firmware/60-edk2-arm.json
1457 %{_datadir}/%{name}/npcm7xx_bootrom.bin
1458
1459 %files system-avr
1460 %defattr(644,root,root,755)
1461 %attr(755,root,root) %{_bindir}/qemu-system-avr
1462
1463 %files system-cris
1464 %defattr(644,root,root,755)
1465 %attr(755,root,root) %{_bindir}/qemu-system-cris
1466
1467 %files system-hppa
1468 %defattr(644,root,root,755)
1469 %attr(755,root,root) %{_bindir}/qemu-system-hppa
1470 %{_datadir}/%{name}/hppa-firmware.img
1471
1472 %files system-m68k
1473 %defattr(644,root,root,755)
1474 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1475
1476 %files system-microblaze
1477 %defattr(644,root,root,755)
1478 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1479 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1480
1481 %files system-mips
1482 %defattr(644,root,root,755)
1483 %attr(755,root,root) %{_bindir}/qemu-system-mips
1484 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1485 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1486 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1487
1488 %files system-moxie
1489 %defattr(644,root,root,755)
1490 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1491
1492 %files system-nios2
1493 %defattr(644,root,root,755)
1494 %attr(755,root,root) %{_bindir}/qemu-system-nios2
1495
1496 %files system-or1k
1497 %defattr(644,root,root,755)
1498 %attr(755,root,root) %{_bindir}/qemu-system-or1k
1499
1500 %files system-ppc
1501 %defattr(644,root,root,755)
1502 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1503 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1504 %{_datadir}/%{name}/bamboo.dtb
1505 %{_datadir}/%{name}/canyonlands.dtb
1506 %{_datadir}/%{name}/openbios-ppc
1507 %{_datadir}/%{name}/petalogix-ml605.dtb
1508 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
1509 %{_datadir}/%{name}/qemu_vga.ndrv
1510 %{_datadir}/%{name}/skiboot.lid
1511 %{_datadir}/%{name}/slof.bin
1512 %{_datadir}/%{name}/u-boot.e500
1513 %{_datadir}/%{name}/u-boot-sam460-20100605.bin
1514
1515 %files system-riscv32
1516 %defattr(644,root,root,755)
1517 %attr(755,root,root) %{_bindir}/qemu-system-riscv32
1518 %{_datadir}/%{name}/opensbi-riscv32-generic-fw_dynamic.bin
1519 %{_datadir}/%{name}/opensbi-riscv32-generic-fw_dynamic.elf
1520
1521 %files system-riscv64
1522 %defattr(644,root,root,755)
1523 %attr(755,root,root) %{_bindir}/qemu-system-riscv64
1524 %{_datadir}/%{name}/opensbi-riscv64-generic-fw_dynamic.bin
1525 %{_datadir}/%{name}/opensbi-riscv64-generic-fw_dynamic.elf
1526
1527 %files system-rx
1528 %defattr(644,root,root,755)
1529 %attr(755,root,root) %{_bindir}/qemu-system-rx
1530
1531 %files system-s390x
1532 %defattr(644,root,root,755)
1533 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1534 %{_datadir}/%{name}/s390-ccw.img
1535 %{_datadir}/%{name}/s390-netboot.img
1536
1537 %files system-sh4
1538 %defattr(644,root,root,755)
1539 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1540 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1541
1542 %files system-sparc
1543 %defattr(644,root,root,755)
1544 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1545 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1546 %{_datadir}/%{name}/QEMU,cgthree.bin
1547 %{_datadir}/%{name}/QEMU,tcx.bin
1548 %{_datadir}/%{name}/openbios-sparc32
1549 %{_datadir}/%{name}/openbios-sparc64
1550
1551 %files system-tricore
1552 %defattr(644,root,root,755)
1553 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1554
1555 %files system-x86
1556 %defattr(644,root,root,755)
1557 %attr(755,root,root) %{_bindir}/qemu-system-i386
1558 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1559 %ifarch %{ix86} %{x8664} x32
1560 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1561 /lib/udev/rules.d/80-kvm.rules
1562 %endif
1563 %{_datadir}/%{name}/bios.bin
1564 %{_datadir}/%{name}/bios-256k.bin
1565 %{_datadir}/%{name}/bios-microvm.bin
1566 %{_datadir}/%{name}/edk2-i386-code.fd
1567 %{_datadir}/%{name}/edk2-i386-secure-code.fd
1568 %{_datadir}/%{name}/edk2-i386-vars.fd
1569 %{_datadir}/%{name}/edk2-x86_64-code.fd
1570 %{_datadir}/%{name}/edk2-x86_64-secure-code.fd
1571 %{_datadir}/%{name}/efi-e1000e.rom
1572 %{_datadir}/%{name}/efi-e1000.rom
1573 %{_datadir}/%{name}/efi-eepro100.rom
1574 %{_datadir}/%{name}/efi-ne2k_pci.rom
1575 %{_datadir}/%{name}/efi-pcnet.rom
1576 %{_datadir}/%{name}/efi-rtl8139.rom
1577 %{_datadir}/%{name}/efi-virtio.rom
1578 %{_datadir}/%{name}/efi-vmxnet3.rom
1579 %{_datadir}/%{name}/kvmvapic.bin
1580 %{_datadir}/%{name}/linuxboot.bin
1581 %{_datadir}/%{name}/linuxboot_dma.bin
1582 %{_datadir}/%{name}/multiboot.bin
1583 %{_datadir}/%{name}/pvh.bin
1584 %{_datadir}/%{name}/pxe-e1000.rom
1585 %{_datadir}/%{name}/pxe-eepro100.rom
1586 %{_datadir}/%{name}/pxe-ne2k_pci.rom
1587 %{_datadir}/%{name}/pxe-pcnet.rom
1588 %{_datadir}/%{name}/pxe-rtl8139.rom
1589 %{_datadir}/%{name}/pxe-virtio.rom
1590 %{_datadir}/%{name}/qboot.rom
1591 %{_datadir}/%{name}/sgabios.bin
1592 %{_datadir}/%{name}/vgabios.bin
1593 %{_datadir}/%{name}/vgabios-ati.bin
1594 %{_datadir}/%{name}/vgabios-bochs-display.bin
1595 %{_datadir}/%{name}/vgabios-cirrus.bin
1596 %{_datadir}/%{name}/vgabios-qxl.bin
1597 %{_datadir}/%{name}/vgabios-ramfb.bin
1598 %{_datadir}/%{name}/vgabios-stdvga.bin
1599 %{_datadir}/%{name}/vgabios-virtio.bin
1600 %{_datadir}/%{name}/vgabios-vmware.bin
1601 %{_datadir}/%{name}/firmware/50-edk2-i386-secure.json
1602 %{_datadir}/%{name}/firmware/50-edk2-x86_64-secure.json
1603 %{_datadir}/%{name}/firmware/60-edk2-i386.json
1604 %{_datadir}/%{name}/firmware/60-edk2-x86_64.json
1605
1606 %files system-xtensa
1607 %defattr(644,root,root,755)
1608 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1609 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1610
1611 %files guest-agent
1612 %defattr(644,root,root,755)
1613 %attr(755,root,root) %{_bindir}/qemu-ga
1614 /lib/udev/rules.d/99-qemu-guest-agent.rules
1615 %{systemdunitdir}/qemu-guest-agent.service
1616 %attr(754,root,root) /etc/rc.d/init.d/qemu-ga
1617 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/qemu-ga
1618 %{_mandir}/man7/qemu-ga-ref.7*
1619 %{_mandir}/man8/qemu-ga.8*
1620
1621 %files module-block-curl
1622 %defattr(644,root,root,755)
1623 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1624
1625 %if %{with glusterfs}
1626 %files module-block-gluster
1627 %defattr(644,root,root,755)
1628 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1629 %endif
1630
1631 %if %{with iscsi}
1632 %files module-block-iscsi
1633 %defattr(644,root,root,755)
1634 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1635 %endif
1636
1637 %if %{with libnfs}
1638 %files module-block-nfs
1639 %defattr(644,root,root,755)
1640 %attr(755,root,root) %{_libdir}/%{name}/block-nfs.so
1641 %endif
1642
1643 %if %{with ceph}
1644 %files module-block-rbd
1645 %defattr(644,root,root,755)
1646 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1647 %endif
1648
1649 %files module-block-ssh
1650 %defattr(644,root,root,755)
1651 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so
1652
1653 %if %{with gtk3}
1654 %files module-ui-gtk
1655 %defattr(644,root,root,755)
1656 %attr(755,root,root) %{_libdir}/%{name}/ui-gtk.so
1657 %endif
1658
1659 %if %{with sdl}
1660 %files module-ui-sdl
1661 %defattr(644,root,root,755)
1662 %attr(755,root,root) %{_libdir}/%{name}/audio-sdl.so
1663 %attr(755,root,root) %{_libdir}/%{name}/ui-sdl.so
1664 %endif
1665
1666 %if %{with systemtap}
1667 %files -n systemtap-qemu
1668 %defattr(644,root,root,755)
1669 %attr(755,root,root) %{_bindir}/qemu-trace-stap
1670 %{_datadir}/systemtap/tapset/qemu-*.stp
1671 %{_mandir}/man1/qemu-trace-stap.1*
1672 %endif
This page took 0.282567 seconds and 3 git commands to generate.