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