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