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 xseg # Archipelago backend [non-distributable: GPLv3+ vs GPLv2-only]
9 %bcond_with gtk2 # GTK+ 2.x instead of 3.x
10 %bcond_without gtk3 # Do not build GTK+ UI
11 %bcond_without vte # VTE support in GTK+ UI
12 %bcond_without spice # SPICE support
13 %bcond_with esd # EsounD audio support
14 %bcond_without oss # OSS audio support
15 %bcond_without pulseaudio # PulseAudio audio support
16 %bcond_without xen # Xen backend driver support
17 %bcond_without bluetooth # bluetooth support
18 %bcond_without brlapi # brlapi support
19 %bcond_without smartcard # smartcard-nss support
20 %bcond_without iscsi # iscsi support
21 %bcond_without libnfs # NFS support
22 %bcond_without seccomp # seccomp support
23 %bcond_without usbredir # usb network redirection support
24 %bcond_without system_seabios # system seabios binary
25 %bcond_without snappy # snappy compression library
26 %bcond_with lttng # lttng-ust trace backend support
27 %bcond_with systemtap # SystemTap/dtrace trace backend support
37 Summary: QEMU CPU Emulator
38 Summary(pl.UTF-8): QEMU - emulator procesora
43 Group: Applications/Emulators
44 Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.bz2
45 # Source0-md5: c99445164e77184a9ba2e7dbf7ed5c29
46 Source2: %{name}.binfmt
47 # Loads kvm kernel modules at boot
48 Source3: kvm-modules-load.conf
53 Source6: ksm.sysconfig
55 Source8: ksmtuned.service
57 Source10: ksmtuned.conf
58 Source11: %{name}-guest-agent.service
59 Source12: 99-%{name}-guest-agent.rules
60 Patch0: %{name}-cflags.patch
61 Patch1: vgabios-widescreens.patch
62 Patch2: %{name}-whitelist.patch
63 Patch3: %{name}-system-libcacard.patch
64 Patch4: %{name}-xattr.patch
65 Patch5: libjpeg-boolean.patch
67 Patch7: %{name}-sh.patch
68 # Proof of concept, for reference, do not remove
69 Patch400: %{name}-kde_virtual_workspaces_hack.patch
70 URL: http://www.qemu-project.org/
71 BuildRequires: OpenGL-devel
72 BuildRequires: OpenGL-GLX-devel
73 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
74 BuildRequires: alsa-lib-devel
75 BuildRequires: bcc >= 0.16.21-2
76 %{?with_bluetooth:BuildRequires: bluez-libs-devel}
77 %{?with_brlapi:BuildRequires: brlapi-devel}
78 BuildRequires: bzip2-devel
79 %{?with_ceph:BuildRequires: ceph-devel}
80 BuildRequires: curl-devel
81 BuildRequires: cyrus-sasl-devel >= 2
82 %{?with_esd:BuildRequires: esound-devel}
83 BuildRequires: glib2-devel >= 1:2.22
84 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
85 BuildRequires: gnutls-devel > 2.10.0
86 BuildRequires: libaio-devel
87 %{?with_smartcard:BuildRequires: libcacard-devel}
88 BuildRequires: libcap-devel
89 BuildRequires: libcap-ng-devel
90 BuildRequires: libepoxy-devel
91 BuildRequires: libfdt-devel
92 %{?with_rdma:BuildRequires: libibverbs-devel}
93 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
94 BuildRequires: libjpeg-devel
95 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
96 BuildRequires: libpng-devel
97 %{?with_rdma:BuildRequires: librdmacm-devel}
98 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.1.1}
99 BuildRequires: libssh2-devel >= 1.2.8
100 BuildRequires: libusb-devel >= 1.0.13
101 BuildRequires: libuuid-devel
102 %{?with_xseg:BuildRequires: libxseg-devel}
103 %{?with_lttng:BuildRequires: lttng-ust-devel}
104 BuildRequires: lzo-devel >= 2
105 BuildRequires: ncurses-devel
106 %{?with_smartcard:BuildRequires: nss-devel >= 1:3.12.8}
107 BuildRequires: numactl-devel
108 BuildRequires: perl-Encode
109 BuildRequires: perl-tools-pod
110 BuildRequires: pixman-devel >= 0.21.8
111 BuildRequires: pkgconfig
112 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
113 BuildRequires: rpmbuild(macros) >= 1.644
114 %{?with_system_seabios:BuildRequires: seabios}
115 BuildRequires: sed >= 4.0
116 %{?with_snappy:BuildRequires: snappy-devel}
118 BuildRequires: spice-protocol >= 0.12.3
119 BuildRequires: spice-server-devel >= 0.12.0
121 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
122 BuildRequires: texi2html
123 BuildRequires: texinfo
124 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
125 %{?with_lttng:BuildRequires: userspace-rcu-devel}
126 BuildRequires: vde2-devel
128 %{?with_xen:BuildRequires: xen-devel >= 3.4}
129 BuildRequires: xfsprogs-devel
130 BuildRequires: xorg-lib-libX11-devel
131 BuildRequires: zlib-devel
133 BuildRequires: gtk+2-devel >= 2:2.18.0
134 %{?with_vte:BuildRequires: vte0-devel >= 0.24.0}
137 BuildRequires: gtk+3-devel >= 3.0.0
138 %{?with_vte:BuildRequires: vte2.90-devel >= 0.32.0}
140 Requires: %{name}-img = %{version}-%{release}
141 Requires: %{name}-system-aarch64 = %{version}-%{release}
142 Requires: %{name}-system-alpha = %{version}-%{release}
143 Requires: %{name}-system-arm = %{version}-%{release}
144 Requires: %{name}-system-cris = %{version}-%{release}
145 Requires: %{name}-system-lm32 = %{version}-%{release}
146 Requires: %{name}-system-m68k = %{version}-%{release}
147 Requires: %{name}-system-microblaze = %{version}-%{release}
148 Requires: %{name}-system-mips = %{version}-%{release}
149 Requires: %{name}-system-moxie = %{version}-%{release}
150 Requires: %{name}-system-or32 = %{version}-%{release}
151 Requires: %{name}-system-ppc = %{version}-%{release}
152 Requires: %{name}-system-s390x = %{version}-%{release}
153 Requires: %{name}-system-sh4 = %{version}-%{release}
154 Requires: %{name}-system-sparc = %{version}-%{release}
155 Requires: %{name}-system-tricore = %{version}-%{release}
156 Requires: %{name}-system-unicore32 = %{version}-%{release}
157 Requires: %{name}-system-x86 = %{version}-%{release}
158 Requires: %{name}-system-xtensa = %{version}-%{release}
159 Requires: %{name}-user = %{version}-%{release}
161 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
163 %define systempkg_req \
167 %if %{with seccomp} \
168 Requires: libseccomp >= 2.1.0 \
170 Requires: libusb >= 1.0.13 \
171 Requires: pixman >= 0.21.8 \
172 %if %{with usbredir} \
173 Requires: usbredir >= 0.6 \
176 Requires: gtk+2 >= 2:2.18.0 \
177 %{?with_vte:Requires: vte0 >= 0.24.0} \
180 Requires: gtk+3 >= 3.0.0 \
181 %{?with_vte:Requires: vte2.90 >= 0.32.0} \
184 # don't strip/chrpath anything in there; these are boot images, roms etc
185 %define _noautostrip .*%{_datadir}/qemu/.*
186 %define _noautochrpath .*%{_datadir}/qemu/.*
189 QEMU is a FAST! processor emulator. By using dynamic translation it
190 achieves a reasonnable speed while being easy to port on new host
191 CPUs. QEMU has two operating modes:
193 - User mode emulation. In this mode, QEMU can launch Linux processes
194 compiled for one CPU on another CPU. Linux system calls are converted
195 because of endianness and 32/64 bit mismatches. Wine (Windows
196 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
198 - Full system emulation. In this mode, QEMU emulates a full system,
199 including a processor and various peripherials. It can also be used to
200 provide virtual hosting of several virtual PC on a single server.
202 %description -l pl.UTF-8
203 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
204 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
205 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
207 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
208 procesy linuksowe skompilowane dla jednego procesora na innym
209 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
210 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
211 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
214 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
215 włączając w to procesor i różne urządzenia peryferyjne. Może być także
216 używane do wirtualnego hostowania kilku wirtualnych pecetów na
217 pojedynczym serwerze.
220 Summary: QEMU common files needed by all QEMU targets
221 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
222 Group: Development/Tools
223 Requires(post,preun,postun): systemd-units >= 38
224 Requires(postun): /usr/sbin/groupdel
225 Requires(postun): /usr/sbin/userdel
226 Requires(pre): /bin/id
227 Requires(pre): /usr/bin/getgid
228 Requires(pre): /usr/sbin/groupadd
229 Requires(pre): /usr/sbin/useradd
230 Requires: glib2 >= 1:2.22
231 %{?with_libnfs:Requires: libnfs >= 1.9.3}
232 Requires: libssh2 >= 1.2.8
233 Requires: systemd-units >= 38
234 Provides: group(qemu)
236 Obsoletes: qemu-kvm-common
237 Conflicts: qemu < 1.0-2
240 QEMU is a generic and open source processor emulator which achieves a
241 good emulation speed by using dynamic translation.
243 This package provides the common files needed by all QEMU targets.
245 %description common -l pl.UTF-8
246 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
247 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
249 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
253 Summary: QEMU command line tool for manipulating disk images
254 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
255 Group: Development/Tools
256 Obsoletes: qemu-kvm-img
257 Conflicts: qemu < 1.0-2
260 This package provides a command line tool for manipulating disk
263 %description img -l pl.UTF-8
264 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
268 Summary: QEMU user mode emulation of qemu targets
269 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
270 Group: Development/Tools
271 Requires: %{name}-common = %{version}-%{release}
272 Requires(post,postun): systemd-units >= 38
273 Requires: systemd-units >= 38
274 Obsoletes: qemu-kvm-user
277 QEMU is a generic and open source processor emulator which achieves a
278 good emulation speed by using dynamic translation.
280 This package provides the user mode emulation of QEMU targets.
282 %description user -l pl.UTF-8
283 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
284 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
286 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
288 %package system-aarch64
289 Summary: QEMU system emulator for AArch64
290 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
291 Group: Development/Tools
292 Requires: %{name}-common = %{version}-%{release}
294 Obsoletes: qemu-kvm-system-aarch64
296 %description system-aarch64
297 QEMU is a generic and open source processor emulator which achieves a
298 good emulation speed by using dynamic translation.
300 This package provides the system emulator with AArch64 CPU.
302 %description system-aarch64 -l pl.UTF-8
303 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
304 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
306 Ten pakiet zawiera emulator systemu z procesorem AArch64.
308 %package system-alpha
309 Summary: QEMU system emulator for Alpha
310 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
311 Group: Development/Tools
312 Requires: %{name}-common = %{version}-%{release}
314 Obsoletes: qemu-kvm-system-alpha
316 %description system-alpha
317 QEMU is a generic and open source processor emulator which achieves a
318 good emulation speed by using dynamic translation.
320 This package provides the system emulator with Alpha CPU.
322 %description system-alpha -l pl.UTF-8
323 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
324 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
326 Ten pakiet zawiera emulator systemu z procesorem Alpha.
329 Summary: QEMU system emulator for ARM
330 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
331 Group: Development/Tools
332 Requires: %{name}-common = %{version}-%{release}
334 Obsoletes: qemu-kvm-system-arm
336 %description system-arm
337 QEMU is a generic and open source processor emulator which achieves a
338 good emulation speed by using dynamic translation.
340 This package provides the system emulator for ARM.
342 %description system-arm -l pl.UTF-8
343 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
344 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
346 Ten pakiet zawiera emulator systemu z procesorem ARM.
349 Summary: QEMU system emulator for CRIS
350 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
351 Group: Development/Tools
352 Requires: %{name}-common = %{version}-%{release}
354 Obsoletes: qemu-kvm-system-cris
356 %description system-cris
357 QEMU is a generic and open source processor emulator which achieves a
358 good emulation speed by using dynamic translation.
360 This package provides the system emulator with CRIS CPU.
362 %description system-cris -l pl.UTF-8
363 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
364 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
366 Ten pakiet zawiera emulator systemu z procesorem CRIS.
369 Summary: QEMU system emulator for LM32
370 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
371 Group: Development/Tools
372 Requires: %{name}-common = %{version}-%{release}
374 Obsoletes: qemu-kvm-system-lm32
376 %description system-lm32
377 QEMU is a generic and open source processor emulator which achieves a
378 good emulation speed by using dynamic translation.
380 This package provides the system emulator with LM32 CPU.
382 %description system-lm32 -l pl.UTF-8
383 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
384 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
386 Ten pakiet zawiera emulator systemu z procesorem LM32.
389 Summary: QEMU system emulator for m68k
390 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
391 Group: Development/Tools
392 Requires: %{name}-common = %{version}-%{release}
394 Obsoletes: qemu-kvm-system-m68k
396 %description system-m68k
397 QEMU is a generic and open source processor emulator which achieves a
398 good emulation speed by using dynamic translation.
400 This package provides the system emulator with m68k CPU.
402 %description system-m68k -l pl.UTF-8
403 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
404 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
406 Ten pakiet zawiera emulator systemu z procesorem m68k.
408 %package system-microblaze
409 Summary: QEMU system emulator for MicroBlaze
410 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
411 Group: Development/Tools
412 Requires: %{name}-common = %{version}-%{release}
414 Obsoletes: qemu-kvm-system-microblaze
416 %description system-microblaze
417 QEMU is a generic and open source processor emulator which achieves a
418 good emulation speed by using dynamic translation.
420 This package provides the system emulator with MicroBlaze CPU.
422 %description system-microblaze -l pl.UTF-8
423 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
424 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
426 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
429 Summary: QEMU system emulator for MIPS
430 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
431 Group: Development/Tools
432 Requires: %{name}-common = %{version}-%{release}
434 Obsoletes: qemu-kvm-system-mips
436 %description system-mips
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 MIPS CPU.
442 %description system-mips -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 MIPS.
448 %package system-moxie
449 Summary: QEMU system emulator for Moxie
450 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
451 Group: Development/Tools
452 Requires: %{name}-common = %{version}-%{release}
455 %description system-moxie
456 QEMU is a generic and open source processor emulator which achieves a
457 good emulation speed by using dynamic translation.
459 This package provides the system emulator with Moxie CPU.
461 %description system-moxie -l pl.UTF-8
462 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
463 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
465 Ten pakiet zawiera emulator systemu z procesorem Moxie.
468 Summary: QEMU system emulator for OpenRISC
469 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
470 Group: Development/Tools
471 Requires: %{name}-common = %{version}-%{release}
473 Obsoletes: qemu-kvm-system-or32
475 %description system-or32
476 QEMU is a generic and open source processor emulator which achieves a
477 good emulation speed by using dynamic translation.
479 This package provides the system emulator with OpenRISC CPU.
481 %description system-or32 -l pl.UTF-8
482 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
483 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
485 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
488 Summary: QEMU system emulator for PowerPC
489 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
490 Group: Development/Tools
491 Requires: %{name}-common = %{version}-%{release}
493 Obsoletes: qemu-kvm-system-ppc
495 %description system-ppc
496 QEMU is a generic and open source processor emulator which achieves a
497 good emulation speed by using dynamic translation.
499 This package provides the system emulator with PowerPC CPU.
501 %description system-ppc -l pl.UTF-8
502 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
503 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
505 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
507 %package system-s390x
508 Summary: QEMU system emulator for S390
509 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
510 Group: Development/Tools
511 Requires: %{name}-common = %{version}-%{release}
513 Obsoletes: qemu-kvm-system-s390x
515 %description system-s390x
516 QEMU is a generic and open source processor emulator which achieves a
517 good emulation speed by using dynamic translation.
519 This package provides the system emulator with S390 CPU.
521 %description system-s390x -l pl.UTF-8
522 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
523 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
525 Ten pakiet zawiera emulator systemu z procesorem S390.
528 Summary: QEMU system emulator for SH4
529 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
530 Group: Development/Tools
531 Requires: %{name}-common = %{version}-%{release}
533 Obsoletes: qemu-kvm-system-sh4
535 %description system-sh4
536 QEMU is a generic and open source processor emulator which achieves a
537 good emulation speed by using dynamic translation.
539 This package provides the system emulator with SH4 CPU.
541 %description system-sh4 -l pl.UTF-8
542 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
543 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
545 Ten pakiet zawiera emulator systemu z procesorem SH4.
547 %package system-sparc
548 Summary: QEMU system emulator for SPARC
549 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
550 Group: Development/Tools
551 Requires: %{name}-common = %{version}-%{release}
553 Obsoletes: qemu-kvm-system-sparc
555 %description system-sparc
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 SPARC/SPARC64 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 SPARC/SPARC64.
567 %package system-tricore
568 Summary: QEMU system emulator for TriCore
569 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
570 Group: Development/Tools
571 Requires: %{name}-common = %{version}-%{release}
574 %description system-tricore
575 QEMU is a generic and open source processor emulator which achieves a
576 good emulation speed by using dynamic translation.
578 This package provides the system emulator with TriCore CPU.
580 %description system-sparc -l pl.UTF-8
581 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
582 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
584 Ten pakiet zawiera emulator systemu z procesorem TriCore.
586 %package system-unicore32
587 Summary: QEMU system emulator for UniCore32
588 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
589 Group: Development/Tools
590 Requires: %{name}-common = %{version}-%{release}
592 Obsoletes: qemu-kvm-system-unicore32
594 %description system-unicore32
595 QEMU is a generic and open source processor emulator which achieves a
596 good emulation speed by using dynamic translation.
598 This package provides the system emulator with UniCore32 CPU.
600 %description system-unicore32 -l pl.UTF-8
601 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
602 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
604 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
607 Summary: QEMU system emulator for x86
608 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
609 Group: Development/Tools
610 Requires: %{name}-common = %{version}-%{release}
611 %{?with_system_seabios:Requires: seabios}
614 Obsoletes: qemu-kvm-system-x86
616 %description system-x86
617 QEMU is a generic and open source processor emulator which achieves a
618 good emulation speed by using dynamic translation.
620 %description system-x86 -l pl.UTF-8
621 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
622 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
624 %package system-xtensa
625 Summary: QEMU system emulator for Xtensa
626 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
627 Group: Development/Tools
628 Requires: %{name}-common = %{version}-%{release}
630 Obsoletes: qemu-kvm-system-xtensa
632 %description system-xtensa
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 the system emulator with Xtensa CPU.
638 %description system-xtensa -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 zawiera emulator systemu z procesorem Xtensa.
645 Summary: QEMU guest agent
646 Summary(pl.UTF-8): Agent gościa QEMU
648 Requires(post,preun,postun): systemd-units >= 38
649 Requires: glib2 >= 1:2.22
650 Requires: systemd-units >= 38
651 Obsoletes: qemu-kvm-guest-agent
653 %description guest-agent
654 QEMU is a generic and open source processor emulator which achieves a
655 good emulation speed by using dynamic translation.
657 This package provides an agent to run inside guests, which
658 communicates with the host over a virtio-serial channel named
659 "org.qemu.guest_agent.0".
661 This package does not need to be installed on the host OS.
663 %description guest-agent -l pl.UTF-8
664 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
665 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
667 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
668 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
669 "org.qemu.guest_agent.0".
671 Ten pakiet nie musi być zainstalowany w systemie hosta.
673 %package module-block-archipelago
674 Summary: QEMU module for Archipelago block devices
675 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych Archipelago
676 Group: Development/Tools
677 Requires: %{name}-common = %{version}-%{release}
679 %description module-block-archipelago
680 Archipelago block device support for QEMU.
682 %description module-block-archipelago -l pl.UTF-8
683 Moduł QEMU dla urządeń blokowych Archipelago.
685 %package module-block-curl
686 Summary: QEMU module for 'curl' block devices
687 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
688 Group: Development/Tools
689 Requires: %{name}-common = %{version}-%{release}
691 %description module-block-curl
692 'curl' block device support for QEMU.
694 %description module-block-curl -l pl.UTF-8
695 Moduł QEMU dla urządeń blokowych typu 'curl'.
697 %package module-block-gluster
698 Summary: QEMU module for 'gluster' block devices
699 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
700 Group: Development/Tools
701 Requires: %{name}-common = %{version}-%{release}
702 Requires: glusterfs-libs >= 3.4
704 %description module-block-gluster
705 'gluster' block device support for QEMU.
707 %description module-block-gluster -l pl.UTF-8
708 Moduł QEMU dla urządeń blokowych typu 'gluster'.
710 %package module-block-iscsi
711 Summary: QEMU module for 'iscsi' block devices
712 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
713 Group: Development/Tools
714 Requires: %{name}-common = %{version}-%{release}
715 Requires: libiscsi >= 1.9.0
717 %description module-block-iscsi
718 'iscsi' block device support for QEMU.
720 %description module-block-iscsi -l pl.UTF-8
721 Moduł QEMU dla urządeń blokowych typu 'iscsi'.
723 %package module-block-rbd
724 Summary: QEMU module for 'rbd' block devices
725 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
726 Group: Development/Tools
727 Requires: %{name}-common = %{version}-%{release}
729 %description module-block-rbd
730 'rbd' block device support for QEMU.
732 %description module-block-rbd -l pl.UTF-8
733 Moduł QEMU dla urządeń blokowych typu 'rbd'.
735 %package module-block-ssh
736 Summary: QEMU module for 'ssh' block devices
737 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
738 Group: Development/Tools
739 Requires: %{name}-common = %{version}-%{release}
741 %description module-block-ssh
742 'ssh' block device support for QEMU.
744 %description module-block-ssh -l pl.UTF-8
745 Moduł QEMU dla urządeń blokowych typu 'ssh'.
758 %{__mv} libcacard libcacard-use-system-lib
760 # workaround for conflict with alsa/error.h
761 ln -s ../error.h qapi/error.h
765 --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
766 --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
767 --prefix=%{_prefix} \
768 --libdir=%{_libdir} \
769 --libexecdir=%{_libexecdir} \
770 --sysconfdir=%{_sysconfdir} \
772 --host-cc="%{__cc}" \
774 %{__enable_disable xseg archipelago} \
776 %{__enable_disable bluetooth bluez} \
777 %{__enable_disable brlapi} \
783 %{__enable_disable glusterfs} \
784 %{__enable_disable iscsi libiscsi} \
785 %{__enable_disable ceph rbd} \
786 %{__enable_disable rdma} \
787 %{__enable_disable sdl} \
789 %{__enable_disable seccomp} \
790 %{__enable_disable spice} \
791 %{__enable_disable smartcard smartcard-nss} \
793 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
794 %{__enable_disable usbredir usb-redir} \
802 %{!?with_vte:--disable-vte} \
804 %{__enable_disable xen} \
807 %{__enable_disable libnfs} \
809 %{__enable_disable snappy} \
810 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
811 --interp-prefix=%{_libdir}/qemu/lib-%%M \
812 %if %{without gtk2} && %{without gtk3}
815 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
820 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
822 # rebuild patched vesa tables with additional widescreen modes.
823 %{__make} -C roms/vgabios stdvga-bios
825 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
828 rm -rf $RPM_BUILD_ROOT
829 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
830 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
831 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
834 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
835 DESTDIR=$RPM_BUILD_ROOT
837 install -d $RPM_BUILD_ROOT%{_sysconfdir}
838 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
843 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
845 %ifarch %{ix86} %{x8664} x32
846 install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
847 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
848 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
851 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
852 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
853 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
855 install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
856 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
857 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
859 # For the qemu-guest-agent subpackage install the systemd
860 # service and udev rules.
861 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
862 install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
865 %ifnarch %{ix86} %{x8664} x32
874 %ifnarch sparc sparc64
881 test $i = dummy && continue
882 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i.conf
886 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
887 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
889 # install patched vesa tables with additional widescreen modes.
890 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
892 %if %{with system_seabios}
893 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
894 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
895 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
897 if [ -e "/usr/share/seabios/$bn" ] ; then
898 ln -sf "/usr/share/seabios/$bn" "$f"
903 %if %{with gtk2} || %{with gtk3}
904 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
905 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
912 rm -rf $RPM_BUILD_ROOT
916 %groupadd -g 276 qemu
917 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
920 %systemd_post ksm.service
921 %systemd_post ksmtuned.service
924 %systemd_preun ksm.service
925 %systemd_preun ksmtuned.service
928 if [ "$1" = "0" ]; then
935 %triggerpostun common -- qemu-common < 1.6.1-4
936 %systemd_trigger ksm.service
937 %systemd_trigger ksmtuned.service
940 %systemd_service_restart systemd-binfmt.service
943 %systemd_service_restart systemd-binfmt.service
949 %systemd_preun qemu-guest-agent.service
955 %defattr(644,root,root,755)
957 %files common -f %{name}.lang
958 %defattr(644,root,root,755)
959 %doc LICENSE README qemu-doc.html qemu-tech.html qmp-commands.txt
960 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
961 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
962 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
963 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
964 %{systemdunitdir}/ksm.service
965 %{systemdunitdir}/ksmtuned.service
966 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
967 %attr(755,root,root) %{_bindir}/qemu-nbd
968 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
969 %attr(755,root,root) %{_sbindir}/ksmctl
970 %attr(755,root,root) %{_sbindir}/ksmtuned
971 %{_mandir}/man1/qemu.1*
972 %{_mandir}/man1/virtfs-proxy-helper.1*
973 %{_mandir}/man8/qemu-nbd.8*
975 %dir %{_datadir}/qemu
976 %{_datadir}/%{name}/keymaps
977 %{_datadir}/%{name}/qemu-icon.bmp
978 %{_datadir}/%{name}/trace-events
980 # various bios images
981 # all should be probably moved to the right system subpackage
982 %{_datadir}/%{name}/QEMU,cgthree.bin
983 %{_datadir}/%{name}/QEMU,tcx.bin
984 %{_datadir}/%{name}/bamboo.dtb
985 %{_datadir}/%{name}/efi-e1000.rom
986 %{_datadir}/%{name}/efi-eepro100.rom
987 %{_datadir}/%{name}/efi-ne2k_pci.rom
988 %{_datadir}/%{name}/efi-pcnet.rom
989 %{_datadir}/%{name}/efi-rtl8139.rom
990 %{_datadir}/%{name}/efi-virtio.rom
991 %{_datadir}/%{name}/kvmvapic.bin
992 %{_datadir}/%{name}/linuxboot.bin
993 %{_datadir}/%{name}/multiboot.bin
994 %{_datadir}/%{name}/openbios-ppc
995 %{_datadir}/%{name}/openbios-sparc*
996 %{_datadir}/%{name}/palcode-clipper
997 %{_datadir}/%{name}/petalogix-ml605.dtb
998 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
999 %{_datadir}/%{name}/ppc_rom.bin
1000 %{_datadir}/%{name}/pxe-e1000.rom
1001 %{_datadir}/%{name}/pxe-eepro100.rom
1002 %{_datadir}/%{name}/pxe-ne2k_pci.rom
1003 %{_datadir}/%{name}/pxe-pcnet.rom
1004 %{_datadir}/%{name}/pxe-rtl8139.rom
1005 %{_datadir}/%{name}/pxe-virtio.rom
1006 %{_datadir}/%{name}/qemu_logo_no_text.svg
1007 %{_datadir}/%{name}/s390-ccw.img
1008 %{_datadir}/%{name}/s390-zipl.rom
1009 %{_datadir}/%{name}/sgabios.bin
1010 %{_datadir}/%{name}/slof.bin
1011 %{_datadir}/%{name}/spapr-rtas.bin
1012 %{_datadir}/%{name}/vgabios-cirrus.bin
1013 %{_datadir}/%{name}/vgabios-qxl.bin
1014 %{_datadir}/%{name}/vgabios-stdvga.bin
1015 %{_datadir}/%{name}/vgabios-virtio.bin
1016 %{_datadir}/%{name}/vgabios-vmware.bin
1017 %{_datadir}/%{name}/vgabios.bin
1019 %dir %{_libdir}/%{name}
1021 # modules without too many external dependencies
1022 %attr(755,root,root) %{_libdir}/%{name}/block-dmg.so
1025 %defattr(644,root,root,755)
1026 %attr(755,root,root) %{_bindir}/qemu-img
1027 %{_mandir}/man1/qemu-img.1*
1030 %defattr(644,root,root,755)
1031 /usr/lib/binfmt.d/qemu-*.conf
1032 %attr(755,root,root) %{_bindir}/qemu-aarch64
1033 %attr(755,root,root) %{_bindir}/qemu-alpha
1034 %attr(755,root,root) %{_bindir}/qemu-arm
1035 %attr(755,root,root) %{_bindir}/qemu-armeb
1036 %attr(755,root,root) %{_bindir}/qemu-cris
1037 %attr(755,root,root) %{_bindir}/qemu-i386
1038 %attr(755,root,root) %{_bindir}/qemu-io
1039 %attr(755,root,root) %{_bindir}/qemu-m68k
1040 %attr(755,root,root) %{_bindir}/qemu-microblaze
1041 %attr(755,root,root) %{_bindir}/qemu-microblazeel
1042 %attr(755,root,root) %{_bindir}/qemu-mips
1043 %attr(755,root,root) %{_bindir}/qemu-mipsel
1044 %attr(755,root,root) %{_bindir}/qemu-mips64
1045 %attr(755,root,root) %{_bindir}/qemu-mips64el
1046 %attr(755,root,root) %{_bindir}/qemu-mipsn32
1047 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
1048 %attr(755,root,root) %{_bindir}/qemu-or32
1049 %attr(755,root,root) %{_bindir}/qemu-ppc
1050 %attr(755,root,root) %{_bindir}/qemu-ppc64
1051 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
1052 %attr(755,root,root) %{_bindir}/qemu-ppc64le
1053 %attr(755,root,root) %{_bindir}/qemu-s390x
1054 %attr(755,root,root) %{_bindir}/qemu-sh4
1055 %attr(755,root,root) %{_bindir}/qemu-sh4eb
1056 %attr(755,root,root) %{_bindir}/qemu-sparc
1057 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
1058 %attr(755,root,root) %{_bindir}/qemu-sparc64
1059 %attr(755,root,root) %{_bindir}/qemu-unicore32
1060 %attr(755,root,root) %{_bindir}/qemu-x86_64
1062 %files system-aarch64
1063 %defattr(644,root,root,755)
1064 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1067 %defattr(644,root,root,755)
1068 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1071 %defattr(644,root,root,755)
1072 %attr(755,root,root) %{_bindir}/qemu-system-arm
1075 %defattr(644,root,root,755)
1076 %attr(755,root,root) %{_bindir}/qemu-system-cris
1079 %defattr(644,root,root,755)
1080 %attr(755,root,root) %{_bindir}/qemu-system-lm32
1083 %defattr(644,root,root,755)
1084 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1086 %files system-microblaze
1087 %defattr(644,root,root,755)
1088 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1089 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1092 %defattr(644,root,root,755)
1093 %attr(755,root,root) %{_bindir}/qemu-system-mips
1094 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1095 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1096 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1099 %defattr(644,root,root,755)
1100 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1103 %defattr(644,root,root,755)
1104 %attr(755,root,root) %{_bindir}/qemu-system-or32
1107 %defattr(644,root,root,755)
1108 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1109 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1110 #%attr(755,root,root) %{_bindir}/qemu-system-ppc64le
1111 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
1112 %{_datadir}/%{name}/u-boot.e500
1115 %defattr(644,root,root,755)
1116 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1119 %defattr(644,root,root,755)
1120 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1121 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1124 %defattr(644,root,root,755)
1125 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1126 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1128 %files system-tricore
1129 %defattr(644,root,root,755)
1130 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1132 %files system-unicore32
1133 %defattr(644,root,root,755)
1134 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1137 %defattr(644,root,root,755)
1138 %attr(755,root,root) %{_bindir}/qemu-system-i386
1139 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1140 %ifarch %{ix86} %{x8664} x32
1141 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1142 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
1143 %attr(755,root,root) %{_bindir}/kvm_stat
1145 %{_datadir}/%{name}/bios.bin
1146 %{_datadir}/%{name}/bios-256k.bin
1147 %{_datadir}/%{name}/acpi-dsdt.aml
1148 %{_datadir}/%{name}/q35-acpi-dsdt.aml
1150 %files system-xtensa
1151 %defattr(644,root,root,755)
1152 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1153 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1156 %defattr(644,root,root,755)
1157 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
1158 %{systemdunitdir}/qemu-guest-agent.service
1159 %attr(755,root,root) %{_bindir}/qemu-ga
1162 %files module-block-archipelago
1163 %defattr(644,root,root,755)
1164 %attr(755,root,root) %{_libdir}/%{name}/block-archipelago.so
1167 %files module-block-curl
1168 %defattr(644,root,root,755)
1169 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1171 %if %{with glusterfs}
1172 %files module-block-gluster
1173 %defattr(644,root,root,755)
1174 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1178 %files module-block-iscsi
1179 %defattr(644,root,root,755)
1180 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1184 %files module-block-rbd
1185 %defattr(644,root,root,755)
1186 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1189 %files module-block-ssh
1190 %defattr(644,root,root,755)
1191 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so