1 # TODO: archipelago (libxseg) on bcond (GPL v3 vs v2-only conflict)
4 %bcond_without sdl # SDL UI and audio support
5 %bcond_without ceph # Ceph/RBD support
6 %bcond_without glusterfs # GlusterFS backend
7 %bcond_without rdma # RDMA-based migration support
8 %bcond_with gtk2 # GTK+ 2.x instead of 3.x
9 %bcond_without gtk3 # Do not build GTK+ UI
10 %bcond_without vte # VTE support in GTK+ UI
11 %bcond_without spice # SPICE support
12 %bcond_with esd # EsounD audio support
13 %bcond_without oss # OSS audio support
14 %bcond_without pulseaudio # PulseAudio audio support
15 %bcond_without xen # Xen backend driver support
16 %bcond_without bluetooth # bluetooth support
17 %bcond_with brlapi # brlapi support
18 %bcond_without smartcard # smartcard-nss support
19 %bcond_without iscsi # iscsi support
20 %bcond_without libnfs # NFS support
21 %bcond_without seccomp # seccomp support
22 %bcond_without usbredir # usb network redirection support
23 %bcond_without system_seabios # system seabios binary
24 %bcond_without snappy # snappy compression library
25 %bcond_with lttng # lttng-ust trace backend support
26 %bcond_with systemtap # SystemTap/dtrace trace backend support
32 Summary: QEMU CPU Emulator
33 Summary(pl.UTF-8): QEMU - emulator procesora
38 Group: Applications/Emulators
39 Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.bz2
40 # Source0-md5: f469f2330bbe76e3e39db10e9ac4f8db
41 # Loads kvm kernel modules at boot
42 Source3: kvm-modules-load.conf
46 Source6: ksm.sysconfig
49 Source10: ksmtuned.conf
50 Patch0: %{name}-cflags.patch
51 Patch1: vgabios-widescreens.patch
52 Patch2: %{name}-whitelist.patch
53 Patch3: %{name}-xattr.patch
54 Patch4: libjpeg-boolean.patch
55 # Proof of concept, for reference, do not remove
56 Patch400: %{name}-kde_virtual_workspaces_hack.patch
57 URL: http://www.qemu-project.org/
58 BuildRequires: OpenGL-GLX-devel
59 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
60 BuildRequires: alsa-lib-devel
61 BuildRequires: bcc >= 0.16.21-2
62 %{?with_bluetooth:BuildRequires: bluez-libs-devel}
63 %{?with_brlapi:BuildRequires: brlapi-devel}
64 BuildRequires: bzip2-devel
65 %{?with_ceph:BuildRequires: ceph-devel}
66 BuildRequires: curl-devel
67 BuildRequires: cyrus-sasl-devel >= 2
68 %{?with_esd:BuildRequires: esound-devel}
69 BuildRequires: glib2-devel >= 1:2.12
70 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
71 BuildRequires: gnutls-devel > 2.10.0
72 BuildRequires: libaio-devel
73 %{?with_smartcard:BuildRequires: libcacard-devel}
74 BuildRequires: libcap-devel
75 BuildRequires: libcap-ng-devel
76 BuildRequires: libfdt-devel
77 %{?with_rdma:BuildRequires: libibverbs-devel}
78 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
79 BuildRequires: libjpeg-devel
80 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
81 BuildRequires: libpng-devel
82 %{?with_rdma:BuildRequires: librdmacm-devel}
83 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.1.1}
84 BuildRequires: libssh2-devel >= 1.2.8
85 BuildRequires: libusb-devel >= 1.0.13
86 BuildRequires: libuuid-devel
87 %{?with_lttng:BuildRequires: lttng-ust-devel}
88 BuildRequires: lzo-devel >= 2
89 BuildRequires: ncurses-devel
90 %{?with_smartcard:BuildRequires: nss-devel >= 3.12.8}
91 BuildRequires: numactl-devel
92 BuildRequires: perl-Encode
93 BuildRequires: perl-tools-pod
94 BuildRequires: pixman-devel >= 0.21.8
95 BuildRequires: pkgconfig
96 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
97 BuildRequires: rpmbuild(macros) >= 1.644
98 %{?with_system_seabios:BuildRequires: seabios}
99 BuildRequires: sed >= 4.0
100 %{?with_snappy:BuildRequires: snappy-devel}
102 BuildRequires: spice-protocol >= 0.12.3
103 BuildRequires: spice-server-devel >= 0.12.0
105 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
106 BuildRequires: texi2html
107 BuildRequires: texinfo
108 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
109 %{?with_lttng:BuildRequires: userspace-rcu-devel}
110 BuildRequires: vde2-devel
112 %{?with_xen:BuildRequires: xen-devel >= 3.4}
113 BuildRequires: xfsprogs-devel
114 BuildRequires: xorg-lib-libX11-devel
115 BuildRequires: zlib-devel
117 BuildRequires: gtk+2-devel >= 2:2.18.0
118 %{?with_vte:BuildRequires: vte0-devel >= 0.24.0}
121 BuildRequires: gtk+3-devel >= 3.0.0
122 %{?with_vte:BuildRequires: vte2.90-devel >= 0.32.0}
124 Requires: %{name}-img = %{version}-%{release}
125 Requires: %{name}-system-aarch64 = %{version}-%{release}
126 Requires: %{name}-system-alpha = %{version}-%{release}
127 Requires: %{name}-system-arm = %{version}-%{release}
128 Requires: %{name}-system-cris = %{version}-%{release}
129 Requires: %{name}-system-lm32 = %{version}-%{release}
130 Requires: %{name}-system-m68k = %{version}-%{release}
131 Requires: %{name}-system-microblaze = %{version}-%{release}
132 Requires: %{name}-system-mips = %{version}-%{release}
133 Requires: %{name}-system-moxie = %{version}-%{release}
134 Requires: %{name}-system-or32 = %{version}-%{release}
135 Requires: %{name}-system-ppc = %{version}-%{release}
136 Requires: %{name}-system-s390x = %{version}-%{release}
137 Requires: %{name}-system-sh4 = %{version}-%{release}
138 Requires: %{name}-system-sparc = %{version}-%{release}
139 Requires: %{name}-system-tricore = %{version}-%{release}
140 Requires: %{name}-system-unicore32 = %{version}-%{release}
141 Requires: %{name}-system-x86 = %{version}-%{release}
142 Requires: %{name}-system-xtensa = %{version}-%{release}
143 Requires: %{name}-user = %{version}-%{release}
145 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
147 %define systempkg_req \
151 %if %{with seccomp} \
152 Requires: libseccomp >= 2.1.0 \
154 Requires: libusb >= 1.0.13 \
155 Requires: pixman >= 0.21.8 \
156 %if %{with usbredir} \
157 Requires: usbredir >= 0.6 \
160 Requires: gtk+2 >= 2:2.18.0 \
161 %{?with_vte:Requires: vte0 >= 0.24.0} \
164 Requires: gtk+3 >= 3.0.0 \
165 %{?with_vte:Requires: vte2.90 >= 0.32.0} \
168 # don't strip/chrpath anything in there; these are boot images, roms etc
169 %define _noautostrip .*%{_datadir}/qemu/.*
170 %define _noautochrpath .*%{_datadir}/qemu/.*
173 QEMU is a FAST! processor emulator. By using dynamic translation it
174 achieves a reasonnable speed while being easy to port on new host
175 CPUs. QEMU has two operating modes:
177 - User mode emulation. In this mode, QEMU can launch Linux processes
178 compiled for one CPU on another CPU. Linux system calls are converted
179 because of endianness and 32/64 bit mismatches. Wine (Windows
180 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
182 - Full system emulation. In this mode, QEMU emulates a full system,
183 including a processor and various peripherials. It can also be used to
184 provide virtual hosting of several virtual PC on a single server.
186 %description -l pl.UTF-8
187 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
188 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
189 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
191 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
192 procesy linuksowe skompilowane dla jednego procesora na innym
193 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
194 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
195 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
198 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
199 włączając w to procesor i różne urządzenia peryferyjne. Może być także
200 używane do wirtualnego hostowania kilku wirtualnych pecetów na
201 pojedynczym serwerze.
204 Summary: QEMU common files needed by all QEMU targets
205 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
206 Group: Development/Tools
207 Requires(postun): /usr/sbin/groupdel
208 Requires(postun): /usr/sbin/userdel
209 Requires(pre): /bin/id
210 Requires(pre): /usr/bin/getgid
211 Requires(pre): /usr/sbin/groupadd
212 Requires(pre): /usr/sbin/useradd
213 Requires: glib2 >= 1:2.12
214 %{?with_libnfs:Requires: libnfs >= 1.9.3}
215 Requires: libssh2 >= 1.2.8
216 Provides: group(qemu)
218 Obsoletes: qemu-kvm-common
219 Conflicts: qemu < 1.0-2
222 QEMU is a generic and open source processor emulator which achieves a
223 good emulation speed by using dynamic translation.
225 This package provides the common files needed by all QEMU targets.
227 %description common -l pl.UTF-8
228 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
229 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
231 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
235 Summary: QEMU command line tool for manipulating disk images
236 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
237 Group: Development/Tools
238 Obsoletes: qemu-kvm-img
239 Conflicts: qemu < 1.0-2
242 This package provides a command line tool for manipulating disk
245 %description img -l pl.UTF-8
246 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
250 Summary: Client and server for QEMU ivshmem device
251 Summary(pl.UTF-8): Klient i serwer dla urządzeia ivshmem QEMU
252 Group: Development/Tools
255 This package provides client and server tools for QEMU's ivshmem
258 %description ivshmem -l pl.UTF-8
259 Ten pakiet udostępnia działające z linii poleceń narzędzia dla
260 urządzenia ivshmem QEMU.
263 Summary: QEMU user mode emulation of qemu targets
264 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
265 Group: Development/Tools
266 Requires: %{name}-common = %{version}-%{release}
267 Obsoletes: qemu-kvm-user
270 QEMU is a generic and open source processor emulator which achieves a
271 good emulation speed by using dynamic translation.
273 This package provides the user mode emulation of QEMU targets.
275 %description user -l pl.UTF-8
276 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
277 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
279 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
281 %package system-aarch64
282 Summary: QEMU system emulator for AArch64
283 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
284 Group: Development/Tools
285 Requires: %{name}-common = %{version}-%{release}
287 Obsoletes: qemu-kvm-system-aarch64
289 %description system-aarch64
290 QEMU is a generic and open source processor emulator which achieves a
291 good emulation speed by using dynamic translation.
293 This package provides the system emulator with AArch64 CPU.
295 %description system-aarch64 -l pl.UTF-8
296 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
297 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
299 Ten pakiet zawiera emulator systemu z procesorem AArch64.
301 %package system-alpha
302 Summary: QEMU system emulator for Alpha
303 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
304 Group: Development/Tools
305 Requires: %{name}-common = %{version}-%{release}
307 Obsoletes: qemu-kvm-system-alpha
309 %description system-alpha
310 QEMU is a generic and open source processor emulator which achieves a
311 good emulation speed by using dynamic translation.
313 This package provides the system emulator with Alpha CPU.
315 %description system-alpha -l pl.UTF-8
316 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
317 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
319 Ten pakiet zawiera emulator systemu z procesorem Alpha.
322 Summary: QEMU system emulator for ARM
323 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
324 Group: Development/Tools
325 Requires: %{name}-common = %{version}-%{release}
327 Obsoletes: qemu-kvm-system-arm
329 %description system-arm
330 QEMU is a generic and open source processor emulator which achieves a
331 good emulation speed by using dynamic translation.
333 This package provides the system emulator for ARM.
335 %description system-arm -l pl.UTF-8
336 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
337 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
339 Ten pakiet zawiera emulator systemu z procesorem ARM.
342 Summary: QEMU system emulator for CRIS
343 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
344 Group: Development/Tools
345 Requires: %{name}-common = %{version}-%{release}
347 Obsoletes: qemu-kvm-system-cris
349 %description system-cris
350 QEMU is a generic and open source processor emulator which achieves a
351 good emulation speed by using dynamic translation.
353 This package provides the system emulator with CRIS CPU.
355 %description system-cris -l pl.UTF-8
356 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
357 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
359 Ten pakiet zawiera emulator systemu z procesorem CRIS.
362 Summary: QEMU system emulator for LM32
363 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
364 Group: Development/Tools
365 Requires: %{name}-common = %{version}-%{release}
367 Obsoletes: qemu-kvm-system-lm32
369 %description system-lm32
370 QEMU is a generic and open source processor emulator which achieves a
371 good emulation speed by using dynamic translation.
373 This package provides the system emulator with LM32 CPU.
375 %description system-lm32 -l pl.UTF-8
376 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
377 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
379 Ten pakiet zawiera emulator systemu z procesorem LM32.
382 Summary: QEMU system emulator for m68k
383 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
384 Group: Development/Tools
385 Requires: %{name}-common = %{version}-%{release}
387 Obsoletes: qemu-kvm-system-m68k
389 %description system-m68k
390 QEMU is a generic and open source processor emulator which achieves a
391 good emulation speed by using dynamic translation.
393 This package provides the system emulator with m68k CPU.
395 %description system-m68k -l pl.UTF-8
396 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
397 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
399 Ten pakiet zawiera emulator systemu z procesorem m68k.
401 %package system-microblaze
402 Summary: QEMU system emulator for MicroBlaze
403 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
404 Group: Development/Tools
405 Requires: %{name}-common = %{version}-%{release}
407 Obsoletes: qemu-kvm-system-microblaze
409 %description system-microblaze
410 QEMU is a generic and open source processor emulator which achieves a
411 good emulation speed by using dynamic translation.
413 This package provides the system emulator with MicroBlaze CPU.
415 %description system-microblaze -l pl.UTF-8
416 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
417 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
419 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
422 Summary: QEMU system emulator for MIPS
423 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
424 Group: Development/Tools
425 Requires: %{name}-common = %{version}-%{release}
427 Obsoletes: qemu-kvm-system-mips
429 %description system-mips
430 QEMU is a generic and open source processor emulator which achieves a
431 good emulation speed by using dynamic translation.
433 This package provides the system emulator with MIPS CPU.
435 %description system-mips -l pl.UTF-8
436 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
437 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
439 Ten pakiet zawiera emulator systemu z procesorem MIPS.
441 %package system-moxie
442 Summary: QEMU system emulator for Moxie
443 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
444 Group: Development/Tools
445 Requires: %{name}-common = %{version}-%{release}
448 %description system-moxie
449 QEMU is a generic and open source processor emulator which achieves a
450 good emulation speed by using dynamic translation.
452 This package provides the system emulator with Moxie CPU.
454 %description system-moxie -l pl.UTF-8
455 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
456 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
458 Ten pakiet zawiera emulator systemu z procesorem Moxie.
461 Summary: QEMU system emulator for OpenRISC
462 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
463 Group: Development/Tools
464 Requires: %{name}-common = %{version}-%{release}
466 Obsoletes: qemu-kvm-system-or32
468 %description system-or32
469 QEMU is a generic and open source processor emulator which achieves a
470 good emulation speed by using dynamic translation.
472 This package provides the system emulator with OpenRISC CPU.
474 %description system-or32 -l pl.UTF-8
475 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
476 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
478 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
481 Summary: QEMU system emulator for PowerPC
482 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
483 Group: Development/Tools
484 Requires: %{name}-common = %{version}-%{release}
486 Obsoletes: qemu-kvm-system-ppc
488 %description system-ppc
489 QEMU is a generic and open source processor emulator which achieves a
490 good emulation speed by using dynamic translation.
492 This package provides the system emulator with PowerPC CPU.
494 %description system-ppc -l pl.UTF-8
495 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
496 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
498 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
500 %package system-s390x
501 Summary: QEMU system emulator for S390
502 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
503 Group: Development/Tools
504 Requires: %{name}-common = %{version}-%{release}
506 Obsoletes: qemu-kvm-system-s390x
508 %description system-s390x
509 QEMU is a generic and open source processor emulator which achieves a
510 good emulation speed by using dynamic translation.
512 This package provides the system emulator with S390 CPU.
514 %description system-s390x -l pl.UTF-8
515 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
516 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
518 Ten pakiet zawiera emulator systemu z procesorem S390.
521 Summary: QEMU system emulator for SH4
522 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
523 Group: Development/Tools
524 Requires: %{name}-common = %{version}-%{release}
526 Obsoletes: qemu-kvm-system-sh4
528 %description system-sh4
529 QEMU is a generic and open source processor emulator which achieves a
530 good emulation speed by using dynamic translation.
532 This package provides the system emulator with SH4 CPU.
534 %description system-sh4 -l pl.UTF-8
535 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
536 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
538 Ten pakiet zawiera emulator systemu z procesorem SH4.
540 %package system-sparc
541 Summary: QEMU system emulator for SPARC
542 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
543 Group: Development/Tools
544 Requires: %{name}-common = %{version}-%{release}
546 Obsoletes: qemu-kvm-system-sparc
548 %description system-sparc
549 QEMU is a generic and open source processor emulator which achieves a
550 good emulation speed by using dynamic translation.
552 This package provides the system emulator with SPARC/SPARC64 CPU.
554 %description system-sparc -l pl.UTF-8
555 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
556 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
558 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
560 %package system-tricore
561 Summary: QEMU system emulator for TriCore
562 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
563 Group: Development/Tools
564 Requires: %{name}-common = %{version}-%{release}
567 %description system-tricore
568 QEMU is a generic and open source processor emulator which achieves a
569 good emulation speed by using dynamic translation.
571 This package provides the system emulator with TriCore CPU.
573 %description system-sparc -l pl.UTF-8
574 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
575 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
577 Ten pakiet zawiera emulator systemu z procesorem TriCore.
579 %package system-unicore32
580 Summary: QEMU system emulator for UniCore32
581 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
582 Group: Development/Tools
583 Requires: %{name}-common = %{version}-%{release}
585 Obsoletes: qemu-kvm-system-unicore32
587 %description system-unicore32
588 QEMU is a generic and open source processor emulator which achieves a
589 good emulation speed by using dynamic translation.
591 This package provides the system emulator with UniCore32 CPU.
593 %description system-unicore32 -l pl.UTF-8
594 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
595 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
597 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
600 Summary: QEMU system emulator for x86
601 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
602 Group: Development/Tools
603 Requires: %{name}-common = %{version}-%{release}
604 %{?with_system_seabios:Requires: seabios}
607 Obsoletes: qemu-kvm-system-x86
609 %description system-x86
610 QEMU is a generic and open source processor emulator which achieves a
611 good emulation speed by using dynamic translation.
613 %description system-x86 -l pl.UTF-8
614 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
615 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
617 %package system-xtensa
618 Summary: QEMU system emulator for Xtensa
619 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
620 Group: Development/Tools
621 Requires: %{name}-common = %{version}-%{release}
623 Obsoletes: qemu-kvm-system-xtensa
625 %description system-xtensa
626 QEMU is a generic and open source processor emulator which achieves a
627 good emulation speed by using dynamic translation.
629 This package provides the system emulator with Xtensa CPU.
631 %description system-xtensa -l pl.UTF-8
632 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
633 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
635 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
638 Summary: QEMU guest agent
639 Summary(pl.UTF-8): Agent gościa QEMU
641 Requires: glib2 >= 1:2.12
642 Obsoletes: qemu-kvm-guest-agent
644 %description guest-agent
645 QEMU is a generic and open source processor emulator which achieves a
646 good emulation speed by using dynamic translation.
648 This package provides an agent to run inside guests, which
649 communicates with the host over a virtio-serial channel named
650 "org.qemu.guest_agent.0".
652 This package does not need to be installed on the host OS.
654 %description guest-agent -l pl.UTF-8
655 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
656 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
658 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
659 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
660 "org.qemu.guest_agent.0".
662 Ten pakiet nie musi być zainstalowany w systemie hosta.
664 %package module-block-curl
665 Summary: QEMU module for 'curl' block devices
666 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
667 Group: Development/Tools
668 Requires: %{name}-common = %{version}-%{release}
670 %description module-block-curl
671 'curl' block device support for QEMU.
673 %description module-block-curl -l pl.UTF-8
674 Moduł QEMU dla urządeń blokowych typu 'curl'.
676 %package module-block-dmg
677 Summary: QEMU module for 'dmg' block devices
678 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'dmg'
679 Group: Development/Tools
680 Requires: %{name}-common = %{version}-%{release}
682 %description module-block-dmg
683 'dmg' block device support for QEMU.
685 %description module-block-dmg -l pl.UTF-8
686 Moduł QEMU dla urządeń blokowych typu 'dmg'.
688 %package module-block-gluster
689 Summary: QEMU module for 'gluster' block devices
690 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
691 Group: Development/Tools
692 Requires: %{name}-common = %{version}-%{release}
693 Requires: glusterfs-libs >= 3.4
695 %description module-block-gluster
696 'gluster' block device support for QEMU.
698 %description module-block-gluster -l pl.UTF-8
699 Moduł QEMU dla urządeń blokowych typu 'gluster'.
701 %package module-block-iscsi
702 Summary: QEMU module for 'iscsi' block devices
703 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
704 Group: Development/Tools
705 Requires: %{name}-common = %{version}-%{release}
706 Requires: libiscsi >= 1.9.0
708 %description module-block-iscsi
709 'iscsi' block device support for QEMU.
711 %description module-block-iscsi -l pl.UTF-8
712 Moduł QEMU dla urządeń blokowych typu 'iscsi'.
714 %package module-block-rbd
715 Summary: QEMU module for 'rbd' block devices
716 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
717 Group: Development/Tools
718 Requires: %{name}-common = %{version}-%{release}
720 %description module-block-rbd
721 'rbd' block device support for QEMU.
723 %description module-block-rbd -l pl.UTF-8
724 Moduł QEMU dla urządeń blokowych typu 'rbd'.
726 %package module-block-ssh
727 Summary: QEMU module for 'ssh' block devices
728 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
729 Group: Development/Tools
730 Requires: %{name}-common = %{version}-%{release}
732 %description module-block-ssh
733 'ssh' block device support for QEMU.
735 %description module-block-ssh -l pl.UTF-8
736 Moduł QEMU dla urządeń blokowych typu 'ssh'.
746 # workaround for conflict with alsa/error.h
747 ln -s ../error.h qapi/error.h
751 --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
752 --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
753 --prefix=%{_prefix} \
754 --libdir=%{_libdir} \
755 --libexecdir=%{_libexecdir} \
756 --sysconfdir=%{_sysconfdir} \
758 --host-cc="%{__cc}" \
761 %{__enable_disable bluetooth bluez} \
762 %{__enable_disable brlapi} \
768 %{__enable_disable glusterfs} \
769 %{__enable_disable iscsi libiscsi} \
770 %{__enable_disable ceph rbd} \
771 %{__enable_disable rdma} \
772 %{__enable_disable sdl} \
774 %{__enable_disable seccomp} \
775 %{__enable_disable spice} \
776 %{__enable_disable smartcard smartcard} \
778 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
779 %{__enable_disable usbredir usb-redir} \
786 %{!?with_vte:--disable-vte} \
788 %{__enable_disable xen} \
791 %{__enable_disable libnfs} \
793 %{__enable_disable snappy} \
794 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
795 --interp-prefix=%{_libdir}/qemu/lib-%%M \
796 %if %{without gtk2} && %{without gtk3}
799 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
804 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
806 # rebuild patched vesa tables with additional widescreen modes.
807 %{__make} -C roms/vgabios stdvga-bios
809 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
812 rm -rf $RPM_BUILD_ROOT
813 install -d $RPM_BUILD_ROOT/usr/lib/binfmt.d \
814 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
815 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
818 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
819 DESTDIR=$RPM_BUILD_ROOT
821 install -d $RPM_BUILD_ROOT%{_sysconfdir}
822 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
827 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
829 %ifarch %{ix86} %{x8664}
830 install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
831 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
832 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
835 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
836 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
838 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
839 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
842 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
843 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
845 # install patched vesa tables with additional widescreen modes.
846 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
848 %if %{with system_seabios}
849 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
850 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
851 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
853 if [ -e "/usr/share/seabios/$bn" ] ; then
854 ln -sf "/usr/share/seabios/$bn" "$f"
859 %if %{with gtk2} || %{with gtk3}
860 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
861 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
868 rm -rf $RPM_BUILD_ROOT
872 %groupadd -g 276 qemu
873 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
876 if [ "$1" = "0" ]; then
883 %defattr(644,root,root,755)
885 %files common -f %{name}.lang
886 %defattr(644,root,root,755)
887 %doc LICENSE README qemu-doc.html qemu-tech.html qmp-commands.txt
888 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
889 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
890 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
891 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
892 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
893 %attr(755,root,root) %{_bindir}/qemu-nbd
894 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
895 %attr(755,root,root) %{_sbindir}/ksmctl
896 %attr(755,root,root) %{_sbindir}/ksmtuned
897 %{_mandir}/man1/qemu.1*
898 %{_mandir}/man1/virtfs-proxy-helper.1*
899 %{_mandir}/man8/qemu-nbd.8*
901 %dir %{_datadir}/qemu
902 %{_datadir}/%{name}/keymaps
903 %{_datadir}/%{name}/qemu-icon.bmp
904 %{_datadir}/%{name}/trace-events
906 # various bios images
907 # all should be probably moved to the right system subpackage
908 %{_datadir}/%{name}/QEMU,cgthree.bin
909 %{_datadir}/%{name}/QEMU,tcx.bin
910 %{_datadir}/%{name}/bamboo.dtb
911 %{_datadir}/%{name}/efi-e1000.rom
912 %{_datadir}/%{name}/efi-eepro100.rom
913 %{_datadir}/%{name}/efi-ne2k_pci.rom
914 %{_datadir}/%{name}/efi-pcnet.rom
915 %{_datadir}/%{name}/efi-rtl8139.rom
916 %{_datadir}/%{name}/efi-virtio.rom
917 %{_datadir}/%{name}/kvmvapic.bin
918 %{_datadir}/%{name}/linuxboot.bin
919 %{_datadir}/%{name}/multiboot.bin
920 %{_datadir}/%{name}/openbios-ppc
921 %{_datadir}/%{name}/openbios-sparc*
922 %{_datadir}/%{name}/palcode-clipper
923 %{_datadir}/%{name}/petalogix-ml605.dtb
924 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
925 %{_datadir}/%{name}/ppc_rom.bin
926 %{_datadir}/%{name}/pxe-e1000.rom
927 %{_datadir}/%{name}/pxe-eepro100.rom
928 %{_datadir}/%{name}/pxe-ne2k_pci.rom
929 %{_datadir}/%{name}/pxe-pcnet.rom
930 %{_datadir}/%{name}/pxe-rtl8139.rom
931 %{_datadir}/%{name}/pxe-virtio.rom
932 %{_datadir}/%{name}/qemu_logo_no_text.svg
933 %{_datadir}/%{name}/s390-ccw.img
934 %{_datadir}/%{name}/s390-zipl.rom
935 %{_datadir}/%{name}/sgabios.bin
936 %{_datadir}/%{name}/slof.bin
937 %{_datadir}/%{name}/spapr-rtas.bin
938 %{_datadir}/%{name}/vgabios.bin
939 %{_datadir}/%{name}/vgabios-cirrus.bin
940 %{_datadir}/%{name}/vgabios-qxl.bin
941 %{_datadir}/%{name}/vgabios-stdvga.bin
942 %{_datadir}/%{name}/vgabios-virtio.bin
943 %{_datadir}/%{name}/vgabios-vmware.bin
945 %dir %{_libdir}/%{name}
948 %defattr(644,root,root,755)
949 %attr(755,root,root) %{_bindir}/qemu-img
950 %{_mandir}/man1/qemu-img.1*
953 %defattr(644,root,root,755)
954 %attr(755,root,root) %{_bindir}/ivshmem-client
955 %attr(755,root,root) %{_bindir}/ivshmem-server
958 %defattr(644,root,root,755)
959 %attr(755,root,root) %{_bindir}/qemu-aarch64
960 %attr(755,root,root) %{_bindir}/qemu-alpha
961 %attr(755,root,root) %{_bindir}/qemu-arm
962 %attr(755,root,root) %{_bindir}/qemu-armeb
963 %attr(755,root,root) %{_bindir}/qemu-cris
964 %attr(755,root,root) %{_bindir}/qemu-i386
965 %attr(755,root,root) %{_bindir}/qemu-io
966 %attr(755,root,root) %{_bindir}/qemu-m68k
967 %attr(755,root,root) %{_bindir}/qemu-microblaze
968 %attr(755,root,root) %{_bindir}/qemu-microblazeel
969 %attr(755,root,root) %{_bindir}/qemu-mips
970 %attr(755,root,root) %{_bindir}/qemu-mipsel
971 %attr(755,root,root) %{_bindir}/qemu-mips64
972 %attr(755,root,root) %{_bindir}/qemu-mips64el
973 %attr(755,root,root) %{_bindir}/qemu-mipsn32
974 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
975 %attr(755,root,root) %{_bindir}/qemu-or32
976 %attr(755,root,root) %{_bindir}/qemu-ppc
977 %attr(755,root,root) %{_bindir}/qemu-ppc64
978 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
979 %attr(755,root,root) %{_bindir}/qemu-ppc64le
980 %attr(755,root,root) %{_bindir}/qemu-s390x
981 %attr(755,root,root) %{_bindir}/qemu-sh4
982 %attr(755,root,root) %{_bindir}/qemu-sh4eb
983 %attr(755,root,root) %{_bindir}/qemu-sparc
984 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
985 %attr(755,root,root) %{_bindir}/qemu-sparc64
986 %attr(755,root,root) %{_bindir}/qemu-tilegx
987 %attr(755,root,root) %{_bindir}/qemu-unicore32
988 %attr(755,root,root) %{_bindir}/qemu-x86_64
990 %files system-aarch64
991 %defattr(644,root,root,755)
992 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
995 %defattr(644,root,root,755)
996 %attr(755,root,root) %{_bindir}/qemu-system-alpha
999 %defattr(644,root,root,755)
1000 %attr(755,root,root) %{_bindir}/qemu-system-arm
1003 %defattr(644,root,root,755)
1004 %attr(755,root,root) %{_bindir}/qemu-system-cris
1007 %defattr(644,root,root,755)
1008 %attr(755,root,root) %{_bindir}/qemu-system-lm32
1011 %defattr(644,root,root,755)
1012 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1014 %files system-microblaze
1015 %defattr(644,root,root,755)
1016 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1017 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1020 %defattr(644,root,root,755)
1021 %attr(755,root,root) %{_bindir}/qemu-system-mips
1022 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1023 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1024 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1027 %defattr(644,root,root,755)
1028 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1031 %defattr(644,root,root,755)
1032 %attr(755,root,root) %{_bindir}/qemu-system-or32
1035 %defattr(644,root,root,755)
1036 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1037 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1038 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
1039 %{_datadir}/%{name}/u-boot.e500
1042 %defattr(644,root,root,755)
1043 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1046 %defattr(644,root,root,755)
1047 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1048 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1051 %defattr(644,root,root,755)
1052 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1053 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1055 %files system-tricore
1056 %defattr(644,root,root,755)
1057 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1059 %files system-unicore32
1060 %defattr(644,root,root,755)
1061 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1064 %defattr(644,root,root,755)
1065 %attr(755,root,root) %{_bindir}/qemu-system-i386
1066 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1067 %ifarch %{ix86} %{x8664}
1068 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1069 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
1070 %attr(755,root,root) %{_bindir}/kvm_stat
1072 %{_datadir}/%{name}/bios.bin
1073 %{_datadir}/%{name}/bios-256k.bin
1074 %{_datadir}/%{name}/acpi-dsdt.aml
1075 %{_datadir}/%{name}/q35-acpi-dsdt.aml
1077 %files system-xtensa
1078 %defattr(644,root,root,755)
1079 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1080 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1083 %defattr(644,root,root,755)
1084 %attr(755,root,root) %{_bindir}/qemu-ga
1085 %{_mandir}/man8/qemu-ga.8*
1087 %files module-block-curl
1088 %defattr(644,root,root,755)
1089 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1091 %files module-block-dmg
1092 %defattr(644,root,root,755)
1093 %attr(755,root,root) %{_libdir}/%{name}/block-dmg.so
1095 %if %{with glusterfs}
1096 %files module-block-gluster
1097 %defattr(644,root,root,755)
1098 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1102 %files module-block-iscsi
1103 %defattr(644,root,root,755)
1104 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1108 %files module-block-rbd
1109 %defattr(644,root,root,755)
1110 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1113 %files module-block-ssh
1114 %defattr(644,root,root,755)
1115 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so