3 %bcond_without sdl # SDL UI and audio support
4 %bcond_without glx # OpenGL/GLX 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_with gtk3 # Do not build GTK+ UI
10 %bcond_with 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: f7a5e2da22d057eb838a91da7aff43c8
41 Source2: %{name}.binfmt
42 # Loads kvm kernel modules at boot
43 Source3: kvm-modules-load.conf
47 Source6: ksm.sysconfig
50 Source10: ksmtuned.conf
51 Patch0: %{name}-cflags.patch
52 Patch1: vgabios-widescreens.patch
53 Patch2: %{name}-whitelist.patch
54 Patch3: %{name}-system-libcacard.patch
55 Patch4: %{name}-xattr.patch
56 Patch5: libjpeg-boolean.patch
57 # Proof of concept, for reference, do not remove
58 Patch400: %{name}-kde_virtual_workspaces_hack.patch
59 URL: http://www.qemu-project.org/
60 %{?with_opengl:BuildRequires: OpenGL-GLX-devel}
61 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
62 BuildRequires: alsa-lib-devel
64 %{?with_bluetooth:BuildRequires: bluez-libs-devel}
65 %{?with_brlapi:BuildRequires: brlapi-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: perl-Encode
93 BuildRequires: perl-tools-pod
94 BuildRequires: pkgconfig
95 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
96 BuildRequires: rpmbuild(macros) >= 1.644
97 %{?with_system_seabios:BuildRequires: seabios}
98 BuildRequires: sed >= 4.0
99 %{?with_snappy:BuildRequires: snappy-devel}
101 BuildRequires: spice-protocol >= 0.12.3
102 BuildRequires: spice-server-devel >= 0.12.0
104 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
105 BuildRequires: texi2html
106 BuildRequires: texinfo
107 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
108 %{?with_lttng:BuildRequires: userspace-rcu-devel}
109 BuildRequires: vde2-devel
111 %{?with_xen:BuildRequires: xen-devel >= 3.4}
112 BuildRequires: xfsprogs-devel
113 BuildRequires: xorg-lib-libX11-devel
114 BuildRequires: zlib-devel
116 BuildRequires: gtk+2-devel >= 2:2.18.0
117 %{?with_vte:BuildRequires: vte0-devel >= 0.24.0}
120 BuildRequires: gtk+3-devel >= 3.0.0
121 %{?with_vte:BuildRequires: vte2.90-devel >= 0.32.0}
123 Requires: %{name}-img = %{version}-%{release}
124 Requires: %{name}-system-aarch64 = %{version}-%{release}
125 Requires: %{name}-system-alpha = %{version}-%{release}
126 Requires: %{name}-system-arm = %{version}-%{release}
127 Requires: %{name}-system-cris = %{version}-%{release}
128 Requires: %{name}-system-lm32 = %{version}-%{release}
129 Requires: %{name}-system-m68k = %{version}-%{release}
130 Requires: %{name}-system-microblaze = %{version}-%{release}
131 Requires: %{name}-system-mips = %{version}-%{release}
132 Requires: %{name}-system-moxie = %{version}-%{release}
133 Requires: %{name}-system-or32 = %{version}-%{release}
134 Requires: %{name}-system-ppc = %{version}-%{release}
135 Requires: %{name}-system-s390x = %{version}-%{release}
136 Requires: %{name}-system-sh4 = %{version}-%{release}
137 Requires: %{name}-system-sparc = %{version}-%{release}
138 Requires: %{name}-system-tricore = %{version}-%{release}
139 Requires: %{name}-system-unicore32 = %{version}-%{release}
140 Requires: %{name}-system-x86 = %{version}-%{release}
141 Requires: %{name}-system-xtensa = %{version}-%{release}
142 Requires: %{name}-user = %{version}-%{release}
144 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
146 %define systempkg_req \
150 %if %{with seccomp} \
151 Requires: libseccomp >= 2.1.0 \
153 Requires: libusb >= 1.0.13 \
154 %if %{with usbredir} \
155 Requires: usbredir >= 0.6 \
158 Requires: gtk+2 >= 2:2.18.0 \
159 %{?with_vte:Requires: vte0 >= 0.24.0} \
162 Requires: gtk+3 >= 3.0.0 \
163 %{?with_vte:Requires: vte2.90 >= 0.32.0} \
166 # some PPC/SPARC boot image in ELF format
167 %define _noautostrip .*%{_datadir}/qemu/.*-.*
170 QEMU is a FAST! processor emulator. By using dynamic translation it
171 achieves a reasonnable speed while being easy to port on new host
172 CPUs. QEMU has two operating modes:
174 - User mode emulation. In this mode, QEMU can launch Linux processes
175 compiled for one CPU on another CPU. Linux system calls are converted
176 because of endianness and 32/64 bit mismatches. Wine (Windows
177 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
179 - Full system emulation. In this mode, QEMU emulates a full system,
180 including a processor and various peripherials. It can also be used to
181 provide virtual hosting of several virtual PC on a single server.
183 %description -l pl.UTF-8
184 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
185 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
186 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
188 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
189 procesy linuksowe skompilowane dla jednego procesora na innym
190 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
191 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
192 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
195 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
196 włączając w to procesor i różne urządzenia peryferyjne. Może być także
197 używane do wirtualnego hostowania kilku wirtualnych pecetów na
198 pojedynczym serwerze.
201 Summary: QEMU common files needed by all QEMU targets
202 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
203 Group: Development/Tools
204 Requires(postun): /usr/sbin/groupdel
205 Requires(postun): /usr/sbin/userdel
206 Requires(pre): /bin/id
207 Requires(pre): /usr/bin/getgid
208 Requires(pre): /usr/sbin/groupadd
209 Requires(pre): /usr/sbin/useradd
210 Requires: glib2 >= 1:2.12
211 %{?with_libnfs:Requires: libnfs >= 1.9.3}
212 Requires: libssh2 >= 1.2.8
213 Provides: group(qemu)
215 Obsoletes: qemu-kvm-common
216 Conflicts: qemu < 1.0-2
219 QEMU is a generic and open source processor emulator which achieves a
220 good emulation speed by using dynamic translation.
222 This package provides the common files needed by all QEMU targets.
224 %description common -l pl.UTF-8
225 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
226 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
228 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
232 Summary: QEMU command line tool for manipulating disk images
233 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
234 Group: Development/Tools
235 Obsoletes: qemu-kvm-img
236 Conflicts: qemu < 1.0-2
239 This package provides a command line tool for manipulating disk
242 %description img -l pl.UTF-8
243 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
247 Summary: QEMU user mode emulation of qemu targets
248 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
249 Group: Development/Tools
250 Requires: %{name}-common = %{version}-%{release}
251 Obsoletes: qemu-kvm-user
254 QEMU is a generic and open source processor emulator which achieves a
255 good emulation speed by using dynamic translation.
257 This package provides the user mode emulation of QEMU targets.
259 %description user -l pl.UTF-8
260 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
261 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
263 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
265 %package system-aarch64
266 Summary: QEMU system emulator for AArch64
267 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
268 Group: Development/Tools
269 Requires: %{name}-common = %{version}-%{release}
271 Obsoletes: qemu-kvm-system-aarch64
273 %description system-aarch64
274 QEMU is a generic and open source processor emulator which achieves a
275 good emulation speed by using dynamic translation.
277 This package provides the system emulator with AArch64 CPU.
279 %description system-aarch64 -l pl.UTF-8
280 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
281 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
283 Ten pakiet zawiera emulator systemu z procesorem AArch64.
285 %package system-alpha
286 Summary: QEMU system emulator for Alpha
287 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
288 Group: Development/Tools
289 Requires: %{name}-common = %{version}-%{release}
291 Obsoletes: qemu-kvm-system-alpha
293 %description system-alpha
294 QEMU is a generic and open source processor emulator which achieves a
295 good emulation speed by using dynamic translation.
297 This package provides the system emulator with Alpha CPU.
299 %description system-alpha -l pl.UTF-8
300 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
301 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
303 Ten pakiet zawiera emulator systemu z procesorem Alpha.
306 Summary: QEMU system emulator for ARM
307 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
308 Group: Development/Tools
309 Requires: %{name}-common = %{version}-%{release}
311 Obsoletes: qemu-kvm-system-arm
313 %description system-arm
314 QEMU is a generic and open source processor emulator which achieves a
315 good emulation speed by using dynamic translation.
317 This package provides the system emulator for ARM.
319 %description system-arm -l pl.UTF-8
320 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
321 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
323 Ten pakiet zawiera emulator systemu z procesorem ARM.
326 Summary: QEMU system emulator for CRIS
327 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
328 Group: Development/Tools
329 Requires: %{name}-common = %{version}-%{release}
331 Obsoletes: qemu-kvm-system-cris
333 %description system-cris
334 QEMU is a generic and open source processor emulator which achieves a
335 good emulation speed by using dynamic translation.
337 This package provides the system emulator with CRIS CPU.
339 %description system-cris -l pl.UTF-8
340 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
341 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
343 Ten pakiet zawiera emulator systemu z procesorem CRIS.
346 Summary: QEMU system emulator for LM32
347 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
348 Group: Development/Tools
349 Requires: %{name}-common = %{version}-%{release}
351 Obsoletes: qemu-kvm-system-lm32
353 %description system-lm32
354 QEMU is a generic and open source processor emulator which achieves a
355 good emulation speed by using dynamic translation.
357 This package provides the system emulator with LM32 CPU.
359 %description system-lm32 -l pl.UTF-8
360 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
361 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
363 Ten pakiet zawiera emulator systemu z procesorem LM32.
366 Summary: QEMU system emulator for m68k
367 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
368 Group: Development/Tools
369 Requires: %{name}-common = %{version}-%{release}
371 Obsoletes: qemu-kvm-system-m68k
373 %description system-m68k
374 QEMU is a generic and open source processor emulator which achieves a
375 good emulation speed by using dynamic translation.
377 This package provides the system emulator with m68k CPU.
379 %description system-m68k -l pl.UTF-8
380 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
381 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
383 Ten pakiet zawiera emulator systemu z procesorem m68k.
385 %package system-microblaze
386 Summary: QEMU system emulator for MicroBlaze
387 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
388 Group: Development/Tools
389 Requires: %{name}-common = %{version}-%{release}
391 Obsoletes: qemu-kvm-system-microblaze
393 %description system-microblaze
394 QEMU is a generic and open source processor emulator which achieves a
395 good emulation speed by using dynamic translation.
397 This package provides the system emulator with MicroBlaze CPU.
399 %description system-microblaze -l pl.UTF-8
400 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
401 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
403 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
406 Summary: QEMU system emulator for MIPS
407 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
408 Group: Development/Tools
409 Requires: %{name}-common = %{version}-%{release}
411 Obsoletes: qemu-kvm-system-mips
413 %description system-mips
414 QEMU is a generic and open source processor emulator which achieves a
415 good emulation speed by using dynamic translation.
417 This package provides the system emulator with MIPS CPU.
419 %description system-mips -l pl.UTF-8
420 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
421 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
423 Ten pakiet zawiera emulator systemu z procesorem MIPS.
425 %package system-moxie
426 Summary: QEMU system emulator for Moxie
427 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
428 Group: Development/Tools
429 Requires: %{name}-common = %{version}-%{release}
432 %description system-moxie
433 QEMU is a generic and open source processor emulator which achieves a
434 good emulation speed by using dynamic translation.
436 This package provides the system emulator with Moxie CPU.
438 %description system-moxie -l pl.UTF-8
439 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
440 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
442 Ten pakiet zawiera emulator systemu z procesorem Moxie.
445 Summary: QEMU system emulator for OpenRISC
446 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
447 Group: Development/Tools
448 Requires: %{name}-common = %{version}-%{release}
450 Obsoletes: qemu-kvm-system-or32
452 %description system-or32
453 QEMU is a generic and open source processor emulator which achieves a
454 good emulation speed by using dynamic translation.
456 This package provides the system emulator with OpenRISC CPU.
458 %description system-or32 -l pl.UTF-8
459 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
460 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
462 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
465 Summary: QEMU system emulator for PowerPC
466 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
467 Group: Development/Tools
468 Requires: %{name}-common = %{version}-%{release}
470 Obsoletes: qemu-kvm-system-ppc
472 %description system-ppc
473 QEMU is a generic and open source processor emulator which achieves a
474 good emulation speed by using dynamic translation.
476 This package provides the system emulator with PowerPC CPU.
478 %description system-ppc -l pl.UTF-8
479 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
480 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
482 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
484 %package system-s390x
485 Summary: QEMU system emulator for S390
486 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
487 Group: Development/Tools
488 Requires: %{name}-common = %{version}-%{release}
490 Obsoletes: qemu-kvm-system-s390x
492 %description system-s390x
493 QEMU is a generic and open source processor emulator which achieves a
494 good emulation speed by using dynamic translation.
496 This package provides the system emulator with S390 CPU.
498 %description system-s390x -l pl.UTF-8
499 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
500 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
502 Ten pakiet zawiera emulator systemu z procesorem S390.
505 Summary: QEMU system emulator for SH4
506 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
507 Group: Development/Tools
508 Requires: %{name}-common = %{version}-%{release}
510 Obsoletes: qemu-kvm-system-sh4
512 %description system-sh4
513 QEMU is a generic and open source processor emulator which achieves a
514 good emulation speed by using dynamic translation.
516 This package provides the system emulator with SH4 CPU.
518 %description system-sh4 -l pl.UTF-8
519 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
520 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
522 Ten pakiet zawiera emulator systemu z procesorem SH4.
524 %package system-sparc
525 Summary: QEMU system emulator for SPARC
526 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
527 Group: Development/Tools
528 Requires: %{name}-common = %{version}-%{release}
530 Obsoletes: qemu-kvm-system-sparc
532 %description system-sparc
533 QEMU is a generic and open source processor emulator which achieves a
534 good emulation speed by using dynamic translation.
536 This package provides the system emulator with SPARC/SPARC64 CPU.
538 %description system-sparc -l pl.UTF-8
539 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
540 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
542 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
544 %package system-tricore
545 Summary: QEMU system emulator for TriCore
546 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
547 Group: Development/Tools
548 Requires: %{name}-common = %{version}-%{release}
551 %description system-tricore
552 QEMU is a generic and open source processor emulator which achieves a
553 good emulation speed by using dynamic translation.
555 This package provides the system emulator with TriCore CPU.
557 %description system-sparc -l pl.UTF-8
558 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
559 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
561 Ten pakiet zawiera emulator systemu z procesorem TriCore.
563 %package system-unicore32
564 Summary: QEMU system emulator for UniCore32
565 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
566 Group: Development/Tools
567 Requires: %{name}-common = %{version}-%{release}
569 Obsoletes: qemu-kvm-system-unicore32
571 %description system-unicore32
572 QEMU is a generic and open source processor emulator which achieves a
573 good emulation speed by using dynamic translation.
575 This package provides the system emulator with UniCore32 CPU.
577 %description system-unicore32 -l pl.UTF-8
578 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
579 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
581 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
584 Summary: QEMU system emulator for x86
585 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
586 Group: Development/Tools
587 Requires: %{name}-common = %{version}-%{release}
588 %{?with_system_seabios:Requires: seabios}
591 Obsoletes: qemu-kvm-system-x86
593 %description system-x86
594 QEMU is a generic and open source processor emulator which achieves a
595 good emulation speed by using dynamic translation.
597 %description system-x86 -l pl.UTF-8
598 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
599 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
601 %package system-xtensa
602 Summary: QEMU system emulator for Xtensa
603 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
604 Group: Development/Tools
605 Requires: %{name}-common = %{version}-%{release}
607 Obsoletes: qemu-kvm-system-xtensa
609 %description system-xtensa
610 QEMU is a generic and open source processor emulator which achieves a
611 good emulation speed by using dynamic translation.
613 This package provides the system emulator with Xtensa CPU.
615 %description system-xtensa -l pl.UTF-8
616 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
617 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
619 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
622 Summary: QEMU guest agent
623 Summary(pl.UTF-8): Agent gościa QEMU
625 Requires: glib2 >= 1:2.12
626 Obsoletes: qemu-kvm-guest-agent
628 %description guest-agent
629 QEMU is a generic and open source processor emulator which achieves a
630 good emulation speed by using dynamic translation.
632 This package provides an agent to run inside guests, which
633 communicates with the host over a virtio-serial channel named
634 "org.qemu.guest_agent.0".
636 This package does not need to be installed on the host OS.
638 %description guest-agent -l pl.UTF-8
639 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
640 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
642 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
643 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
644 "org.qemu.guest_agent.0".
646 Ten pakiet nie musi być zainstalowany w systemie hosta.
648 %package module-block-curl
649 Summary: QEMU module for 'curl' block devices
650 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
651 Group: Development/Tools
652 Requires: %{name}-common = %{version}-%{release}
654 %description module-block-curl
655 'curl' block device support for QEMU.
657 %description module-block-curl -l pl.UTF-8
658 Moduł QEMU dla urządeń blokowych typu 'curl'.
660 %package module-block-gluster
661 Summary: QEMU module for 'gluster' block devices
662 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
663 Group: Development/Tools
664 Requires: %{name}-common = %{version}-%{release}
665 Requires: glusterfs-libs >= 3.4
667 %description module-block-gluster
668 'gluster' block device support for QEMU.
670 %description module-block-gluster -l pl.UTF-8
671 Moduł QEMU dla urządeń blokowych typu 'gluster'.
673 %package module-block-iscsi
674 Summary: QEMU module for 'iscsi' block devices
675 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
676 Group: Development/Tools
677 Requires: %{name}-common = %{version}-%{release}
678 Requires: libiscsi >= 1.9.0
680 %description module-block-iscsi
681 'iscsi' block device support for QEMU.
683 %description module-block-iscsi -l pl.UTF-8
684 Moduł QEMU dla urządeń blokowych typu 'iscsi'.
686 %package module-block-rbd
687 Summary: QEMU module for 'rbd' block devices
688 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
689 Group: Development/Tools
690 Requires: %{name}-common = %{version}-%{release}
692 %description module-block-rbd
693 'rbd' block device support for QEMU.
695 %description module-block-rbd -l pl.UTF-8
696 Moduł QEMU dla urządeń blokowych typu 'rbd'.
698 %package module-block-ssh
699 Summary: QEMU module for 'ssh' block devices
700 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
701 Group: Development/Tools
702 Requires: %{name}-common = %{version}-%{release}
704 %description module-block-ssh
705 'ssh' block device support for QEMU.
707 %description module-block-ssh -l pl.UTF-8
708 Moduł QEMU dla urządeń blokowych typu 'ssh'.
719 %{__mv} libcacard libcacard-use-system-lib
721 # workaround for conflict with alsa/error.h
722 ln -s ../error.h qapi/error.h
726 --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
727 --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
728 --prefix=%{_prefix} \
729 --libdir=%{_libdir} \
730 --libexecdir=%{_libexecdir} \
731 --sysconfdir=%{_sysconfdir} \
733 --host-cc="%{__cc}" \
736 %{__enable_disable bluetooth bluez} \
737 %{__enable_disable brlapi} \
743 %{__enable_disable glusterfs} \
744 %{__enable_disable iscsi libiscsi} \
745 %{__enable_disable glx} \
746 %{__enable_disable ceph rbd} \
747 %{__enable_disable rdma} \
748 %{__enable_disable sdl} \
750 %{__enable_disable seccomp} \
751 %{__enable_disable spice} \
752 %{__enable_disable smartcard smartcard-nss} \
754 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
755 %{__enable_disable usbredir usb-redir} \
763 %{!?with_vte:--disable-vte} \
765 %{__enable_disable xen} \
768 %{__enable_disable libnfs} \
770 %{__enable_disable snappy} \
772 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
773 --interp-prefix=%{_libdir}/qemu/lib-%%M \
774 %if %{without gtk2} && %{without gtk3}
777 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
782 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
784 # rebuild patched vesa tables with additional widescreen modes.
785 %{__make} -C roms/vgabios stdvga-bios
787 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
790 rm -rf $RPM_BUILD_ROOT
791 install -d $RPM_BUILD_ROOT/usr/lib/binfmt.d \
792 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
793 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
796 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
797 DESTDIR=$RPM_BUILD_ROOT
799 install -d $RPM_BUILD_ROOT%{_sysconfdir}
800 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
805 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
807 %ifarch %{ix86} %{x8664}
808 install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
809 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
810 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
813 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
814 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
816 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
817 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
820 %ifnarch %{ix86} %{x8664}
829 %ifnarch sparc sparc64
836 test $i = dummy && continue
837 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i.conf
841 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
842 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
844 # install patched vesa tables with additional widescreen modes.
845 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
847 %if %{with system_seabios}
848 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
849 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
850 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
852 if [ -e "/usr/share/seabios/$bn" ] ; then
853 ln -sf "/usr/share/seabios/$bn" "$f"
858 %if %{with gtk2} || %{with gtk3}
859 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
860 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
867 rm -rf $RPM_BUILD_ROOT
871 %groupadd -g 276 qemu
872 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
875 if [ "$1" = "0" ]; then
881 %triggerpostun common -- qemu-common < 1.6.1-4
884 %defattr(644,root,root,755)
886 %files common -f %{name}.lang
887 %defattr(644,root,root,755)
888 %doc README qemu-doc.html qemu-tech.html qmp-commands.txt
889 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
890 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu/target-*.conf
891 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
892 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
893 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
894 %dir %{_sysconfdir}/qemu
895 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
896 %attr(755,root,root) %{_bindir}/qemu-nbd
897 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
898 %attr(755,root,root) %{_sbindir}/ksmctl
899 %attr(755,root,root) %{_sbindir}/ksmtuned
900 %{_mandir}/man1/qemu.1*
901 %{_mandir}/man1/virtfs-proxy-helper.1*
902 %{_mandir}/man8/qemu-nbd.8*
904 %dir %{_datadir}/qemu
905 %{_datadir}/%{name}/keymaps
906 %{_datadir}/%{name}/qemu-icon.bmp
907 %{_datadir}/%{name}/trace-events
909 # various bios images
910 # all should be probably moved to the right system subpackage
911 %{_datadir}/%{name}/QEMU,cgthree.bin
912 %{_datadir}/%{name}/QEMU,tcx.bin
913 %{_datadir}/%{name}/bamboo.dtb
914 %{_datadir}/%{name}/efi-e1000.rom
915 %{_datadir}/%{name}/efi-eepro100.rom
916 %{_datadir}/%{name}/efi-ne2k_pci.rom
917 %{_datadir}/%{name}/efi-pcnet.rom
918 %{_datadir}/%{name}/efi-rtl8139.rom
919 %{_datadir}/%{name}/efi-virtio.rom
920 %{_datadir}/%{name}/kvmvapic.bin
921 %{_datadir}/%{name}/linuxboot.bin
922 %{_datadir}/%{name}/multiboot.bin
923 %{_datadir}/%{name}/openbios-ppc
924 %{_datadir}/%{name}/openbios-sparc*
925 %{_datadir}/%{name}/palcode-clipper
926 %{_datadir}/%{name}/petalogix-ml605.dtb
927 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
928 %{_datadir}/%{name}/ppc_rom.bin
929 %{_datadir}/%{name}/pxe-e1000.rom
930 %{_datadir}/%{name}/pxe-eepro100.rom
931 %{_datadir}/%{name}/pxe-ne2k_pci.rom
932 %{_datadir}/%{name}/pxe-pcnet.rom
933 %{_datadir}/%{name}/pxe-rtl8139.rom
934 %{_datadir}/%{name}/pxe-virtio.rom
935 %{_datadir}/%{name}/qemu_logo_no_text.svg
936 %{_datadir}/%{name}/s390-ccw.img
937 %{_datadir}/%{name}/s390-zipl.rom
938 %{_datadir}/%{name}/sgabios.bin
939 %{_datadir}/%{name}/slof.bin
940 %{_datadir}/%{name}/spapr-rtas.bin
941 %{_datadir}/%{name}/vgabios-cirrus.bin
942 %{_datadir}/%{name}/vgabios-qxl.bin
943 %{_datadir}/%{name}/vgabios-stdvga.bin
944 %{_datadir}/%{name}/vgabios-vmware.bin
945 %{_datadir}/%{name}/vgabios.bin
947 %dir %{_libdir}/%{name}
950 %defattr(644,root,root,755)
951 %attr(755,root,root) %{_bindir}/qemu-img
952 %{_mandir}/man1/qemu-img.1*
955 %defattr(644,root,root,755)
956 /usr/lib/binfmt.d/qemu-*.conf
957 %attr(755,root,root) %{_bindir}/qemu-aarch64
958 %attr(755,root,root) %{_bindir}/qemu-alpha
959 %attr(755,root,root) %{_bindir}/qemu-arm
960 %attr(755,root,root) %{_bindir}/qemu-armeb
961 %attr(755,root,root) %{_bindir}/qemu-cris
962 %attr(755,root,root) %{_bindir}/qemu-i386
963 %attr(755,root,root) %{_bindir}/qemu-io
964 %attr(755,root,root) %{_bindir}/qemu-m68k
965 %attr(755,root,root) %{_bindir}/qemu-microblaze
966 %attr(755,root,root) %{_bindir}/qemu-microblazeel
967 %attr(755,root,root) %{_bindir}/qemu-mips
968 %attr(755,root,root) %{_bindir}/qemu-mipsel
969 %attr(755,root,root) %{_bindir}/qemu-mips64
970 %attr(755,root,root) %{_bindir}/qemu-mips64el
971 %attr(755,root,root) %{_bindir}/qemu-mipsn32
972 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
973 %attr(755,root,root) %{_bindir}/qemu-or32
974 %attr(755,root,root) %{_bindir}/qemu-ppc
975 %attr(755,root,root) %{_bindir}/qemu-ppc64
976 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
977 %attr(755,root,root) %{_bindir}/qemu-ppc64le
978 %attr(755,root,root) %{_bindir}/qemu-s390x
979 %attr(755,root,root) %{_bindir}/qemu-sh4
980 %attr(755,root,root) %{_bindir}/qemu-sh4eb
981 %attr(755,root,root) %{_bindir}/qemu-sparc
982 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
983 %attr(755,root,root) %{_bindir}/qemu-sparc64
984 %attr(755,root,root) %{_bindir}/qemu-unicore32
985 %attr(755,root,root) %{_bindir}/qemu-x86_64
987 %files system-aarch64
988 %defattr(644,root,root,755)
989 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
992 %defattr(644,root,root,755)
993 %attr(755,root,root) %{_bindir}/qemu-system-alpha
996 %defattr(644,root,root,755)
997 %attr(755,root,root) %{_bindir}/qemu-system-arm
1000 %defattr(644,root,root,755)
1001 %attr(755,root,root) %{_bindir}/qemu-system-cris
1004 %defattr(644,root,root,755)
1005 %attr(755,root,root) %{_bindir}/qemu-system-lm32
1008 %defattr(644,root,root,755)
1009 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1011 %files system-microblaze
1012 %defattr(644,root,root,755)
1013 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1014 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1017 %defattr(644,root,root,755)
1018 %attr(755,root,root) %{_bindir}/qemu-system-mips
1019 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1020 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1021 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1024 %defattr(644,root,root,755)
1025 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1028 %defattr(644,root,root,755)
1029 %attr(755,root,root) %{_bindir}/qemu-system-or32
1032 %defattr(644,root,root,755)
1033 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1034 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1035 #%attr(755,root,root) %{_bindir}/qemu-system-ppc64le
1036 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
1037 %{_datadir}/%{name}/u-boot.e500
1040 %defattr(644,root,root,755)
1041 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1044 %defattr(644,root,root,755)
1045 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1046 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1049 %defattr(644,root,root,755)
1050 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1051 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1053 %files system-tricore
1054 %defattr(644,root,root,755)
1055 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1057 %files system-unicore32
1058 %defattr(644,root,root,755)
1059 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1062 %defattr(644,root,root,755)
1063 %attr(755,root,root) %{_bindir}/qemu-system-i386
1064 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1065 %ifarch %{ix86} %{x8664}
1066 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1067 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
1068 %attr(755,root,root) %{_bindir}/kvm_stat
1070 %{_datadir}/%{name}/bios.bin
1071 %{_datadir}/%{name}/bios-256k.bin
1072 %{_datadir}/%{name}/acpi-dsdt.aml
1073 %{_datadir}/%{name}/q35-acpi-dsdt.aml
1075 %files system-xtensa
1076 %defattr(644,root,root,755)
1077 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1078 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1081 %defattr(644,root,root,755)
1082 %attr(755,root,root) %{_bindir}/qemu-ga
1084 %files module-block-curl
1085 %defattr(644,root,root,755)
1086 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1088 %if %{with glusterfs}
1089 %files module-block-gluster
1090 %defattr(644,root,root,755)
1091 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1095 %files module-block-iscsi
1096 %defattr(644,root,root,755)
1097 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1101 %files module-block-rbd
1102 %defattr(644,root,root,755)
1103 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1106 %files module-block-ssh
1107 %defattr(644,root,root,755)
1108 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so