3 %bcond_without sdl # SDL UI and audio support
4 %bcond_without gl # Don't require gl deps
5 %bcond_without ceph # Ceph/RBD support
6 %bcond_without glusterfs # GlusterFS backend
7 %bcond_without rdma # RDMA-based migration support
8 %bcond_with xseg # Archipelago backend [non-distributable: GPLv3+ vs GPLv2-only]
9 %bcond_with gtk2 # GTK+ 2.x instead of 3.x
10 %bcond_without gtk3 # Do not build GTK+ UI
11 %bcond_without vte # VTE support in GTK+ UI
12 %bcond_without spice # SPICE support
13 %bcond_with esd # EsounD audio support
14 %bcond_without oss # OSS audio support
15 %bcond_without pulseaudio # PulseAudio audio support
16 %bcond_without xen # Xen backend driver support
17 %bcond_without bluetooth # bluetooth support
18 %bcond_without brlapi # brlapi support
19 %bcond_without smartcard # smartcard-nss support
20 %bcond_without iscsi # iscsi support
21 %bcond_without libnfs # NFS support
22 %bcond_without seccomp # seccomp support
23 %bcond_without usbredir # usb network redirection support
24 %bcond_without system_seabios # system seabios binary
25 %bcond_without snappy # snappy compression library
26 %bcond_with lttng # lttng-ust trace backend support
27 %bcond_with systemtap # SystemTap/dtrace trace backend support
37 Summary: QEMU CPU Emulator
38 Summary(pl.UTF-8): QEMU - emulator procesora
43 Group: Applications/Emulators
44 Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.bz2
45 # Source0-md5: ca3f70b43f093e33e9e014f144067f13
46 Source2: %{name}.binfmt
47 # Loads kvm kernel modules at boot
48 Source3: kvm-modules-load.conf
53 Source6: ksm.sysconfig
55 Source8: ksmtuned.service
57 Source10: ksmtuned.conf
58 Source11: %{name}-guest-agent.service
59 Source12: 99-%{name}-guest-agent.rules
60 Patch0: %{name}-cflags.patch
61 Patch1: vgabios-widescreens.patch
62 Patch2: %{name}-whitelist.patch
64 Patch4: %{name}-xattr.patch
65 Patch5: libjpeg-boolean.patch
67 Patch7: %{name}-sh.patch
68 URL: http://www.qemu-project.org/
69 %{?with_gl:BuildRequires: OpenGL-devel}
70 %{?with_gl:BuildRequires: OpenGL-GLX-devel}
71 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
72 BuildRequires: alsa-lib-devel
73 BuildRequires: bcc >= 0.16.21-2
74 %{?with_bluetooth:BuildRequires: bluez-libs-devel}
75 %{?with_brlapi:BuildRequires: brlapi-devel}
76 BuildRequires: bzip2-devel
77 %{?with_ceph:BuildRequires: ceph-devel}
78 BuildRequires: curl-devel
79 BuildRequires: cyrus-sasl-devel >= 2
80 %{?with_esd:BuildRequires: esound-devel}
81 BuildRequires: glib2-devel >= 1:2.22
82 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
83 BuildRequires: gnutls-devel > 2.10.0
84 BuildRequires: libaio-devel
85 %{?with_smartcard:BuildRequires: libcacard-devel}
86 BuildRequires: libcap-devel
87 BuildRequires: libcap-ng-devel
88 %{?with_gl:BuildRequires: libepoxy-devel}
89 BuildRequires: libfdt-devel
90 %{?with_rdma:BuildRequires: libibverbs-devel}
91 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
92 BuildRequires: libjpeg-devel
93 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
94 BuildRequires: libpng-devel
95 %{?with_rdma:BuildRequires: librdmacm-devel}
96 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.1.1}
97 BuildRequires: libssh2-devel >= 1.2.8
98 BuildRequires: libusb-devel >= 1.0.13
99 BuildRequires: libuuid-devel
100 %{?with_xseg:BuildRequires: libxseg-devel}
101 %{?with_lttng:BuildRequires: lttng-ust-devel}
102 BuildRequires: lzo-devel >= 2
103 BuildRequires: ncurses-devel
104 %{?with_smartcard:BuildRequires: nss-devel >= 1:3.12.8}
105 BuildRequires: numactl-devel
106 BuildRequires: perl-Encode
107 BuildRequires: perl-tools-pod
108 BuildRequires: pixman-devel >= 0.21.8
109 BuildRequires: pkgconfig
110 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
111 BuildRequires: rpmbuild(macros) >= 1.644
112 %{?with_system_seabios:BuildRequires: seabios}
113 BuildRequires: sed >= 4.0
114 %{?with_snappy:BuildRequires: snappy-devel}
116 BuildRequires: spice-protocol >= 0.12.3
117 BuildRequires: spice-server-devel >= 0.12.0
119 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
120 BuildRequires: texi2html
121 BuildRequires: texinfo
122 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
123 %{?with_lttng:BuildRequires: userspace-rcu-devel}
124 BuildRequires: vde2-devel
126 %{?with_xen:BuildRequires: xen-devel >= 3.4}
127 BuildRequires: xfsprogs-devel
128 BuildRequires: xorg-lib-libX11-devel
129 BuildRequires: zlib-devel
131 BuildRequires: gtk+2-devel >= 2:2.18.0
132 %{?with_vte:BuildRequires: vte0-devel >= 0.24.0}
135 BuildRequires: gtk+3-devel >= 3.0.0
136 %{?with_vte:BuildRequires: vte2.90-devel >= 0.32.0}
138 Requires: %{name}-img = %{version}-%{release}
139 Requires: %{name}-system-aarch64 = %{version}-%{release}
140 Requires: %{name}-system-alpha = %{version}-%{release}
141 Requires: %{name}-system-arm = %{version}-%{release}
142 Requires: %{name}-system-cris = %{version}-%{release}
143 Requires: %{name}-system-lm32 = %{version}-%{release}
144 Requires: %{name}-system-m68k = %{version}-%{release}
145 Requires: %{name}-system-microblaze = %{version}-%{release}
146 Requires: %{name}-system-mips = %{version}-%{release}
147 Requires: %{name}-system-moxie = %{version}-%{release}
148 Requires: %{name}-system-or32 = %{version}-%{release}
149 Requires: %{name}-system-ppc = %{version}-%{release}
150 Requires: %{name}-system-s390x = %{version}-%{release}
151 Requires: %{name}-system-sh4 = %{version}-%{release}
152 Requires: %{name}-system-sparc = %{version}-%{release}
153 Requires: %{name}-system-tricore = %{version}-%{release}
154 Requires: %{name}-system-unicore32 = %{version}-%{release}
155 Requires: %{name}-system-x86 = %{version}-%{release}
156 Requires: %{name}-system-xtensa = %{version}-%{release}
157 Requires: %{name}-user = %{version}-%{release}
159 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
161 %define systempkg_req \
165 %if %{with seccomp} \
166 Requires: libseccomp >= 2.1.0 \
168 Requires: libusb >= 1.0.13 \
169 Requires: pixman >= 0.21.8 \
170 %if %{with usbredir} \
171 Requires: usbredir >= 0.6 \
174 Requires: gtk+2 >= 2:2.18.0 \
175 %{?with_vte:Requires: vte0 >= 0.24.0} \
178 Requires: gtk+3 >= 3.0.0 \
179 %{?with_vte:Requires: vte2.90 >= 0.32.0} \
182 # don't strip/chrpath anything in there; these are boot images, roms etc
183 %define _noautostrip .*%{_datadir}/qemu/.*
184 %define _noautochrpath .*%{_datadir}/qemu/.*
187 QEMU is a FAST! processor emulator. By using dynamic translation it
188 achieves a reasonnable speed while being easy to port on new host
189 CPUs. QEMU has two operating modes:
191 - User mode emulation. In this mode, QEMU can launch Linux processes
192 compiled for one CPU on another CPU. Linux system calls are converted
193 because of endianness and 32/64 bit mismatches. Wine (Windows
194 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
196 - Full system emulation. In this mode, QEMU emulates a full system,
197 including a processor and various peripherials. It can also be used to
198 provide virtual hosting of several virtual PC on a single server.
200 %description -l pl.UTF-8
201 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
202 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
203 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
205 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
206 procesy linuksowe skompilowane dla jednego procesora na innym
207 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
208 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
209 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
212 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
213 włączając w to procesor i różne urządzenia peryferyjne. Może być także
214 używane do wirtualnego hostowania kilku wirtualnych pecetów na
215 pojedynczym serwerze.
218 Summary: QEMU common files needed by all QEMU targets
219 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
220 Group: Development/Tools
221 Requires(post,preun,postun): systemd-units >= 38
222 Requires(postun): /usr/sbin/groupdel
223 Requires(postun): /usr/sbin/userdel
224 Requires(pre): /bin/id
225 Requires(pre): /usr/bin/getgid
226 Requires(pre): /usr/sbin/groupadd
227 Requires(pre): /usr/sbin/useradd
228 Requires: glib2 >= 1:2.22
229 %{?with_libnfs:Requires: libnfs >= 1.9.3}
230 Requires: libssh2 >= 1.2.8
231 Requires: systemd-units >= 38
232 Provides: group(qemu)
234 Obsoletes: qemu-kvm-common
235 Conflicts: qemu < 1.0-2
238 QEMU is a generic and open source processor emulator which achieves a
239 good emulation speed by using dynamic translation.
241 This package provides the common files needed by all QEMU targets.
243 %description common -l pl.UTF-8
244 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
245 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
247 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
251 Summary: QEMU command line tool for manipulating disk images
252 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
253 Group: Development/Tools
254 Obsoletes: qemu-kvm-img
255 Conflicts: qemu < 1.0-2
258 This package provides a command line tool for manipulating disk
261 %description img -l pl.UTF-8
262 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
266 Summary: QEMU user mode emulation of qemu targets
267 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
268 Group: Development/Tools
269 Requires: %{name}-common = %{version}-%{release}
270 Requires(post,postun): systemd-units >= 38
271 Requires: systemd-units >= 38
272 Obsoletes: qemu-kvm-user
275 QEMU is a generic and open source processor emulator which achieves a
276 good emulation speed by using dynamic translation.
278 This package provides the user mode emulation of QEMU targets.
280 %description user -l pl.UTF-8
281 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
282 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
284 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
286 %package system-aarch64
287 Summary: QEMU system emulator for AArch64
288 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
289 Group: Development/Tools
290 Requires: %{name}-common = %{version}-%{release}
292 Obsoletes: qemu-kvm-system-aarch64
294 %description system-aarch64
295 QEMU is a generic and open source processor emulator which achieves a
296 good emulation speed by using dynamic translation.
298 This package provides the system emulator with AArch64 CPU.
300 %description system-aarch64 -l pl.UTF-8
301 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
302 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
304 Ten pakiet zawiera emulator systemu z procesorem AArch64.
306 %package system-alpha
307 Summary: QEMU system emulator for Alpha
308 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
309 Group: Development/Tools
310 Requires: %{name}-common = %{version}-%{release}
312 Obsoletes: qemu-kvm-system-alpha
314 %description system-alpha
315 QEMU is a generic and open source processor emulator which achieves a
316 good emulation speed by using dynamic translation.
318 This package provides the system emulator with Alpha CPU.
320 %description system-alpha -l pl.UTF-8
321 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
322 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
324 Ten pakiet zawiera emulator systemu z procesorem Alpha.
327 Summary: QEMU system emulator for ARM
328 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
329 Group: Development/Tools
330 Requires: %{name}-common = %{version}-%{release}
332 Obsoletes: qemu-kvm-system-arm
334 %description system-arm
335 QEMU is a generic and open source processor emulator which achieves a
336 good emulation speed by using dynamic translation.
338 This package provides the system emulator for ARM.
340 %description system-arm -l pl.UTF-8
341 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
342 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
344 Ten pakiet zawiera emulator systemu z procesorem ARM.
347 Summary: QEMU system emulator for CRIS
348 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
349 Group: Development/Tools
350 Requires: %{name}-common = %{version}-%{release}
352 Obsoletes: qemu-kvm-system-cris
354 %description system-cris
355 QEMU is a generic and open source processor emulator which achieves a
356 good emulation speed by using dynamic translation.
358 This package provides the system emulator with CRIS CPU.
360 %description system-cris -l pl.UTF-8
361 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
362 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
364 Ten pakiet zawiera emulator systemu z procesorem CRIS.
367 Summary: QEMU system emulator for LM32
368 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
369 Group: Development/Tools
370 Requires: %{name}-common = %{version}-%{release}
372 Obsoletes: qemu-kvm-system-lm32
374 %description system-lm32
375 QEMU is a generic and open source processor emulator which achieves a
376 good emulation speed by using dynamic translation.
378 This package provides the system emulator with LM32 CPU.
380 %description system-lm32 -l pl.UTF-8
381 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
382 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
384 Ten pakiet zawiera emulator systemu z procesorem LM32.
387 Summary: QEMU system emulator for m68k
388 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
389 Group: Development/Tools
390 Requires: %{name}-common = %{version}-%{release}
392 Obsoletes: qemu-kvm-system-m68k
394 %description system-m68k
395 QEMU is a generic and open source processor emulator which achieves a
396 good emulation speed by using dynamic translation.
398 This package provides the system emulator with m68k CPU.
400 %description system-m68k -l pl.UTF-8
401 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
402 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
404 Ten pakiet zawiera emulator systemu z procesorem m68k.
406 %package system-microblaze
407 Summary: QEMU system emulator for MicroBlaze
408 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
409 Group: Development/Tools
410 Requires: %{name}-common = %{version}-%{release}
412 Obsoletes: qemu-kvm-system-microblaze
414 %description system-microblaze
415 QEMU is a generic and open source processor emulator which achieves a
416 good emulation speed by using dynamic translation.
418 This package provides the system emulator with MicroBlaze CPU.
420 %description system-microblaze -l pl.UTF-8
421 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
422 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
424 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
427 Summary: QEMU system emulator for MIPS
428 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
429 Group: Development/Tools
430 Requires: %{name}-common = %{version}-%{release}
432 Obsoletes: qemu-kvm-system-mips
434 %description system-mips
435 QEMU is a generic and open source processor emulator which achieves a
436 good emulation speed by using dynamic translation.
438 This package provides the system emulator with MIPS CPU.
440 %description system-mips -l pl.UTF-8
441 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
442 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
444 Ten pakiet zawiera emulator systemu z procesorem MIPS.
446 %package system-moxie
447 Summary: QEMU system emulator for Moxie
448 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
449 Group: Development/Tools
450 Requires: %{name}-common = %{version}-%{release}
453 %description system-moxie
454 QEMU is a generic and open source processor emulator which achieves a
455 good emulation speed by using dynamic translation.
457 This package provides the system emulator with Moxie CPU.
459 %description system-moxie -l pl.UTF-8
460 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
461 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
463 Ten pakiet zawiera emulator systemu z procesorem Moxie.
466 Summary: QEMU system emulator for OpenRISC
467 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
468 Group: Development/Tools
469 Requires: %{name}-common = %{version}-%{release}
471 Obsoletes: qemu-kvm-system-or32
473 %description system-or32
474 QEMU is a generic and open source processor emulator which achieves a
475 good emulation speed by using dynamic translation.
477 This package provides the system emulator with OpenRISC CPU.
479 %description system-or32 -l pl.UTF-8
480 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
481 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
483 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
486 Summary: QEMU system emulator for PowerPC
487 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
488 Group: Development/Tools
489 Requires: %{name}-common = %{version}-%{release}
491 Obsoletes: qemu-kvm-system-ppc
493 %description system-ppc
494 QEMU is a generic and open source processor emulator which achieves a
495 good emulation speed by using dynamic translation.
497 This package provides the system emulator with PowerPC CPU.
499 %description system-ppc -l pl.UTF-8
500 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
501 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
503 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
505 %package system-s390x
506 Summary: QEMU system emulator for S390
507 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
508 Group: Development/Tools
509 Requires: %{name}-common = %{version}-%{release}
511 Obsoletes: qemu-kvm-system-s390x
513 %description system-s390x
514 QEMU is a generic and open source processor emulator which achieves a
515 good emulation speed by using dynamic translation.
517 This package provides the system emulator with S390 CPU.
519 %description system-s390x -l pl.UTF-8
520 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
521 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
523 Ten pakiet zawiera emulator systemu z procesorem S390.
526 Summary: QEMU system emulator for SH4
527 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
528 Group: Development/Tools
529 Requires: %{name}-common = %{version}-%{release}
531 Obsoletes: qemu-kvm-system-sh4
533 %description system-sh4
534 QEMU is a generic and open source processor emulator which achieves a
535 good emulation speed by using dynamic translation.
537 This package provides the system emulator with SH4 CPU.
539 %description system-sh4 -l pl.UTF-8
540 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
541 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
543 Ten pakiet zawiera emulator systemu z procesorem SH4.
545 %package system-sparc
546 Summary: QEMU system emulator for SPARC
547 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
548 Group: Development/Tools
549 Requires: %{name}-common = %{version}-%{release}
551 Obsoletes: qemu-kvm-system-sparc
553 %description system-sparc
554 QEMU is a generic and open source processor emulator which achieves a
555 good emulation speed by using dynamic translation.
557 This package provides the system emulator with SPARC/SPARC64 CPU.
559 %description system-sparc -l pl.UTF-8
560 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
561 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
563 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
565 %package system-tricore
566 Summary: QEMU system emulator for TriCore
567 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
568 Group: Development/Tools
569 Requires: %{name}-common = %{version}-%{release}
572 %description system-tricore
573 QEMU is a generic and open source processor emulator which achieves a
574 good emulation speed by using dynamic translation.
576 This package provides the system emulator with TriCore CPU.
578 %description system-sparc -l pl.UTF-8
579 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
580 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
582 Ten pakiet zawiera emulator systemu z procesorem TriCore.
584 %package system-unicore32
585 Summary: QEMU system emulator for UniCore32
586 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
587 Group: Development/Tools
588 Requires: %{name}-common = %{version}-%{release}
590 Obsoletes: qemu-kvm-system-unicore32
592 %description system-unicore32
593 QEMU is a generic and open source processor emulator which achieves a
594 good emulation speed by using dynamic translation.
596 This package provides the system emulator with UniCore32 CPU.
598 %description system-unicore32 -l pl.UTF-8
599 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
600 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
602 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
605 Summary: QEMU system emulator for x86
606 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
607 Group: Development/Tools
608 Requires: %{name}-common = %{version}-%{release}
609 %{?with_system_seabios:Requires: seabios}
612 Obsoletes: qemu-kvm-system-x86
614 %description system-x86
615 QEMU is a generic and open source processor emulator which achieves a
616 good emulation speed by using dynamic translation.
618 %description system-x86 -l pl.UTF-8
619 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
620 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
622 %package system-xtensa
623 Summary: QEMU system emulator for Xtensa
624 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
625 Group: Development/Tools
626 Requires: %{name}-common = %{version}-%{release}
628 Obsoletes: qemu-kvm-system-xtensa
630 %description system-xtensa
631 QEMU is a generic and open source processor emulator which achieves a
632 good emulation speed by using dynamic translation.
634 This package provides the system emulator with Xtensa CPU.
636 %description system-xtensa -l pl.UTF-8
637 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
638 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
640 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
643 Summary: QEMU guest agent
644 Summary(pl.UTF-8): Agent gościa QEMU
646 Requires(post,preun,postun): systemd-units >= 38
647 Requires: glib2 >= 1:2.22
648 Requires: systemd-units >= 38
649 Obsoletes: qemu-kvm-guest-agent
651 %description guest-agent
652 QEMU is a generic and open source processor emulator which achieves a
653 good emulation speed by using dynamic translation.
655 This package provides an agent to run inside guests, which
656 communicates with the host over a virtio-serial channel named
657 "org.qemu.guest_agent.0".
659 This package does not need to be installed on the host OS.
661 %description guest-agent -l pl.UTF-8
662 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
663 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
665 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
666 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
667 "org.qemu.guest_agent.0".
669 Ten pakiet nie musi być zainstalowany w systemie hosta.
671 %package module-block-archipelago
672 Summary: QEMU module for Archipelago block devices
673 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych Archipelago
674 Group: Development/Tools
675 Requires: %{name}-common = %{version}-%{release}
677 %description module-block-archipelago
678 Archipelago block device support for QEMU.
680 %description module-block-archipelago -l pl.UTF-8
681 Moduł QEMU dla urządeń blokowych Archipelago.
683 %package module-block-curl
684 Summary: QEMU module for 'curl' block devices
685 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
686 Group: Development/Tools
687 Requires: %{name}-common = %{version}-%{release}
689 %description module-block-curl
690 'curl' block device support for QEMU.
692 %description module-block-curl -l pl.UTF-8
693 Moduł QEMU dla urządeń blokowych typu 'curl'.
695 %package module-block-gluster
696 Summary: QEMU module for 'gluster' block devices
697 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
698 Group: Development/Tools
699 Requires: %{name}-common = %{version}-%{release}
700 Requires: glusterfs-libs >= 3.4
702 %description module-block-gluster
703 'gluster' block device support for QEMU.
705 %description module-block-gluster -l pl.UTF-8
706 Moduł QEMU dla urządeń blokowych typu 'gluster'.
708 %package module-block-iscsi
709 Summary: QEMU module for 'iscsi' block devices
710 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
711 Group: Development/Tools
712 Requires: %{name}-common = %{version}-%{release}
713 Requires: libiscsi >= 1.9.0
715 %description module-block-iscsi
716 'iscsi' block device support for QEMU.
718 %description module-block-iscsi -l pl.UTF-8
719 Moduł QEMU dla urządeń blokowych typu 'iscsi'.
721 %package module-block-rbd
722 Summary: QEMU module for 'rbd' block devices
723 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
724 Group: Development/Tools
725 Requires: %{name}-common = %{version}-%{release}
727 %description module-block-rbd
728 'rbd' block device support for QEMU.
730 %description module-block-rbd -l pl.UTF-8
731 Moduł QEMU dla urządeń blokowych typu 'rbd'.
733 %package module-block-ssh
734 Summary: QEMU module for 'ssh' block devices
735 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
736 Group: Development/Tools
737 Requires: %{name}-common = %{version}-%{release}
739 %description module-block-ssh
740 'ssh' block device support for QEMU.
742 %description module-block-ssh -l pl.UTF-8
743 Moduł QEMU dla urządeń blokowych typu 'ssh'.
756 # workaround for conflict with alsa/error.h
757 ln -s ../error.h qapi/error.h
761 --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
762 --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
763 --prefix=%{_prefix} \
764 --libdir=%{_libdir} \
765 --libexecdir=%{_libexecdir} \
766 --sysconfdir=%{_sysconfdir} \
768 --host-cc="%{__cc}" \
770 %{__enable_disable xseg archipelago} \
772 %{__enable_disable bluetooth bluez} \
773 %{__enable_disable brlapi} \
779 %{__enable_disable glusterfs} \
780 %{__enable_disable iscsi libiscsi} \
781 %{__enable_disable ceph rbd} \
782 %{__enable_disable rdma} \
783 %{__enable_disable sdl} \
785 %{__enable_disable seccomp} \
786 %{__enable_disable spice} \
787 %{__enable_disable smartcard smartcard} \
789 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
790 %{__enable_disable usbredir usb-redir} \
797 %{!?with_vte:--disable-vte} \
799 %{__enable_disable xen} \
802 %{__enable_disable libnfs} \
804 %{__enable_disable snappy} \
805 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
806 --interp-prefix=%{_libdir}/qemu/lib-%%M \
807 %if %{without gtk2} && %{without gtk3}
810 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
815 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
817 # rebuild patched vesa tables with additional widescreen modes.
818 %{__make} -C roms/vgabios stdvga-bios
820 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
823 rm -rf $RPM_BUILD_ROOT
824 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
825 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
826 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
829 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
830 DESTDIR=$RPM_BUILD_ROOT
832 install -d $RPM_BUILD_ROOT%{_sysconfdir}
833 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
838 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
840 %ifarch %{ix86} %{x8664} x32
841 install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
842 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
843 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
846 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
847 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
848 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
850 install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
851 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
852 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
854 # For the qemu-guest-agent subpackage install the systemd
855 # service and udev rules.
856 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
857 install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
860 %ifnarch %{ix86} %{x8664} x32
869 %ifnarch sparc sparc64
876 test $i = dummy && continue
877 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i.conf
881 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
882 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
884 # install patched vesa tables with additional widescreen modes.
885 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
887 %if %{with system_seabios}
888 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
889 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
890 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
892 if [ -e "/usr/share/seabios/$bn" ] ; then
893 ln -sf "/usr/share/seabios/$bn" "$f"
898 %if %{with gtk2} || %{with gtk3}
899 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
900 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
907 rm -rf $RPM_BUILD_ROOT
911 %groupadd -g 276 qemu
912 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
915 %systemd_post ksm.service
916 %systemd_post ksmtuned.service
919 %systemd_preun ksm.service
920 %systemd_preun ksmtuned.service
923 if [ "$1" = "0" ]; then
930 %triggerpostun common -- qemu-common < 1.6.1-4
931 %systemd_trigger ksm.service
932 %systemd_trigger ksmtuned.service
935 %systemd_service_restart systemd-binfmt.service
938 %systemd_service_restart systemd-binfmt.service
944 %systemd_preun qemu-guest-agent.service
950 %defattr(644,root,root,755)
952 %files common -f %{name}.lang
953 %defattr(644,root,root,755)
954 %doc LICENSE README qemu-doc.html qemu-tech.html qmp-commands.txt
955 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
956 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
957 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
958 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
959 %{systemdunitdir}/ksm.service
960 %{systemdunitdir}/ksmtuned.service
961 %attr(755,root,root) %{_bindir}/ivshmem-client
962 %attr(755,root,root) %{_bindir}/ivshmem-server
963 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
964 %attr(755,root,root) %{_bindir}/qemu-nbd
965 %attr(755,root,root) %{_bindir}/qemu-tilegx
966 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
967 %attr(755,root,root) %{_sbindir}/ksmctl
968 %attr(755,root,root) %{_sbindir}/ksmtuned
969 %{_mandir}/man1/qemu.1*
970 %{_mandir}/man1/virtfs-proxy-helper.1*
971 %{_mandir}/man8/qemu-nbd.8*
973 %dir %{_datadir}/qemu
974 %{_datadir}/%{name}/keymaps
975 %{_datadir}/%{name}/qemu-icon.bmp
976 %{_datadir}/%{name}/trace-events
978 # various bios images
979 # all should be probably moved to the right system subpackage
980 %{_datadir}/%{name}/QEMU,cgthree.bin
981 %{_datadir}/%{name}/QEMU,tcx.bin
982 %{_datadir}/%{name}/bamboo.dtb
983 %{_datadir}/%{name}/efi-e1000.rom
984 %{_datadir}/%{name}/efi-eepro100.rom
985 %{_datadir}/%{name}/efi-ne2k_pci.rom
986 %{_datadir}/%{name}/efi-pcnet.rom
987 %{_datadir}/%{name}/efi-rtl8139.rom
988 %{_datadir}/%{name}/efi-virtio.rom
989 %{_datadir}/%{name}/kvmvapic.bin
990 %{_datadir}/%{name}/linuxboot.bin
991 %{_datadir}/%{name}/multiboot.bin
992 %{_datadir}/%{name}/openbios-ppc
993 %{_datadir}/%{name}/openbios-sparc*
994 %{_datadir}/%{name}/palcode-clipper
995 %{_datadir}/%{name}/petalogix-ml605.dtb
996 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
997 %{_datadir}/%{name}/ppc_rom.bin
998 %{_datadir}/%{name}/pxe-e1000.rom
999 %{_datadir}/%{name}/pxe-eepro100.rom
1000 %{_datadir}/%{name}/pxe-ne2k_pci.rom
1001 %{_datadir}/%{name}/pxe-pcnet.rom
1002 %{_datadir}/%{name}/pxe-rtl8139.rom
1003 %{_datadir}/%{name}/pxe-virtio.rom
1004 %{_datadir}/%{name}/qemu_logo_no_text.svg
1005 %{_datadir}/%{name}/s390-ccw.img
1006 %{_datadir}/%{name}/sgabios.bin
1007 %{_datadir}/%{name}/slof.bin
1008 %{_datadir}/%{name}/spapr-rtas.bin
1009 %{_datadir}/%{name}/vgabios-cirrus.bin
1010 %{_datadir}/%{name}/vgabios-qxl.bin
1011 %{_datadir}/%{name}/vgabios-stdvga.bin
1012 %{_datadir}/%{name}/vgabios-virtio.bin
1013 %{_datadir}/%{name}/vgabios-vmware.bin
1014 %{_datadir}/%{name}/vgabios.bin
1016 %dir %{_libdir}/%{name}
1018 # modules without too many external dependencies
1019 %attr(755,root,root) %{_libdir}/%{name}/block-dmg.so
1022 %defattr(644,root,root,755)
1023 %attr(755,root,root) %{_bindir}/qemu-img
1024 %{_mandir}/man1/qemu-img.1*
1027 %defattr(644,root,root,755)
1028 /usr/lib/binfmt.d/qemu-*.conf
1029 %attr(755,root,root) %{_bindir}/qemu-aarch64
1030 %attr(755,root,root) %{_bindir}/qemu-alpha
1031 %attr(755,root,root) %{_bindir}/qemu-arm
1032 %attr(755,root,root) %{_bindir}/qemu-armeb
1033 %attr(755,root,root) %{_bindir}/qemu-cris
1034 %attr(755,root,root) %{_bindir}/qemu-i386
1035 %attr(755,root,root) %{_bindir}/qemu-io
1036 %attr(755,root,root) %{_bindir}/qemu-m68k
1037 %attr(755,root,root) %{_bindir}/qemu-microblaze
1038 %attr(755,root,root) %{_bindir}/qemu-microblazeel
1039 %attr(755,root,root) %{_bindir}/qemu-mips
1040 %attr(755,root,root) %{_bindir}/qemu-mipsel
1041 %attr(755,root,root) %{_bindir}/qemu-mips64
1042 %attr(755,root,root) %{_bindir}/qemu-mips64el
1043 %attr(755,root,root) %{_bindir}/qemu-mipsn32
1044 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
1045 %attr(755,root,root) %{_bindir}/qemu-or32
1046 %attr(755,root,root) %{_bindir}/qemu-ppc
1047 %attr(755,root,root) %{_bindir}/qemu-ppc64
1048 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
1049 %attr(755,root,root) %{_bindir}/qemu-ppc64le
1050 %attr(755,root,root) %{_bindir}/qemu-s390x
1051 %attr(755,root,root) %{_bindir}/qemu-sh4
1052 %attr(755,root,root) %{_bindir}/qemu-sh4eb
1053 %attr(755,root,root) %{_bindir}/qemu-sparc
1054 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
1055 %attr(755,root,root) %{_bindir}/qemu-sparc64
1056 %attr(755,root,root) %{_bindir}/qemu-unicore32
1057 %attr(755,root,root) %{_bindir}/qemu-x86_64
1059 %files system-aarch64
1060 %defattr(644,root,root,755)
1061 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1064 %defattr(644,root,root,755)
1065 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1068 %defattr(644,root,root,755)
1069 %attr(755,root,root) %{_bindir}/qemu-system-arm
1072 %defattr(644,root,root,755)
1073 %attr(755,root,root) %{_bindir}/qemu-system-cris
1076 %defattr(644,root,root,755)
1077 %attr(755,root,root) %{_bindir}/qemu-system-lm32
1080 %defattr(644,root,root,755)
1081 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1083 %files system-microblaze
1084 %defattr(644,root,root,755)
1085 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1086 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1089 %defattr(644,root,root,755)
1090 %attr(755,root,root) %{_bindir}/qemu-system-mips
1091 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1092 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1093 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1096 %defattr(644,root,root,755)
1097 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1100 %defattr(644,root,root,755)
1101 %attr(755,root,root) %{_bindir}/qemu-system-or32
1104 %defattr(644,root,root,755)
1105 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1106 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1107 #%attr(755,root,root) %{_bindir}/qemu-system-ppc64le
1108 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
1109 %{_datadir}/%{name}/u-boot.e500
1112 %defattr(644,root,root,755)
1113 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1116 %defattr(644,root,root,755)
1117 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1118 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1121 %defattr(644,root,root,755)
1122 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1123 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1125 %files system-tricore
1126 %defattr(644,root,root,755)
1127 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1129 %files system-unicore32
1130 %defattr(644,root,root,755)
1131 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1134 %defattr(644,root,root,755)
1135 %attr(755,root,root) %{_bindir}/qemu-system-i386
1136 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1137 %ifarch %{ix86} %{x8664} x32
1138 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1139 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
1140 %attr(755,root,root) %{_bindir}/kvm_stat
1142 %{_datadir}/%{name}/bios.bin
1143 %{_datadir}/%{name}/bios-256k.bin
1144 %{_datadir}/%{name}/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
1156 %{_mandir}/man8/qemu-ga.8*
1159 %files module-block-archipelago
1160 %defattr(644,root,root,755)
1161 %attr(755,root,root) %{_libdir}/%{name}/block-archipelago.so
1164 %files module-block-curl
1165 %defattr(644,root,root,755)
1166 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1168 %if %{with glusterfs}
1169 %files module-block-gluster
1170 %defattr(644,root,root,755)
1171 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1175 %files module-block-iscsi
1176 %defattr(644,root,root,755)
1177 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1181 %files module-block-rbd
1182 %defattr(644,root,root,755)
1183 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1186 %files module-block-ssh
1187 %defattr(644,root,root,755)
1188 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so