3 %bcond_without sdl # SDL UI and audio support
4 %bcond_without ceph # Ceph/RBD support
5 %bcond_without glusterfs # GlusterFS backend
6 %bcond_without rdma # RDMA-based migration support
7 %bcond_with xseg # Archipelago backend [non-distributable: GPLv3+ vs GPLv2-only]
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: f469f2330bbe76e3e39db10e9ac4f8db
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
63 Patch4: %{name}-xattr.patch
64 Patch5: libjpeg-boolean.patch
66 Patch7: %{name}-sh.patch
67 # Proof of concept, for reference, do not remove
68 Patch400: %{name}-kde_virtual_workspaces_hack.patch
69 URL: http://www.qemu-project.org/
70 BuildRequires: OpenGL-devel
71 BuildRequires: OpenGL-GLX-devel
72 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
73 BuildRequires: alsa-lib-devel
74 BuildRequires: bcc >= 0.16.21-2
75 %{?with_bluetooth:BuildRequires: bluez-libs-devel}
76 %{?with_brlapi:BuildRequires: brlapi-devel}
77 BuildRequires: bzip2-devel
78 %{?with_ceph:BuildRequires: ceph-devel}
79 BuildRequires: curl-devel
80 BuildRequires: cyrus-sasl-devel >= 2
81 %{?with_esd:BuildRequires: esound-devel}
82 BuildRequires: glib2-devel >= 1:2.22
83 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
84 BuildRequires: gnutls-devel > 2.10.0
85 BuildRequires: libaio-devel
86 %{?with_smartcard:BuildRequires: libcacard-devel}
87 BuildRequires: libcap-devel
88 BuildRequires: libcap-ng-devel
89 BuildRequires: libepoxy-devel
90 BuildRequires: libfdt-devel
91 %{?with_rdma:BuildRequires: libibverbs-devel}
92 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
93 BuildRequires: libjpeg-devel
94 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
95 BuildRequires: libpng-devel
96 %{?with_rdma:BuildRequires: librdmacm-devel}
97 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.1.1}
98 BuildRequires: libssh2-devel >= 1.2.8
99 BuildRequires: libusb-devel >= 1.0.13
100 BuildRequires: libuuid-devel
101 %{?with_xseg:BuildRequires: libxseg-devel}
102 %{?with_lttng:BuildRequires: lttng-ust-devel}
103 BuildRequires: lzo-devel >= 2
104 BuildRequires: ncurses-devel
105 %{?with_smartcard:BuildRequires: nss-devel >= 1:3.12.8}
106 BuildRequires: numactl-devel
107 BuildRequires: perl-Encode
108 BuildRequires: perl-tools-pod
109 BuildRequires: pixman-devel >= 0.21.8
110 BuildRequires: pkgconfig
111 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
112 BuildRequires: rpmbuild(macros) >= 1.644
113 %{?with_system_seabios:BuildRequires: seabios}
114 BuildRequires: sed >= 4.0
115 %{?with_snappy:BuildRequires: snappy-devel}
117 BuildRequires: spice-protocol >= 0.12.3
118 BuildRequires: spice-server-devel >= 0.12.0
120 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
121 BuildRequires: texi2html
122 BuildRequires: texinfo
123 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
124 %{?with_lttng:BuildRequires: userspace-rcu-devel}
125 BuildRequires: vde2-devel
127 %{?with_xen:BuildRequires: xen-devel >= 3.4}
128 BuildRequires: xfsprogs-devel
129 BuildRequires: xorg-lib-libX11-devel
130 BuildRequires: zlib-devel
132 BuildRequires: gtk+2-devel >= 2:2.18.0
133 %{?with_vte:BuildRequires: vte0-devel >= 0.24.0}
136 BuildRequires: gtk+3-devel >= 3.0.0
137 %{?with_vte:BuildRequires: vte2.90-devel >= 0.32.0}
139 Requires: %{name}-img = %{version}-%{release}
140 Requires: %{name}-system-aarch64 = %{version}-%{release}
141 Requires: %{name}-system-alpha = %{version}-%{release}
142 Requires: %{name}-system-arm = %{version}-%{release}
143 Requires: %{name}-system-cris = %{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-or32 = %{version}-%{release}
150 Requires: %{name}-system-ppc = %{version}-%{release}
151 Requires: %{name}-system-s390x = %{version}-%{release}
152 Requires: %{name}-system-sh4 = %{version}-%{release}
153 Requires: %{name}-system-sparc = %{version}-%{release}
154 Requires: %{name}-system-tricore = %{version}-%{release}
155 Requires: %{name}-system-unicore32 = %{version}-%{release}
156 Requires: %{name}-system-x86 = %{version}-%{release}
157 Requires: %{name}-system-xtensa = %{version}-%{release}
158 Requires: %{name}-user = %{version}-%{release}
160 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
162 %define systempkg_req \
166 %if %{with seccomp} \
167 Requires: libseccomp >= 2.1.0 \
169 Requires: libusb >= 1.0.13 \
170 Requires: pixman >= 0.21.8 \
171 %if %{with usbredir} \
172 Requires: usbredir >= 0.6 \
175 Requires: gtk+2 >= 2:2.18.0 \
176 %{?with_vte:Requires: vte0 >= 0.24.0} \
179 Requires: gtk+3 >= 3.0.0 \
180 %{?with_vte:Requires: vte2.90 >= 0.32.0} \
183 # don't strip/chrpath anything in there; these are boot images, roms etc
184 %define _noautostrip .*%{_datadir}/qemu/.*
185 %define _noautochrpath .*%{_datadir}/qemu/.*
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:
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.
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.
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:
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
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.
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(post,preun,postun): systemd-units >= 38
223 Requires(postun): /usr/sbin/groupdel
224 Requires(postun): /usr/sbin/userdel
225 Requires(pre): /bin/id
226 Requires(pre): /usr/bin/getgid
227 Requires(pre): /usr/sbin/groupadd
228 Requires(pre): /usr/sbin/useradd
229 Requires: glib2 >= 1:2.22
230 %{?with_libnfs:Requires: libnfs >= 1.9.3}
231 Requires: libssh2 >= 1.2.8
232 Requires: systemd-units >= 38
233 Provides: group(qemu)
235 Obsoletes: qemu-kvm-common
236 Conflicts: qemu < 1.0-2
239 QEMU is a generic and open source processor emulator which achieves a
240 good emulation speed by using dynamic translation.
242 This package provides the common files needed by all QEMU targets.
244 %description common -l pl.UTF-8
245 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
246 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
248 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
252 Summary: QEMU command line tool for manipulating disk images
253 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
254 Group: Development/Tools
255 Obsoletes: qemu-kvm-img
256 Conflicts: qemu < 1.0-2
259 This package provides a command line tool for manipulating disk
262 %description img -l pl.UTF-8
263 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
267 Summary: QEMU user mode emulation of qemu targets
268 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
269 Group: Development/Tools
270 Requires: %{name}-common = %{version}-%{release}
271 Requires(post,postun): systemd-units >= 38
272 Requires: systemd-units >= 38
273 Obsoletes: qemu-kvm-user
276 QEMU is a generic and open source processor emulator which achieves a
277 good emulation speed by using dynamic translation.
279 This package provides the user mode emulation of QEMU targets.
281 %description user -l pl.UTF-8
282 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
283 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
285 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
287 %package system-aarch64
288 Summary: QEMU system emulator for AArch64
289 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
290 Group: Development/Tools
291 Requires: %{name}-common = %{version}-%{release}
293 Obsoletes: qemu-kvm-system-aarch64
295 %description system-aarch64
296 QEMU is a generic and open source processor emulator which achieves a
297 good emulation speed by using dynamic translation.
299 This package provides the system emulator with AArch64 CPU.
301 %description system-aarch64 -l pl.UTF-8
302 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
303 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
305 Ten pakiet zawiera emulator systemu z procesorem AArch64.
307 %package system-alpha
308 Summary: QEMU system emulator for Alpha
309 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
310 Group: Development/Tools
311 Requires: %{name}-common = %{version}-%{release}
313 Obsoletes: qemu-kvm-system-alpha
315 %description system-alpha
316 QEMU is a generic and open source processor emulator which achieves a
317 good emulation speed by using dynamic translation.
319 This package provides the system emulator with Alpha CPU.
321 %description system-alpha -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.
325 Ten pakiet zawiera emulator systemu z procesorem Alpha.
328 Summary: QEMU system emulator for ARM
329 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
330 Group: Development/Tools
331 Requires: %{name}-common = %{version}-%{release}
333 Obsoletes: qemu-kvm-system-arm
335 %description system-arm
336 QEMU is a generic and open source processor emulator which achieves a
337 good emulation speed by using dynamic translation.
339 This package provides the system emulator for ARM.
341 %description system-arm -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.
345 Ten pakiet zawiera emulator systemu z procesorem ARM.
348 Summary: QEMU system emulator for CRIS
349 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
350 Group: Development/Tools
351 Requires: %{name}-common = %{version}-%{release}
353 Obsoletes: qemu-kvm-system-cris
355 %description system-cris
356 QEMU is a generic and open source processor emulator which achieves a
357 good emulation speed by using dynamic translation.
359 This package provides the system emulator with CRIS CPU.
361 %description system-cris -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.
365 Ten pakiet zawiera emulator systemu z procesorem CRIS.
368 Summary: QEMU system emulator for LM32
369 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
370 Group: Development/Tools
371 Requires: %{name}-common = %{version}-%{release}
373 Obsoletes: qemu-kvm-system-lm32
375 %description system-lm32
376 QEMU is a generic and open source processor emulator which achieves a
377 good emulation speed by using dynamic translation.
379 This package provides the system emulator with LM32 CPU.
381 %description system-lm32 -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.
385 Ten pakiet zawiera emulator systemu z procesorem LM32.
388 Summary: QEMU system emulator for m68k
389 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
390 Group: Development/Tools
391 Requires: %{name}-common = %{version}-%{release}
393 Obsoletes: qemu-kvm-system-m68k
395 %description system-m68k
396 QEMU is a generic and open source processor emulator which achieves a
397 good emulation speed by using dynamic translation.
399 This package provides the system emulator with m68k CPU.
401 %description system-m68k -l pl.UTF-8
402 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
403 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
405 Ten pakiet zawiera emulator systemu z procesorem m68k.
407 %package system-microblaze
408 Summary: QEMU system emulator for MicroBlaze
409 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
410 Group: Development/Tools
411 Requires: %{name}-common = %{version}-%{release}
413 Obsoletes: qemu-kvm-system-microblaze
415 %description system-microblaze
416 QEMU is a generic and open source processor emulator which achieves a
417 good emulation speed by using dynamic translation.
419 This package provides the system emulator with MicroBlaze CPU.
421 %description system-microblaze -l pl.UTF-8
422 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
423 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
425 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
428 Summary: QEMU system emulator for MIPS
429 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
430 Group: Development/Tools
431 Requires: %{name}-common = %{version}-%{release}
433 Obsoletes: qemu-kvm-system-mips
435 %description system-mips
436 QEMU is a generic and open source processor emulator which achieves a
437 good emulation speed by using dynamic translation.
439 This package provides the system emulator with MIPS CPU.
441 %description system-mips -l pl.UTF-8
442 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
443 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
445 Ten pakiet zawiera emulator systemu z procesorem MIPS.
447 %package system-moxie
448 Summary: QEMU system emulator for Moxie
449 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
450 Group: Development/Tools
451 Requires: %{name}-common = %{version}-%{release}
454 %description system-moxie
455 QEMU is a generic and open source processor emulator which achieves a
456 good emulation speed by using dynamic translation.
458 This package provides the system emulator with Moxie CPU.
460 %description system-moxie -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.
464 Ten pakiet zawiera emulator systemu z procesorem Moxie.
467 Summary: QEMU system emulator for OpenRISC
468 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
469 Group: Development/Tools
470 Requires: %{name}-common = %{version}-%{release}
472 Obsoletes: qemu-kvm-system-or32
474 %description system-or32
475 QEMU is a generic and open source processor emulator which achieves a
476 good emulation speed by using dynamic translation.
478 This package provides the system emulator with OpenRISC CPU.
480 %description system-or32 -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.
484 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
487 Summary: QEMU system emulator for PowerPC
488 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
489 Group: Development/Tools
490 Requires: %{name}-common = %{version}-%{release}
492 Obsoletes: qemu-kvm-system-ppc
494 %description system-ppc
495 QEMU is a generic and open source processor emulator which achieves a
496 good emulation speed by using dynamic translation.
498 This package provides the system emulator with PowerPC CPU.
500 %description system-ppc -l pl.UTF-8
501 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
502 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
504 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
506 %package system-s390x
507 Summary: QEMU system emulator for S390
508 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
509 Group: Development/Tools
510 Requires: %{name}-common = %{version}-%{release}
512 Obsoletes: qemu-kvm-system-s390x
514 %description system-s390x
515 QEMU is a generic and open source processor emulator which achieves a
516 good emulation speed by using dynamic translation.
518 This package provides the system emulator with S390 CPU.
520 %description system-s390x -l pl.UTF-8
521 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
522 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
524 Ten pakiet zawiera emulator systemu z procesorem S390.
527 Summary: QEMU system emulator for SH4
528 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
529 Group: Development/Tools
530 Requires: %{name}-common = %{version}-%{release}
532 Obsoletes: qemu-kvm-system-sh4
534 %description system-sh4
535 QEMU is a generic and open source processor emulator which achieves a
536 good emulation speed by using dynamic translation.
538 This package provides the system emulator with SH4 CPU.
540 %description system-sh4 -l pl.UTF-8
541 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
542 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
544 Ten pakiet zawiera emulator systemu z procesorem SH4.
546 %package system-sparc
547 Summary: QEMU system emulator for SPARC
548 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
549 Group: Development/Tools
550 Requires: %{name}-common = %{version}-%{release}
552 Obsoletes: qemu-kvm-system-sparc
554 %description system-sparc
555 QEMU is a generic and open source processor emulator which achieves a
556 good emulation speed by using dynamic translation.
558 This package provides the system emulator with SPARC/SPARC64 CPU.
560 %description system-sparc -l pl.UTF-8
561 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
562 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
564 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
566 %package system-tricore
567 Summary: QEMU system emulator for TriCore
568 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
569 Group: Development/Tools
570 Requires: %{name}-common = %{version}-%{release}
573 %description system-tricore
574 QEMU is a generic and open source processor emulator which achieves a
575 good emulation speed by using dynamic translation.
577 This package provides the system emulator with TriCore CPU.
579 %description system-sparc -l pl.UTF-8
580 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
581 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
583 Ten pakiet zawiera emulator systemu z procesorem TriCore.
585 %package system-unicore32
586 Summary: QEMU system emulator for UniCore32
587 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
588 Group: Development/Tools
589 Requires: %{name}-common = %{version}-%{release}
591 Obsoletes: qemu-kvm-system-unicore32
593 %description system-unicore32
594 QEMU is a generic and open source processor emulator which achieves a
595 good emulation speed by using dynamic translation.
597 This package provides the system emulator with UniCore32 CPU.
599 %description system-unicore32 -l pl.UTF-8
600 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
601 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
603 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
606 Summary: QEMU system emulator for x86
607 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
608 Group: Development/Tools
609 Requires: %{name}-common = %{version}-%{release}
610 %{?with_system_seabios:Requires: seabios}
613 Obsoletes: qemu-kvm-system-x86
615 %description system-x86
616 QEMU is a generic and open source processor emulator which achieves a
617 good emulation speed by using dynamic translation.
619 %description system-x86 -l pl.UTF-8
620 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
621 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
623 %package system-xtensa
624 Summary: QEMU system emulator for Xtensa
625 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
626 Group: Development/Tools
627 Requires: %{name}-common = %{version}-%{release}
629 Obsoletes: qemu-kvm-system-xtensa
631 %description system-xtensa
632 QEMU is a generic and open source processor emulator which achieves a
633 good emulation speed by using dynamic translation.
635 This package provides the system emulator with Xtensa CPU.
637 %description system-xtensa -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.
641 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
644 Summary: QEMU guest agent
645 Summary(pl.UTF-8): Agent gościa QEMU
647 Requires(post,preun,postun): systemd-units >= 38
648 Requires: glib2 >= 1:2.22
649 Requires: systemd-units >= 38
650 Obsoletes: qemu-kvm-guest-agent
652 %description guest-agent
653 QEMU is a generic and open source processor emulator which achieves a
654 good emulation speed by using dynamic translation.
656 This package provides an agent to run inside guests, which
657 communicates with the host over a virtio-serial channel named
658 "org.qemu.guest_agent.0".
660 This package does not need to be installed on the host OS.
662 %description guest-agent -l pl.UTF-8
663 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
664 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
666 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
667 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
668 "org.qemu.guest_agent.0".
670 Ten pakiet nie musi być zainstalowany w systemie hosta.
672 %package module-block-archipelago
673 Summary: QEMU module for Archipelago block devices
674 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych Archipelago
675 Group: Development/Tools
676 Requires: %{name}-common = %{version}-%{release}
678 %description module-block-archipelago
679 Archipelago block device support for QEMU.
681 %description module-block-archipelago -l pl.UTF-8
682 Moduł QEMU dla urządeń blokowych Archipelago.
684 %package module-block-curl
685 Summary: QEMU module for 'curl' block devices
686 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
687 Group: Development/Tools
688 Requires: %{name}-common = %{version}-%{release}
690 %description module-block-curl
691 'curl' block device support for QEMU.
693 %description module-block-curl -l pl.UTF-8
694 Moduł QEMU dla urządeń blokowych typu 'curl'.
696 %package module-block-gluster
697 Summary: QEMU module for 'gluster' block devices
698 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
699 Group: Development/Tools
700 Requires: %{name}-common = %{version}-%{release}
701 Requires: glusterfs-libs >= 3.4
703 %description module-block-gluster
704 'gluster' block device support for QEMU.
706 %description module-block-gluster -l pl.UTF-8
707 Moduł QEMU dla urządeń blokowych typu 'gluster'.
709 %package module-block-iscsi
710 Summary: QEMU module for 'iscsi' block devices
711 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
712 Group: Development/Tools
713 Requires: %{name}-common = %{version}-%{release}
714 Requires: libiscsi >= 1.9.0
716 %description module-block-iscsi
717 'iscsi' block device support for QEMU.
719 %description module-block-iscsi -l pl.UTF-8
720 Moduł QEMU dla urządeń blokowych typu 'iscsi'.
722 %package module-block-rbd
723 Summary: QEMU module for 'rbd' block devices
724 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
725 Group: Development/Tools
726 Requires: %{name}-common = %{version}-%{release}
728 %description module-block-rbd
729 'rbd' block device support for QEMU.
731 %description module-block-rbd -l pl.UTF-8
732 Moduł QEMU dla urządeń blokowych typu 'rbd'.
734 %package module-block-ssh
735 Summary: QEMU module for 'ssh' block devices
736 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
737 Group: Development/Tools
738 Requires: %{name}-common = %{version}-%{release}
740 %description module-block-ssh
741 'ssh' block device support for QEMU.
743 %description module-block-ssh -l pl.UTF-8
744 Moduł QEMU dla urządeń blokowych typu 'ssh'.
757 # workaround for conflict with alsa/error.h
758 ln -s ../error.h qapi/error.h
762 --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
763 --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
764 --prefix=%{_prefix} \
765 --libdir=%{_libdir} \
766 --libexecdir=%{_libexecdir} \
767 --sysconfdir=%{_sysconfdir} \
769 --host-cc="%{__cc}" \
771 %{__enable_disable xseg archipelago} \
773 %{__enable_disable bluetooth bluez} \
774 %{__enable_disable brlapi} \
780 %{__enable_disable glusterfs} \
781 %{__enable_disable iscsi libiscsi} \
782 %{__enable_disable ceph rbd} \
783 %{__enable_disable rdma} \
784 %{__enable_disable sdl} \
786 %{__enable_disable seccomp} \
787 %{__enable_disable spice} \
788 %{__enable_disable smartcard smartcard} \
790 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
791 %{__enable_disable usbredir usb-redir} \
798 %{!?with_vte:--disable-vte} \
800 %{__enable_disable xen} \
803 %{__enable_disable libnfs} \
805 %{__enable_disable snappy} \
806 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
807 --interp-prefix=%{_libdir}/qemu/lib-%%M \
808 %if %{without gtk2} && %{without gtk3}
811 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
816 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
818 # rebuild patched vesa tables with additional widescreen modes.
819 %{__make} -C roms/vgabios stdvga-bios
821 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
824 rm -rf $RPM_BUILD_ROOT
825 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
826 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
827 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
830 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
831 DESTDIR=$RPM_BUILD_ROOT
833 install -d $RPM_BUILD_ROOT%{_sysconfdir}
834 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
839 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
841 %ifarch %{ix86} %{x8664} x32
842 install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
843 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
844 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
847 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
848 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
849 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
851 install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
852 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
853 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
855 # For the qemu-guest-agent subpackage install the systemd
856 # service and udev rules.
857 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
858 install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
861 %ifnarch %{ix86} %{x8664} x32
870 %ifnarch sparc sparc64
877 test $i = dummy && continue
878 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i.conf
882 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
883 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
885 # install patched vesa tables with additional widescreen modes.
886 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
888 %if %{with system_seabios}
889 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
890 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
891 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
893 if [ -e "/usr/share/seabios/$bn" ] ; then
894 ln -sf "/usr/share/seabios/$bn" "$f"
899 %if %{with gtk2} || %{with gtk3}
900 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
901 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
908 rm -rf $RPM_BUILD_ROOT
912 %groupadd -g 276 qemu
913 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
916 %systemd_post ksm.service
917 %systemd_post ksmtuned.service
920 %systemd_preun ksm.service
921 %systemd_preun ksmtuned.service
924 if [ "$1" = "0" ]; then
931 %triggerpostun common -- qemu-common < 1.6.1-4
932 %systemd_trigger ksm.service
933 %systemd_trigger ksmtuned.service
936 %systemd_service_restart systemd-binfmt.service
939 %systemd_service_restart systemd-binfmt.service
945 %systemd_preun qemu-guest-agent.service
951 %defattr(644,root,root,755)
953 %files common -f %{name}.lang
954 %defattr(644,root,root,755)
955 %doc LICENSE README qemu-doc.html qemu-tech.html qmp-commands.txt
956 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
957 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
958 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
959 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
960 %{systemdunitdir}/ksm.service
961 %{systemdunitdir}/ksmtuned.service
962 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
963 %attr(755,root,root) %{_bindir}/qemu-nbd
964 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
965 %attr(755,root,root) %{_sbindir}/ksmctl
966 %attr(755,root,root) %{_sbindir}/ksmtuned
967 %{_mandir}/man1/qemu.1*
968 %{_mandir}/man1/virtfs-proxy-helper.1*
969 %{_mandir}/man8/qemu-nbd.8*
971 %dir %{_datadir}/qemu
972 %{_datadir}/%{name}/keymaps
973 %{_datadir}/%{name}/qemu-icon.bmp
974 %{_datadir}/%{name}/trace-events
976 # various bios images
977 # all should be probably moved to the right system subpackage
978 %{_datadir}/%{name}/QEMU,cgthree.bin
979 %{_datadir}/%{name}/QEMU,tcx.bin
980 %{_datadir}/%{name}/bamboo.dtb
981 %{_datadir}/%{name}/efi-e1000.rom
982 %{_datadir}/%{name}/efi-eepro100.rom
983 %{_datadir}/%{name}/efi-ne2k_pci.rom
984 %{_datadir}/%{name}/efi-pcnet.rom
985 %{_datadir}/%{name}/efi-rtl8139.rom
986 %{_datadir}/%{name}/efi-virtio.rom
987 %{_datadir}/%{name}/kvmvapic.bin
988 %{_datadir}/%{name}/linuxboot.bin
989 %{_datadir}/%{name}/multiboot.bin
990 %{_datadir}/%{name}/openbios-ppc
991 %{_datadir}/%{name}/openbios-sparc*
992 %{_datadir}/%{name}/palcode-clipper
993 %{_datadir}/%{name}/petalogix-ml605.dtb
994 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
995 %{_datadir}/%{name}/ppc_rom.bin
996 %{_datadir}/%{name}/pxe-e1000.rom
997 %{_datadir}/%{name}/pxe-eepro100.rom
998 %{_datadir}/%{name}/pxe-ne2k_pci.rom
999 %{_datadir}/%{name}/pxe-pcnet.rom
1000 %{_datadir}/%{name}/pxe-rtl8139.rom
1001 %{_datadir}/%{name}/pxe-virtio.rom
1002 %{_datadir}/%{name}/qemu_logo_no_text.svg
1003 %{_datadir}/%{name}/s390-ccw.img
1004 %{_datadir}/%{name}/s390-zipl.rom
1005 %{_datadir}/%{name}/sgabios.bin
1006 %{_datadir}/%{name}/slof.bin
1007 %{_datadir}/%{name}/spapr-rtas.bin
1008 %{_datadir}/%{name}/vgabios-cirrus.bin
1009 %{_datadir}/%{name}/vgabios-qxl.bin
1010 %{_datadir}/%{name}/vgabios-stdvga.bin
1011 %{_datadir}/%{name}/vgabios-virtio.bin
1012 %{_datadir}/%{name}/vgabios-vmware.bin
1013 %{_datadir}/%{name}/vgabios.bin
1015 %dir %{_libdir}/%{name}
1017 # modules without too many external dependencies
1018 %attr(755,root,root) %{_libdir}/%{name}/block-dmg.so
1021 %defattr(644,root,root,755)
1022 %attr(755,root,root) %{_bindir}/qemu-img
1023 %{_mandir}/man1/qemu-img.1*
1026 %defattr(644,root,root,755)
1027 /usr/lib/binfmt.d/qemu-*.conf
1028 %attr(755,root,root) %{_bindir}/qemu-aarch64
1029 %attr(755,root,root) %{_bindir}/qemu-alpha
1030 %attr(755,root,root) %{_bindir}/qemu-arm
1031 %attr(755,root,root) %{_bindir}/qemu-armeb
1032 %attr(755,root,root) %{_bindir}/qemu-cris
1033 %attr(755,root,root) %{_bindir}/qemu-i386
1034 %attr(755,root,root) %{_bindir}/qemu-io
1035 %attr(755,root,root) %{_bindir}/qemu-m68k
1036 %attr(755,root,root) %{_bindir}/qemu-microblaze
1037 %attr(755,root,root) %{_bindir}/qemu-microblazeel
1038 %attr(755,root,root) %{_bindir}/qemu-mips
1039 %attr(755,root,root) %{_bindir}/qemu-mipsel
1040 %attr(755,root,root) %{_bindir}/qemu-mips64
1041 %attr(755,root,root) %{_bindir}/qemu-mips64el
1042 %attr(755,root,root) %{_bindir}/qemu-mipsn32
1043 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
1044 %attr(755,root,root) %{_bindir}/qemu-or32
1045 %attr(755,root,root) %{_bindir}/qemu-ppc
1046 %attr(755,root,root) %{_bindir}/qemu-ppc64
1047 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
1048 %attr(755,root,root) %{_bindir}/qemu-ppc64le
1049 %attr(755,root,root) %{_bindir}/qemu-s390x
1050 %attr(755,root,root) %{_bindir}/qemu-sh4
1051 %attr(755,root,root) %{_bindir}/qemu-sh4eb
1052 %attr(755,root,root) %{_bindir}/qemu-sparc
1053 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
1054 %attr(755,root,root) %{_bindir}/qemu-sparc64
1055 %attr(755,root,root) %{_bindir}/qemu-unicore32
1056 %attr(755,root,root) %{_bindir}/qemu-x86_64
1058 %files system-aarch64
1059 %defattr(644,root,root,755)
1060 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1063 %defattr(644,root,root,755)
1064 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1067 %defattr(644,root,root,755)
1068 %attr(755,root,root) %{_bindir}/qemu-system-arm
1071 %defattr(644,root,root,755)
1072 %attr(755,root,root) %{_bindir}/qemu-system-cris
1075 %defattr(644,root,root,755)
1076 %attr(755,root,root) %{_bindir}/qemu-system-lm32
1079 %defattr(644,root,root,755)
1080 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1082 %files system-microblaze
1083 %defattr(644,root,root,755)
1084 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1085 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1088 %defattr(644,root,root,755)
1089 %attr(755,root,root) %{_bindir}/qemu-system-mips
1090 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1091 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1092 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1095 %defattr(644,root,root,755)
1096 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1099 %defattr(644,root,root,755)
1100 %attr(755,root,root) %{_bindir}/qemu-system-or32
1103 %defattr(644,root,root,755)
1104 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1105 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1106 #%attr(755,root,root) %{_bindir}/qemu-system-ppc64le
1107 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
1108 %{_datadir}/%{name}/u-boot.e500
1111 %defattr(644,root,root,755)
1112 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1115 %defattr(644,root,root,755)
1116 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1117 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1120 %defattr(644,root,root,755)
1121 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1122 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1124 %files system-tricore
1125 %defattr(644,root,root,755)
1126 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1128 %files system-unicore32
1129 %defattr(644,root,root,755)
1130 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1133 %defattr(644,root,root,755)
1134 %attr(755,root,root) %{_bindir}/qemu-system-i386
1135 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1136 %ifarch %{ix86} %{x8664} x32
1137 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1138 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
1139 %attr(755,root,root) %{_bindir}/kvm_stat
1141 %{_datadir}/%{name}/bios.bin
1142 %{_datadir}/%{name}/bios-256k.bin
1143 %{_datadir}/%{name}/acpi-dsdt.aml
1144 %{_datadir}/%{name}/q35-acpi-dsdt.aml
1146 %files system-xtensa
1147 %defattr(644,root,root,755)
1148 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1149 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1152 %defattr(644,root,root,755)
1153 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
1154 %{systemdunitdir}/qemu-guest-agent.service
1155 %attr(755,root,root) %{_bindir}/qemu-ga
1158 %files module-block-archipelago
1159 %defattr(644,root,root,755)
1160 %attr(755,root,root) %{_libdir}/%{name}/block-archipelago.so
1163 %files module-block-curl
1164 %defattr(644,root,root,755)
1165 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1167 %if %{with glusterfs}
1168 %files module-block-gluster
1169 %defattr(644,root,root,755)
1170 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1174 %files module-block-iscsi
1175 %defattr(644,root,root,755)
1176 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1180 %files module-block-rbd
1181 %defattr(644,root,root,755)
1182 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1185 %files module-block-ssh
1186 %defattr(644,root,root,755)
1187 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so