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_without brlapi # brlapi support
18 %bcond_without smartcard # smartcard-nss support
19 %bcond_without iscsi # iscsi support
20 %bcond_without libnfs # NFS support
21 %bcond_without 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
36 Summary: QEMU CPU Emulator
37 Summary(pl.UTF-8): QEMU - emulator procesora
42 Group: Applications/Emulators
43 Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.bz2
44 # Source0-md5: 2fab3ea4460de9b57192e5b8b311f221
45 Source2: %{name}.binfmt
46 # Loads kvm kernel modules at boot
47 Source3: kvm-modules-load.conf
52 Source6: ksm.sysconfig
54 Source8: ksmtuned.service
56 Source10: ksmtuned.conf
57 Source11: %{name}-guest-agent.service
58 Source12: 99-%{name}-guest-agent.rules
59 Patch0: %{name}-cflags.patch
60 Patch1: vgabios-widescreens.patch
61 Patch2: %{name}-whitelist.patch
62 Patch3: %{name}-system-libcacard.patch
63 Patch4: %{name}-xattr.patch
64 Patch5: libjpeg-boolean.patch
66 # Proof of concept, for reference, do not remove
67 Patch400: %{name}-kde_virtual_workspaces_hack.patch
68 URL: http://www.qemu-project.org/
69 BuildRequires: OpenGL-GLX-devel
70 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
71 BuildRequires: alsa-lib-devel
72 BuildRequires: bcc >= 0.16.21-2
73 %{?with_bluetooth:BuildRequires: bluez-libs-devel}
74 %{?with_brlapi:BuildRequires: brlapi-devel}
75 BuildRequires: bzip2-devel
76 %{?with_ceph:BuildRequires: ceph-devel}
77 BuildRequires: curl-devel
78 BuildRequires: cyrus-sasl-devel >= 2
79 %{?with_esd:BuildRequires: esound-devel}
80 BuildRequires: glib2-devel >= 1:2.12
81 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
82 BuildRequires: gnutls-devel > 2.10.0
83 BuildRequires: libaio-devel
84 %{?with_smartcard:BuildRequires: libcacard-devel}
85 BuildRequires: libcap-devel
86 BuildRequires: libcap-ng-devel
87 BuildRequires: libfdt-devel
88 %{?with_rdma:BuildRequires: libibverbs-devel}
89 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
90 BuildRequires: libjpeg-devel
91 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
92 BuildRequires: libpng-devel
93 %{?with_rdma:BuildRequires: librdmacm-devel}
94 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.1.1}
95 BuildRequires: libssh2-devel >= 1.2.8
96 BuildRequires: libusb-devel >= 1.0.13
97 BuildRequires: libuuid-devel
98 %{?with_lttng:BuildRequires: lttng-ust-devel}
99 BuildRequires: lzo-devel >= 2
100 BuildRequires: ncurses-devel
101 %{?with_smartcard:BuildRequires: nss-devel >= 3.12.8}
102 BuildRequires: numactl-devel
103 BuildRequires: perl-Encode
104 BuildRequires: perl-tools-pod
105 BuildRequires: pixman-devel >= 0.21.8
106 BuildRequires: pkgconfig
107 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
108 BuildRequires: rpmbuild(macros) >= 1.644
109 %{?with_system_seabios:BuildRequires: seabios}
110 BuildRequires: sed >= 4.0
111 %{?with_snappy:BuildRequires: snappy-devel}
113 BuildRequires: spice-protocol >= 0.12.3
114 BuildRequires: spice-server-devel >= 0.12.0
116 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
117 BuildRequires: texi2html
118 BuildRequires: texinfo
119 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
120 %{?with_lttng:BuildRequires: userspace-rcu-devel}
121 BuildRequires: vde2-devel
123 %{?with_xen:BuildRequires: xen-devel >= 3.4}
124 BuildRequires: xfsprogs-devel
125 BuildRequires: xorg-lib-libX11-devel
126 BuildRequires: zlib-devel
128 BuildRequires: gtk+2-devel >= 2:2.18.0
129 %{?with_vte:BuildRequires: vte0-devel >= 0.24.0}
132 BuildRequires: gtk+3-devel >= 3.0.0
133 %{?with_vte:BuildRequires: vte2.90-devel >= 0.32.0}
135 Requires: %{name}-img = %{version}-%{release}
136 Requires: %{name}-system-aarch64 = %{version}-%{release}
137 Requires: %{name}-system-alpha = %{version}-%{release}
138 Requires: %{name}-system-arm = %{version}-%{release}
139 Requires: %{name}-system-cris = %{version}-%{release}
140 Requires: %{name}-system-lm32 = %{version}-%{release}
141 Requires: %{name}-system-m68k = %{version}-%{release}
142 Requires: %{name}-system-microblaze = %{version}-%{release}
143 Requires: %{name}-system-mips = %{version}-%{release}
144 Requires: %{name}-system-moxie = %{version}-%{release}
145 Requires: %{name}-system-or32 = %{version}-%{release}
146 Requires: %{name}-system-ppc = %{version}-%{release}
147 Requires: %{name}-system-s390x = %{version}-%{release}
148 Requires: %{name}-system-sh4 = %{version}-%{release}
149 Requires: %{name}-system-sparc = %{version}-%{release}
150 Requires: %{name}-system-tricore = %{version}-%{release}
151 Requires: %{name}-system-unicore32 = %{version}-%{release}
152 Requires: %{name}-system-x86 = %{version}-%{release}
153 Requires: %{name}-system-xtensa = %{version}-%{release}
154 Requires: %{name}-user = %{version}-%{release}
156 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
158 %define systempkg_req \
162 %if %{with seccomp} \
163 Requires: libseccomp >= 2.1.0 \
165 Requires: libusb >= 1.0.13 \
166 Requires: pixman >= 0.21.8 \
167 %if %{with usbredir} \
168 Requires: usbredir >= 0.6 \
171 Requires: gtk+2 >= 2:2.18.0 \
172 %{?with_vte:Requires: vte0 >= 0.24.0} \
175 Requires: gtk+3 >= 3.0.0 \
176 %{?with_vte:Requires: vte2.90 >= 0.32.0} \
179 # don't strip/chrpath anything in there; these are boot images, roms etc
180 %define _noautostrip .*%{_datadir}/qemu/.*
181 %define _noautochrpath .*%{_datadir}/qemu/.*
184 QEMU is a FAST! processor emulator. By using dynamic translation it
185 achieves a reasonnable speed while being easy to port on new host
186 CPUs. QEMU has two operating modes:
188 - User mode emulation. In this mode, QEMU can launch Linux processes
189 compiled for one CPU on another CPU. Linux system calls are converted
190 because of endianness and 32/64 bit mismatches. Wine (Windows
191 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
193 - Full system emulation. In this mode, QEMU emulates a full system,
194 including a processor and various peripherials. It can also be used to
195 provide virtual hosting of several virtual PC on a single server.
197 %description -l pl.UTF-8
198 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
199 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
200 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
202 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
203 procesy linuksowe skompilowane dla jednego procesora na innym
204 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
205 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
206 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
209 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
210 włączając w to procesor i różne urządzenia peryferyjne. Może być także
211 używane do wirtualnego hostowania kilku wirtualnych pecetów na
212 pojedynczym serwerze.
215 Summary: QEMU common files needed by all QEMU targets
216 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
217 Group: Development/Tools
218 Requires(post,preun,postun): systemd-units >= 38
219 Requires(postun): /usr/sbin/groupdel
220 Requires(postun): /usr/sbin/userdel
221 Requires(pre): /bin/id
222 Requires(pre): /usr/bin/getgid
223 Requires(pre): /usr/sbin/groupadd
224 Requires(pre): /usr/sbin/useradd
225 Requires: glib2 >= 1:2.12
226 %{?with_libnfs:Requires: libnfs >= 1.9.3}
227 Requires: libssh2 >= 1.2.8
228 Requires: systemd-units >= 38
229 Provides: group(qemu)
231 Obsoletes: qemu-kvm-common
232 Conflicts: qemu < 1.0-2
235 QEMU is a generic and open source processor emulator which achieves a
236 good emulation speed by using dynamic translation.
238 This package provides the common files needed by all QEMU targets.
240 %description common -l pl.UTF-8
241 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
242 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
244 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
248 Summary: QEMU command line tool for manipulating disk images
249 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
250 Group: Development/Tools
251 Obsoletes: qemu-kvm-img
252 Conflicts: qemu < 1.0-2
255 This package provides a command line tool for manipulating disk
258 %description img -l pl.UTF-8
259 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
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 Requires(post,postun): systemd-units >= 38
268 Requires: systemd-units >= 38
269 Obsoletes: qemu-kvm-user
272 QEMU is a generic and open source processor emulator which achieves a
273 good emulation speed by using dynamic translation.
275 This package provides the user mode emulation of QEMU targets.
277 %description user -l pl.UTF-8
278 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
279 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
281 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
283 %package system-aarch64
284 Summary: QEMU system emulator for AArch64
285 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
286 Group: Development/Tools
287 Requires: %{name}-common = %{version}-%{release}
289 Obsoletes: qemu-kvm-system-aarch64
291 %description system-aarch64
292 QEMU is a generic and open source processor emulator which achieves a
293 good emulation speed by using dynamic translation.
295 This package provides the system emulator with AArch64 CPU.
297 %description system-aarch64 -l pl.UTF-8
298 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
299 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
301 Ten pakiet zawiera emulator systemu z procesorem AArch64.
303 %package system-alpha
304 Summary: QEMU system emulator for Alpha
305 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
306 Group: Development/Tools
307 Requires: %{name}-common = %{version}-%{release}
309 Obsoletes: qemu-kvm-system-alpha
311 %description system-alpha
312 QEMU is a generic and open source processor emulator which achieves a
313 good emulation speed by using dynamic translation.
315 This package provides the system emulator with Alpha CPU.
317 %description system-alpha -l pl.UTF-8
318 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
319 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
321 Ten pakiet zawiera emulator systemu z procesorem Alpha.
324 Summary: QEMU system emulator for ARM
325 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
326 Group: Development/Tools
327 Requires: %{name}-common = %{version}-%{release}
329 Obsoletes: qemu-kvm-system-arm
331 %description system-arm
332 QEMU is a generic and open source processor emulator which achieves a
333 good emulation speed by using dynamic translation.
335 This package provides the system emulator for ARM.
337 %description system-arm -l pl.UTF-8
338 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
339 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
341 Ten pakiet zawiera emulator systemu z procesorem ARM.
344 Summary: QEMU system emulator for CRIS
345 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
346 Group: Development/Tools
347 Requires: %{name}-common = %{version}-%{release}
349 Obsoletes: qemu-kvm-system-cris
351 %description system-cris
352 QEMU is a generic and open source processor emulator which achieves a
353 good emulation speed by using dynamic translation.
355 This package provides the system emulator with CRIS CPU.
357 %description system-cris -l pl.UTF-8
358 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
359 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
361 Ten pakiet zawiera emulator systemu z procesorem CRIS.
364 Summary: QEMU system emulator for LM32
365 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
366 Group: Development/Tools
367 Requires: %{name}-common = %{version}-%{release}
369 Obsoletes: qemu-kvm-system-lm32
371 %description system-lm32
372 QEMU is a generic and open source processor emulator which achieves a
373 good emulation speed by using dynamic translation.
375 This package provides the system emulator with LM32 CPU.
377 %description system-lm32 -l pl.UTF-8
378 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
379 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
381 Ten pakiet zawiera emulator systemu z procesorem LM32.
384 Summary: QEMU system emulator for m68k
385 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
386 Group: Development/Tools
387 Requires: %{name}-common = %{version}-%{release}
389 Obsoletes: qemu-kvm-system-m68k
391 %description system-m68k
392 QEMU is a generic and open source processor emulator which achieves a
393 good emulation speed by using dynamic translation.
395 This package provides the system emulator with m68k CPU.
397 %description system-m68k -l pl.UTF-8
398 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
399 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
401 Ten pakiet zawiera emulator systemu z procesorem m68k.
403 %package system-microblaze
404 Summary: QEMU system emulator for MicroBlaze
405 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
406 Group: Development/Tools
407 Requires: %{name}-common = %{version}-%{release}
409 Obsoletes: qemu-kvm-system-microblaze
411 %description system-microblaze
412 QEMU is a generic and open source processor emulator which achieves a
413 good emulation speed by using dynamic translation.
415 This package provides the system emulator with MicroBlaze CPU.
417 %description system-microblaze -l pl.UTF-8
418 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
419 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
421 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
424 Summary: QEMU system emulator for MIPS
425 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
426 Group: Development/Tools
427 Requires: %{name}-common = %{version}-%{release}
429 Obsoletes: qemu-kvm-system-mips
431 %description system-mips
432 QEMU is a generic and open source processor emulator which achieves a
433 good emulation speed by using dynamic translation.
435 This package provides the system emulator with MIPS CPU.
437 %description system-mips -l pl.UTF-8
438 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
439 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
441 Ten pakiet zawiera emulator systemu z procesorem MIPS.
443 %package system-moxie
444 Summary: QEMU system emulator for Moxie
445 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
446 Group: Development/Tools
447 Requires: %{name}-common = %{version}-%{release}
450 %description system-moxie
451 QEMU is a generic and open source processor emulator which achieves a
452 good emulation speed by using dynamic translation.
454 This package provides the system emulator with Moxie CPU.
456 %description system-moxie -l pl.UTF-8
457 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
458 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
460 Ten pakiet zawiera emulator systemu z procesorem Moxie.
463 Summary: QEMU system emulator for OpenRISC
464 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
465 Group: Development/Tools
466 Requires: %{name}-common = %{version}-%{release}
468 Obsoletes: qemu-kvm-system-or32
470 %description system-or32
471 QEMU is a generic and open source processor emulator which achieves a
472 good emulation speed by using dynamic translation.
474 This package provides the system emulator with OpenRISC CPU.
476 %description system-or32 -l pl.UTF-8
477 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
478 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
480 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
483 Summary: QEMU system emulator for PowerPC
484 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
485 Group: Development/Tools
486 Requires: %{name}-common = %{version}-%{release}
488 Obsoletes: qemu-kvm-system-ppc
490 %description system-ppc
491 QEMU is a generic and open source processor emulator which achieves a
492 good emulation speed by using dynamic translation.
494 This package provides the system emulator with PowerPC CPU.
496 %description system-ppc -l pl.UTF-8
497 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
498 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
500 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
502 %package system-s390x
503 Summary: QEMU system emulator for S390
504 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
505 Group: Development/Tools
506 Requires: %{name}-common = %{version}-%{release}
508 Obsoletes: qemu-kvm-system-s390x
510 %description system-s390x
511 QEMU is a generic and open source processor emulator which achieves a
512 good emulation speed by using dynamic translation.
514 This package provides the system emulator with S390 CPU.
516 %description system-s390x -l pl.UTF-8
517 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
518 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
520 Ten pakiet zawiera emulator systemu z procesorem S390.
523 Summary: QEMU system emulator for SH4
524 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
525 Group: Development/Tools
526 Requires: %{name}-common = %{version}-%{release}
528 Obsoletes: qemu-kvm-system-sh4
530 %description system-sh4
531 QEMU is a generic and open source processor emulator which achieves a
532 good emulation speed by using dynamic translation.
534 This package provides the system emulator with SH4 CPU.
536 %description system-sh4 -l pl.UTF-8
537 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
538 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
540 Ten pakiet zawiera emulator systemu z procesorem SH4.
542 %package system-sparc
543 Summary: QEMU system emulator for SPARC
544 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
545 Group: Development/Tools
546 Requires: %{name}-common = %{version}-%{release}
548 Obsoletes: qemu-kvm-system-sparc
550 %description system-sparc
551 QEMU is a generic and open source processor emulator which achieves a
552 good emulation speed by using dynamic translation.
554 This package provides the system emulator with SPARC/SPARC64 CPU.
556 %description system-sparc -l pl.UTF-8
557 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
558 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
560 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
562 %package system-tricore
563 Summary: QEMU system emulator for TriCore
564 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
565 Group: Development/Tools
566 Requires: %{name}-common = %{version}-%{release}
569 %description system-tricore
570 QEMU is a generic and open source processor emulator which achieves a
571 good emulation speed by using dynamic translation.
573 This package provides the system emulator with TriCore CPU.
575 %description system-sparc -l pl.UTF-8
576 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
577 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
579 Ten pakiet zawiera emulator systemu z procesorem TriCore.
581 %package system-unicore32
582 Summary: QEMU system emulator for UniCore32
583 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
584 Group: Development/Tools
585 Requires: %{name}-common = %{version}-%{release}
587 Obsoletes: qemu-kvm-system-unicore32
589 %description system-unicore32
590 QEMU is a generic and open source processor emulator which achieves a
591 good emulation speed by using dynamic translation.
593 This package provides the system emulator with UniCore32 CPU.
595 %description system-unicore32 -l pl.UTF-8
596 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
597 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
599 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
602 Summary: QEMU system emulator for x86
603 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
604 Group: Development/Tools
605 Requires: %{name}-common = %{version}-%{release}
606 %{?with_system_seabios:Requires: seabios}
609 Obsoletes: qemu-kvm-system-x86
611 %description system-x86
612 QEMU is a generic and open source processor emulator which achieves a
613 good emulation speed by using dynamic translation.
615 %description system-x86 -l pl.UTF-8
616 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
617 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
619 %package system-xtensa
620 Summary: QEMU system emulator for Xtensa
621 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
622 Group: Development/Tools
623 Requires: %{name}-common = %{version}-%{release}
625 Obsoletes: qemu-kvm-system-xtensa
627 %description system-xtensa
628 QEMU is a generic and open source processor emulator which achieves a
629 good emulation speed by using dynamic translation.
631 This package provides the system emulator with Xtensa CPU.
633 %description system-xtensa -l pl.UTF-8
634 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
635 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
637 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
640 Summary: QEMU guest agent
641 Summary(pl.UTF-8): Agent gościa QEMU
643 Requires(post,preun,postun): systemd-units >= 38
644 Requires: glib2 >= 1:2.12
645 Requires: systemd-units >= 38
646 Obsoletes: qemu-kvm-guest-agent
648 %description guest-agent
649 QEMU is a generic and open source processor emulator which achieves a
650 good emulation speed by using dynamic translation.
652 This package provides an agent to run inside guests, which
653 communicates with the host over a virtio-serial channel named
654 "org.qemu.guest_agent.0".
656 This package does not need to be installed on the host OS.
658 %description guest-agent -l pl.UTF-8
659 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
660 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
662 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
663 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
664 "org.qemu.guest_agent.0".
666 Ten pakiet nie musi być zainstalowany w systemie hosta.
668 %package module-block-curl
669 Summary: QEMU module for 'curl' block devices
670 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
671 Group: Development/Tools
672 Requires: %{name}-common = %{version}-%{release}
674 %description module-block-curl
675 'curl' block device support for QEMU.
677 %description module-block-curl -l pl.UTF-8
678 Moduł QEMU dla urządeń blokowych typu 'curl'.
680 %package module-block-gluster
681 Summary: QEMU module for 'gluster' block devices
682 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
683 Group: Development/Tools
684 Requires: %{name}-common = %{version}-%{release}
685 Requires: glusterfs-libs >= 3.4
687 %description module-block-gluster
688 'gluster' block device support for QEMU.
690 %description module-block-gluster -l pl.UTF-8
691 Moduł QEMU dla urządeń blokowych typu 'gluster'.
693 %package module-block-iscsi
694 Summary: QEMU module for 'iscsi' block devices
695 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
696 Group: Development/Tools
697 Requires: %{name}-common = %{version}-%{release}
698 Requires: libiscsi >= 1.9.0
700 %description module-block-iscsi
701 'iscsi' block device support for QEMU.
703 %description module-block-iscsi -l pl.UTF-8
704 Moduł QEMU dla urządeń blokowych typu 'iscsi'.
706 %package module-block-rbd
707 Summary: QEMU module for 'rbd' block devices
708 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
709 Group: Development/Tools
710 Requires: %{name}-common = %{version}-%{release}
712 %description module-block-rbd
713 'rbd' block device support for QEMU.
715 %description module-block-rbd -l pl.UTF-8
716 Moduł QEMU dla urządeń blokowych typu 'rbd'.
718 %package module-block-ssh
719 Summary: QEMU module for 'ssh' block devices
720 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
721 Group: Development/Tools
722 Requires: %{name}-common = %{version}-%{release}
724 %description module-block-ssh
725 'ssh' block device support for QEMU.
727 %description module-block-ssh -l pl.UTF-8
728 Moduł QEMU dla urządeń blokowych typu 'ssh'.
740 %{__mv} libcacard libcacard-use-system-lib
742 # workaround for conflict with alsa/error.h
743 ln -s ../error.h qapi/error.h
747 --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
748 --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
749 --prefix=%{_prefix} \
750 --libdir=%{_libdir} \
751 --libexecdir=%{_libexecdir} \
752 --sysconfdir=%{_sysconfdir} \
754 --host-cc="%{__cc}" \
757 %{__enable_disable bluetooth bluez} \
758 %{__enable_disable brlapi} \
764 %{__enable_disable glusterfs} \
765 %{__enable_disable iscsi libiscsi} \
766 %{__enable_disable ceph rbd} \
767 %{__enable_disable rdma} \
768 %{__enable_disable sdl} \
770 %{__enable_disable seccomp} \
771 %{__enable_disable spice} \
772 %{__enable_disable smartcard smartcard-nss} \
774 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
775 %{__enable_disable usbredir usb-redir} \
783 %{!?with_vte:--disable-vte} \
785 %{__enable_disable xen} \
788 %{__enable_disable libnfs} \
790 %{__enable_disable snappy} \
792 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
793 --interp-prefix=%{_libdir}/qemu/lib-%%M \
794 %if %{without gtk2} && %{without gtk3}
797 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
802 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
804 # rebuild patched vesa tables with additional widescreen modes.
805 %{__make} -C roms/vgabios stdvga-bios
807 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
810 rm -rf $RPM_BUILD_ROOT
811 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
812 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
813 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
816 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
817 DESTDIR=$RPM_BUILD_ROOT
819 install -d $RPM_BUILD_ROOT%{_sysconfdir}
820 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
825 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
827 %ifarch %{ix86} %{x8664} x32
828 install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
829 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
830 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
833 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
834 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
835 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
837 install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
838 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
839 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
841 # For the qemu-guest-agent subpackage install the systemd
842 # service and udev rules.
843 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
844 install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
847 %ifnarch %{ix86} %{x8664} x32
856 %ifnarch sparc sparc64
863 test $i = dummy && continue
864 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i.conf
868 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
869 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
871 # install patched vesa tables with additional widescreen modes.
872 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
874 %if %{with system_seabios}
875 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
876 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
877 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
879 if [ -e "/usr/share/seabios/$bn" ] ; then
880 ln -sf "/usr/share/seabios/$bn" "$f"
885 %if %{with gtk2} || %{with gtk3}
886 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
887 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
894 rm -rf $RPM_BUILD_ROOT
898 %groupadd -g 276 qemu
899 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
902 %systemd_post ksm.service
903 %systemd_post ksmtuned.service
906 %systemd_preun ksm.service
907 %systemd_preun ksmtuned.service
910 if [ "$1" = "0" ]; then
917 %triggerpostun common -- qemu-common < 1.6.1-4
918 %systemd_trigger ksm.service
919 %systemd_trigger ksmtuned.service
922 %systemd_service_restart systemd-binfmt.service
925 %systemd_service_restart systemd-binfmt.service
931 %systemd_preun qemu-guest-agent.service
937 %defattr(644,root,root,755)
939 %files common -f %{name}.lang
940 %defattr(644,root,root,755)
941 %doc LICENSE README qemu-doc.html qemu-tech.html qmp-commands.txt
942 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
943 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu/target-*.conf
944 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
945 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
946 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
947 %{systemdunitdir}/ksm.service
948 %{systemdunitdir}/ksmtuned.service
949 %dir %{_sysconfdir}/qemu
950 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
951 %attr(755,root,root) %{_bindir}/qemu-nbd
952 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
953 %attr(755,root,root) %{_sbindir}/ksmctl
954 %attr(755,root,root) %{_sbindir}/ksmtuned
955 %{_mandir}/man1/qemu.1*
956 %{_mandir}/man1/virtfs-proxy-helper.1*
957 %{_mandir}/man8/qemu-nbd.8*
959 %dir %{_datadir}/qemu
960 %{_datadir}/%{name}/keymaps
961 %{_datadir}/%{name}/qemu-icon.bmp
962 %{_datadir}/%{name}/trace-events
964 # various bios images
965 # all should be probably moved to the right system subpackage
966 %{_datadir}/%{name}/QEMU,cgthree.bin
967 %{_datadir}/%{name}/QEMU,tcx.bin
968 %{_datadir}/%{name}/bamboo.dtb
969 %{_datadir}/%{name}/efi-e1000.rom
970 %{_datadir}/%{name}/efi-eepro100.rom
971 %{_datadir}/%{name}/efi-ne2k_pci.rom
972 %{_datadir}/%{name}/efi-pcnet.rom
973 %{_datadir}/%{name}/efi-rtl8139.rom
974 %{_datadir}/%{name}/efi-virtio.rom
975 %{_datadir}/%{name}/kvmvapic.bin
976 %{_datadir}/%{name}/linuxboot.bin
977 %{_datadir}/%{name}/multiboot.bin
978 %{_datadir}/%{name}/openbios-ppc
979 %{_datadir}/%{name}/openbios-sparc*
980 %{_datadir}/%{name}/palcode-clipper
981 %{_datadir}/%{name}/petalogix-ml605.dtb
982 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
983 %{_datadir}/%{name}/ppc_rom.bin
984 %{_datadir}/%{name}/pxe-e1000.rom
985 %{_datadir}/%{name}/pxe-eepro100.rom
986 %{_datadir}/%{name}/pxe-ne2k_pci.rom
987 %{_datadir}/%{name}/pxe-pcnet.rom
988 %{_datadir}/%{name}/pxe-rtl8139.rom
989 %{_datadir}/%{name}/pxe-virtio.rom
990 %{_datadir}/%{name}/qemu_logo_no_text.svg
991 %{_datadir}/%{name}/s390-ccw.img
992 %{_datadir}/%{name}/s390-zipl.rom
993 %{_datadir}/%{name}/sgabios.bin
994 %{_datadir}/%{name}/slof.bin
995 %{_datadir}/%{name}/spapr-rtas.bin
996 %{_datadir}/%{name}/vgabios-cirrus.bin
997 %{_datadir}/%{name}/vgabios-qxl.bin
998 %{_datadir}/%{name}/vgabios-stdvga.bin
999 %{_datadir}/%{name}/vgabios-vmware.bin
1000 %{_datadir}/%{name}/vgabios.bin
1002 %dir %{_libdir}/%{name}
1005 %defattr(644,root,root,755)
1006 %attr(755,root,root) %{_bindir}/qemu-img
1007 %{_mandir}/man1/qemu-img.1*
1010 %defattr(644,root,root,755)
1011 /usr/lib/binfmt.d/qemu-*.conf
1012 %attr(755,root,root) %{_bindir}/qemu-aarch64
1013 %attr(755,root,root) %{_bindir}/qemu-alpha
1014 %attr(755,root,root) %{_bindir}/qemu-arm
1015 %attr(755,root,root) %{_bindir}/qemu-armeb
1016 %attr(755,root,root) %{_bindir}/qemu-cris
1017 %attr(755,root,root) %{_bindir}/qemu-i386
1018 %attr(755,root,root) %{_bindir}/qemu-io
1019 %attr(755,root,root) %{_bindir}/qemu-m68k
1020 %attr(755,root,root) %{_bindir}/qemu-microblaze
1021 %attr(755,root,root) %{_bindir}/qemu-microblazeel
1022 %attr(755,root,root) %{_bindir}/qemu-mips
1023 %attr(755,root,root) %{_bindir}/qemu-mipsel
1024 %attr(755,root,root) %{_bindir}/qemu-mips64
1025 %attr(755,root,root) %{_bindir}/qemu-mips64el
1026 %attr(755,root,root) %{_bindir}/qemu-mipsn32
1027 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
1028 %attr(755,root,root) %{_bindir}/qemu-or32
1029 %attr(755,root,root) %{_bindir}/qemu-ppc
1030 %attr(755,root,root) %{_bindir}/qemu-ppc64
1031 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
1032 %attr(755,root,root) %{_bindir}/qemu-ppc64le
1033 %attr(755,root,root) %{_bindir}/qemu-s390x
1034 %attr(755,root,root) %{_bindir}/qemu-sh4
1035 %attr(755,root,root) %{_bindir}/qemu-sh4eb
1036 %attr(755,root,root) %{_bindir}/qemu-sparc
1037 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
1038 %attr(755,root,root) %{_bindir}/qemu-sparc64
1039 %attr(755,root,root) %{_bindir}/qemu-unicore32
1040 %attr(755,root,root) %{_bindir}/qemu-x86_64
1042 %files system-aarch64
1043 %defattr(644,root,root,755)
1044 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1047 %defattr(644,root,root,755)
1048 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1051 %defattr(644,root,root,755)
1052 %attr(755,root,root) %{_bindir}/qemu-system-arm
1055 %defattr(644,root,root,755)
1056 %attr(755,root,root) %{_bindir}/qemu-system-cris
1059 %defattr(644,root,root,755)
1060 %attr(755,root,root) %{_bindir}/qemu-system-lm32
1063 %defattr(644,root,root,755)
1064 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1066 %files system-microblaze
1067 %defattr(644,root,root,755)
1068 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1069 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1072 %defattr(644,root,root,755)
1073 %attr(755,root,root) %{_bindir}/qemu-system-mips
1074 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1075 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1076 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1079 %defattr(644,root,root,755)
1080 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1083 %defattr(644,root,root,755)
1084 %attr(755,root,root) %{_bindir}/qemu-system-or32
1087 %defattr(644,root,root,755)
1088 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1089 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1090 #%attr(755,root,root) %{_bindir}/qemu-system-ppc64le
1091 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
1092 %{_datadir}/%{name}/u-boot.e500
1095 %defattr(644,root,root,755)
1096 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1099 %defattr(644,root,root,755)
1100 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1101 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1104 %defattr(644,root,root,755)
1105 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1106 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1108 %files system-tricore
1109 %defattr(644,root,root,755)
1110 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1112 %files system-unicore32
1113 %defattr(644,root,root,755)
1114 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1117 %defattr(644,root,root,755)
1118 %attr(755,root,root) %{_bindir}/qemu-system-i386
1119 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1120 %ifarch %{ix86} %{x8664} x32
1121 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1122 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
1123 %attr(755,root,root) %{_bindir}/kvm_stat
1125 %{_datadir}/%{name}/bios.bin
1126 %{_datadir}/%{name}/bios-256k.bin
1127 %{_datadir}/%{name}/acpi-dsdt.aml
1128 %{_datadir}/%{name}/q35-acpi-dsdt.aml
1130 %files system-xtensa
1131 %defattr(644,root,root,755)
1132 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1133 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1136 %defattr(644,root,root,755)
1137 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
1138 %{systemdunitdir}/qemu-guest-agent.service
1139 %attr(755,root,root) %{_bindir}/qemu-ga
1141 %files module-block-curl
1142 %defattr(644,root,root,755)
1143 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1145 %if %{with glusterfs}
1146 %files module-block-gluster
1147 %defattr(644,root,root,755)
1148 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1152 %files module-block-iscsi
1153 %defattr(644,root,root,755)
1154 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1158 %files module-block-rbd
1159 %defattr(644,root,root,755)
1160 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1163 %files module-block-ssh
1164 %defattr(644,root,root,755)
1165 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so