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