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