1 # TODO: libnfs >= 1.9.3
4 %bcond_without sdl # SDL UI and audio support
5 %bcond_without glx # OpenGL/GLX support
6 %bcond_without ceph # Ceph/RBD support
7 %bcond_without glusterfs # GlusterFS backend
8 %bcond_without rdma # RDMA-based migration support
9 %bcond_with gtk2 # GTK+ 2.x instead of 3.x
10 %bcond_without gtk3 # Do not build 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 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: 2790f44fd76da5de5024b4aafeb594c2
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.4.0}
81 BuildRequires: libjpeg-devel
82 BuildRequires: libpng-devel
83 %{?with_rdma:BuildRequires: librdmacm-devel}
84 %{?with_seccomp:BuildRequires: libseccomp-devel >= 2.1.0}
85 BuildRequires: libssh2-devel >= 1.2.8
86 BuildRequires: libusb-devel >= 1.0.13
87 BuildRequires: libuuid-devel
88 BuildRequires: lzo-devel >= 2
89 BuildRequires: ncurses-devel
90 %{?with_smartcard:BuildRequires: nss-devel >= 3.12.8}
91 BuildRequires: perl-Encode
92 BuildRequires: perl-tools-pod
93 BuildRequires: pkgconfig
94 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
95 BuildRequires: rpmbuild(macros) >= 1.644
96 %{?with_system_seabios:BuildRequires: seabios}
97 BuildRequires: sed >= 4.0
98 %{?with_snappy:BuildRequires: snappy-devel}
100 BuildRequires: spice-protocol >= 0.12.3
101 BuildRequires: spice-server-devel >= 0.12.0
103 BuildRequires: texi2html
104 BuildRequires: texinfo
105 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
106 BuildRequires: vde2-devel
108 %{?with_xen:BuildRequires: xen-devel >= 3.4}
109 BuildRequires: xfsprogs-devel
110 BuildRequires: xorg-lib-libX11-devel
111 BuildRequires: zlib-devel
113 BuildRequires: gtk+2-devel >= 2:2.18.0
114 BuildRequires: vte0-devel >= 0.24.0
117 BuildRequires: gtk+3-devel >= 3.0.0
118 BuildRequires: vte-devel >= 0.32.0
120 Requires: %{name}-img = %{version}-%{release}
121 Requires: %{name}-system-aarch64 = %{version}-%{release}
122 Requires: %{name}-system-alpha = %{version}-%{release}
123 Requires: %{name}-system-arm = %{version}-%{release}
124 Requires: %{name}-system-cris = %{version}-%{release}
125 Requires: %{name}-system-lm32 = %{version}-%{release}
126 Requires: %{name}-system-m68k = %{version}-%{release}
127 Requires: %{name}-system-microblaze = %{version}-%{release}
128 Requires: %{name}-system-mips = %{version}-%{release}
129 Requires: %{name}-system-moxie = %{version}-%{release}
130 Requires: %{name}-system-or32 = %{version}-%{release}
131 Requires: %{name}-system-ppc = %{version}-%{release}
132 Requires: %{name}-system-s390x = %{version}-%{release}
133 Requires: %{name}-system-sh4 = %{version}-%{release}
134 Requires: %{name}-system-sparc = %{version}-%{release}
135 Requires: %{name}-system-unicore32 = %{version}-%{release}
136 Requires: %{name}-system-x86 = %{version}-%{release}
137 Requires: %{name}-system-xtensa = %{version}-%{release}
138 Requires: %{name}-user = %{version}-%{release}
140 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
142 %define systempkg_req \
146 %if %{with seccomp} \
147 Requires: libseccomp >= 2.1.0 \
149 Requires: libusb >= 1.0.13 \
150 %if %{with usbredir} \
151 Requires: usbredir >= 0.6 \
154 Requires: gtk+2 >= 2:2.18.0 \
155 Requires: vte0 >= 0.24.0 \
158 Requires: gtk+3 >= 3.0.0 \
159 Requires: vte >= 0.32.0 \
162 # some PPC/SPARC boot image in ELF format
163 %define _noautostrip .*%{_datadir}/qemu/.*-.*
166 QEMU is a FAST! processor emulator. By using dynamic translation it
167 achieves a reasonnable speed while being easy to port on new host
168 CPUs. QEMU has two operating modes:
170 - User mode emulation. In this mode, QEMU can launch Linux processes
171 compiled for one CPU on another CPU. Linux system calls are converted
172 because of endianness and 32/64 bit mismatches. Wine (Windows
173 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
175 - Full system emulation. In this mode, QEMU emulates a full system,
176 including a processor and various peripherials. It can also be used to
177 provide virtual hosting of several virtual PC on a single server.
179 %description -l pl.UTF-8
180 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
181 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
182 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
184 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
185 procesy linuksowe skompilowane dla jednego procesora na innym
186 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
187 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
188 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
191 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
192 włączając w to procesor i różne urządzenia peryferyjne. Może być także
193 używane do wirtualnego hostowania kilku wirtualnych pecetów na
194 pojedynczym serwerze.
197 Summary: QEMU common files needed by all QEMU targets
198 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
199 Group: Development/Tools
200 Requires(post,preun,postun): systemd-units >= 38
201 Requires(postun): /usr/sbin/groupdel
202 Requires(postun): /usr/sbin/userdel
203 Requires(pre): /bin/id
204 Requires(pre): /usr/bin/getgid
205 Requires(pre): /usr/sbin/groupadd
206 Requires(pre): /usr/sbin/useradd
207 Requires: glib2 >= 1:2.12
208 Requires: libssh2 >= 1.2.8
209 Requires: systemd-units >= 38
210 Provides: group(qemu)
212 Obsoletes: qemu-kvm-common
213 Conflicts: qemu < 1.0-2
216 QEMU is a generic and open source processor emulator which achieves a
217 good emulation speed by using dynamic translation.
219 This package provides the common files needed by all QEMU targets.
221 %description common -l pl.UTF-8
222 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
223 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
225 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
229 Summary: QEMU command line tool for manipulating disk images
230 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
231 Group: Development/Tools
232 Obsoletes: qemu-kvm-img
233 Conflicts: qemu < 1.0-2
236 This package provides a command line tool for manipulating disk
239 %description img -l pl.UTF-8
240 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
244 Summary: QEMU user mode emulation of qemu targets
245 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
246 Group: Development/Tools
247 Requires: %{name}-common = %{version}-%{release}
248 Requires(post,postun): systemd-units >= 38
249 Requires: systemd-units >= 38
250 Obsoletes: qemu-kvm-user
253 QEMU is a generic and open source processor emulator which achieves a
254 good emulation speed by using dynamic translation.
256 This package provides the user mode emulation of QEMU targets.
258 %description user -l pl.UTF-8
259 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
260 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
262 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
264 %package system-aarch64
265 Summary: QEMU system emulator for AArch64
266 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem AArch64
267 Group: Development/Tools
268 Requires: %{name}-common = %{version}-%{release}
270 Obsoletes: qemu-kvm-system-aarch64
272 %description system-aarch64
273 QEMU is a generic and open source processor emulator which achieves a
274 good emulation speed by using dynamic translation.
276 This package provides the system emulator with AArch64 CPU.
278 %description system-aarch64 -l pl.UTF-8
279 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
280 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
282 Ten pakiet zawiera emulator systemu z procesorem AArch64.
284 %package system-alpha
285 Summary: QEMU system emulator for Alpha
286 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
287 Group: Development/Tools
288 Requires: %{name}-common = %{version}-%{release}
290 Obsoletes: qemu-kvm-system-alpha
292 %description system-alpha
293 QEMU is a generic and open source processor emulator which achieves a
294 good emulation speed by using dynamic translation.
296 This package provides the system emulator with Alpha CPU.
298 %description system-alpha -l pl.UTF-8
299 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
300 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
302 Ten pakiet zawiera emulator systemu z procesorem Alpha.
305 Summary: QEMU system emulator for ARM
306 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
307 Group: Development/Tools
308 Requires: %{name}-common = %{version}-%{release}
310 Obsoletes: qemu-kvm-system-arm
312 %description system-arm
313 QEMU is a generic and open source processor emulator which achieves a
314 good emulation speed by using dynamic translation.
316 This package provides the system emulator for ARM.
318 %description system-arm -l pl.UTF-8
319 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
320 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
322 Ten pakiet zawiera emulator systemu z procesorem ARM.
325 Summary: QEMU system emulator for CRIS
326 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
327 Group: Development/Tools
328 Requires: %{name}-common = %{version}-%{release}
330 Obsoletes: qemu-kvm-system-cris
332 %description system-cris
333 QEMU is a generic and open source processor emulator which achieves a
334 good emulation speed by using dynamic translation.
336 This package provides the system emulator with CRIS CPU.
338 %description system-cris -l pl.UTF-8
339 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
340 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
342 Ten pakiet zawiera emulator systemu z procesorem CRIS.
345 Summary: QEMU system emulator for LM32
346 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
347 Group: Development/Tools
348 Requires: %{name}-common = %{version}-%{release}
350 Obsoletes: qemu-kvm-system-lm32
352 %description system-lm32
353 QEMU is a generic and open source processor emulator which achieves a
354 good emulation speed by using dynamic translation.
356 This package provides the system emulator with LM32 CPU.
358 %description system-lm32 -l pl.UTF-8
359 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
360 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
362 Ten pakiet zawiera emulator systemu z procesorem LM32.
365 Summary: QEMU system emulator for m68k
366 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
367 Group: Development/Tools
368 Requires: %{name}-common = %{version}-%{release}
370 Obsoletes: qemu-kvm-system-m68k
372 %description system-m68k
373 QEMU is a generic and open source processor emulator which achieves a
374 good emulation speed by using dynamic translation.
376 This package provides the system emulator with m68k CPU.
378 %description system-m68k -l pl.UTF-8
379 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
380 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
382 Ten pakiet zawiera emulator systemu z procesorem m68k.
384 %package system-microblaze
385 Summary: QEMU system emulator for MicroBlaze
386 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
387 Group: Development/Tools
388 Requires: %{name}-common = %{version}-%{release}
390 Obsoletes: qemu-kvm-system-microblaze
392 %description system-microblaze
393 QEMU is a generic and open source processor emulator which achieves a
394 good emulation speed by using dynamic translation.
396 This package provides the system emulator with MicroBlaze CPU.
398 %description system-microblaze -l pl.UTF-8
399 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
400 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
402 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
405 Summary: QEMU system emulator for MIPS
406 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
407 Group: Development/Tools
408 Requires: %{name}-common = %{version}-%{release}
410 Obsoletes: qemu-kvm-system-mips
412 %description system-mips
413 QEMU is a generic and open source processor emulator which achieves a
414 good emulation speed by using dynamic translation.
416 This package provides the system emulator with MIPS CPU.
418 %description system-mips -l pl.UTF-8
419 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
420 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
422 Ten pakiet zawiera emulator systemu z procesorem MIPS.
424 %package system-moxie
425 Summary: QEMU system emulator for Moxie
426 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
427 Group: Development/Tools
428 Requires: %{name}-common = %{version}-%{release}
431 %description system-moxie
432 QEMU is a generic and open source processor emulator which achieves a
433 good emulation speed by using dynamic translation.
435 This package provides the system emulator with Moxie CPU.
437 %description system-moxie -l pl.UTF-8
438 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
439 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
441 Ten pakiet zawiera emulator systemu z procesorem Moxie.
444 Summary: QEMU system emulator for OpenRISC
445 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
446 Group: Development/Tools
447 Requires: %{name}-common = %{version}-%{release}
449 Obsoletes: qemu-kvm-system-or32
451 %description system-or32
452 QEMU is a generic and open source processor emulator which achieves a
453 good emulation speed by using dynamic translation.
455 This package provides the system emulator with OpenRISC CPU.
457 %description system-or32 -l pl.UTF-8
458 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
459 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
461 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
464 Summary: QEMU system emulator for PowerPC
465 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
466 Group: Development/Tools
467 Requires: %{name}-common = %{version}-%{release}
469 Obsoletes: qemu-kvm-system-ppc
471 %description system-ppc
472 QEMU is a generic and open source processor emulator which achieves a
473 good emulation speed by using dynamic translation.
475 This package provides the system emulator with PowerPC CPU.
477 %description system-ppc -l pl.UTF-8
478 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
479 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
481 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
483 %package system-s390x
484 Summary: QEMU system emulator for S390
485 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
486 Group: Development/Tools
487 Requires: %{name}-common = %{version}-%{release}
489 Obsoletes: qemu-kvm-system-s390x
491 %description system-s390x
492 QEMU is a generic and open source processor emulator which achieves a
493 good emulation speed by using dynamic translation.
495 This package provides the system emulator with S390 CPU.
497 %description system-s390x -l pl.UTF-8
498 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
499 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
501 Ten pakiet zawiera emulator systemu z procesorem S390.
504 Summary: QEMU system emulator for SH4
505 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
506 Group: Development/Tools
507 Requires: %{name}-common = %{version}-%{release}
509 Obsoletes: qemu-kvm-system-sh4
511 %description system-sh4
512 QEMU is a generic and open source processor emulator which achieves a
513 good emulation speed by using dynamic translation.
515 This package provides the system emulator with SH4 CPU.
517 %description system-sh4 -l pl.UTF-8
518 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
519 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
521 Ten pakiet zawiera emulator systemu z procesorem SH4.
523 %package system-sparc
524 Summary: QEMU system emulator for SPARC
525 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
526 Group: Development/Tools
527 Requires: %{name}-common = %{version}-%{release}
529 Obsoletes: qemu-kvm-system-sparc
531 %description system-sparc
532 QEMU is a generic and open source processor emulator which achieves a
533 good emulation speed by using dynamic translation.
535 This package provides the system emulator with SPARC/SPARC64 CPU.
537 %description system-sparc -l pl.UTF-8
538 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
539 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
541 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
543 %package system-unicore32
544 Summary: QEMU system emulator for UniCore32
545 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
546 Group: Development/Tools
547 Requires: %{name}-common = %{version}-%{release}
549 Obsoletes: qemu-kvm-system-unicore32
551 %description system-unicore32
552 QEMU is a generic and open source processor emulator which achieves a
553 good emulation speed by using dynamic translation.
555 This package provides the system emulator with UniCore32 CPU.
557 %description system-unicore32 -l pl.UTF-8
558 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
559 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
561 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
564 Summary: QEMU system emulator for x86
565 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
566 Group: Development/Tools
567 Requires: %{name}-common = %{version}-%{release}
568 %{?with_system_seabios:Requires: seabios}
571 Obsoletes: qemu-kvm-system-x86
573 %description system-x86
574 QEMU is a generic and open source processor emulator which achieves a
575 good emulation speed by using dynamic translation.
577 %description system-x86 -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 %package system-xtensa
582 Summary: QEMU system emulator for Xtensa
583 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
584 Group: Development/Tools
585 Requires: %{name}-common = %{version}-%{release}
587 Obsoletes: qemu-kvm-system-xtensa
589 %description system-xtensa
590 QEMU is a generic and open source processor emulator which achieves a
591 good emulation speed by using dynamic translation.
593 This package provides the system emulator with Xtensa CPU.
595 %description system-xtensa -l pl.UTF-8
596 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
597 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
599 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
602 Summary: QEMU guest agent
603 Summary(pl.UTF-8): Agent gościa QEMU
605 Requires(post,preun,postun): systemd-units >= 38
606 Requires: glib2 >= 1:2.12
607 Requires: systemd-units >= 38
608 Obsoletes: qemu-kvm-guest-agent
610 %description guest-agent
611 QEMU is a generic and open source processor emulator which achieves a
612 good emulation speed by using dynamic translation.
614 This package provides an agent to run inside guests, which
615 communicates with the host over a virtio-serial channel named
616 "org.qemu.guest_agent.0".
618 This package does not need to be installed on the host OS.
620 %description guest-agent -l pl.UTF-8
621 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
622 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
624 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
625 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
626 "org.qemu.guest_agent.0".
628 Ten pakiet nie musi być zainstalowany w systemie hosta.
630 %package module-block-curl
631 Summary: QEMU module for 'curl' block devices
632 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
633 Group: Development/Tools
634 Requires: %{name}-common = %{version}-%{release}
636 %description module-block-curl
637 'curl' block device support for QEMU.
639 %description module-block-curl -l pl.UTF-8
640 Moduł QEMU dla urządeń blokowych typu 'curl'.
642 %package module-block-gluster
643 Summary: QEMU module for 'gluster' block devices
644 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
645 Group: Development/Tools
646 Requires: %{name}-common = %{version}-%{release}
647 Requires: glusterfs-libs >= 3.4
649 %description module-block-gluster
650 'gluster' block device support for QEMU.
652 %description module-block-gluster -l pl.UTF-8
653 Moduł QEMU dla urządeń blokowych typu 'gluster'.
655 %package module-block-iscsi
656 Summary: QEMU module for 'iscsi' block devices
657 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
658 Group: Development/Tools
659 Requires: %{name}-common = %{version}-%{release}
660 Requires: libiscsi >= 1.4.0
662 %description module-block-iscsi
663 'iscsi' block device support for QEMU.
665 %description module-block-iscsi -l pl.UTF-8
666 Moduł QEMU dla urządeń blokowych typu 'iscsi'.
668 %package module-block-rbd
669 Summary: QEMU module for 'rbd' block devices
670 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
671 Group: Development/Tools
672 Requires: %{name}-common = %{version}-%{release}
674 %description module-block-rbd
675 'rbd' block device support for QEMU.
677 %description module-block-rbd -l pl.UTF-8
678 Moduł QEMU dla urządeń blokowych typu 'rbd'.
680 %package module-block-ssh
681 Summary: QEMU module for 'ssh' block devices
682 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
683 Group: Development/Tools
684 Requires: %{name}-common = %{version}-%{release}
686 %description module-block-ssh
687 'ssh' block device support for QEMU.
689 %description module-block-ssh -l pl.UTF-8
690 Moduł QEMU dla urządeń blokowych typu 'ssh'.
701 %{__mv} libcacard libcacard-use-system-lib
703 # workaround for conflict with alsa/error.h
704 ln -s ../error.h qapi/error.h
708 --extra-cflags="%{rpmcflags} -I/usr/include/ncurses" \
709 --extra-ldflags="%{rpmldflags}" \
710 --prefix=%{_prefix} \
711 --libdir=%{_libdir} \
712 --libexecdir=%{_libexecdir} \
713 --sysconfdir=%{_sysconfdir} \
715 --host-cc="%{__cc}" \
718 %{__enable_disable bluetooth bluez} \
719 %{__enable_disable brlapi} \
725 %{__enable_disable glusterfs} \
726 %{__enable_disable iscsi libiscsi} \
727 %{__enable_disable glx} \
728 %{__enable_disable ceph rbd} \
729 %{__enable_disable rdma} \
730 %{__enable_disable sdl} \
732 %{__enable_disable seccomp} \
733 %{__enable_disable spice} \
734 %{__enable_disable smartcard smartcard-nss} \
736 %{__enable_disable usbredir usb-redir} \
745 %{__enable_disable xen} \
750 %{__enable_disable snappy} \
752 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
753 --interp-prefix=%{_libdir}/qemu/lib-%%M \
754 %if %{without gtk2} && %{without gtk3}
757 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
762 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
764 # rebuild patched vesa tables with additional widescreen modes.
765 %{__make} -C roms/vgabios stdvga-bios
767 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
770 rm -rf $RPM_BUILD_ROOT
771 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
772 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
773 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
776 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
777 DESTDIR=$RPM_BUILD_ROOT
779 install -d $RPM_BUILD_ROOT%{_sysconfdir}
780 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
785 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
787 %ifarch %{ix86} %{x8664}
788 install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
789 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
790 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
793 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
794 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
795 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
797 install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
798 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
799 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
801 # For the qemu-guest-agent subpackage install the systemd
802 # service and udev rules.
803 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
804 install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
807 %ifnarch %{ix86} %{x8664}
816 %ifnarch sparc sparc64
823 test $i = dummy && continue
824 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i.conf
828 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
829 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
831 # install patched vesa tables with additional widescreen modes.
832 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
834 %if %{with system_seabios}
835 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
836 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
837 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
839 if [ -e "/usr/share/seabios/$bn" ] ; then
840 ln -sf "/usr/share/seabios/$bn" "$f"
845 %if %{with gtk2} || %{with gtk3}
846 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
847 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
854 rm -rf $RPM_BUILD_ROOT
858 %groupadd -g 276 qemu
859 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
862 %systemd_post ksm.service
863 %systemd_post ksmtuned.service
866 %systemd_preun ksm.service
867 %systemd_preun ksmtuned.service
870 if [ "$1" = "0" ]; then
877 %triggerpostun common -- qemu-common < 1.6.1-4
878 %systemd_trigger ksm.service
879 %systemd_trigger ksmtuned.service
882 %systemd_service_restart systemd-binfmt.service
885 %systemd_service_restart systemd-binfmt.service
891 %systemd_preun qemu-guest-agent.service
897 %defattr(644,root,root,755)
899 %files common -f %{name}.lang
900 %defattr(644,root,root,755)
901 %doc README qemu-doc.html qemu-tech.html qmp-commands.txt
902 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
903 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu/target-*.conf
904 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
905 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
906 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
907 %{systemdunitdir}/ksm.service
908 %{systemdunitdir}/ksmtuned.service
909 %dir %{_sysconfdir}/qemu
910 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
911 %attr(755,root,root) %{_bindir}/qemu-nbd
912 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
913 %attr(755,root,root) %{_sbindir}/ksmctl
914 %attr(755,root,root) %{_sbindir}/ksmtuned
915 %{_mandir}/man1/qemu.1*
916 %{_mandir}/man1/virtfs-proxy-helper.1*
917 %{_mandir}/man8/qemu-nbd.8*
919 %dir %{_datadir}/qemu
920 %{_datadir}/%{name}/keymaps
921 %{_datadir}/%{name}/qemu-icon.bmp
923 # various bios images
924 # all should be probably moved to the right system subpackage
925 %{_datadir}/%{name}/QEMU,cgthree.bin
926 %{_datadir}/%{name}/QEMU,tcx.bin
927 %{_datadir}/%{name}/bamboo.dtb
928 %{_datadir}/%{name}/efi-e1000.rom
929 %{_datadir}/%{name}/efi-eepro100.rom
930 %{_datadir}/%{name}/efi-ne2k_pci.rom
931 %{_datadir}/%{name}/efi-pcnet.rom
932 %{_datadir}/%{name}/efi-rtl8139.rom
933 %{_datadir}/%{name}/efi-virtio.rom
934 %{_datadir}/%{name}/kvmvapic.bin
935 %{_datadir}/%{name}/linuxboot.bin
936 %{_datadir}/%{name}/multiboot.bin
937 %{_datadir}/%{name}/openbios-ppc
938 %{_datadir}/%{name}/openbios-sparc*
939 %{_datadir}/%{name}/palcode-clipper
940 %{_datadir}/%{name}/petalogix-ml605.dtb
941 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
942 %{_datadir}/%{name}/ppc_rom.bin
943 %{_datadir}/%{name}/pxe-e1000.rom
944 %{_datadir}/%{name}/pxe-eepro100.rom
945 %{_datadir}/%{name}/pxe-ne2k_pci.rom
946 %{_datadir}/%{name}/pxe-pcnet.rom
947 %{_datadir}/%{name}/pxe-rtl8139.rom
948 %{_datadir}/%{name}/pxe-virtio.rom
949 %{_datadir}/%{name}/qemu_logo_no_text.svg
950 %{_datadir}/%{name}/s390-ccw.img
951 %{_datadir}/%{name}/s390-zipl.rom
952 %{_datadir}/%{name}/sgabios.bin
953 %{_datadir}/%{name}/slof.bin
954 %{_datadir}/%{name}/spapr-rtas.bin
955 %{_datadir}/%{name}/vgabios-cirrus.bin
956 %{_datadir}/%{name}/vgabios-qxl.bin
957 %{_datadir}/%{name}/vgabios-stdvga.bin
958 %{_datadir}/%{name}/vgabios-vmware.bin
959 %{_datadir}/%{name}/vgabios.bin
961 %dir %{_libdir}/%{name}
964 %defattr(644,root,root,755)
965 %attr(755,root,root) %{_bindir}/qemu-img
966 %{_mandir}/man1/qemu-img.1*
969 %defattr(644,root,root,755)
970 /usr/lib/binfmt.d/qemu-*.conf
971 %attr(755,root,root) %{_bindir}/qemu-aarch64
972 %attr(755,root,root) %{_bindir}/qemu-alpha
973 %attr(755,root,root) %{_bindir}/qemu-arm
974 %attr(755,root,root) %{_bindir}/qemu-armeb
975 %attr(755,root,root) %{_bindir}/qemu-cris
976 %attr(755,root,root) %{_bindir}/qemu-i386
977 %attr(755,root,root) %{_bindir}/qemu-io
978 %attr(755,root,root) %{_bindir}/qemu-m68k
979 %attr(755,root,root) %{_bindir}/qemu-microblaze
980 %attr(755,root,root) %{_bindir}/qemu-microblazeel
981 %attr(755,root,root) %{_bindir}/qemu-mips
982 %attr(755,root,root) %{_bindir}/qemu-mipsel
983 %attr(755,root,root) %{_bindir}/qemu-mips64
984 %attr(755,root,root) %{_bindir}/qemu-mips64el
985 %attr(755,root,root) %{_bindir}/qemu-mipsn32
986 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
987 %attr(755,root,root) %{_bindir}/qemu-or32
988 %attr(755,root,root) %{_bindir}/qemu-ppc
989 %attr(755,root,root) %{_bindir}/qemu-ppc64
990 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
991 %attr(755,root,root) %{_bindir}/qemu-s390x
992 %attr(755,root,root) %{_bindir}/qemu-sh4
993 %attr(755,root,root) %{_bindir}/qemu-sh4eb
994 %attr(755,root,root) %{_bindir}/qemu-sparc
995 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
996 %attr(755,root,root) %{_bindir}/qemu-sparc64
997 %attr(755,root,root) %{_bindir}/qemu-unicore32
998 %attr(755,root,root) %{_bindir}/qemu-x86_64
1000 %files system-aarch64
1001 %defattr(644,root,root,755)
1002 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1005 %defattr(644,root,root,755)
1006 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1009 %defattr(644,root,root,755)
1010 %attr(755,root,root) %{_bindir}/qemu-system-arm
1013 %defattr(644,root,root,755)
1014 %attr(755,root,root) %{_bindir}/qemu-system-cris
1017 %defattr(644,root,root,755)
1018 %attr(755,root,root) %{_bindir}/qemu-system-lm32
1021 %defattr(644,root,root,755)
1022 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1024 %files system-microblaze
1025 %defattr(644,root,root,755)
1026 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1027 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1030 %defattr(644,root,root,755)
1031 %attr(755,root,root) %{_bindir}/qemu-system-mips
1032 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1033 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1034 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1037 %defattr(644,root,root,755)
1038 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1041 %defattr(644,root,root,755)
1042 %attr(755,root,root) %{_bindir}/qemu-system-or32
1045 %defattr(644,root,root,755)
1046 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1047 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1048 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
1051 %defattr(644,root,root,755)
1052 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1055 %defattr(644,root,root,755)
1056 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1057 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1060 %defattr(644,root,root,755)
1061 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1062 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1064 %files system-unicore32
1065 %defattr(644,root,root,755)
1066 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1069 %defattr(644,root,root,755)
1070 %attr(755,root,root) %{_bindir}/qemu-system-i386
1071 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1072 %ifarch %{ix86} %{x8664}
1073 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1074 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
1075 %attr(755,root,root) %{_bindir}/kvm_stat
1077 %{_datadir}/%{name}/bios.bin
1078 %{_datadir}/%{name}/bios-256k.bin
1079 %{_datadir}/%{name}/acpi-dsdt.aml
1080 %{_datadir}/%{name}/q35-acpi-dsdt.aml
1082 %files system-xtensa
1083 %defattr(644,root,root,755)
1084 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1085 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1088 %defattr(644,root,root,755)
1089 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
1090 %{systemdunitdir}/qemu-guest-agent.service
1091 %attr(755,root,root) %{_bindir}/qemu-ga
1093 %files module-block-curl
1094 %defattr(644,root,root,755)
1095 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1097 %if %{with glusterfs}
1098 %files module-block-gluster
1099 %defattr(644,root,root,755)
1100 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1104 %files module-block-iscsi
1105 %defattr(644,root,root,755)
1106 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1110 %files module-block-rbd
1111 %defattr(644,root,root,755)
1112 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1115 %files module-block-ssh
1116 %defattr(644,root,root,755)
1117 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so