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_without gtk3 # Do not build GTK UI
10 %bcond_without spice # SPICE support
11 %bcond_with esd # EsounD audio support
12 %bcond_without oss # OSS audio support
13 %bcond_without pulseaudio # PulseAudio audio support
14 %bcond_without xen # Xen backend driver support
15 %bcond_without bluetooth # bluetooth support
16 %bcond_without brlapi # brlapi support
17 %bcond_without smartcard # smartcard-nss support
18 %bcond_without iscsi # iscsi support
19 %bcond_without libnfs # NFS support
20 %bcond_without seccomp # seccomp support
21 %bcond_without usbredir # usb network redirection support
22 %bcond_without system_seabios # system seabios binary
23 %bcond_without snappy # snappy compression library
29 Summary: QEMU CPU Emulator
30 Summary(pl.UTF-8): QEMU - emulator procesora
35 Group: Applications/Emulators
36 Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.bz2
37 # Source0-md5: f7a5e2da22d057eb838a91da7aff43c8
38 Source2: %{name}.binfmt
39 # Loads kvm kernel modules at boot
40 Source3: kvm-modules-load.conf
45 Source6: ksm.sysconfig
47 Source8: ksmtuned.service
49 Source10: ksmtuned.conf
50 Source11: %{name}-guest-agent.service
51 Source12: 99-%{name}-guest-agent.rules
52 Patch0: %{name}-cflags.patch
53 Patch1: vgabios-widescreens.patch
54 Patch2: %{name}-whitelist.patch
55 Patch3: %{name}-system-libcacard.patch
56 Patch4: %{name}-xattr.patch
57 Patch5: libjpeg-boolean.patch
58 # Proof of concept, for reference, do not remove
59 Patch400: %{name}-kde_virtual_workspaces_hack.patch
60 URL: http://www.qemu-project.org/
61 %{?with_opengl:BuildRequires: OpenGL-GLX-devel}
62 %{?with_sdl:BuildRequires: SDL2-devel >= 2.0}
63 BuildRequires: alsa-lib-devel
65 %{?with_bluetooth:BuildRequires: bluez-libs-devel}
66 %{?with_brlapi:BuildRequires: brlapi-devel}
67 %{?with_ceph:BuildRequires: ceph-devel}
68 BuildRequires: curl-devel
69 BuildRequires: cyrus-sasl-devel >= 2
70 %{?with_esd:BuildRequires: esound-devel}
71 BuildRequires: glib2-devel >= 1:2.12
72 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
73 BuildRequires: gnutls-devel > 2.10.0
74 BuildRequires: libaio-devel
75 %{?with_smartcard:BuildRequires: libcacard-devel}
76 BuildRequires: libcap-devel
77 BuildRequires: libcap-ng-devel
78 BuildRequires: libfdt-devel
79 %{?with_rdma:BuildRequires: libibverbs-devel}
80 %{?with_iscsi:BuildRequires: libiscsi-devel >= 1.4.0}
81 BuildRequires: libjpeg-devel
82 %{?with_libnfs:BuildRequires: libnfs-devel >= 1.9.3}
83 BuildRequires: libpng-devel
84 %{?with_rdma:BuildRequires: librdmacm-devel}
85 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.1.0}
86 BuildRequires: libssh2-devel >= 1.2.8
87 BuildRequires: libusb-devel >= 1.0.13
88 BuildRequires: libuuid-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 BuildRequires: texi2html
105 BuildRequires: texinfo
106 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
107 BuildRequires: vde2-devel
109 %{?with_xen:BuildRequires: xen-devel >= 3.4}
110 BuildRequires: xfsprogs-devel
111 BuildRequires: xorg-lib-libX11-devel
112 BuildRequires: zlib-devel
114 BuildRequires: gtk+2-devel >= 2:2.18.0
115 BuildRequires: vte0-devel >= 0.24.0
118 BuildRequires: gtk+3-devel >= 3.0.0
119 BuildRequires: vte-devel >= 0.32.0
121 Requires: %{name}-img = %{version}-%{release}
122 Requires: %{name}-system-aarch64 = %{version}-%{release}
123 Requires: %{name}-system-alpha = %{version}-%{release}
124 Requires: %{name}-system-arm = %{version}-%{release}
125 Requires: %{name}-system-cris = %{version}-%{release}
126 Requires: %{name}-system-lm32 = %{version}-%{release}
127 Requires: %{name}-system-m68k = %{version}-%{release}
128 Requires: %{name}-system-microblaze = %{version}-%{release}
129 Requires: %{name}-system-mips = %{version}-%{release}
130 Requires: %{name}-system-moxie = %{version}-%{release}
131 Requires: %{name}-system-or32 = %{version}-%{release}
132 Requires: %{name}-system-ppc = %{version}-%{release}
133 Requires: %{name}-system-s390x = %{version}-%{release}
134 Requires: %{name}-system-sh4 = %{version}-%{release}
135 Requires: %{name}-system-sparc = %{version}-%{release}
136 Requires: %{name}-system-tricore = %{version}-%{release}
137 Requires: %{name}-system-unicore32 = %{version}-%{release}
138 Requires: %{name}-system-x86 = %{version}-%{release}
139 Requires: %{name}-system-xtensa = %{version}-%{release}
140 Requires: %{name}-user = %{version}-%{release}
142 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
144 %define systempkg_req \
148 %if %{with seccomp} \
149 Requires: libseccomp >= 2.1.0 \
151 Requires: libusb >= 1.0.13 \
152 %if %{with usbredir} \
153 Requires: usbredir >= 0.6 \
156 Requires: gtk+2 >= 2:2.18.0 \
157 Requires: vte0 >= 0.24.0 \
160 Requires: gtk+3 >= 3.0.0 \
161 Requires: vte >= 0.32.0 \
164 # some PPC/SPARC boot image in ELF format
165 %define _noautostrip .*%{_datadir}/qemu/.*-.*
168 QEMU is a FAST! processor emulator. By using dynamic translation it
169 achieves a reasonnable speed while being easy to port on new host
170 CPUs. QEMU has two operating modes:
172 - User mode emulation. In this mode, QEMU can launch Linux processes
173 compiled for one CPU on another CPU. Linux system calls are converted
174 because of endianness and 32/64 bit mismatches. Wine (Windows
175 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
177 - Full system emulation. In this mode, QEMU emulates a full system,
178 including a processor and various peripherials. It can also be used to
179 provide virtual hosting of several virtual PC on a single server.
181 %description -l pl.UTF-8
182 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
183 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
184 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
186 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
187 procesy linuksowe skompilowane dla jednego procesora na innym
188 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
189 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
190 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
193 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
194 włączając w to procesor i różne urządzenia peryferyjne. Może być także
195 używane do wirtualnego hostowania kilku wirtualnych pecetów na
196 pojedynczym serwerze.
199 Summary: QEMU common files needed by all QEMU targets
200 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
201 Group: Development/Tools
202 Requires(post,preun,postun): systemd-units >= 38
203 Requires(postun): /usr/sbin/groupdel
204 Requires(postun): /usr/sbin/userdel
205 Requires(pre): /bin/id
206 Requires(pre): /usr/bin/getgid
207 Requires(pre): /usr/sbin/groupadd
208 Requires(pre): /usr/sbin/useradd
209 Requires: glib2 >= 1:2.12
210 %{?with_libnfs:Requires: libnfs >= 1.9.3}
211 Requires: libssh2 >= 1.2.8
212 Requires: systemd-units >= 38
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 Requires(post,postun): systemd-units >= 38
252 Requires: systemd-units >= 38
253 Obsoletes: qemu-kvm-user
256 QEMU is a generic and open source processor emulator which achieves a
257 good emulation speed by using dynamic translation.
259 This package provides the user mode emulation of QEMU targets.
261 %description user -l pl.UTF-8
262 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
263 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
265 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
267 %package system-aarch64
268 Summary: QEMU system emulator for AArch64
269 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
270 Group: Development/Tools
271 Requires: %{name}-common = %{version}-%{release}
273 Obsoletes: qemu-kvm-system-aarch64
275 %description system-aarch64
276 QEMU is a generic and open source processor emulator which achieves a
277 good emulation speed by using dynamic translation.
279 This package provides the system emulator with AArch64 CPU.
281 %description system-aarch64 -l pl.UTF-8
282 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
283 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
285 Ten pakiet zawiera emulator systemu z procesorem AArch64.
287 %package system-alpha
288 Summary: QEMU system emulator for Alpha
289 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
290 Group: Development/Tools
291 Requires: %{name}-common = %{version}-%{release}
293 Obsoletes: qemu-kvm-system-alpha
295 %description system-alpha
296 QEMU is a generic and open source processor emulator which achieves a
297 good emulation speed by using dynamic translation.
299 This package provides the system emulator with Alpha CPU.
301 %description system-alpha -l pl.UTF-8
302 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
303 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
305 Ten pakiet zawiera emulator systemu z procesorem Alpha.
308 Summary: QEMU system emulator for ARM
309 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
310 Group: Development/Tools
311 Requires: %{name}-common = %{version}-%{release}
313 Obsoletes: qemu-kvm-system-arm
315 %description system-arm
316 QEMU is a generic and open source processor emulator which achieves a
317 good emulation speed by using dynamic translation.
319 This package provides the system emulator for ARM.
321 %description system-arm -l pl.UTF-8
322 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
323 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
325 Ten pakiet zawiera emulator systemu z procesorem ARM.
328 Summary: QEMU system emulator for CRIS
329 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
330 Group: Development/Tools
331 Requires: %{name}-common = %{version}-%{release}
333 Obsoletes: qemu-kvm-system-cris
335 %description system-cris
336 QEMU is a generic and open source processor emulator which achieves a
337 good emulation speed by using dynamic translation.
339 This package provides the system emulator with CRIS CPU.
341 %description system-cris -l pl.UTF-8
342 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
343 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
345 Ten pakiet zawiera emulator systemu z procesorem CRIS.
348 Summary: QEMU system emulator for LM32
349 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
350 Group: Development/Tools
351 Requires: %{name}-common = %{version}-%{release}
353 Obsoletes: qemu-kvm-system-lm32
355 %description system-lm32
356 QEMU is a generic and open source processor emulator which achieves a
357 good emulation speed by using dynamic translation.
359 This package provides the system emulator with LM32 CPU.
361 %description system-lm32 -l pl.UTF-8
362 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
363 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
365 Ten pakiet zawiera emulator systemu z procesorem LM32.
368 Summary: QEMU system emulator for m68k
369 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
370 Group: Development/Tools
371 Requires: %{name}-common = %{version}-%{release}
373 Obsoletes: qemu-kvm-system-m68k
375 %description system-m68k
376 QEMU is a generic and open source processor emulator which achieves a
377 good emulation speed by using dynamic translation.
379 This package provides the system emulator with m68k CPU.
381 %description system-m68k -l pl.UTF-8
382 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
383 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
385 Ten pakiet zawiera emulator systemu z procesorem m68k.
387 %package system-microblaze
388 Summary: QEMU system emulator for MicroBlaze
389 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
390 Group: Development/Tools
391 Requires: %{name}-common = %{version}-%{release}
393 Obsoletes: qemu-kvm-system-microblaze
395 %description system-microblaze
396 QEMU is a generic and open source processor emulator which achieves a
397 good emulation speed by using dynamic translation.
399 This package provides the system emulator with MicroBlaze CPU.
401 %description system-microblaze -l pl.UTF-8
402 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
403 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
405 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
408 Summary: QEMU system emulator for MIPS
409 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
410 Group: Development/Tools
411 Requires: %{name}-common = %{version}-%{release}
413 Obsoletes: qemu-kvm-system-mips
415 %description system-mips
416 QEMU is a generic and open source processor emulator which achieves a
417 good emulation speed by using dynamic translation.
419 This package provides the system emulator with MIPS CPU.
421 %description system-mips -l pl.UTF-8
422 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
423 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
425 Ten pakiet zawiera emulator systemu z procesorem MIPS.
427 %package system-moxie
428 Summary: QEMU system emulator for Moxie
429 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
430 Group: Development/Tools
431 Requires: %{name}-common = %{version}-%{release}
434 %description system-moxie
435 QEMU is a generic and open source processor emulator which achieves a
436 good emulation speed by using dynamic translation.
438 This package provides the system emulator with Moxie CPU.
440 %description system-moxie -l pl.UTF-8
441 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
442 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
444 Ten pakiet zawiera emulator systemu z procesorem Moxie.
447 Summary: QEMU system emulator for OpenRISC
448 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
449 Group: Development/Tools
450 Requires: %{name}-common = %{version}-%{release}
452 Obsoletes: qemu-kvm-system-or32
454 %description system-or32
455 QEMU is a generic and open source processor emulator which achieves a
456 good emulation speed by using dynamic translation.
458 This package provides the system emulator with OpenRISC CPU.
460 %description system-or32 -l pl.UTF-8
461 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
462 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
464 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
467 Summary: QEMU system emulator for PowerPC
468 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
469 Group: Development/Tools
470 Requires: %{name}-common = %{version}-%{release}
472 Obsoletes: qemu-kvm-system-ppc
474 %description system-ppc
475 QEMU is a generic and open source processor emulator which achieves a
476 good emulation speed by using dynamic translation.
478 This package provides the system emulator with PowerPC CPU.
480 %description system-ppc -l pl.UTF-8
481 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
482 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
484 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
486 %package system-s390x
487 Summary: QEMU system emulator for S390
488 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
489 Group: Development/Tools
490 Requires: %{name}-common = %{version}-%{release}
492 Obsoletes: qemu-kvm-system-s390x
494 %description system-s390x
495 QEMU is a generic and open source processor emulator which achieves a
496 good emulation speed by using dynamic translation.
498 This package provides the system emulator with S390 CPU.
500 %description system-s390x -l pl.UTF-8
501 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
502 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
504 Ten pakiet zawiera emulator systemu z procesorem S390.
507 Summary: QEMU system emulator for SH4
508 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
509 Group: Development/Tools
510 Requires: %{name}-common = %{version}-%{release}
512 Obsoletes: qemu-kvm-system-sh4
514 %description system-sh4
515 QEMU is a generic and open source processor emulator which achieves a
516 good emulation speed by using dynamic translation.
518 This package provides the system emulator with SH4 CPU.
520 %description system-sh4 -l pl.UTF-8
521 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
522 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
524 Ten pakiet zawiera emulator systemu z procesorem SH4.
526 %package system-sparc
527 Summary: QEMU system emulator for SPARC
528 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
529 Group: Development/Tools
530 Requires: %{name}-common = %{version}-%{release}
532 Obsoletes: qemu-kvm-system-sparc
534 %description system-sparc
535 QEMU is a generic and open source processor emulator which achieves a
536 good emulation speed by using dynamic translation.
538 This package provides the system emulator with SPARC/SPARC64 CPU.
540 %description system-sparc -l pl.UTF-8
541 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
542 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
544 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
546 %package system-tricore
547 Summary: QEMU system emulator for Tricore
548 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Tricore
549 Group: Development/Tools
550 Requires: %{name}-common = %{version}-%{release}
553 %description system-tricore
554 QEMU is a generic and open source processor emulator which achieves a
555 good emulation speed by using dynamic translation.
557 This package provides the system emulator with Tricore CPU.
559 %description system-sparc -l pl.UTF-8
560 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
561 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
563 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
566 %package system-unicore32
567 Summary: QEMU system emulator for UniCore32
568 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
569 Group: Development/Tools
570 Requires: %{name}-common = %{version}-%{release}
572 Obsoletes: qemu-kvm-system-unicore32
574 %description system-unicore32
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 UniCore32 CPU.
580 %description system-unicore32 -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 UniCore32.
587 Summary: QEMU system emulator for x86
588 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
589 Group: Development/Tools
590 Requires: %{name}-common = %{version}-%{release}
591 %{?with_system_seabios:Requires: seabios}
594 Obsoletes: qemu-kvm-system-x86
596 %description system-x86
597 QEMU is a generic and open source processor emulator which achieves a
598 good emulation speed by using dynamic translation.
600 %description system-x86 -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 %package system-xtensa
605 Summary: QEMU system emulator for Xtensa
606 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
607 Group: Development/Tools
608 Requires: %{name}-common = %{version}-%{release}
610 Obsoletes: qemu-kvm-system-xtensa
612 %description system-xtensa
613 QEMU is a generic and open source processor emulator which achieves a
614 good emulation speed by using dynamic translation.
616 This package provides the system emulator with Xtensa CPU.
618 %description system-xtensa -l pl.UTF-8
619 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
620 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
622 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
625 Summary: QEMU guest agent
626 Summary(pl.UTF-8): Agent gościa QEMU
628 Requires(post,preun,postun): systemd-units >= 38
629 Requires: glib2 >= 1:2.12
630 Requires: systemd-units >= 38
631 Obsoletes: qemu-kvm-guest-agent
633 %description guest-agent
634 QEMU is a generic and open source processor emulator which achieves a
635 good emulation speed by using dynamic translation.
637 This package provides an agent to run inside guests, which
638 communicates with the host over a virtio-serial channel named
639 "org.qemu.guest_agent.0".
641 This package does not need to be installed on the host OS.
643 %description guest-agent -l pl.UTF-8
644 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
645 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
647 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
648 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
649 "org.qemu.guest_agent.0".
651 Ten pakiet nie musi być zainstalowany w systemie hosta.
653 %package module-block-curl
654 Summary: QEMU module for 'curl' block devices
655 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
656 Group: Development/Tools
657 Requires: %{name}-common = %{version}-%{release}
659 %description module-block-curl
660 'curl' block device support for QEMU.
662 %description module-block-curl -l pl.UTF-8
663 Moduł QEMU dla urządeń blokowych typu 'curl'.
665 %package module-block-gluster
666 Summary: QEMU module for 'gluster' block devices
667 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
668 Group: Development/Tools
669 Requires: %{name}-common = %{version}-%{release}
670 Requires: glusterfs-libs >= 3.4
672 %description module-block-gluster
673 'gluster' block device support for QEMU.
675 %description module-block-gluster -l pl.UTF-8
676 Moduł QEMU dla urządeń blokowych typu 'gluster'.
678 %package module-block-iscsi
679 Summary: QEMU module for 'iscsi' block devices
680 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
681 Group: Development/Tools
682 Requires: %{name}-common = %{version}-%{release}
683 Requires: libiscsi >= 1.4.0
685 %description module-block-iscsi
686 'iscsi' block device support for QEMU.
688 %description module-block-iscsi -l pl.UTF-8
689 Moduł QEMU dla urządeń blokowych typu 'iscsi'.
691 %package module-block-rbd
692 Summary: QEMU module for 'rbd' block devices
693 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
694 Group: Development/Tools
695 Requires: %{name}-common = %{version}-%{release}
697 %description module-block-rbd
698 'rbd' block device support for QEMU.
700 %description module-block-rbd -l pl.UTF-8
701 Moduł QEMU dla urządeń blokowych typu 'rbd'.
703 %package module-block-ssh
704 Summary: QEMU module for 'ssh' block devices
705 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
706 Group: Development/Tools
707 Requires: %{name}-common = %{version}-%{release}
709 %description module-block-ssh
710 'ssh' block device support for QEMU.
712 %description module-block-ssh -l pl.UTF-8
713 Moduł QEMU dla urządeń blokowych typu 'ssh'.
724 %{__mv} libcacard libcacard-use-system-lib
726 # workaround for conflict with alsa/error.h
727 ln -s ../error.h qapi/error.h
731 --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
732 --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
733 --prefix=%{_prefix} \
734 --libdir=%{_libdir} \
735 --libexecdir=%{_libexecdir} \
736 --sysconfdir=%{_sysconfdir} \
738 --host-cc="%{__cc}" \
741 %{__enable_disable bluetooth bluez} \
742 %{__enable_disable brlapi} \
748 %{__enable_disable glusterfs} \
749 %{__enable_disable iscsi libiscsi} \
750 %{__enable_disable glx} \
751 %{__enable_disable ceph rbd} \
752 %{__enable_disable rdma} \
753 %{__enable_disable sdl} \
755 %{__enable_disable seccomp} \
756 %{__enable_disable spice} \
757 %{__enable_disable smartcard smartcard-nss} \
759 %{__enable_disable usbredir usb-redir} \
768 %{__enable_disable xen} \
771 %{__enable_disable libnfs} \
773 %{__enable_disable snappy} \
775 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
776 --interp-prefix=%{_libdir}/qemu/lib-%%M \
777 %if %{without gtk2} && %{without gtk3}
780 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
785 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
787 # rebuild patched vesa tables with additional widescreen modes.
788 %{__make} -C roms/vgabios stdvga-bios
790 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
793 rm -rf $RPM_BUILD_ROOT
794 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
795 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
796 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
799 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
800 DESTDIR=$RPM_BUILD_ROOT
802 install -d $RPM_BUILD_ROOT%{_sysconfdir}
803 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
808 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
810 %ifarch %{ix86} %{x8664}
811 install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
812 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
813 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
816 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
817 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
818 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
820 install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
821 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
822 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
824 # For the qemu-guest-agent subpackage install the systemd
825 # service and udev rules.
826 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
827 install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
830 %ifnarch %{ix86} %{x8664}
839 %ifnarch sparc sparc64
846 test $i = dummy && continue
847 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i.conf
851 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
852 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
854 # install patched vesa tables with additional widescreen modes.
855 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
857 %if %{with system_seabios}
858 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
859 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
860 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
862 if [ -e "/usr/share/seabios/$bn" ] ; then
863 ln -sf "/usr/share/seabios/$bn" "$f"
868 %if %{with gtk2} || %{with gtk3}
869 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
870 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
877 rm -rf $RPM_BUILD_ROOT
881 %groupadd -g 276 qemu
882 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
885 %systemd_post ksm.service
886 %systemd_post ksmtuned.service
889 %systemd_preun ksm.service
890 %systemd_preun ksmtuned.service
893 if [ "$1" = "0" ]; then
900 %triggerpostun common -- qemu-common < 1.6.1-4
901 %systemd_trigger ksm.service
902 %systemd_trigger ksmtuned.service
905 %systemd_service_restart systemd-binfmt.service
908 %systemd_service_restart systemd-binfmt.service
914 %systemd_preun qemu-guest-agent.service
920 %defattr(644,root,root,755)
922 %files common -f %{name}.lang
923 %defattr(644,root,root,755)
924 %doc README qemu-doc.html qemu-tech.html qmp-commands.txt
925 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
926 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu/target-*.conf
927 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
928 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
929 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
930 %{systemdunitdir}/ksm.service
931 %{systemdunitdir}/ksmtuned.service
932 %dir %{_sysconfdir}/qemu
933 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
934 %attr(755,root,root) %{_bindir}/qemu-nbd
935 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
936 %attr(755,root,root) %{_sbindir}/ksmctl
937 %attr(755,root,root) %{_sbindir}/ksmtuned
938 %{_mandir}/man1/qemu.1*
939 %{_mandir}/man1/virtfs-proxy-helper.1*
940 %{_mandir}/man8/qemu-nbd.8*
942 %dir %{_datadir}/qemu
943 %{_datadir}/%{name}/keymaps
944 %{_datadir}/%{name}/qemu-icon.bmp
945 %{_datadir}/%{name}/trace-events
947 # various bios images
948 # all should be probably moved to the right system subpackage
949 %{_datadir}/%{name}/QEMU,cgthree.bin
950 %{_datadir}/%{name}/QEMU,tcx.bin
951 %{_datadir}/%{name}/bamboo.dtb
952 %{_datadir}/%{name}/efi-e1000.rom
953 %{_datadir}/%{name}/efi-eepro100.rom
954 %{_datadir}/%{name}/efi-ne2k_pci.rom
955 %{_datadir}/%{name}/efi-pcnet.rom
956 %{_datadir}/%{name}/efi-rtl8139.rom
957 %{_datadir}/%{name}/efi-virtio.rom
958 %{_datadir}/%{name}/kvmvapic.bin
959 %{_datadir}/%{name}/linuxboot.bin
960 %{_datadir}/%{name}/multiboot.bin
961 %{_datadir}/%{name}/openbios-ppc
962 %{_datadir}/%{name}/openbios-sparc*
963 %{_datadir}/%{name}/palcode-clipper
964 %{_datadir}/%{name}/petalogix-ml605.dtb
965 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
966 %{_datadir}/%{name}/ppc_rom.bin
967 %{_datadir}/%{name}/pxe-e1000.rom
968 %{_datadir}/%{name}/pxe-eepro100.rom
969 %{_datadir}/%{name}/pxe-ne2k_pci.rom
970 %{_datadir}/%{name}/pxe-pcnet.rom
971 %{_datadir}/%{name}/pxe-rtl8139.rom
972 %{_datadir}/%{name}/pxe-virtio.rom
973 %{_datadir}/%{name}/qemu_logo_no_text.svg
974 %{_datadir}/%{name}/s390-ccw.img
975 %{_datadir}/%{name}/s390-zipl.rom
976 %{_datadir}/%{name}/sgabios.bin
977 %{_datadir}/%{name}/slof.bin
978 %{_datadir}/%{name}/spapr-rtas.bin
979 %{_datadir}/%{name}/vgabios-cirrus.bin
980 %{_datadir}/%{name}/vgabios-qxl.bin
981 %{_datadir}/%{name}/vgabios-stdvga.bin
982 %{_datadir}/%{name}/vgabios-vmware.bin
983 %{_datadir}/%{name}/vgabios.bin
985 %dir %{_libdir}/%{name}
988 %defattr(644,root,root,755)
989 %attr(755,root,root) %{_bindir}/qemu-img
990 %{_mandir}/man1/qemu-img.1*
993 %defattr(644,root,root,755)
994 /usr/lib/binfmt.d/qemu-*.conf
995 %attr(755,root,root) %{_bindir}/qemu-aarch64
996 %attr(755,root,root) %{_bindir}/qemu-alpha
997 %attr(755,root,root) %{_bindir}/qemu-arm
998 %attr(755,root,root) %{_bindir}/qemu-armeb
999 %attr(755,root,root) %{_bindir}/qemu-cris
1000 %attr(755,root,root) %{_bindir}/qemu-i386
1001 %attr(755,root,root) %{_bindir}/qemu-io
1002 %attr(755,root,root) %{_bindir}/qemu-m68k
1003 %attr(755,root,root) %{_bindir}/qemu-microblaze
1004 %attr(755,root,root) %{_bindir}/qemu-microblazeel
1005 %attr(755,root,root) %{_bindir}/qemu-mips
1006 %attr(755,root,root) %{_bindir}/qemu-mipsel
1007 %attr(755,root,root) %{_bindir}/qemu-mips64
1008 %attr(755,root,root) %{_bindir}/qemu-mips64el
1009 %attr(755,root,root) %{_bindir}/qemu-mipsn32
1010 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
1011 %attr(755,root,root) %{_bindir}/qemu-or32
1012 %attr(755,root,root) %{_bindir}/qemu-ppc
1013 %attr(755,root,root) %{_bindir}/qemu-ppc64
1014 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
1015 %attr(755,root,root) %{_bindir}/qemu-ppc64le
1016 %attr(755,root,root) %{_bindir}/qemu-s390x
1017 %attr(755,root,root) %{_bindir}/qemu-sh4
1018 %attr(755,root,root) %{_bindir}/qemu-sh4eb
1019 %attr(755,root,root) %{_bindir}/qemu-sparc
1020 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
1021 %attr(755,root,root) %{_bindir}/qemu-sparc64
1022 %attr(755,root,root) %{_bindir}/qemu-unicore32
1023 %attr(755,root,root) %{_bindir}/qemu-x86_64
1025 %files system-aarch64
1026 %defattr(644,root,root,755)
1027 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1030 %defattr(644,root,root,755)
1031 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1034 %defattr(644,root,root,755)
1035 %attr(755,root,root) %{_bindir}/qemu-system-arm
1038 %defattr(644,root,root,755)
1039 %attr(755,root,root) %{_bindir}/qemu-system-cris
1042 %defattr(644,root,root,755)
1043 %attr(755,root,root) %{_bindir}/qemu-system-lm32
1046 %defattr(644,root,root,755)
1047 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1049 %files system-microblaze
1050 %defattr(644,root,root,755)
1051 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1052 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1055 %defattr(644,root,root,755)
1056 %attr(755,root,root) %{_bindir}/qemu-system-mips
1057 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1058 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1059 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1062 %defattr(644,root,root,755)
1063 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1066 %defattr(644,root,root,755)
1067 %attr(755,root,root) %{_bindir}/qemu-system-or32
1070 %defattr(644,root,root,755)
1071 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1072 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1073 #%attr(755,root,root) %{_bindir}/qemu-system-ppc64le
1074 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
1075 %{_datadir}/%{name}/u-boot.e500
1078 %defattr(644,root,root,755)
1079 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1082 %defattr(644,root,root,755)
1083 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1084 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1087 %defattr(644,root,root,755)
1088 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1089 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1091 %files system-tricore
1092 %defattr(644,root,root,755)
1093 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1095 %files system-unicore32
1096 %defattr(644,root,root,755)
1097 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1100 %defattr(644,root,root,755)
1101 %attr(755,root,root) %{_bindir}/qemu-system-i386
1102 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1103 %ifarch %{ix86} %{x8664}
1104 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1105 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
1106 %attr(755,root,root) %{_bindir}/kvm_stat
1108 %{_datadir}/%{name}/bios.bin
1109 %{_datadir}/%{name}/bios-256k.bin
1110 %{_datadir}/%{name}/acpi-dsdt.aml
1111 %{_datadir}/%{name}/q35-acpi-dsdt.aml
1113 %files system-xtensa
1114 %defattr(644,root,root,755)
1115 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1116 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1119 %defattr(644,root,root,755)
1120 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
1121 %{systemdunitdir}/qemu-guest-agent.service
1122 %attr(755,root,root) %{_bindir}/qemu-ga
1124 %files module-block-curl
1125 %defattr(644,root,root,755)
1126 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1128 %if %{with glusterfs}
1129 %files module-block-gluster
1130 %defattr(644,root,root,755)
1131 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1135 %files module-block-iscsi
1136 %defattr(644,root,root,755)
1137 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1141 %files module-block-rbd
1142 %defattr(644,root,root,755)
1143 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1146 %files module-block-ssh
1147 %defattr(644,root,root,755)
1148 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so