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 gtk2 # GTK+ 2.x instead of 3.x
8 %bcond_without gtk3 # Do not build GTK+ UI
9 %bcond_with vte # VTE support in GTK+ UI
10 %bcond_without spice # SPICE support
11 %bcond_with esd # EsounD audio support
12 %bcond_without oss # OSS audio support
13 %bcond_without pulseaudio # PulseAudio audio support
14 %bcond_without xen # Xen backend driver support
15 %bcond_without bluetooth # bluetooth support
16 %bcond_with brlapi # brlapi support
17 %bcond_without smartcard # smartcard-nss support
18 %bcond_without iscsi # iscsi support
19 %bcond_without libnfs # NFS support
20 %bcond_without seccomp # seccomp support
21 %bcond_without usbredir # usb network redirection support
22 %bcond_without system_seabios # system seabios binary
23 %bcond_without snappy # snappy compression library
24 %bcond_with lttng # lttng-ust trace backend support
25 %bcond_with systemtap # SystemTap/dtrace trace backend support
31 Summary: QEMU CPU Emulator
32 Summary(pl.UTF-8): QEMU - emulator procesora
37 Group: Applications/Emulators
38 Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.bz2
39 # Source0-md5: 2fab3ea4460de9b57192e5b8b311f221
40 Source2: %{name}.binfmt
41 # Loads kvm kernel modules at boot
42 Source3: kvm-modules-load.conf
46 Source6: ksm.sysconfig
49 Source10: ksmtuned.conf
50 Patch0: %{name}-cflags.patch
51 Patch1: vgabios-widescreens.patch
52 Patch2: %{name}-whitelist.patch
53 Patch3: %{name}-system-libcacard.patch
54 Patch4: %{name}-xattr.patch
55 Patch5: libjpeg-boolean.patch
56 # Proof of concept, for reference, do not remove
57 Patch400: %{name}-kde_virtual_workspaces_hack.patch
58 URL: http://www.qemu-project.org/
59 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
60 BuildRequires: alsa-lib-devel
62 %{?with_bluetooth:BuildRequires: bluez-libs-devel}
63 %{?with_brlapi:BuildRequires: brlapi-devel}
64 %{?with_ceph:BuildRequires: ceph-devel}
65 BuildRequires: curl-devel
66 BuildRequires: cyrus-sasl-devel >= 2
67 %{?with_esd:BuildRequires: esound-devel}
68 BuildRequires: glib2-devel >= 1:2.12
69 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
70 BuildRequires: gnutls-devel > 2.10.0
71 BuildRequires: libaio-devel
72 %{?with_smartcard:BuildRequires: libcacard-devel}
73 BuildRequires: libcap-devel
74 BuildRequires: libcap-ng-devel
75 BuildRequires: libfdt-devel
76 %{?with_rdma:BuildRequires: libibverbs-devel}
77 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
78 BuildRequires: libjpeg-devel
79 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
80 BuildRequires: libpng-devel
81 %{?with_rdma:BuildRequires: librdmacm-devel}
82 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.1.1}
83 BuildRequires: libssh2-devel >= 1.2.8
84 BuildRequires: libusb-devel >= 1.0.13
85 BuildRequires: libuuid-devel
86 %{?with_lttng:BuildRequires: lttng-ust-devel}
87 BuildRequires: lzo-devel >= 2
88 BuildRequires: ncurses-devel
89 %{?with_smartcard:BuildRequires: nss-devel >= 3.12.8}
90 BuildRequires: perl-Encode
91 BuildRequires: perl-tools-pod
92 BuildRequires: pkgconfig
93 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
94 BuildRequires: rpmbuild(macros) >= 1.644
95 %{?with_system_seabios:BuildRequires: seabios}
96 BuildRequires: sed >= 4.0
97 %{?with_snappy:BuildRequires: snappy-devel}
99 BuildRequires: spice-protocol >= 0.12.3
100 BuildRequires: spice-server-devel >= 0.12.0
102 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
103 BuildRequires: texi2html
104 BuildRequires: texinfo
105 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
106 %{?with_lttng:BuildRequires: userspace-rcu-devel}
107 BuildRequires: vde2-devel
109 %{?with_xen:BuildRequires: xen-devel >= 3.4}
110 BuildRequires: xfsprogs-devel
111 BuildRequires: xorg-lib-libX11-devel
112 BuildRequires: zlib-devel
114 BuildRequires: gtk+2-devel >= 2:2.18.0
115 %{?with_vte:BuildRequires: vte0-devel >= 0.24.0}
118 BuildRequires: gtk+3-devel >= 3.0.0
119 %{?with_vte:BuildRequires: vte2.90-devel >= 0.32.0}
121 Requires: %{name}-img = %{version}-%{release}
122 Requires: %{name}-system-aarch64 = %{version}-%{release}
123 Requires: %{name}-system-alpha = %{version}-%{release}
124 Requires: %{name}-system-arm = %{version}-%{release}
125 Requires: %{name}-system-cris = %{version}-%{release}
126 Requires: %{name}-system-lm32 = %{version}-%{release}
127 Requires: %{name}-system-m68k = %{version}-%{release}
128 Requires: %{name}-system-microblaze = %{version}-%{release}
129 Requires: %{name}-system-mips = %{version}-%{release}
130 Requires: %{name}-system-moxie = %{version}-%{release}
131 Requires: %{name}-system-or32 = %{version}-%{release}
132 Requires: %{name}-system-ppc = %{version}-%{release}
133 Requires: %{name}-system-s390x = %{version}-%{release}
134 Requires: %{name}-system-sh4 = %{version}-%{release}
135 Requires: %{name}-system-sparc = %{version}-%{release}
136 Requires: %{name}-system-tricore = %{version}-%{release}
137 Requires: %{name}-system-unicore32 = %{version}-%{release}
138 Requires: %{name}-system-x86 = %{version}-%{release}
139 Requires: %{name}-system-xtensa = %{version}-%{release}
140 Requires: %{name}-user = %{version}-%{release}
142 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
144 %define systempkg_req \
148 %if %{with seccomp} \
149 Requires: libseccomp >= 2.1.0 \
151 Requires: libusb >= 1.0.13 \
152 %if %{with usbredir} \
153 Requires: usbredir >= 0.6 \
156 Requires: gtk+2 >= 2:2.18.0 \
157 %{?with_vte:Requires: vte0 >= 0.24.0} \
160 Requires: gtk+3 >= 3.0.0 \
161 %{?with_vte:Requires: vte2.90 >= 0.32.0} \
164 # some PPC/SPARC boot image in ELF format
165 %define _noautostrip .*%{_datadir}/qemu/.*-.*
166 %define _noautochrpath .*%{_datadir}/qemu/.*-.*
169 QEMU is a FAST! processor emulator. By using dynamic translation it
170 achieves a reasonnable speed while being easy to port on new host
171 CPUs. QEMU has two operating modes:
173 - User mode emulation. In this mode, QEMU can launch Linux processes
174 compiled for one CPU on another CPU. Linux system calls are converted
175 because of endianness and 32/64 bit mismatches. Wine (Windows
176 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
178 - Full system emulation. In this mode, QEMU emulates a full system,
179 including a processor and various peripherials. It can also be used to
180 provide virtual hosting of several virtual PC on a single server.
182 %description -l pl.UTF-8
183 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
184 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
185 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
187 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
188 procesy linuksowe skompilowane dla jednego procesora na innym
189 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
190 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
191 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
194 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
195 włączając w to procesor i różne urządzenia peryferyjne. Może być także
196 używane do wirtualnego hostowania kilku wirtualnych pecetów na
197 pojedynczym serwerze.
200 Summary: QEMU common files needed by all QEMU targets
201 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
202 Group: Development/Tools
203 Requires(postun): /usr/sbin/groupdel
204 Requires(postun): /usr/sbin/userdel
205 Requires(pre): /bin/id
206 Requires(pre): /usr/bin/getgid
207 Requires(pre): /usr/sbin/groupadd
208 Requires(pre): /usr/sbin/useradd
209 Requires: glib2 >= 1:2.12
210 %{?with_libnfs:Requires: libnfs >= 1.9.3}
211 Requires: libssh2 >= 1.2.8
212 Provides: group(qemu)
214 Obsoletes: qemu-kvm-common
215 Conflicts: qemu < 1.0-2
218 QEMU is a generic and open source processor emulator which achieves a
219 good emulation speed by using dynamic translation.
221 This package provides the common files needed by all QEMU targets.
223 %description common -l pl.UTF-8
224 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
225 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
227 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
231 Summary: QEMU command line tool for manipulating disk images
232 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
233 Group: Development/Tools
234 Obsoletes: qemu-kvm-img
235 Conflicts: qemu < 1.0-2
238 This package provides a command line tool for manipulating disk
241 %description img -l pl.UTF-8
242 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
246 Summary: QEMU user mode emulation of qemu targets
247 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
248 Group: Development/Tools
249 Requires: %{name}-common = %{version}-%{release}
250 Obsoletes: qemu-kvm-user
253 QEMU is a generic and open source processor emulator which achieves a
254 good emulation speed by using dynamic translation.
256 This package provides the user mode emulation of QEMU targets.
258 %description user -l pl.UTF-8
259 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
260 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
262 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
264 %package system-aarch64
265 Summary: QEMU system emulator for AArch64
266 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
267 Group: Development/Tools
268 Requires: %{name}-common = %{version}-%{release}
270 Obsoletes: qemu-kvm-system-aarch64
272 %description system-aarch64
273 QEMU is a generic and open source processor emulator which achieves a
274 good emulation speed by using dynamic translation.
276 This package provides the system emulator with AArch64 CPU.
278 %description system-aarch64 -l pl.UTF-8
279 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
280 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
282 Ten pakiet zawiera emulator systemu z procesorem AArch64.
284 %package system-alpha
285 Summary: QEMU system emulator for Alpha
286 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
287 Group: Development/Tools
288 Requires: %{name}-common = %{version}-%{release}
290 Obsoletes: qemu-kvm-system-alpha
292 %description system-alpha
293 QEMU is a generic and open source processor emulator which achieves a
294 good emulation speed by using dynamic translation.
296 This package provides the system emulator with Alpha CPU.
298 %description system-alpha -l pl.UTF-8
299 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
300 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
302 Ten pakiet zawiera emulator systemu z procesorem Alpha.
305 Summary: QEMU system emulator for ARM
306 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
307 Group: Development/Tools
308 Requires: %{name}-common = %{version}-%{release}
310 Obsoletes: qemu-kvm-system-arm
312 %description system-arm
313 QEMU is a generic and open source processor emulator which achieves a
314 good emulation speed by using dynamic translation.
316 This package provides the system emulator for ARM.
318 %description system-arm -l pl.UTF-8
319 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
320 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
322 Ten pakiet zawiera emulator systemu z procesorem ARM.
325 Summary: QEMU system emulator for CRIS
326 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
327 Group: Development/Tools
328 Requires: %{name}-common = %{version}-%{release}
330 Obsoletes: qemu-kvm-system-cris
332 %description system-cris
333 QEMU is a generic and open source processor emulator which achieves a
334 good emulation speed by using dynamic translation.
336 This package provides the system emulator with CRIS CPU.
338 %description system-cris -l pl.UTF-8
339 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
340 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
342 Ten pakiet zawiera emulator systemu z procesorem CRIS.
345 Summary: QEMU system emulator for LM32
346 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
347 Group: Development/Tools
348 Requires: %{name}-common = %{version}-%{release}
350 Obsoletes: qemu-kvm-system-lm32
352 %description system-lm32
353 QEMU is a generic and open source processor emulator which achieves a
354 good emulation speed by using dynamic translation.
356 This package provides the system emulator with LM32 CPU.
358 %description system-lm32 -l pl.UTF-8
359 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
360 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
362 Ten pakiet zawiera emulator systemu z procesorem LM32.
365 Summary: QEMU system emulator for m68k
366 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
367 Group: Development/Tools
368 Requires: %{name}-common = %{version}-%{release}
370 Obsoletes: qemu-kvm-system-m68k
372 %description system-m68k
373 QEMU is a generic and open source processor emulator which achieves a
374 good emulation speed by using dynamic translation.
376 This package provides the system emulator with m68k CPU.
378 %description system-m68k -l pl.UTF-8
379 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
380 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
382 Ten pakiet zawiera emulator systemu z procesorem m68k.
384 %package system-microblaze
385 Summary: QEMU system emulator for MicroBlaze
386 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
387 Group: Development/Tools
388 Requires: %{name}-common = %{version}-%{release}
390 Obsoletes: qemu-kvm-system-microblaze
392 %description system-microblaze
393 QEMU is a generic and open source processor emulator which achieves a
394 good emulation speed by using dynamic translation.
396 This package provides the system emulator with MicroBlaze CPU.
398 %description system-microblaze -l pl.UTF-8
399 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
400 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
402 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
405 Summary: QEMU system emulator for MIPS
406 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
407 Group: Development/Tools
408 Requires: %{name}-common = %{version}-%{release}
410 Obsoletes: qemu-kvm-system-mips
412 %description system-mips
413 QEMU is a generic and open source processor emulator which achieves a
414 good emulation speed by using dynamic translation.
416 This package provides the system emulator with MIPS CPU.
418 %description system-mips -l pl.UTF-8
419 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
420 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
422 Ten pakiet zawiera emulator systemu z procesorem MIPS.
424 %package system-moxie
425 Summary: QEMU system emulator for Moxie
426 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
427 Group: Development/Tools
428 Requires: %{name}-common = %{version}-%{release}
431 %description system-moxie
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 Moxie CPU.
437 %description system-moxie -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 Moxie.
444 Summary: QEMU system emulator for OpenRISC
445 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
446 Group: Development/Tools
447 Requires: %{name}-common = %{version}-%{release}
449 Obsoletes: qemu-kvm-system-or32
451 %description system-or32
452 QEMU is a generic and open source processor emulator which achieves a
453 good emulation speed by using dynamic translation.
455 This package provides the system emulator with OpenRISC CPU.
457 %description system-or32 -l pl.UTF-8
458 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
459 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
461 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
464 Summary: QEMU system emulator for PowerPC
465 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
466 Group: Development/Tools
467 Requires: %{name}-common = %{version}-%{release}
469 Obsoletes: qemu-kvm-system-ppc
471 %description system-ppc
472 QEMU is a generic and open source processor emulator which achieves a
473 good emulation speed by using dynamic translation.
475 This package provides the system emulator with PowerPC CPU.
477 %description system-ppc -l pl.UTF-8
478 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
479 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
481 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
483 %package system-s390x
484 Summary: QEMU system emulator for S390
485 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
486 Group: Development/Tools
487 Requires: %{name}-common = %{version}-%{release}
489 Obsoletes: qemu-kvm-system-s390x
491 %description system-s390x
492 QEMU is a generic and open source processor emulator which achieves a
493 good emulation speed by using dynamic translation.
495 This package provides the system emulator with S390 CPU.
497 %description system-s390x -l pl.UTF-8
498 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
499 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
501 Ten pakiet zawiera emulator systemu z procesorem S390.
504 Summary: QEMU system emulator for SH4
505 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
506 Group: Development/Tools
507 Requires: %{name}-common = %{version}-%{release}
509 Obsoletes: qemu-kvm-system-sh4
511 %description system-sh4
512 QEMU is a generic and open source processor emulator which achieves a
513 good emulation speed by using dynamic translation.
515 This package provides the system emulator with SH4 CPU.
517 %description system-sh4 -l pl.UTF-8
518 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
519 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
521 Ten pakiet zawiera emulator systemu z procesorem SH4.
523 %package system-sparc
524 Summary: QEMU system emulator for SPARC
525 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
526 Group: Development/Tools
527 Requires: %{name}-common = %{version}-%{release}
529 Obsoletes: qemu-kvm-system-sparc
531 %description system-sparc
532 QEMU is a generic and open source processor emulator which achieves a
533 good emulation speed by using dynamic translation.
535 This package provides the system emulator with SPARC/SPARC64 CPU.
537 %description system-sparc -l pl.UTF-8
538 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
539 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
541 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
543 %package system-tricore
544 Summary: QEMU system emulator for TriCore
545 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
546 Group: Development/Tools
547 Requires: %{name}-common = %{version}-%{release}
550 %description system-tricore
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 TriCore 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 TriCore.
562 %package system-unicore32
563 Summary: QEMU system emulator for UniCore32
564 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
565 Group: Development/Tools
566 Requires: %{name}-common = %{version}-%{release}
568 Obsoletes: qemu-kvm-system-unicore32
570 %description system-unicore32
571 QEMU is a generic and open source processor emulator which achieves a
572 good emulation speed by using dynamic translation.
574 This package provides the system emulator with UniCore32 CPU.
576 %description system-unicore32 -l pl.UTF-8
577 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
578 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
580 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
583 Summary: QEMU system emulator for x86
584 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
585 Group: Development/Tools
586 Requires: %{name}-common = %{version}-%{release}
587 %{?with_system_seabios:Requires: seabios}
590 Obsoletes: qemu-kvm-system-x86
592 %description system-x86
593 QEMU is a generic and open source processor emulator which achieves a
594 good emulation speed by using dynamic translation.
596 %description system-x86 -l pl.UTF-8
597 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
598 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
600 %package system-xtensa
601 Summary: QEMU system emulator for Xtensa
602 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
603 Group: Development/Tools
604 Requires: %{name}-common = %{version}-%{release}
606 Obsoletes: qemu-kvm-system-xtensa
608 %description system-xtensa
609 QEMU is a generic and open source processor emulator which achieves a
610 good emulation speed by using dynamic translation.
612 This package provides the system emulator with Xtensa CPU.
614 %description system-xtensa -l pl.UTF-8
615 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
616 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
618 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
621 Summary: QEMU guest agent
622 Summary(pl.UTF-8): Agent gościa QEMU
624 Requires: glib2 >= 1:2.12
625 Obsoletes: qemu-kvm-guest-agent
627 %description guest-agent
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 an agent to run inside guests, which
632 communicates with the host over a virtio-serial channel named
633 "org.qemu.guest_agent.0".
635 This package does not need to be installed on the host OS.
637 %description guest-agent -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 udostępnia agenta przeznaczonego do uruchomienia w
642 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
643 "org.qemu.guest_agent.0".
645 Ten pakiet nie musi być zainstalowany w systemie hosta.
647 %package module-block-curl
648 Summary: QEMU module for 'curl' block devices
649 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
650 Group: Development/Tools
651 Requires: %{name}-common = %{version}-%{release}
653 %description module-block-curl
654 'curl' block device support for QEMU.
656 %description module-block-curl -l pl.UTF-8
657 Moduł QEMU dla urządeń blokowych typu 'curl'.
659 %package module-block-gluster
660 Summary: QEMU module for 'gluster' block devices
661 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
662 Group: Development/Tools
663 Requires: %{name}-common = %{version}-%{release}
664 Requires: glusterfs-libs >= 3.4
666 %description module-block-gluster
667 'gluster' block device support for QEMU.
669 %description module-block-gluster -l pl.UTF-8
670 Moduł QEMU dla urządeń blokowych typu 'gluster'.
672 %package module-block-iscsi
673 Summary: QEMU module for 'iscsi' block devices
674 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
675 Group: Development/Tools
676 Requires: %{name}-common = %{version}-%{release}
677 Requires: libiscsi >= 1.9.0
679 %description module-block-iscsi
680 'iscsi' block device support for QEMU.
682 %description module-block-iscsi -l pl.UTF-8
683 Moduł QEMU dla urządeń blokowych typu 'iscsi'.
685 %package module-block-rbd
686 Summary: QEMU module for 'rbd' block devices
687 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
688 Group: Development/Tools
689 Requires: %{name}-common = %{version}-%{release}
691 %description module-block-rbd
692 'rbd' block device support for QEMU.
694 %description module-block-rbd -l pl.UTF-8
695 Moduł QEMU dla urządeń blokowych typu 'rbd'.
697 %package module-block-ssh
698 Summary: QEMU module for 'ssh' block devices
699 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
700 Group: Development/Tools
701 Requires: %{name}-common = %{version}-%{release}
703 %description module-block-ssh
704 'ssh' block device support for QEMU.
706 %description module-block-ssh -l pl.UTF-8
707 Moduł QEMU dla urządeń blokowych typu 'ssh'.
718 %{__mv} libcacard libcacard-use-system-lib
720 # workaround for conflict with alsa/error.h
721 ln -s ../error.h qapi/error.h
725 --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
726 --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
727 --prefix=%{_prefix} \
728 --libdir=%{_libdir} \
729 --libexecdir=%{_libexecdir} \
730 --sysconfdir=%{_sysconfdir} \
732 --host-cc="%{__cc}" \
735 %{__enable_disable bluetooth bluez} \
736 %{__enable_disable brlapi} \
742 %{__enable_disable glusterfs} \
743 %{__enable_disable iscsi libiscsi} \
744 %{__enable_disable ceph rbd} \
745 %{__enable_disable rdma} \
746 %{__enable_disable sdl} \
748 %{__enable_disable seccomp} \
749 %{__enable_disable spice} \
750 %{__enable_disable smartcard smartcard-nss} \
752 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
753 %{__enable_disable usbredir usb-redir} \
761 %{!?with_vte:--disable-vte} \
763 %{__enable_disable xen} \
766 %{__enable_disable libnfs} \
768 %{__enable_disable snappy} \
770 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
771 --interp-prefix=%{_libdir}/qemu/lib-%%M \
772 %if %{without gtk2} && %{without gtk3}
775 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
780 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
782 # rebuild patched vesa tables with additional widescreen modes.
783 %{__make} -C roms/vgabios stdvga-bios
785 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
788 rm -rf $RPM_BUILD_ROOT
789 install -d $RPM_BUILD_ROOT/usr/lib/binfmt.d \
790 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
791 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
794 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
795 DESTDIR=$RPM_BUILD_ROOT
797 install -d $RPM_BUILD_ROOT%{_sysconfdir}
798 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
803 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
805 %ifarch %{ix86} %{x8664}
806 install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
807 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
808 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
811 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
812 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
814 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
815 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
818 %ifnarch %{ix86} %{x8664}
827 %ifnarch sparc sparc64
834 test $i = dummy && continue
835 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i.conf
839 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
840 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
842 # install patched vesa tables with additional widescreen modes.
843 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
845 %if %{with system_seabios}
846 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
847 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
848 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
850 if [ -e "/usr/share/seabios/$bn" ] ; then
851 ln -sf "/usr/share/seabios/$bn" "$f"
856 %if %{with gtk2} || %{with gtk3}
857 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
858 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
865 rm -rf $RPM_BUILD_ROOT
869 %groupadd -g 276 qemu
870 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
873 if [ "$1" = "0" ]; then
879 %triggerpostun common -- qemu-common < 1.6.1-4
882 %defattr(644,root,root,755)
884 %files common -f %{name}.lang
885 %defattr(644,root,root,755)
886 %doc README qemu-doc.html qemu-tech.html qmp-commands.txt
887 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
888 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu/target-*.conf
889 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
890 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
891 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
892 %dir %{_sysconfdir}/qemu
893 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
894 %attr(755,root,root) %{_bindir}/qemu-nbd
895 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
896 %attr(755,root,root) %{_sbindir}/ksmctl
897 %attr(755,root,root) %{_sbindir}/ksmtuned
898 %{_mandir}/man1/qemu.1*
899 %{_mandir}/man1/virtfs-proxy-helper.1*
900 %{_mandir}/man8/qemu-nbd.8*
902 %dir %{_datadir}/qemu
903 %{_datadir}/%{name}/keymaps
904 %{_datadir}/%{name}/qemu-icon.bmp
905 %{_datadir}/%{name}/trace-events
907 # various bios images
908 # all should be probably moved to the right system subpackage
909 %{_datadir}/%{name}/QEMU,cgthree.bin
910 %{_datadir}/%{name}/QEMU,tcx.bin
911 %{_datadir}/%{name}/bamboo.dtb
912 %{_datadir}/%{name}/efi-e1000.rom
913 %{_datadir}/%{name}/efi-eepro100.rom
914 %{_datadir}/%{name}/efi-ne2k_pci.rom
915 %{_datadir}/%{name}/efi-pcnet.rom
916 %{_datadir}/%{name}/efi-rtl8139.rom
917 %{_datadir}/%{name}/efi-virtio.rom
918 %{_datadir}/%{name}/kvmvapic.bin
919 %{_datadir}/%{name}/linuxboot.bin
920 %{_datadir}/%{name}/multiboot.bin
921 %{_datadir}/%{name}/openbios-ppc
922 %{_datadir}/%{name}/openbios-sparc*
923 %{_datadir}/%{name}/palcode-clipper
924 %{_datadir}/%{name}/petalogix-ml605.dtb
925 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
926 %{_datadir}/%{name}/ppc_rom.bin
927 %{_datadir}/%{name}/pxe-e1000.rom
928 %{_datadir}/%{name}/pxe-eepro100.rom
929 %{_datadir}/%{name}/pxe-ne2k_pci.rom
930 %{_datadir}/%{name}/pxe-pcnet.rom
931 %{_datadir}/%{name}/pxe-rtl8139.rom
932 %{_datadir}/%{name}/pxe-virtio.rom
933 %{_datadir}/%{name}/qemu_logo_no_text.svg
934 %{_datadir}/%{name}/s390-ccw.img
935 %{_datadir}/%{name}/s390-zipl.rom
936 %{_datadir}/%{name}/sgabios.bin
937 %{_datadir}/%{name}/slof.bin
938 %{_datadir}/%{name}/spapr-rtas.bin
939 %{_datadir}/%{name}/vgabios-cirrus.bin
940 %{_datadir}/%{name}/vgabios-qxl.bin
941 %{_datadir}/%{name}/vgabios-stdvga.bin
942 %{_datadir}/%{name}/vgabios-vmware.bin
943 %{_datadir}/%{name}/vgabios.bin
945 %dir %{_libdir}/%{name}
948 %defattr(644,root,root,755)
949 %attr(755,root,root) %{_bindir}/qemu-img
950 %{_mandir}/man1/qemu-img.1*
953 %defattr(644,root,root,755)
954 /usr/lib/binfmt.d/qemu-*.conf
955 %attr(755,root,root) %{_bindir}/qemu-aarch64
956 %attr(755,root,root) %{_bindir}/qemu-alpha
957 %attr(755,root,root) %{_bindir}/qemu-arm
958 %attr(755,root,root) %{_bindir}/qemu-armeb
959 %attr(755,root,root) %{_bindir}/qemu-cris
960 %attr(755,root,root) %{_bindir}/qemu-i386
961 %attr(755,root,root) %{_bindir}/qemu-io
962 %attr(755,root,root) %{_bindir}/qemu-m68k
963 %attr(755,root,root) %{_bindir}/qemu-microblaze
964 %attr(755,root,root) %{_bindir}/qemu-microblazeel
965 %attr(755,root,root) %{_bindir}/qemu-mips
966 %attr(755,root,root) %{_bindir}/qemu-mipsel
967 %attr(755,root,root) %{_bindir}/qemu-mips64
968 %attr(755,root,root) %{_bindir}/qemu-mips64el
969 %attr(755,root,root) %{_bindir}/qemu-mipsn32
970 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
971 %attr(755,root,root) %{_bindir}/qemu-or32
972 %attr(755,root,root) %{_bindir}/qemu-ppc
973 %attr(755,root,root) %{_bindir}/qemu-ppc64
974 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
975 %attr(755,root,root) %{_bindir}/qemu-ppc64le
976 %attr(755,root,root) %{_bindir}/qemu-s390x
977 %attr(755,root,root) %{_bindir}/qemu-sh4
978 %attr(755,root,root) %{_bindir}/qemu-sh4eb
979 %attr(755,root,root) %{_bindir}/qemu-sparc
980 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
981 %attr(755,root,root) %{_bindir}/qemu-sparc64
982 %attr(755,root,root) %{_bindir}/qemu-unicore32
983 %attr(755,root,root) %{_bindir}/qemu-x86_64
985 %files system-aarch64
986 %defattr(644,root,root,755)
987 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
990 %defattr(644,root,root,755)
991 %attr(755,root,root) %{_bindir}/qemu-system-alpha
994 %defattr(644,root,root,755)
995 %attr(755,root,root) %{_bindir}/qemu-system-arm
998 %defattr(644,root,root,755)
999 %attr(755,root,root) %{_bindir}/qemu-system-cris
1002 %defattr(644,root,root,755)
1003 %attr(755,root,root) %{_bindir}/qemu-system-lm32
1006 %defattr(644,root,root,755)
1007 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1009 %files system-microblaze
1010 %defattr(644,root,root,755)
1011 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1012 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1015 %defattr(644,root,root,755)
1016 %attr(755,root,root) %{_bindir}/qemu-system-mips
1017 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1018 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1019 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1022 %defattr(644,root,root,755)
1023 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1026 %defattr(644,root,root,755)
1027 %attr(755,root,root) %{_bindir}/qemu-system-or32
1030 %defattr(644,root,root,755)
1031 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1032 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1033 #%attr(755,root,root) %{_bindir}/qemu-system-ppc64le
1034 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
1035 %{_datadir}/%{name}/u-boot.e500
1038 %defattr(644,root,root,755)
1039 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1042 %defattr(644,root,root,755)
1043 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1044 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1047 %defattr(644,root,root,755)
1048 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1049 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1051 %files system-tricore
1052 %defattr(644,root,root,755)
1053 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1055 %files system-unicore32
1056 %defattr(644,root,root,755)
1057 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1060 %defattr(644,root,root,755)
1061 %attr(755,root,root) %{_bindir}/qemu-system-i386
1062 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1063 %ifarch %{ix86} %{x8664}
1064 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1065 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
1066 %attr(755,root,root) %{_bindir}/kvm_stat
1068 %{_datadir}/%{name}/bios.bin
1069 %{_datadir}/%{name}/bios-256k.bin
1070 %{_datadir}/%{name}/acpi-dsdt.aml
1071 %{_datadir}/%{name}/q35-acpi-dsdt.aml
1073 %files system-xtensa
1074 %defattr(644,root,root,755)
1075 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1076 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1079 %defattr(644,root,root,755)
1080 %attr(755,root,root) %{_bindir}/qemu-ga
1082 %files module-block-curl
1083 %defattr(644,root,root,755)
1084 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1086 %if %{with glusterfs}
1087 %files module-block-gluster
1088 %defattr(644,root,root,755)
1089 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1093 %files module-block-iscsi
1094 %defattr(644,root,root,755)
1095 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1099 %files module-block-rbd
1100 %defattr(644,root,root,755)
1101 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1104 %files module-block-ssh
1105 %defattr(644,root,root,755)
1106 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so