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: 0ff197c4ed4b695620bc4734e77c888f
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}
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.9.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-unicore32 = %{version}-%{release}
137 Requires: %{name}-system-x86 = %{version}-%{release}
138 Requires: %{name}-system-xtensa = %{version}-%{release}
139 Requires: %{name}-user = %{version}-%{release}
141 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
143 %define systempkg_req \
147 %if %{with seccomp} \
148 Requires: libseccomp >= 2.1.0 \
150 Requires: libusb >= 1.0.13 \
151 %if %{with usbredir} \
152 Requires: usbredir >= 0.6 \
155 Requires: gtk+2 >= 2:2.18.0 \
156 Requires: vte0 >= 0.24.0 \
159 Requires: gtk+3 >= 3.0.0 \
160 Requires: vte >= 0.32.0 \
163 # some PPC/SPARC boot image in ELF format
164 %define _noautostrip .*%{_datadir}/qemu/.*-.*
167 QEMU is a FAST! processor emulator. By using dynamic translation it
168 achieves a reasonnable speed while being easy to port on new host
169 CPUs. QEMU has two operating modes:
171 - User mode emulation. In this mode, QEMU can launch Linux processes
172 compiled for one CPU on another CPU. Linux system calls are converted
173 because of endianness and 32/64 bit mismatches. Wine (Windows
174 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
176 - Full system emulation. In this mode, QEMU emulates a full system,
177 including a processor and various peripherials. It can also be used to
178 provide virtual hosting of several virtual PC on a single server.
180 %description -l pl.UTF-8
181 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
182 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
183 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
185 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
186 procesy linuksowe skompilowane dla jednego procesora na innym
187 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
188 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
189 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
192 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
193 włączając w to procesor i różne urządzenia peryferyjne. Może być także
194 używane do wirtualnego hostowania kilku wirtualnych pecetów na
195 pojedynczym serwerze.
198 Summary: QEMU common files needed by all QEMU targets
199 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
200 Group: Development/Tools
201 Requires(post,preun,postun): systemd-units >= 38
202 Requires(postun): /usr/sbin/groupdel
203 Requires(postun): /usr/sbin/userdel
204 Requires(pre): /bin/id
205 Requires(pre): /usr/bin/getgid
206 Requires(pre): /usr/sbin/groupadd
207 Requires(pre): /usr/sbin/useradd
208 Requires: glib2 >= 1:2.12
209 %{?with_libnfs:Requires: libnfs >= 1.9.3}
210 Requires: libssh2 >= 1.2.8
211 Requires: systemd-units >= 38
212 Provides: group(qemu)
214 Obsoletes: qemu-kvm-common
215 Conflicts: qemu < 1.0-2
218 QEMU is a generic and open source processor emulator which achieves a
219 good emulation speed by using dynamic translation.
221 This package provides the common files needed by all QEMU targets.
223 %description common -l pl.UTF-8
224 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
225 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
227 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
231 Summary: QEMU command line tool for manipulating disk images
232 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
233 Group: Development/Tools
234 Obsoletes: qemu-kvm-img
235 Conflicts: qemu < 1.0-2
238 This package provides a command line tool for manipulating disk
241 %description img -l pl.UTF-8
242 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
246 Summary: QEMU user mode emulation of qemu targets
247 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
248 Group: Development/Tools
249 Requires: %{name}-common = %{version}-%{release}
250 Requires(post,postun): systemd-units >= 38
251 Requires: systemd-units >= 38
252 Obsoletes: qemu-kvm-user
255 QEMU is a generic and open source processor emulator which achieves a
256 good emulation speed by using dynamic translation.
258 This package provides the user mode emulation of QEMU targets.
260 %description user -l pl.UTF-8
261 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
262 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
264 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
266 %package system-aarch64
267 Summary: QEMU system emulator for AArch64
268 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
269 Group: Development/Tools
270 Requires: %{name}-common = %{version}-%{release}
272 Obsoletes: qemu-kvm-system-aarch64
274 %description system-aarch64
275 QEMU is a generic and open source processor emulator which achieves a
276 good emulation speed by using dynamic translation.
278 This package provides the system emulator with AArch64 CPU.
280 %description system-aarch64 -l pl.UTF-8
281 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
282 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
284 Ten pakiet zawiera emulator systemu z procesorem AArch64.
286 %package system-alpha
287 Summary: QEMU system emulator for Alpha
288 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
289 Group: Development/Tools
290 Requires: %{name}-common = %{version}-%{release}
292 Obsoletes: qemu-kvm-system-alpha
294 %description system-alpha
295 QEMU is a generic and open source processor emulator which achieves a
296 good emulation speed by using dynamic translation.
298 This package provides the system emulator with Alpha CPU.
300 %description system-alpha -l pl.UTF-8
301 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
302 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
304 Ten pakiet zawiera emulator systemu z procesorem Alpha.
307 Summary: QEMU system emulator for ARM
308 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
309 Group: Development/Tools
310 Requires: %{name}-common = %{version}-%{release}
312 Obsoletes: qemu-kvm-system-arm
314 %description system-arm
315 QEMU is a generic and open source processor emulator which achieves a
316 good emulation speed by using dynamic translation.
318 This package provides the system emulator for ARM.
320 %description system-arm -l pl.UTF-8
321 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
322 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
324 Ten pakiet zawiera emulator systemu z procesorem ARM.
327 Summary: QEMU system emulator for CRIS
328 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
329 Group: Development/Tools
330 Requires: %{name}-common = %{version}-%{release}
332 Obsoletes: qemu-kvm-system-cris
334 %description system-cris
335 QEMU is a generic and open source processor emulator which achieves a
336 good emulation speed by using dynamic translation.
338 This package provides the system emulator with CRIS CPU.
340 %description system-cris -l pl.UTF-8
341 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
342 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
344 Ten pakiet zawiera emulator systemu z procesorem CRIS.
347 Summary: QEMU system emulator for LM32
348 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
349 Group: Development/Tools
350 Requires: %{name}-common = %{version}-%{release}
352 Obsoletes: qemu-kvm-system-lm32
354 %description system-lm32
355 QEMU is a generic and open source processor emulator which achieves a
356 good emulation speed by using dynamic translation.
358 This package provides the system emulator with LM32 CPU.
360 %description system-lm32 -l pl.UTF-8
361 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
362 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
364 Ten pakiet zawiera emulator systemu z procesorem LM32.
367 Summary: QEMU system emulator for m68k
368 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
369 Group: Development/Tools
370 Requires: %{name}-common = %{version}-%{release}
372 Obsoletes: qemu-kvm-system-m68k
374 %description system-m68k
375 QEMU is a generic and open source processor emulator which achieves a
376 good emulation speed by using dynamic translation.
378 This package provides the system emulator with m68k CPU.
380 %description system-m68k -l pl.UTF-8
381 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
382 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
384 Ten pakiet zawiera emulator systemu z procesorem m68k.
386 %package system-microblaze
387 Summary: QEMU system emulator for MicroBlaze
388 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
389 Group: Development/Tools
390 Requires: %{name}-common = %{version}-%{release}
392 Obsoletes: qemu-kvm-system-microblaze
394 %description system-microblaze
395 QEMU is a generic and open source processor emulator which achieves a
396 good emulation speed by using dynamic translation.
398 This package provides the system emulator with MicroBlaze CPU.
400 %description system-microblaze -l pl.UTF-8
401 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
402 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
404 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
407 Summary: QEMU system emulator for MIPS
408 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
409 Group: Development/Tools
410 Requires: %{name}-common = %{version}-%{release}
412 Obsoletes: qemu-kvm-system-mips
414 %description system-mips
415 QEMU is a generic and open source processor emulator which achieves a
416 good emulation speed by using dynamic translation.
418 This package provides the system emulator with MIPS CPU.
420 %description system-mips -l pl.UTF-8
421 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
422 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
424 Ten pakiet zawiera emulator systemu z procesorem MIPS.
426 %package system-moxie
427 Summary: QEMU system emulator for Moxie
428 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
429 Group: Development/Tools
430 Requires: %{name}-common = %{version}-%{release}
433 %description system-moxie
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 Moxie CPU.
439 %description system-moxie -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 Moxie.
446 Summary: QEMU system emulator for OpenRISC
447 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
448 Group: Development/Tools
449 Requires: %{name}-common = %{version}-%{release}
451 Obsoletes: qemu-kvm-system-or32
453 %description system-or32
454 QEMU is a generic and open source processor emulator which achieves a
455 good emulation speed by using dynamic translation.
457 This package provides the system emulator with OpenRISC CPU.
459 %description system-or32 -l pl.UTF-8
460 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
461 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
463 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
466 Summary: QEMU system emulator for PowerPC
467 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
468 Group: Development/Tools
469 Requires: %{name}-common = %{version}-%{release}
471 Obsoletes: qemu-kvm-system-ppc
473 %description system-ppc
474 QEMU is a generic and open source processor emulator which achieves a
475 good emulation speed by using dynamic translation.
477 This package provides the system emulator with PowerPC CPU.
479 %description system-ppc -l pl.UTF-8
480 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
481 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
483 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
485 %package system-s390x
486 Summary: QEMU system emulator for S390
487 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
488 Group: Development/Tools
489 Requires: %{name}-common = %{version}-%{release}
491 Obsoletes: qemu-kvm-system-s390x
493 %description system-s390x
494 QEMU is a generic and open source processor emulator which achieves a
495 good emulation speed by using dynamic translation.
497 This package provides the system emulator with S390 CPU.
499 %description system-s390x -l pl.UTF-8
500 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
501 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
503 Ten pakiet zawiera emulator systemu z procesorem S390.
506 Summary: QEMU system emulator for SH4
507 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
508 Group: Development/Tools
509 Requires: %{name}-common = %{version}-%{release}
511 Obsoletes: qemu-kvm-system-sh4
513 %description system-sh4
514 QEMU is a generic and open source processor emulator which achieves a
515 good emulation speed by using dynamic translation.
517 This package provides the system emulator with SH4 CPU.
519 %description system-sh4 -l pl.UTF-8
520 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
521 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
523 Ten pakiet zawiera emulator systemu z procesorem SH4.
525 %package system-sparc
526 Summary: QEMU system emulator for SPARC
527 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
528 Group: Development/Tools
529 Requires: %{name}-common = %{version}-%{release}
531 Obsoletes: qemu-kvm-system-sparc
533 %description system-sparc
534 QEMU is a generic and open source processor emulator which achieves a
535 good emulation speed by using dynamic translation.
537 This package provides the system emulator with SPARC/SPARC64 CPU.
539 %description system-sparc -l pl.UTF-8
540 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
541 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
543 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
545 %package system-unicore32
546 Summary: QEMU system emulator for UniCore32
547 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
548 Group: Development/Tools
549 Requires: %{name}-common = %{version}-%{release}
551 Obsoletes: qemu-kvm-system-unicore32
553 %description system-unicore32
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 UniCore32 CPU.
559 %description system-unicore32 -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 UniCore32.
566 Summary: QEMU system emulator for x86
567 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
568 Group: Development/Tools
569 Requires: %{name}-common = %{version}-%{release}
570 %{?with_system_seabios:Requires: seabios}
573 Obsoletes: qemu-kvm-system-x86
575 %description system-x86
576 QEMU is a generic and open source processor emulator which achieves a
577 good emulation speed by using dynamic translation.
579 %description system-x86 -l pl.UTF-8
580 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
581 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
583 %package system-xtensa
584 Summary: QEMU system emulator for Xtensa
585 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
586 Group: Development/Tools
587 Requires: %{name}-common = %{version}-%{release}
589 Obsoletes: qemu-kvm-system-xtensa
591 %description system-xtensa
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 Xtensa CPU.
597 %description system-xtensa -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 Xtensa.
604 Summary: QEMU guest agent
605 Summary(pl.UTF-8): Agent gościa QEMU
607 Requires(post,preun,postun): systemd-units >= 38
608 Requires: glib2 >= 1:2.12
609 Requires: systemd-units >= 38
610 Obsoletes: qemu-kvm-guest-agent
612 %description guest-agent
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 an agent to run inside guests, which
617 communicates with the host over a virtio-serial channel named
618 "org.qemu.guest_agent.0".
620 This package does not need to be installed on the host OS.
622 %description guest-agent -l pl.UTF-8
623 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
624 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
626 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
627 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
628 "org.qemu.guest_agent.0".
630 Ten pakiet nie musi być zainstalowany w systemie hosta.
632 %package module-block-curl
633 Summary: QEMU module for 'curl' block devices
634 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
635 Group: Development/Tools
636 Requires: %{name}-common = %{version}-%{release}
638 %description module-block-curl
639 'curl' block device support for QEMU.
641 %description module-block-curl -l pl.UTF-8
642 Moduł QEMU dla urządeń blokowych typu 'curl'.
644 %package module-block-gluster
645 Summary: QEMU module for 'gluster' block devices
646 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
647 Group: Development/Tools
648 Requires: %{name}-common = %{version}-%{release}
649 Requires: glusterfs-libs >= 3.4
651 %description module-block-gluster
652 'gluster' block device support for QEMU.
654 %description module-block-gluster -l pl.UTF-8
655 Moduł QEMU dla urządeń blokowych typu 'gluster'.
657 %package module-block-iscsi
658 Summary: QEMU module for 'iscsi' block devices
659 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
660 Group: Development/Tools
661 Requires: %{name}-common = %{version}-%{release}
662 Requires: libiscsi >= 1.4.0
664 %description module-block-iscsi
665 'iscsi' block device support for QEMU.
667 %description module-block-iscsi -l pl.UTF-8
668 Moduł QEMU dla urządeń blokowych typu 'iscsi'.
670 %package module-block-rbd
671 Summary: QEMU module for 'rbd' block devices
672 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
673 Group: Development/Tools
674 Requires: %{name}-common = %{version}-%{release}
676 %description module-block-rbd
677 'rbd' block device support for QEMU.
679 %description module-block-rbd -l pl.UTF-8
680 Moduł QEMU dla urządeń blokowych typu 'rbd'.
682 %package module-block-ssh
683 Summary: QEMU module for 'ssh' block devices
684 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
685 Group: Development/Tools
686 Requires: %{name}-common = %{version}-%{release}
688 %description module-block-ssh
689 'ssh' block device support for QEMU.
691 %description module-block-ssh -l pl.UTF-8
692 Moduł QEMU dla urządeń blokowych typu 'ssh'.
703 %{__mv} libcacard libcacard-use-system-lib
705 # workaround for conflict with alsa/error.h
706 ln -s ../error.h qapi/error.h
710 --extra-cflags="%{rpmcflags} -I/usr/include/ncurses" \
711 --extra-ldflags="%{rpmldflags}" \
712 --prefix=%{_prefix} \
713 --libdir=%{_libdir} \
714 --libexecdir=%{_libexecdir} \
715 --sysconfdir=%{_sysconfdir} \
717 --host-cc="%{__cc}" \
720 %{__enable_disable bluetooth bluez} \
721 %{__enable_disable brlapi} \
727 %{__enable_disable glusterfs} \
728 %{__enable_disable iscsi libiscsi} \
729 %{__enable_disable glx} \
730 %{__enable_disable ceph rbd} \
731 %{__enable_disable rdma} \
732 %{__enable_disable sdl} \
734 %{__enable_disable seccomp} \
735 %{__enable_disable spice} \
736 %{__enable_disable smartcard smartcard-nss} \
738 %{__enable_disable usbredir usb-redir} \
747 %{__enable_disable xen} \
750 %{__enable_disable libnfs} \
752 %{__enable_disable snappy} \
754 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
755 --interp-prefix=%{_libdir}/qemu/lib-%%M \
756 %if %{without gtk2} && %{without gtk3}
760 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
765 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
767 # rebuild patched vesa tables with additional widescreen modes.
768 %{__make} -C roms/vgabios stdvga-bios
770 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
773 rm -rf $RPM_BUILD_ROOT
774 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
775 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
776 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
779 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
780 DESTDIR=$RPM_BUILD_ROOT
782 install -d $RPM_BUILD_ROOT%{_sysconfdir}
783 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
788 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
790 %ifarch %{ix86} %{x8664}
791 install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
792 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
793 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
796 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
797 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
798 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
800 install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
801 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
802 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
804 # For the qemu-guest-agent subpackage install the systemd
805 # service and udev rules.
806 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
807 install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
810 %ifnarch %{ix86} %{x8664}
819 %ifnarch sparc sparc64
826 test $i = dummy && continue
827 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i.conf
831 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
832 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
834 # install patched vesa tables with additional widescreen modes.
835 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
837 %if %{with system_seabios}
838 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
839 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
840 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
842 if [ -e "/usr/share/seabios/$bn" ] ; then
843 ln -sf "/usr/share/seabios/$bn" "$f"
848 %if %{with gtk2} || %{with gtk3}
849 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
850 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
857 rm -rf $RPM_BUILD_ROOT
861 %groupadd -g 276 qemu
862 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
865 %systemd_post ksm.service
866 %systemd_post ksmtuned.service
869 %systemd_preun ksm.service
870 %systemd_preun ksmtuned.service
873 if [ "$1" = "0" ]; then
880 %triggerpostun common -- qemu-common < 1.6.1-4
881 %systemd_trigger ksm.service
882 %systemd_trigger ksmtuned.service
885 %systemd_service_restart systemd-binfmt.service
888 %systemd_service_restart systemd-binfmt.service
894 %systemd_preun qemu-guest-agent.service
900 %defattr(644,root,root,755)
902 %files common -f %{name}.lang
903 %defattr(644,root,root,755)
904 %doc README qemu-doc.html qemu-tech.html qmp-commands.txt
905 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
906 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu/target-*.conf
907 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
908 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
909 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
910 %{systemdunitdir}/ksm.service
911 %{systemdunitdir}/ksmtuned.service
912 %dir %{_sysconfdir}/qemu
913 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
914 %attr(755,root,root) %{_bindir}/qemu-nbd
915 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
916 %attr(755,root,root) %{_sbindir}/ksmctl
917 %attr(755,root,root) %{_sbindir}/ksmtuned
918 %{_mandir}/man1/qemu.1*
919 %{_mandir}/man1/virtfs-proxy-helper.1*
920 %{_mandir}/man8/qemu-nbd.8*
922 %dir %{_datadir}/qemu
923 %{_datadir}/%{name}/keymaps
924 %{_datadir}/%{name}/qemu-icon.bmp
926 # various bios images
927 # all should be probably moved to the right system subpackage
928 %{_datadir}/%{name}/QEMU,cgthree.bin
929 %{_datadir}/%{name}/QEMU,tcx.bin
930 %{_datadir}/%{name}/bamboo.dtb
931 %{_datadir}/%{name}/efi-e1000.rom
932 %{_datadir}/%{name}/efi-eepro100.rom
933 %{_datadir}/%{name}/efi-ne2k_pci.rom
934 %{_datadir}/%{name}/efi-pcnet.rom
935 %{_datadir}/%{name}/efi-rtl8139.rom
936 %{_datadir}/%{name}/efi-virtio.rom
937 %{_datadir}/%{name}/kvmvapic.bin
938 %{_datadir}/%{name}/linuxboot.bin
939 %{_datadir}/%{name}/multiboot.bin
940 %{_datadir}/%{name}/openbios-ppc
941 %{_datadir}/%{name}/openbios-sparc*
942 %{_datadir}/%{name}/palcode-clipper
943 %{_datadir}/%{name}/petalogix-ml605.dtb
944 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
945 %{_datadir}/%{name}/ppc_rom.bin
946 %{_datadir}/%{name}/pxe-e1000.rom
947 %{_datadir}/%{name}/pxe-eepro100.rom
948 %{_datadir}/%{name}/pxe-ne2k_pci.rom
949 %{_datadir}/%{name}/pxe-pcnet.rom
950 %{_datadir}/%{name}/pxe-rtl8139.rom
951 %{_datadir}/%{name}/pxe-virtio.rom
952 %{_datadir}/%{name}/qemu_logo_no_text.svg
953 %{_datadir}/%{name}/s390-ccw.img
954 %{_datadir}/%{name}/s390-zipl.rom
955 %{_datadir}/%{name}/sgabios.bin
956 %{_datadir}/%{name}/slof.bin
957 %{_datadir}/%{name}/spapr-rtas.bin
958 %{_datadir}/%{name}/u-boot.e500
959 %{_datadir}/%{name}/vgabios-cirrus.bin
960 %{_datadir}/%{name}/vgabios-qxl.bin
961 %{_datadir}/%{name}/vgabios-stdvga.bin
962 %{_datadir}/%{name}/vgabios-vmware.bin
963 %{_datadir}/%{name}/vgabios.bin
965 %dir %{_libdir}/%{name}
968 %defattr(644,root,root,755)
969 %attr(755,root,root) %{_bindir}/qemu-img
970 %{_mandir}/man1/qemu-img.1*
973 %defattr(644,root,root,755)
974 /usr/lib/binfmt.d/qemu-*.conf
975 %attr(755,root,root) %{_bindir}/qemu-aarch64
976 %attr(755,root,root) %{_bindir}/qemu-alpha
977 %attr(755,root,root) %{_bindir}/qemu-arm
978 %attr(755,root,root) %{_bindir}/qemu-armeb
979 %attr(755,root,root) %{_bindir}/qemu-cris
980 %attr(755,root,root) %{_bindir}/qemu-i386
981 %attr(755,root,root) %{_bindir}/qemu-io
982 %attr(755,root,root) %{_bindir}/qemu-m68k
983 %attr(755,root,root) %{_bindir}/qemu-microblaze
984 %attr(755,root,root) %{_bindir}/qemu-microblazeel
985 %attr(755,root,root) %{_bindir}/qemu-mips
986 %attr(755,root,root) %{_bindir}/qemu-mipsel
987 %attr(755,root,root) %{_bindir}/qemu-mips64
988 %attr(755,root,root) %{_bindir}/qemu-mips64el
989 %attr(755,root,root) %{_bindir}/qemu-mipsn32
990 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
991 %attr(755,root,root) %{_bindir}/qemu-or32
992 %attr(755,root,root) %{_bindir}/qemu-ppc
993 %attr(755,root,root) %{_bindir}/qemu-ppc64
994 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
995 %attr(755,root,root) %{_bindir}/qemu-ppc64le
996 %attr(755,root,root) %{_bindir}/qemu-s390x
997 %attr(755,root,root) %{_bindir}/qemu-sh4
998 %attr(755,root,root) %{_bindir}/qemu-sh4eb
999 %attr(755,root,root) %{_bindir}/qemu-sparc
1000 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
1001 %attr(755,root,root) %{_bindir}/qemu-sparc64
1002 %attr(755,root,root) %{_bindir}/qemu-unicore32
1003 %attr(755,root,root) %{_bindir}/qemu-x86_64
1005 %files system-aarch64
1006 %defattr(644,root,root,755)
1007 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1010 %defattr(644,root,root,755)
1011 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1014 %defattr(644,root,root,755)
1015 %attr(755,root,root) %{_bindir}/qemu-system-arm
1018 %defattr(644,root,root,755)
1019 %attr(755,root,root) %{_bindir}/qemu-system-cris
1022 %defattr(644,root,root,755)
1023 %attr(755,root,root) %{_bindir}/qemu-system-lm32
1026 %defattr(644,root,root,755)
1027 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1029 %files system-microblaze
1030 %defattr(644,root,root,755)
1031 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1032 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1035 %defattr(644,root,root,755)
1036 %attr(755,root,root) %{_bindir}/qemu-system-mips
1037 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1038 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1039 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1042 %defattr(644,root,root,755)
1043 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1046 %defattr(644,root,root,755)
1047 %attr(755,root,root) %{_bindir}/qemu-system-or32
1050 %defattr(644,root,root,755)
1051 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1052 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1053 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
1056 %defattr(644,root,root,755)
1057 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1060 %defattr(644,root,root,755)
1061 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1062 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1065 %defattr(644,root,root,755)
1066 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1067 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1069 %files system-unicore32
1070 %defattr(644,root,root,755)
1071 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1074 %defattr(644,root,root,755)
1075 %attr(755,root,root) %{_bindir}/qemu-system-i386
1076 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1077 %ifarch %{ix86} %{x8664}
1078 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1079 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
1080 %attr(755,root,root) %{_bindir}/kvm_stat
1082 %{_datadir}/%{name}/bios.bin
1083 %{_datadir}/%{name}/bios-256k.bin
1084 %{_datadir}/%{name}/acpi-dsdt.aml
1085 %{_datadir}/%{name}/q35-acpi-dsdt.aml
1087 %files system-xtensa
1088 %defattr(644,root,root,755)
1089 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1090 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1093 %defattr(644,root,root,755)
1094 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
1095 %{systemdunitdir}/qemu-guest-agent.service
1096 %attr(755,root,root) %{_bindir}/qemu-ga
1098 %files module-block-curl
1099 %defattr(644,root,root,755)
1100 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1102 %if %{with glusterfs}
1103 %files module-block-gluster
1104 %defattr(644,root,root,755)
1105 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1109 %files module-block-iscsi
1110 %defattr(644,root,root,755)
1111 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1115 %files module-block-rbd
1116 %defattr(644,root,root,755)
1117 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1120 %files module-block-ssh
1121 %defattr(644,root,root,755)
1122 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so