1 # TODO: archipelago (libxseg) on bcond (GPL v3 vs v2-only conflict)
4 %bcond_without sdl # SDL UI and audio support
5 %bcond_without ceph # Ceph/RBD support
6 %bcond_without glusterfs # GlusterFS backend
7 %bcond_without rdma # RDMA-based migration support
8 %bcond_with gtk2 # GTK+ 2.x instead of 3.x
9 %bcond_without gtk3 # Do not build GTK+ UI
10 %bcond_without vte # VTE support in GTK+ UI
11 %bcond_without spice # SPICE support
12 %bcond_with esd # EsounD audio support
13 %bcond_without oss # OSS audio support
14 %bcond_without pulseaudio # PulseAudio audio support
15 %bcond_without xen # Xen backend driver support
16 %bcond_without bluetooth # bluetooth support
17 %bcond_with brlapi # brlapi support
18 %bcond_without smartcard # smartcard-nss support
19 %bcond_without iscsi # iscsi support
20 %bcond_without libnfs # NFS support
21 %bcond_without seccomp # seccomp support
22 %bcond_without usbredir # usb network redirection support
23 %bcond_without system_seabios # system seabios binary
24 %bcond_without snappy # snappy compression library
25 %bcond_with lttng # lttng-ust trace backend support
26 %bcond_with systemtap # SystemTap/dtrace trace backend support
32 Summary: QEMU CPU Emulator
33 Summary(pl.UTF-8): QEMU - emulator procesora
38 Group: Applications/Emulators
39 Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.bz2
40 # Source0-md5: 186ee8194140a484a455f8e3c74589f4
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 BuildRequires: OpenGL-GLX-devel
60 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
61 BuildRequires: alsa-lib-devel
62 BuildRequires: bcc >= 0.16.21-2
63 %{?with_bluetooth:BuildRequires: bluez-libs-devel}
64 %{?with_brlapi:BuildRequires: brlapi-devel}
65 BuildRequires: bzip2-devel
66 %{?with_ceph:BuildRequires: ceph-devel}
67 BuildRequires: curl-devel
68 BuildRequires: cyrus-sasl-devel >= 2
69 %{?with_esd:BuildRequires: esound-devel}
70 BuildRequires: glib2-devel >= 1:2.12
71 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
72 BuildRequires: gnutls-devel > 2.10.0
73 BuildRequires: libaio-devel
74 %{?with_smartcard:BuildRequires: libcacard-devel}
75 BuildRequires: libcap-devel
76 BuildRequires: libcap-ng-devel
77 BuildRequires: libfdt-devel
78 %{?with_rdma:BuildRequires: libibverbs-devel}
79 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
80 BuildRequires: libjpeg-devel
81 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
82 BuildRequires: libpng-devel
83 %{?with_rdma:BuildRequires: librdmacm-devel}
84 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.1.1}
85 BuildRequires: libssh2-devel >= 1.2.8
86 BuildRequires: libusb-devel >= 1.0.13
87 BuildRequires: libuuid-devel
88 %{?with_lttng:BuildRequires: lttng-ust-devel}
89 BuildRequires: lzo-devel >= 2
90 BuildRequires: ncurses-devel
91 %{?with_smartcard:BuildRequires: nss-devel >= 3.12.8}
92 BuildRequires: numactl-devel
93 BuildRequires: perl-Encode
94 BuildRequires: perl-tools-pod
95 BuildRequires: pixman-devel >= 0.21.8
96 BuildRequires: pkgconfig
97 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
98 BuildRequires: rpmbuild(macros) >= 1.644
99 %{?with_system_seabios:BuildRequires: seabios}
100 BuildRequires: sed >= 4.0
101 %{?with_snappy:BuildRequires: snappy-devel}
103 BuildRequires: spice-protocol >= 0.12.3
104 BuildRequires: spice-server-devel >= 0.12.0
106 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
107 BuildRequires: texi2html
108 BuildRequires: texinfo
109 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
110 %{?with_lttng:BuildRequires: userspace-rcu-devel}
111 BuildRequires: vde2-devel
113 %{?with_xen:BuildRequires: xen-devel >= 3.4}
114 BuildRequires: xfsprogs-devel
115 BuildRequires: xorg-lib-libX11-devel
116 BuildRequires: zlib-devel
118 BuildRequires: gtk+2-devel >= 2:2.18.0
119 %{?with_vte:BuildRequires: vte0-devel >= 0.24.0}
122 BuildRequires: gtk+3-devel >= 3.0.0
123 %{?with_vte:BuildRequires: vte2.90-devel >= 0.32.0}
125 Requires: %{name}-img = %{version}-%{release}
126 Requires: %{name}-system-aarch64 = %{version}-%{release}
127 Requires: %{name}-system-alpha = %{version}-%{release}
128 Requires: %{name}-system-arm = %{version}-%{release}
129 Requires: %{name}-system-cris = %{version}-%{release}
130 Requires: %{name}-system-lm32 = %{version}-%{release}
131 Requires: %{name}-system-m68k = %{version}-%{release}
132 Requires: %{name}-system-microblaze = %{version}-%{release}
133 Requires: %{name}-system-mips = %{version}-%{release}
134 Requires: %{name}-system-moxie = %{version}-%{release}
135 Requires: %{name}-system-or32 = %{version}-%{release}
136 Requires: %{name}-system-ppc = %{version}-%{release}
137 Requires: %{name}-system-s390x = %{version}-%{release}
138 Requires: %{name}-system-sh4 = %{version}-%{release}
139 Requires: %{name}-system-sparc = %{version}-%{release}
140 Requires: %{name}-system-tricore = %{version}-%{release}
141 Requires: %{name}-system-unicore32 = %{version}-%{release}
142 Requires: %{name}-system-x86 = %{version}-%{release}
143 Requires: %{name}-system-xtensa = %{version}-%{release}
144 Requires: %{name}-user = %{version}-%{release}
146 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
148 %define systempkg_req \
152 %if %{with seccomp} \
153 Requires: libseccomp >= 2.1.0 \
155 Requires: libusb >= 1.0.13 \
156 Requires: pixman >= 0.21.8 \
157 %if %{with usbredir} \
158 Requires: usbredir >= 0.6 \
161 Requires: gtk+2 >= 2:2.18.0 \
162 %{?with_vte:Requires: vte0 >= 0.24.0} \
165 Requires: gtk+3 >= 3.0.0 \
166 %{?with_vte:Requires: vte2.90 >= 0.32.0} \
169 # don't strip/chrpath anything in there; these are boot images, roms etc
170 %define _noautostrip .*%{_datadir}/qemu/.*
171 %define _noautochrpath .*%{_datadir}/qemu/.*
174 QEMU is a FAST! processor emulator. By using dynamic translation it
175 achieves a reasonnable speed while being easy to port on new host
176 CPUs. QEMU has two operating modes:
178 - User mode emulation. In this mode, QEMU can launch Linux processes
179 compiled for one CPU on another CPU. Linux system calls are converted
180 because of endianness and 32/64 bit mismatches. Wine (Windows
181 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
183 - Full system emulation. In this mode, QEMU emulates a full system,
184 including a processor and various peripherials. It can also be used to
185 provide virtual hosting of several virtual PC on a single server.
187 %description -l pl.UTF-8
188 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
189 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
190 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
192 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
193 procesy linuksowe skompilowane dla jednego procesora na innym
194 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
195 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
196 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
199 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
200 włączając w to procesor i różne urządzenia peryferyjne. Może być także
201 używane do wirtualnego hostowania kilku wirtualnych pecetów na
202 pojedynczym serwerze.
205 Summary: QEMU common files needed by all QEMU targets
206 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
207 Group: Development/Tools
208 Requires(postun): /usr/sbin/groupdel
209 Requires(postun): /usr/sbin/userdel
210 Requires(pre): /bin/id
211 Requires(pre): /usr/bin/getgid
212 Requires(pre): /usr/sbin/groupadd
213 Requires(pre): /usr/sbin/useradd
214 Requires: glib2 >= 1:2.12
215 %{?with_libnfs:Requires: libnfs >= 1.9.3}
216 Requires: libssh2 >= 1.2.8
217 Provides: group(qemu)
219 Obsoletes: qemu-kvm-common
220 Conflicts: qemu < 1.0-2
223 QEMU is a generic and open source processor emulator which achieves a
224 good emulation speed by using dynamic translation.
226 This package provides the common files needed by all QEMU targets.
228 %description common -l pl.UTF-8
229 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
230 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
232 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
236 Summary: QEMU command line tool for manipulating disk images
237 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
238 Group: Development/Tools
239 Obsoletes: qemu-kvm-img
240 Conflicts: qemu < 1.0-2
243 This package provides a command line tool for manipulating disk
246 %description img -l pl.UTF-8
247 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
251 Summary: QEMU user mode emulation of qemu targets
252 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
253 Group: Development/Tools
254 Requires: %{name}-common = %{version}-%{release}
255 Obsoletes: qemu-kvm-user
258 QEMU is a generic and open source processor emulator which achieves a
259 good emulation speed by using dynamic translation.
261 This package provides the user mode emulation of QEMU targets.
263 %description user -l pl.UTF-8
264 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
265 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
267 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
269 %package system-aarch64
270 Summary: QEMU system emulator for AArch64
271 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
272 Group: Development/Tools
273 Requires: %{name}-common = %{version}-%{release}
275 Obsoletes: qemu-kvm-system-aarch64
277 %description system-aarch64
278 QEMU is a generic and open source processor emulator which achieves a
279 good emulation speed by using dynamic translation.
281 This package provides the system emulator with AArch64 CPU.
283 %description system-aarch64 -l pl.UTF-8
284 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
285 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
287 Ten pakiet zawiera emulator systemu z procesorem AArch64.
289 %package system-alpha
290 Summary: QEMU system emulator for Alpha
291 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
292 Group: Development/Tools
293 Requires: %{name}-common = %{version}-%{release}
295 Obsoletes: qemu-kvm-system-alpha
297 %description system-alpha
298 QEMU is a generic and open source processor emulator which achieves a
299 good emulation speed by using dynamic translation.
301 This package provides the system emulator with Alpha CPU.
303 %description system-alpha -l pl.UTF-8
304 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
305 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
307 Ten pakiet zawiera emulator systemu z procesorem Alpha.
310 Summary: QEMU system emulator for ARM
311 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
312 Group: Development/Tools
313 Requires: %{name}-common = %{version}-%{release}
315 Obsoletes: qemu-kvm-system-arm
317 %description system-arm
318 QEMU is a generic and open source processor emulator which achieves a
319 good emulation speed by using dynamic translation.
321 This package provides the system emulator for ARM.
323 %description system-arm -l pl.UTF-8
324 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
325 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
327 Ten pakiet zawiera emulator systemu z procesorem ARM.
330 Summary: QEMU system emulator for CRIS
331 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
332 Group: Development/Tools
333 Requires: %{name}-common = %{version}-%{release}
335 Obsoletes: qemu-kvm-system-cris
337 %description system-cris
338 QEMU is a generic and open source processor emulator which achieves a
339 good emulation speed by using dynamic translation.
341 This package provides the system emulator with CRIS CPU.
343 %description system-cris -l pl.UTF-8
344 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
345 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
347 Ten pakiet zawiera emulator systemu z procesorem CRIS.
350 Summary: QEMU system emulator for LM32
351 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
352 Group: Development/Tools
353 Requires: %{name}-common = %{version}-%{release}
355 Obsoletes: qemu-kvm-system-lm32
357 %description system-lm32
358 QEMU is a generic and open source processor emulator which achieves a
359 good emulation speed by using dynamic translation.
361 This package provides the system emulator with LM32 CPU.
363 %description system-lm32 -l pl.UTF-8
364 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
365 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
367 Ten pakiet zawiera emulator systemu z procesorem LM32.
370 Summary: QEMU system emulator for m68k
371 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
372 Group: Development/Tools
373 Requires: %{name}-common = %{version}-%{release}
375 Obsoletes: qemu-kvm-system-m68k
377 %description system-m68k
378 QEMU is a generic and open source processor emulator which achieves a
379 good emulation speed by using dynamic translation.
381 This package provides the system emulator with m68k CPU.
383 %description system-m68k -l pl.UTF-8
384 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
385 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
387 Ten pakiet zawiera emulator systemu z procesorem m68k.
389 %package system-microblaze
390 Summary: QEMU system emulator for MicroBlaze
391 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
392 Group: Development/Tools
393 Requires: %{name}-common = %{version}-%{release}
395 Obsoletes: qemu-kvm-system-microblaze
397 %description system-microblaze
398 QEMU is a generic and open source processor emulator which achieves a
399 good emulation speed by using dynamic translation.
401 This package provides the system emulator with MicroBlaze CPU.
403 %description system-microblaze -l pl.UTF-8
404 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
405 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
407 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
410 Summary: QEMU system emulator for MIPS
411 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
412 Group: Development/Tools
413 Requires: %{name}-common = %{version}-%{release}
415 Obsoletes: qemu-kvm-system-mips
417 %description system-mips
418 QEMU is a generic and open source processor emulator which achieves a
419 good emulation speed by using dynamic translation.
421 This package provides the system emulator with MIPS CPU.
423 %description system-mips -l pl.UTF-8
424 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
425 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
427 Ten pakiet zawiera emulator systemu z procesorem MIPS.
429 %package system-moxie
430 Summary: QEMU system emulator for Moxie
431 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
432 Group: Development/Tools
433 Requires: %{name}-common = %{version}-%{release}
436 %description system-moxie
437 QEMU is a generic and open source processor emulator which achieves a
438 good emulation speed by using dynamic translation.
440 This package provides the system emulator with Moxie CPU.
442 %description system-moxie -l pl.UTF-8
443 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
444 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
446 Ten pakiet zawiera emulator systemu z procesorem Moxie.
449 Summary: QEMU system emulator for OpenRISC
450 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
451 Group: Development/Tools
452 Requires: %{name}-common = %{version}-%{release}
454 Obsoletes: qemu-kvm-system-or32
456 %description system-or32
457 QEMU is a generic and open source processor emulator which achieves a
458 good emulation speed by using dynamic translation.
460 This package provides the system emulator with OpenRISC CPU.
462 %description system-or32 -l pl.UTF-8
463 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
464 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
466 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
469 Summary: QEMU system emulator for PowerPC
470 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
471 Group: Development/Tools
472 Requires: %{name}-common = %{version}-%{release}
474 Obsoletes: qemu-kvm-system-ppc
476 %description system-ppc
477 QEMU is a generic and open source processor emulator which achieves a
478 good emulation speed by using dynamic translation.
480 This package provides the system emulator with PowerPC CPU.
482 %description system-ppc -l pl.UTF-8
483 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
484 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
486 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
488 %package system-s390x
489 Summary: QEMU system emulator for S390
490 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
491 Group: Development/Tools
492 Requires: %{name}-common = %{version}-%{release}
494 Obsoletes: qemu-kvm-system-s390x
496 %description system-s390x
497 QEMU is a generic and open source processor emulator which achieves a
498 good emulation speed by using dynamic translation.
500 This package provides the system emulator with S390 CPU.
502 %description system-s390x -l pl.UTF-8
503 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
504 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
506 Ten pakiet zawiera emulator systemu z procesorem S390.
509 Summary: QEMU system emulator for SH4
510 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
511 Group: Development/Tools
512 Requires: %{name}-common = %{version}-%{release}
514 Obsoletes: qemu-kvm-system-sh4
516 %description system-sh4
517 QEMU is a generic and open source processor emulator which achieves a
518 good emulation speed by using dynamic translation.
520 This package provides the system emulator with SH4 CPU.
522 %description system-sh4 -l pl.UTF-8
523 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
524 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
526 Ten pakiet zawiera emulator systemu z procesorem SH4.
528 %package system-sparc
529 Summary: QEMU system emulator for SPARC
530 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
531 Group: Development/Tools
532 Requires: %{name}-common = %{version}-%{release}
534 Obsoletes: qemu-kvm-system-sparc
536 %description system-sparc
537 QEMU is a generic and open source processor emulator which achieves a
538 good emulation speed by using dynamic translation.
540 This package provides the system emulator with SPARC/SPARC64 CPU.
542 %description system-sparc -l pl.UTF-8
543 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
544 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
546 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
548 %package system-tricore
549 Summary: QEMU system emulator for TriCore
550 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
551 Group: Development/Tools
552 Requires: %{name}-common = %{version}-%{release}
555 %description system-tricore
556 QEMU is a generic and open source processor emulator which achieves a
557 good emulation speed by using dynamic translation.
559 This package provides the system emulator with TriCore CPU.
561 %description system-sparc -l pl.UTF-8
562 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
563 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
565 Ten pakiet zawiera emulator systemu z procesorem TriCore.
567 %package system-unicore32
568 Summary: QEMU system emulator for UniCore32
569 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
570 Group: Development/Tools
571 Requires: %{name}-common = %{version}-%{release}
573 Obsoletes: qemu-kvm-system-unicore32
575 %description system-unicore32
576 QEMU is a generic and open source processor emulator which achieves a
577 good emulation speed by using dynamic translation.
579 This package provides the system emulator with UniCore32 CPU.
581 %description system-unicore32 -l pl.UTF-8
582 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
583 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
585 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
588 Summary: QEMU system emulator for x86
589 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
590 Group: Development/Tools
591 Requires: %{name}-common = %{version}-%{release}
592 %{?with_system_seabios:Requires: seabios}
595 Obsoletes: qemu-kvm-system-x86
597 %description system-x86
598 QEMU is a generic and open source processor emulator which achieves a
599 good emulation speed by using dynamic translation.
601 %description system-x86 -l pl.UTF-8
602 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
603 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
605 %package system-xtensa
606 Summary: QEMU system emulator for Xtensa
607 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
608 Group: Development/Tools
609 Requires: %{name}-common = %{version}-%{release}
611 Obsoletes: qemu-kvm-system-xtensa
613 %description system-xtensa
614 QEMU is a generic and open source processor emulator which achieves a
615 good emulation speed by using dynamic translation.
617 This package provides the system emulator with Xtensa CPU.
619 %description system-xtensa -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 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
626 Summary: QEMU guest agent
627 Summary(pl.UTF-8): Agent gościa QEMU
629 Requires: glib2 >= 1:2.12
630 Obsoletes: qemu-kvm-guest-agent
632 %description guest-agent
633 QEMU is a generic and open source processor emulator which achieves a
634 good emulation speed by using dynamic translation.
636 This package provides an agent to run inside guests, which
637 communicates with the host over a virtio-serial channel named
638 "org.qemu.guest_agent.0".
640 This package does not need to be installed on the host OS.
642 %description guest-agent -l pl.UTF-8
643 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
644 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
646 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
647 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
648 "org.qemu.guest_agent.0".
650 Ten pakiet nie musi być zainstalowany w systemie hosta.
652 %package module-block-curl
653 Summary: QEMU module for 'curl' block devices
654 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
655 Group: Development/Tools
656 Requires: %{name}-common = %{version}-%{release}
658 %description module-block-curl
659 'curl' block device support for QEMU.
661 %description module-block-curl -l pl.UTF-8
662 Moduł QEMU dla urządeń blokowych typu 'curl'.
664 %package module-block-dmg
665 Summary: QEMU module for 'dmg' block devices
666 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'dmg'
667 Group: Development/Tools
668 Requires: %{name}-common = %{version}-%{release}
670 %description module-block-dmg
671 'dmg' block device support for QEMU.
673 %description module-block-dmg -l pl.UTF-8
674 Moduł QEMU dla urządeń blokowych typu 'dmg'.
676 %package module-block-gluster
677 Summary: QEMU module for 'gluster' block devices
678 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
679 Group: Development/Tools
680 Requires: %{name}-common = %{version}-%{release}
681 Requires: glusterfs-libs >= 3.4
683 %description module-block-gluster
684 'gluster' block device support for QEMU.
686 %description module-block-gluster -l pl.UTF-8
687 Moduł QEMU dla urządeń blokowych typu 'gluster'.
689 %package module-block-iscsi
690 Summary: QEMU module for 'iscsi' block devices
691 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
692 Group: Development/Tools
693 Requires: %{name}-common = %{version}-%{release}
694 Requires: libiscsi >= 1.9.0
696 %description module-block-iscsi
697 'iscsi' block device support for QEMU.
699 %description module-block-iscsi -l pl.UTF-8
700 Moduł QEMU dla urządeń blokowych typu 'iscsi'.
702 %package module-block-rbd
703 Summary: QEMU module for 'rbd' block devices
704 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
705 Group: Development/Tools
706 Requires: %{name}-common = %{version}-%{release}
708 %description module-block-rbd
709 'rbd' block device support for QEMU.
711 %description module-block-rbd -l pl.UTF-8
712 Moduł QEMU dla urządeń blokowych typu 'rbd'.
714 %package module-block-ssh
715 Summary: QEMU module for 'ssh' block devices
716 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
717 Group: Development/Tools
718 Requires: %{name}-common = %{version}-%{release}
720 %description module-block-ssh
721 'ssh' block device support for QEMU.
723 %description module-block-ssh -l pl.UTF-8
724 Moduł QEMU dla urządeń blokowych typu 'ssh'.
735 %{__mv} libcacard libcacard-use-system-lib
737 # workaround for conflict with alsa/error.h
738 ln -s ../error.h qapi/error.h
742 --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
743 --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
744 --prefix=%{_prefix} \
745 --libdir=%{_libdir} \
746 --libexecdir=%{_libexecdir} \
747 --sysconfdir=%{_sysconfdir} \
749 --host-cc="%{__cc}" \
752 %{__enable_disable bluetooth bluez} \
753 %{__enable_disable brlapi} \
759 %{__enable_disable glusterfs} \
760 %{__enable_disable iscsi libiscsi} \
761 %{__enable_disable ceph rbd} \
762 %{__enable_disable rdma} \
763 %{__enable_disable sdl} \
765 %{__enable_disable seccomp} \
766 %{__enable_disable spice} \
767 %{__enable_disable smartcard smartcard-nss} \
769 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
770 %{__enable_disable usbredir usb-redir} \
778 %{!?with_vte:--disable-vte} \
780 %{__enable_disable xen} \
783 %{__enable_disable libnfs} \
785 %{__enable_disable snappy} \
786 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
787 --interp-prefix=%{_libdir}/qemu/lib-%%M \
788 %if %{without gtk2} && %{without gtk3}
791 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
796 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
798 # rebuild patched vesa tables with additional widescreen modes.
799 %{__make} -C roms/vgabios stdvga-bios
801 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
804 rm -rf $RPM_BUILD_ROOT
805 install -d $RPM_BUILD_ROOT/usr/lib/binfmt.d \
806 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
807 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
810 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
811 DESTDIR=$RPM_BUILD_ROOT
813 install -d $RPM_BUILD_ROOT%{_sysconfdir}
814 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
819 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
821 %ifarch %{ix86} %{x8664}
822 install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
823 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
824 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
827 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
828 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
830 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
831 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
834 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
835 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
837 # install patched vesa tables with additional widescreen modes.
838 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
840 %if %{with system_seabios}
841 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
842 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
843 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
845 if [ -e "/usr/share/seabios/$bn" ] ; then
846 ln -sf "/usr/share/seabios/$bn" "$f"
851 %if %{with gtk2} || %{with gtk3}
852 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
853 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
860 rm -rf $RPM_BUILD_ROOT
864 %groupadd -g 276 qemu
865 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
868 if [ "$1" = "0" ]; then
875 %defattr(644,root,root,755)
877 %files common -f %{name}.lang
878 %defattr(644,root,root,755)
879 %doc LICENSE README qemu-doc.html qemu-tech.html qmp-commands.txt
880 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
881 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
882 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
883 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
884 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
885 %attr(755,root,root) %{_bindir}/qemu-nbd
886 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
887 %attr(755,root,root) %{_sbindir}/ksmctl
888 %attr(755,root,root) %{_sbindir}/ksmtuned
889 %{_mandir}/man1/qemu.1*
890 %{_mandir}/man1/virtfs-proxy-helper.1*
891 %{_mandir}/man8/qemu-nbd.8*
893 %dir %{_datadir}/qemu
894 %{_datadir}/%{name}/keymaps
895 %{_datadir}/%{name}/qemu-icon.bmp
896 %{_datadir}/%{name}/trace-events
898 # various bios images
899 # all should be probably moved to the right system subpackage
900 %{_datadir}/%{name}/QEMU,cgthree.bin
901 %{_datadir}/%{name}/QEMU,tcx.bin
902 %{_datadir}/%{name}/bamboo.dtb
903 %{_datadir}/%{name}/efi-e1000.rom
904 %{_datadir}/%{name}/efi-eepro100.rom
905 %{_datadir}/%{name}/efi-ne2k_pci.rom
906 %{_datadir}/%{name}/efi-pcnet.rom
907 %{_datadir}/%{name}/efi-rtl8139.rom
908 %{_datadir}/%{name}/efi-virtio.rom
909 %{_datadir}/%{name}/kvmvapic.bin
910 %{_datadir}/%{name}/linuxboot.bin
911 %{_datadir}/%{name}/multiboot.bin
912 %{_datadir}/%{name}/openbios-ppc
913 %{_datadir}/%{name}/openbios-sparc*
914 %{_datadir}/%{name}/palcode-clipper
915 %{_datadir}/%{name}/petalogix-ml605.dtb
916 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
917 %{_datadir}/%{name}/ppc_rom.bin
918 %{_datadir}/%{name}/pxe-e1000.rom
919 %{_datadir}/%{name}/pxe-eepro100.rom
920 %{_datadir}/%{name}/pxe-ne2k_pci.rom
921 %{_datadir}/%{name}/pxe-pcnet.rom
922 %{_datadir}/%{name}/pxe-rtl8139.rom
923 %{_datadir}/%{name}/pxe-virtio.rom
924 %{_datadir}/%{name}/qemu_logo_no_text.svg
925 %{_datadir}/%{name}/s390-ccw.img
926 %{_datadir}/%{name}/s390-zipl.rom
927 %{_datadir}/%{name}/sgabios.bin
928 %{_datadir}/%{name}/slof.bin
929 %{_datadir}/%{name}/spapr-rtas.bin
930 %{_datadir}/%{name}/vgabios.bin
931 %{_datadir}/%{name}/vgabios-cirrus.bin
932 %{_datadir}/%{name}/vgabios-qxl.bin
933 %{_datadir}/%{name}/vgabios-stdvga.bin
934 %{_datadir}/%{name}/vgabios-virtio.bin
935 %{_datadir}/%{name}/vgabios-vmware.bin
937 %dir %{_libdir}/%{name}
940 %defattr(644,root,root,755)
941 %attr(755,root,root) %{_bindir}/qemu-img
942 %{_mandir}/man1/qemu-img.1*
945 %defattr(644,root,root,755)
946 %attr(755,root,root) %{_bindir}/qemu-aarch64
947 %attr(755,root,root) %{_bindir}/qemu-alpha
948 %attr(755,root,root) %{_bindir}/qemu-arm
949 %attr(755,root,root) %{_bindir}/qemu-armeb
950 %attr(755,root,root) %{_bindir}/qemu-cris
951 %attr(755,root,root) %{_bindir}/qemu-i386
952 %attr(755,root,root) %{_bindir}/qemu-io
953 %attr(755,root,root) %{_bindir}/qemu-m68k
954 %attr(755,root,root) %{_bindir}/qemu-microblaze
955 %attr(755,root,root) %{_bindir}/qemu-microblazeel
956 %attr(755,root,root) %{_bindir}/qemu-mips
957 %attr(755,root,root) %{_bindir}/qemu-mipsel
958 %attr(755,root,root) %{_bindir}/qemu-mips64
959 %attr(755,root,root) %{_bindir}/qemu-mips64el
960 %attr(755,root,root) %{_bindir}/qemu-mipsn32
961 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
962 %attr(755,root,root) %{_bindir}/qemu-or32
963 %attr(755,root,root) %{_bindir}/qemu-ppc
964 %attr(755,root,root) %{_bindir}/qemu-ppc64
965 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
966 %attr(755,root,root) %{_bindir}/qemu-ppc64le
967 %attr(755,root,root) %{_bindir}/qemu-s390x
968 %attr(755,root,root) %{_bindir}/qemu-sh4
969 %attr(755,root,root) %{_bindir}/qemu-sh4eb
970 %attr(755,root,root) %{_bindir}/qemu-sparc
971 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
972 %attr(755,root,root) %{_bindir}/qemu-sparc64
973 %attr(755,root,root) %{_bindir}/qemu-unicore32
974 %attr(755,root,root) %{_bindir}/qemu-x86_64
976 %files system-aarch64
977 %defattr(644,root,root,755)
978 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
981 %defattr(644,root,root,755)
982 %attr(755,root,root) %{_bindir}/qemu-system-alpha
985 %defattr(644,root,root,755)
986 %attr(755,root,root) %{_bindir}/qemu-system-arm
989 %defattr(644,root,root,755)
990 %attr(755,root,root) %{_bindir}/qemu-system-cris
993 %defattr(644,root,root,755)
994 %attr(755,root,root) %{_bindir}/qemu-system-lm32
997 %defattr(644,root,root,755)
998 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1000 %files system-microblaze
1001 %defattr(644,root,root,755)
1002 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1003 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1006 %defattr(644,root,root,755)
1007 %attr(755,root,root) %{_bindir}/qemu-system-mips
1008 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1009 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1010 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1013 %defattr(644,root,root,755)
1014 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1017 %defattr(644,root,root,755)
1018 %attr(755,root,root) %{_bindir}/qemu-system-or32
1021 %defattr(644,root,root,755)
1022 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1023 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1024 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
1025 %{_datadir}/%{name}/u-boot.e500
1028 %defattr(644,root,root,755)
1029 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1032 %defattr(644,root,root,755)
1033 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1034 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1037 %defattr(644,root,root,755)
1038 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1039 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1041 %files system-tricore
1042 %defattr(644,root,root,755)
1043 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1045 %files system-unicore32
1046 %defattr(644,root,root,755)
1047 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1050 %defattr(644,root,root,755)
1051 %attr(755,root,root) %{_bindir}/qemu-system-i386
1052 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1053 %ifarch %{ix86} %{x8664}
1054 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1055 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
1056 %attr(755,root,root) %{_bindir}/kvm_stat
1058 %{_datadir}/%{name}/bios.bin
1059 %{_datadir}/%{name}/bios-256k.bin
1060 %{_datadir}/%{name}/acpi-dsdt.aml
1061 %{_datadir}/%{name}/q35-acpi-dsdt.aml
1063 %files system-xtensa
1064 %defattr(644,root,root,755)
1065 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1066 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1069 %defattr(644,root,root,755)
1070 %attr(755,root,root) %{_bindir}/qemu-ga
1072 %files module-block-curl
1073 %defattr(644,root,root,755)
1074 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1076 %files module-block-dmg
1077 %defattr(644,root,root,755)
1078 %attr(755,root,root) %{_libdir}/%{name}/block-dmg.so
1080 %if %{with glusterfs}
1081 %files module-block-gluster
1082 %defattr(644,root,root,755)
1083 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1087 %files module-block-iscsi
1088 %defattr(644,root,root,755)
1089 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1093 %files module-block-rbd
1094 %defattr(644,root,root,755)
1095 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1098 %files module-block-ssh
1099 %defattr(644,root,root,755)
1100 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so