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