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_without 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
36 Summary: QEMU CPU Emulator
37 Summary(pl.UTF-8): QEMU - emulator procesora
42 Group: Applications/Emulators
43 Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.bz2
44 # Source0-md5: c99445164e77184a9ba2e7dbf7ed5c29
45 Source2: %{name}.binfmt
46 # Loads kvm kernel modules at boot
47 Source3: kvm-modules-load.conf
52 Source6: ksm.sysconfig
54 Source8: ksmtuned.service
56 Source10: ksmtuned.conf
57 Source11: %{name}-guest-agent.service
58 Source12: 99-%{name}-guest-agent.rules
59 Patch0: %{name}-cflags.patch
60 Patch1: vgabios-widescreens.patch
61 Patch2: %{name}-whitelist.patch
62 Patch3: %{name}-system-libcacard.patch
63 Patch4: %{name}-xattr.patch
64 Patch5: libjpeg-boolean.patch
66 # Proof of concept, for reference, do not remove
67 Patch400: %{name}-kde_virtual_workspaces_hack.patch
68 URL: http://www.qemu-project.org/
69 BuildRequires: OpenGL-devel
70 BuildRequires: OpenGL-GLX-devel
71 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
72 BuildRequires: alsa-lib-devel
73 BuildRequires: bcc >= 0.16.21-2
74 %{?with_bluetooth:BuildRequires: bluez-libs-devel}
75 %{?with_brlapi:BuildRequires: brlapi-devel}
76 BuildRequires: bzip2-devel
77 %{?with_ceph:BuildRequires: ceph-devel}
78 BuildRequires: curl-devel
79 BuildRequires: cyrus-sasl-devel >= 2
80 %{?with_esd:BuildRequires: esound-devel}
81 BuildRequires: glib2-devel >= 1:2.22
82 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
83 BuildRequires: gnutls-devel > 2.10.0
84 BuildRequires: libaio-devel
85 %{?with_smartcard:BuildRequires: libcacard-devel}
86 BuildRequires: libcap-devel
87 BuildRequires: libcap-ng-devel
88 BuildRequires: libepoxy-devel
89 BuildRequires: libfdt-devel
90 %{?with_rdma:BuildRequires: libibverbs-devel}
91 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.9.0}
92 BuildRequires: libjpeg-devel
93 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
94 BuildRequires: libpng-devel
95 %{?with_rdma:BuildRequires: librdmacm-devel}
96 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.1.1}
97 BuildRequires: libssh2-devel >= 1.2.8
98 BuildRequires: libusb-devel >= 1.0.13
99 BuildRequires: libuuid-devel
100 %{?with_lttng:BuildRequires: lttng-ust-devel}
101 BuildRequires: lzo-devel >= 2
102 BuildRequires: ncurses-devel
103 %{?with_smartcard:BuildRequires: nss-devel >= 1:3.12.8}
104 BuildRequires: numactl-devel
105 BuildRequires: perl-Encode
106 BuildRequires: perl-tools-pod
107 BuildRequires: pixman-devel >= 0.21.8
108 BuildRequires: pkgconfig
109 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
110 BuildRequires: rpmbuild(macros) >= 1.644
111 %{?with_system_seabios:BuildRequires: seabios}
112 BuildRequires: sed >= 4.0
113 %{?with_snappy:BuildRequires: snappy-devel}
115 BuildRequires: spice-protocol >= 0.12.3
116 BuildRequires: spice-server-devel >= 0.12.0
118 %{?with_systemtap:BuildRequires: systemtap-sdt-devel}
119 BuildRequires: texi2html
120 BuildRequires: texinfo
121 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
122 %{?with_lttng:BuildRequires: userspace-rcu-devel}
123 BuildRequires: vde2-devel
125 %{?with_xen:BuildRequires: xen-devel >= 3.4}
126 BuildRequires: xfsprogs-devel
127 BuildRequires: xorg-lib-libX11-devel
128 BuildRequires: zlib-devel
130 BuildRequires: gtk+2-devel >= 2:2.18.0
131 %{?with_vte:BuildRequires: vte0-devel >= 0.24.0}
134 BuildRequires: gtk+3-devel >= 3.0.0
135 %{?with_vte:BuildRequires: vte2.90-devel >= 0.32.0}
137 Requires: %{name}-img = %{version}-%{release}
138 Requires: %{name}-system-aarch64 = %{version}-%{release}
139 Requires: %{name}-system-alpha = %{version}-%{release}
140 Requires: %{name}-system-arm = %{version}-%{release}
141 Requires: %{name}-system-cris = %{version}-%{release}
142 Requires: %{name}-system-lm32 = %{version}-%{release}
143 Requires: %{name}-system-m68k = %{version}-%{release}
144 Requires: %{name}-system-microblaze = %{version}-%{release}
145 Requires: %{name}-system-mips = %{version}-%{release}
146 Requires: %{name}-system-moxie = %{version}-%{release}
147 Requires: %{name}-system-or32 = %{version}-%{release}
148 Requires: %{name}-system-ppc = %{version}-%{release}
149 Requires: %{name}-system-s390x = %{version}-%{release}
150 Requires: %{name}-system-sh4 = %{version}-%{release}
151 Requires: %{name}-system-sparc = %{version}-%{release}
152 Requires: %{name}-system-tricore = %{version}-%{release}
153 Requires: %{name}-system-unicore32 = %{version}-%{release}
154 Requires: %{name}-system-x86 = %{version}-%{release}
155 Requires: %{name}-system-xtensa = %{version}-%{release}
156 Requires: %{name}-user = %{version}-%{release}
158 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
160 %define systempkg_req \
164 %if %{with seccomp} \
165 Requires: libseccomp >= 2.1.0 \
167 Requires: libusb >= 1.0.13 \
168 Requires: pixman >= 0.21.8 \
169 %if %{with usbredir} \
170 Requires: usbredir >= 0.6 \
173 Requires: gtk+2 >= 2:2.18.0 \
174 %{?with_vte:Requires: vte0 >= 0.24.0} \
177 Requires: gtk+3 >= 3.0.0 \
178 %{?with_vte:Requires: vte2.90 >= 0.32.0} \
181 # don't strip/chrpath anything in there; these are boot images, roms etc
182 %define _noautostrip .*%{_datadir}/qemu/.*
183 %define _noautochrpath .*%{_datadir}/qemu/.*
186 QEMU is a FAST! processor emulator. By using dynamic translation it
187 achieves a reasonnable speed while being easy to port on new host
188 CPUs. QEMU has two operating modes:
190 - User mode emulation. In this mode, QEMU can launch Linux processes
191 compiled for one CPU on another CPU. Linux system calls are converted
192 because of endianness and 32/64 bit mismatches. Wine (Windows
193 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
195 - Full system emulation. In this mode, QEMU emulates a full system,
196 including a processor and various peripherials. It can also be used to
197 provide virtual hosting of several virtual PC on a single server.
199 %description -l pl.UTF-8
200 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
201 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
202 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
204 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
205 procesy linuksowe skompilowane dla jednego procesora na innym
206 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
207 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
208 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
211 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
212 włączając w to procesor i różne urządzenia peryferyjne. Może być także
213 używane do wirtualnego hostowania kilku wirtualnych pecetów na
214 pojedynczym serwerze.
217 Summary: QEMU common files needed by all QEMU targets
218 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
219 Group: Development/Tools
220 Requires(post,preun,postun): systemd-units >= 38
221 Requires(postun): /usr/sbin/groupdel
222 Requires(postun): /usr/sbin/userdel
223 Requires(pre): /bin/id
224 Requires(pre): /usr/bin/getgid
225 Requires(pre): /usr/sbin/groupadd
226 Requires(pre): /usr/sbin/useradd
227 Requires: glib2 >= 1:2.22
228 %{?with_libnfs:Requires: libnfs >= 1.9.3}
229 Requires: libssh2 >= 1.2.8
230 Requires: systemd-units >= 38
231 Provides: group(qemu)
233 Obsoletes: qemu-kvm-common
234 Conflicts: qemu < 1.0-2
237 QEMU is a generic and open source processor emulator which achieves a
238 good emulation speed by using dynamic translation.
240 This package provides the common files needed by all QEMU targets.
242 %description common -l pl.UTF-8
243 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
244 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
246 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
250 Summary: QEMU command line tool for manipulating disk images
251 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
252 Group: Development/Tools
253 Obsoletes: qemu-kvm-img
254 Conflicts: qemu < 1.0-2
257 This package provides a command line tool for manipulating disk
260 %description img -l pl.UTF-8
261 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
265 Summary: QEMU user mode emulation of qemu targets
266 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
267 Group: Development/Tools
268 Requires: %{name}-common = %{version}-%{release}
269 Requires(post,postun): systemd-units >= 38
270 Requires: systemd-units >= 38
271 Obsoletes: qemu-kvm-user
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 user mode emulation of QEMU targets.
279 %description user -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 udostępnia emulację trybu użytkownika środowisk QEMU.
285 %package system-aarch64
286 Summary: QEMU system emulator for AArch64
287 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
288 Group: Development/Tools
289 Requires: %{name}-common = %{version}-%{release}
291 Obsoletes: qemu-kvm-system-aarch64
293 %description system-aarch64
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 AArch64 CPU.
299 %description system-aarch64 -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 AArch64.
305 %package system-alpha
306 Summary: QEMU system emulator for Alpha
307 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
308 Group: Development/Tools
309 Requires: %{name}-common = %{version}-%{release}
311 Obsoletes: qemu-kvm-system-alpha
313 %description system-alpha
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 with Alpha CPU.
319 %description system-alpha -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 Alpha.
326 Summary: QEMU system emulator for ARM
327 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
328 Group: Development/Tools
329 Requires: %{name}-common = %{version}-%{release}
331 Obsoletes: qemu-kvm-system-arm
333 %description system-arm
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 for ARM.
339 %description system-arm -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 ARM.
346 Summary: QEMU system emulator for CRIS
347 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
348 Group: Development/Tools
349 Requires: %{name}-common = %{version}-%{release}
351 Obsoletes: qemu-kvm-system-cris
353 %description system-cris
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 CRIS CPU.
359 %description system-cris -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 CRIS.
366 Summary: QEMU system emulator for LM32
367 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
368 Group: Development/Tools
369 Requires: %{name}-common = %{version}-%{release}
371 Obsoletes: qemu-kvm-system-lm32
373 %description system-lm32
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 LM32 CPU.
379 %description system-lm32 -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 LM32.
386 Summary: QEMU system emulator for m68k
387 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
388 Group: Development/Tools
389 Requires: %{name}-common = %{version}-%{release}
391 Obsoletes: qemu-kvm-system-m68k
393 %description system-m68k
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 m68k CPU.
399 %description system-m68k -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 m68k.
405 %package system-microblaze
406 Summary: QEMU system emulator for MicroBlaze
407 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
408 Group: Development/Tools
409 Requires: %{name}-common = %{version}-%{release}
411 Obsoletes: qemu-kvm-system-microblaze
413 %description system-microblaze
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 MicroBlaze CPU.
419 %description system-microblaze -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 MicroBlaze.
426 Summary: QEMU system emulator for MIPS
427 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
428 Group: Development/Tools
429 Requires: %{name}-common = %{version}-%{release}
431 Obsoletes: qemu-kvm-system-mips
433 %description system-mips
434 QEMU is a generic and open source processor emulator which achieves a
435 good emulation speed by using dynamic translation.
437 This package provides the system emulator with MIPS CPU.
439 %description system-mips -l pl.UTF-8
440 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
441 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
443 Ten pakiet zawiera emulator systemu z procesorem MIPS.
445 %package system-moxie
446 Summary: QEMU system emulator for Moxie
447 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
448 Group: Development/Tools
449 Requires: %{name}-common = %{version}-%{release}
452 %description system-moxie
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 Moxie CPU.
458 %description system-moxie -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 Moxie.
465 Summary: QEMU system emulator for OpenRISC
466 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
467 Group: Development/Tools
468 Requires: %{name}-common = %{version}-%{release}
470 Obsoletes: qemu-kvm-system-or32
472 %description system-or32
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 OpenRISC CPU.
478 %description system-or32 -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 OpenRISC.
485 Summary: QEMU system emulator for PowerPC
486 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
487 Group: Development/Tools
488 Requires: %{name}-common = %{version}-%{release}
490 Obsoletes: qemu-kvm-system-ppc
492 %description system-ppc
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 PowerPC CPU.
498 %description system-ppc -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 PowerPC.
504 %package system-s390x
505 Summary: QEMU system emulator for S390
506 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
507 Group: Development/Tools
508 Requires: %{name}-common = %{version}-%{release}
510 Obsoletes: qemu-kvm-system-s390x
512 %description system-s390x
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 S390 CPU.
518 %description system-s390x -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 S390.
525 Summary: QEMU system emulator for SH4
526 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
527 Group: Development/Tools
528 Requires: %{name}-common = %{version}-%{release}
530 Obsoletes: qemu-kvm-system-sh4
532 %description system-sh4
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 SH4 CPU.
538 %description system-sh4 -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 SH4.
544 %package system-sparc
545 Summary: QEMU system emulator for SPARC
546 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
547 Group: Development/Tools
548 Requires: %{name}-common = %{version}-%{release}
550 Obsoletes: qemu-kvm-system-sparc
552 %description system-sparc
553 QEMU is a generic and open source processor emulator which achieves a
554 good emulation speed by using dynamic translation.
556 This package provides the system emulator with SPARC/SPARC64 CPU.
558 %description system-sparc -l pl.UTF-8
559 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
560 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
562 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
564 %package system-tricore
565 Summary: QEMU system emulator for TriCore
566 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem TriCore
567 Group: Development/Tools
568 Requires: %{name}-common = %{version}-%{release}
571 %description system-tricore
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 TriCore CPU.
577 %description system-sparc -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 TriCore.
583 %package system-unicore32
584 Summary: QEMU system emulator for UniCore32
585 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
586 Group: Development/Tools
587 Requires: %{name}-common = %{version}-%{release}
589 Obsoletes: qemu-kvm-system-unicore32
591 %description system-unicore32
592 QEMU is a generic and open source processor emulator which achieves a
593 good emulation speed by using dynamic translation.
595 This package provides the system emulator with UniCore32 CPU.
597 %description system-unicore32 -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 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
604 Summary: QEMU system emulator for x86
605 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
606 Group: Development/Tools
607 Requires: %{name}-common = %{version}-%{release}
608 %{?with_system_seabios:Requires: seabios}
611 Obsoletes: qemu-kvm-system-x86
613 %description system-x86
614 QEMU is a generic and open source processor emulator which achieves a
615 good emulation speed by using dynamic translation.
617 %description system-x86 -l pl.UTF-8
618 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
619 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
621 %package system-xtensa
622 Summary: QEMU system emulator for Xtensa
623 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
624 Group: Development/Tools
625 Requires: %{name}-common = %{version}-%{release}
627 Obsoletes: qemu-kvm-system-xtensa
629 %description system-xtensa
630 QEMU is a generic and open source processor emulator which achieves a
631 good emulation speed by using dynamic translation.
633 This package provides the system emulator with Xtensa CPU.
635 %description system-xtensa -l pl.UTF-8
636 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
637 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
639 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
642 Summary: QEMU guest agent
643 Summary(pl.UTF-8): Agent gościa QEMU
645 Requires(post,preun,postun): systemd-units >= 38
646 Requires: glib2 >= 1:2.22
647 Requires: systemd-units >= 38
648 Obsoletes: qemu-kvm-guest-agent
650 %description guest-agent
651 QEMU is a generic and open source processor emulator which achieves a
652 good emulation speed by using dynamic translation.
654 This package provides an agent to run inside guests, which
655 communicates with the host over a virtio-serial channel named
656 "org.qemu.guest_agent.0".
658 This package does not need to be installed on the host OS.
660 %description guest-agent -l pl.UTF-8
661 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
662 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
664 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
665 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
666 "org.qemu.guest_agent.0".
668 Ten pakiet nie musi być zainstalowany w systemie hosta.
670 %package module-block-curl
671 Summary: QEMU module for 'curl' block devices
672 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
673 Group: Development/Tools
674 Requires: %{name}-common = %{version}-%{release}
676 %description module-block-curl
677 'curl' block device support for QEMU.
679 %description module-block-curl -l pl.UTF-8
680 Moduł QEMU dla urządeń blokowych typu 'curl'.
682 %package module-block-gluster
683 Summary: QEMU module for 'gluster' block devices
684 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
685 Group: Development/Tools
686 Requires: %{name}-common = %{version}-%{release}
687 Requires: glusterfs-libs >= 3.4
689 %description module-block-gluster
690 'gluster' block device support for QEMU.
692 %description module-block-gluster -l pl.UTF-8
693 Moduł QEMU dla urządeń blokowych typu 'gluster'.
695 %package module-block-iscsi
696 Summary: QEMU module for 'iscsi' block devices
697 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
698 Group: Development/Tools
699 Requires: %{name}-common = %{version}-%{release}
700 Requires: libiscsi >= 1.9.0
702 %description module-block-iscsi
703 'iscsi' block device support for QEMU.
705 %description module-block-iscsi -l pl.UTF-8
706 Moduł QEMU dla urządeń blokowych typu 'iscsi'.
708 %package module-block-rbd
709 Summary: QEMU module for 'rbd' block devices
710 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
711 Group: Development/Tools
712 Requires: %{name}-common = %{version}-%{release}
714 %description module-block-rbd
715 'rbd' block device support for QEMU.
717 %description module-block-rbd -l pl.UTF-8
718 Moduł QEMU dla urządeń blokowych typu 'rbd'.
720 %package module-block-ssh
721 Summary: QEMU module for 'ssh' block devices
722 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
723 Group: Development/Tools
724 Requires: %{name}-common = %{version}-%{release}
726 %description module-block-ssh
727 'ssh' block device support for QEMU.
729 %description module-block-ssh -l pl.UTF-8
730 Moduł QEMU dla urządeń blokowych typu 'ssh'.
742 %{__mv} libcacard libcacard-use-system-lib
744 # workaround for conflict with alsa/error.h
745 ln -s ../error.h qapi/error.h
749 --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
750 --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
751 --prefix=%{_prefix} \
752 --libdir=%{_libdir} \
753 --libexecdir=%{_libexecdir} \
754 --sysconfdir=%{_sysconfdir} \
756 --host-cc="%{__cc}" \
759 %{__enable_disable bluetooth bluez} \
760 %{__enable_disable brlapi} \
766 %{__enable_disable glusterfs} \
767 %{__enable_disable iscsi libiscsi} \
768 %{__enable_disable ceph rbd} \
769 %{__enable_disable rdma} \
770 %{__enable_disable sdl} \
772 %{__enable_disable seccomp} \
773 %{__enable_disable spice} \
774 %{__enable_disable smartcard smartcard-nss} \
776 --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
777 %{__enable_disable usbredir usb-redir} \
785 %{!?with_vte:--disable-vte} \
787 %{__enable_disable xen} \
790 %{__enable_disable libnfs} \
792 %{__enable_disable snappy} \
793 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
794 --interp-prefix=%{_libdir}/qemu/lib-%%M \
795 %if %{without gtk2} && %{without gtk3}
798 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
803 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
805 # rebuild patched vesa tables with additional widescreen modes.
806 %{__make} -C roms/vgabios stdvga-bios
808 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
811 rm -rf $RPM_BUILD_ROOT
812 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
813 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
814 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
817 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
818 DESTDIR=$RPM_BUILD_ROOT
820 install -d $RPM_BUILD_ROOT%{_sysconfdir}
821 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
826 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
828 %ifarch %{ix86} %{x8664} x32
829 install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
830 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
831 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
834 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
835 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
836 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
838 install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
839 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
840 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
842 # For the qemu-guest-agent subpackage install the systemd
843 # service and udev rules.
844 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
845 install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
848 %ifnarch %{ix86} %{x8664} x32
857 %ifnarch sparc sparc64
864 test $i = dummy && continue
865 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i.conf
869 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
870 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
872 # install patched vesa tables with additional widescreen modes.
873 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
875 %if %{with system_seabios}
876 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
877 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
878 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
880 if [ -e "/usr/share/seabios/$bn" ] ; then
881 ln -sf "/usr/share/seabios/$bn" "$f"
886 %if %{with gtk2} || %{with gtk3}
887 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
888 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
895 rm -rf $RPM_BUILD_ROOT
899 %groupadd -g 276 qemu
900 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
903 %systemd_post ksm.service
904 %systemd_post ksmtuned.service
907 %systemd_preun ksm.service
908 %systemd_preun ksmtuned.service
911 if [ "$1" = "0" ]; then
918 %triggerpostun common -- qemu-common < 1.6.1-4
919 %systemd_trigger ksm.service
920 %systemd_trigger ksmtuned.service
923 %systemd_service_restart systemd-binfmt.service
926 %systemd_service_restart systemd-binfmt.service
932 %systemd_preun qemu-guest-agent.service
938 %defattr(644,root,root,755)
940 %files common -f %{name}.lang
941 %defattr(644,root,root,755)
942 %doc LICENSE README qemu-doc.html qemu-tech.html qmp-commands.txt
943 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
944 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
945 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
946 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
947 %{systemdunitdir}/ksm.service
948 %{systemdunitdir}/ksmtuned.service
949 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
950 %attr(755,root,root) %{_bindir}/qemu-nbd
951 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
952 %attr(755,root,root) %{_sbindir}/ksmctl
953 %attr(755,root,root) %{_sbindir}/ksmtuned
954 %{_mandir}/man1/qemu.1*
955 %{_mandir}/man1/virtfs-proxy-helper.1*
956 %{_mandir}/man8/qemu-nbd.8*
958 %dir %{_datadir}/qemu
959 %{_datadir}/%{name}/keymaps
960 %{_datadir}/%{name}/qemu-icon.bmp
961 %{_datadir}/%{name}/trace-events
963 # various bios images
964 # all should be probably moved to the right system subpackage
965 %{_datadir}/%{name}/QEMU,cgthree.bin
966 %{_datadir}/%{name}/QEMU,tcx.bin
967 %{_datadir}/%{name}/bamboo.dtb
968 %{_datadir}/%{name}/efi-e1000.rom
969 %{_datadir}/%{name}/efi-eepro100.rom
970 %{_datadir}/%{name}/efi-ne2k_pci.rom
971 %{_datadir}/%{name}/efi-pcnet.rom
972 %{_datadir}/%{name}/efi-rtl8139.rom
973 %{_datadir}/%{name}/efi-virtio.rom
974 %{_datadir}/%{name}/kvmvapic.bin
975 %{_datadir}/%{name}/linuxboot.bin
976 %{_datadir}/%{name}/multiboot.bin
977 %{_datadir}/%{name}/openbios-ppc
978 %{_datadir}/%{name}/openbios-sparc*
979 %{_datadir}/%{name}/palcode-clipper
980 %{_datadir}/%{name}/petalogix-ml605.dtb
981 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
982 %{_datadir}/%{name}/ppc_rom.bin
983 %{_datadir}/%{name}/pxe-e1000.rom
984 %{_datadir}/%{name}/pxe-eepro100.rom
985 %{_datadir}/%{name}/pxe-ne2k_pci.rom
986 %{_datadir}/%{name}/pxe-pcnet.rom
987 %{_datadir}/%{name}/pxe-rtl8139.rom
988 %{_datadir}/%{name}/pxe-virtio.rom
989 %{_datadir}/%{name}/qemu_logo_no_text.svg
990 %{_datadir}/%{name}/s390-ccw.img
991 %{_datadir}/%{name}/s390-zipl.rom
992 %{_datadir}/%{name}/sgabios.bin
993 %{_datadir}/%{name}/slof.bin
994 %{_datadir}/%{name}/spapr-rtas.bin
995 %{_datadir}/%{name}/vgabios-cirrus.bin
996 %{_datadir}/%{name}/vgabios-qxl.bin
997 %{_datadir}/%{name}/vgabios-stdvga.bin
998 %{_datadir}/%{name}/vgabios-virtio.bin
999 %{_datadir}/%{name}/vgabios-vmware.bin
1000 %{_datadir}/%{name}/vgabios.bin
1002 %dir %{_libdir}/%{name}
1004 # modules without too many external dependencies
1005 %attr(755,root,root) %{_libdir}/%{name}/block-dmg.so
1008 %defattr(644,root,root,755)
1009 %attr(755,root,root) %{_bindir}/qemu-img
1010 %{_mandir}/man1/qemu-img.1*
1013 %defattr(644,root,root,755)
1014 /usr/lib/binfmt.d/qemu-*.conf
1015 %attr(755,root,root) %{_bindir}/qemu-aarch64
1016 %attr(755,root,root) %{_bindir}/qemu-alpha
1017 %attr(755,root,root) %{_bindir}/qemu-arm
1018 %attr(755,root,root) %{_bindir}/qemu-armeb
1019 %attr(755,root,root) %{_bindir}/qemu-cris
1020 %attr(755,root,root) %{_bindir}/qemu-i386
1021 %attr(755,root,root) %{_bindir}/qemu-io
1022 %attr(755,root,root) %{_bindir}/qemu-m68k
1023 %attr(755,root,root) %{_bindir}/qemu-microblaze
1024 %attr(755,root,root) %{_bindir}/qemu-microblazeel
1025 %attr(755,root,root) %{_bindir}/qemu-mips
1026 %attr(755,root,root) %{_bindir}/qemu-mipsel
1027 %attr(755,root,root) %{_bindir}/qemu-mips64
1028 %attr(755,root,root) %{_bindir}/qemu-mips64el
1029 %attr(755,root,root) %{_bindir}/qemu-mipsn32
1030 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
1031 %attr(755,root,root) %{_bindir}/qemu-or32
1032 %attr(755,root,root) %{_bindir}/qemu-ppc
1033 %attr(755,root,root) %{_bindir}/qemu-ppc64
1034 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
1035 %attr(755,root,root) %{_bindir}/qemu-ppc64le
1036 %attr(755,root,root) %{_bindir}/qemu-s390x
1037 %attr(755,root,root) %{_bindir}/qemu-sh4
1038 %attr(755,root,root) %{_bindir}/qemu-sh4eb
1039 %attr(755,root,root) %{_bindir}/qemu-sparc
1040 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
1041 %attr(755,root,root) %{_bindir}/qemu-sparc64
1042 %attr(755,root,root) %{_bindir}/qemu-unicore32
1043 %attr(755,root,root) %{_bindir}/qemu-x86_64
1045 %files system-aarch64
1046 %defattr(644,root,root,755)
1047 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1050 %defattr(644,root,root,755)
1051 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1054 %defattr(644,root,root,755)
1055 %attr(755,root,root) %{_bindir}/qemu-system-arm
1058 %defattr(644,root,root,755)
1059 %attr(755,root,root) %{_bindir}/qemu-system-cris
1062 %defattr(644,root,root,755)
1063 %attr(755,root,root) %{_bindir}/qemu-system-lm32
1066 %defattr(644,root,root,755)
1067 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1069 %files system-microblaze
1070 %defattr(644,root,root,755)
1071 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1072 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1075 %defattr(644,root,root,755)
1076 %attr(755,root,root) %{_bindir}/qemu-system-mips
1077 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1078 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1079 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1082 %defattr(644,root,root,755)
1083 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1086 %defattr(644,root,root,755)
1087 %attr(755,root,root) %{_bindir}/qemu-system-or32
1090 %defattr(644,root,root,755)
1091 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1092 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1093 #%attr(755,root,root) %{_bindir}/qemu-system-ppc64le
1094 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
1095 %{_datadir}/%{name}/u-boot.e500
1098 %defattr(644,root,root,755)
1099 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1102 %defattr(644,root,root,755)
1103 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1104 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1107 %defattr(644,root,root,755)
1108 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1109 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1111 %files system-tricore
1112 %defattr(644,root,root,755)
1113 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1115 %files system-unicore32
1116 %defattr(644,root,root,755)
1117 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1120 %defattr(644,root,root,755)
1121 %attr(755,root,root) %{_bindir}/qemu-system-i386
1122 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1123 %ifarch %{ix86} %{x8664} x32
1124 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1125 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
1126 %attr(755,root,root) %{_bindir}/kvm_stat
1128 %{_datadir}/%{name}/bios.bin
1129 %{_datadir}/%{name}/bios-256k.bin
1130 %{_datadir}/%{name}/acpi-dsdt.aml
1131 %{_datadir}/%{name}/q35-acpi-dsdt.aml
1133 %files system-xtensa
1134 %defattr(644,root,root,755)
1135 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1136 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1139 %defattr(644,root,root,755)
1140 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
1141 %{systemdunitdir}/qemu-guest-agent.service
1142 %attr(755,root,root) %{_bindir}/qemu-ga
1144 %files module-block-curl
1145 %defattr(644,root,root,755)
1146 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1148 %if %{with glusterfs}
1149 %files module-block-gluster
1150 %defattr(644,root,root,755)
1151 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1155 %files module-block-iscsi
1156 %defattr(644,root,root,755)
1157 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1161 %files module-block-rbd
1162 %defattr(644,root,root,755)
1163 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1166 %files module-block-ssh
1167 %defattr(644,root,root,755)
1168 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so