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 seccomp # seccomp support
20 %bcond_without usbredir # usb network redirection support
21 %bcond_without system_seabios # system seabios binary
22 %bcond_without snappy # snappy compression library
28 Summary: QEMU CPU Emulator
29 Summary(pl.UTF-8): QEMU - emulator procesora
34 Group: Applications/Emulators
35 Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.bz2
36 # Source0-md5: 2790f44fd76da5de5024b4aafeb594c2
37 Source2: %{name}.binfmt
38 # Loads kvm kernel modules at boot
39 Source3: kvm-modules-load.conf
44 Source6: ksm.sysconfig
46 Source8: ksmtuned.service
48 Source10: ksmtuned.conf
49 Source11: %{name}-guest-agent.service
50 Source12: 99-%{name}-guest-agent.rules
51 Patch0: %{name}-cflags.patch
52 Patch1: vgabios-widescreens.patch
53 Patch2: %{name}-whitelist.patch
54 Patch3: %{name}-system-libcacard.patch
55 Patch4: %{name}-xattr.patch
56 Patch5: libjpeg-boolean.patch
57 # Proof of concept, for reference, do not remove
58 Patch400: %{name}-kde_virtual_workspaces_hack.patch
59 URL: http://www.qemu-project.org/
60 %{?with_opengl:BuildRequires: OpenGL-GLX-devel}
61 %{?with_sdl:BuildRequires: SDL2-devel}
62 BuildRequires: alsa-lib-devel
64 %{?with_bluetooth:BuildRequires: bluez-libs-devel}
65 %{?with_brlapi:BuildRequires: brlapi-devel}
66 %{?with_ceph:BuildRequires: ceph-devel}
67 BuildRequires: curl-devel
68 BuildRequires: cyrus-sasl-devel >= 2
69 %{?with_esd:BuildRequires: esound-devel}
70 BuildRequires: glib2-devel >= 1:2.12
71 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
72 BuildRequires: gnutls-devel > 2.10.0
73 BuildRequires: libaio-devel
74 %{?with_smartcard:BuildRequires: libcacard-devel}
75 BuildRequires: libcap-devel
76 BuildRequires: libcap-ng-devel
77 BuildRequires: libfdt-devel
78 %{?with_rdma:BuildRequires: libibverbs-devel}
79 %{?with_iscsi:BuildRequires: libiscsi-devel}
80 BuildRequires: libjpeg-devel
81 BuildRequires: libpng-devel
82 %{?with_rdma:BuildRequires: librdmacm-devel}
83 %{?with_seccomp:BuildRequires: libseccomp-devel}
84 BuildRequires: libssh2-devel >= 1.2.8
85 # for usb passthrough, when available
86 #BuildRequires: libusb-devel >= 1.0.13
87 BuildRequires: libuuid-devel
88 BuildRequires: lzo-devel
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}
100 BuildRequires: spice-protocol >= 0.12.0
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 usbredir} \
147 Requires: usbredir >= 0.6 \
150 Requires: gtk+2 >= 2:2.18.0 \
151 Requires: vte0 >= 0.24.0 \
154 Requires: gtk+3 >= 3.0.0 \
155 Requires: vte >= 0.32.0 \
158 # some PPC/SPARC boot image in ELF format
159 %define _noautostrip .*%{_datadir}/qemu/.*-.*
162 QEMU is a FAST! processor emulator. By using dynamic translation it
163 achieves a reasonnable speed while being easy to port on new host
164 CPUs. QEMU has two operating modes:
166 - User mode emulation. In this mode, QEMU can launch Linux processes
167 compiled for one CPU on another CPU. Linux system calls are converted
168 because of endianness and 32/64 bit mismatches. Wine (Windows
169 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
171 - Full system emulation. In this mode, QEMU emulates a full system,
172 including a processor and various peripherials. It can also be used to
173 provide virtual hosting of several virtual PC on a single server.
175 %description -l pl.UTF-8
176 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
177 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
178 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
180 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
181 procesy linuksowe skompilowane dla jednego procesora na innym
182 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
183 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
184 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
187 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
188 włączając w to procesor i różne urządzenia peryferyjne. Może być także
189 używane do wirtualnego hostowania kilku wirtualnych pecetów na
190 pojedynczym serwerze.
193 Summary: QEMU common files needed by all QEMU targets
194 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
195 Group: Development/Tools
196 Requires(post,preun,postun): systemd-units >= 38
197 Requires(postun): /usr/sbin/groupdel
198 Requires(postun): /usr/sbin/userdel
199 Requires(pre): /bin/id
200 Requires(pre): /usr/bin/getgid
201 Requires(pre): /usr/sbin/groupadd
202 Requires(pre): /usr/sbin/useradd
203 Requires: glib2 >= 1:2.12
204 Requires: libssh2 >= 1.2.8
205 Requires: systemd-units >= 38
206 Provides: group(qemu)
208 Obsoletes: qemu-kvm-common
209 Conflicts: qemu < 1.0-2
212 QEMU is a generic and open source processor emulator which achieves a
213 good emulation speed by using dynamic translation.
215 This package provides the common files needed by all QEMU targets.
217 %description common -l pl.UTF-8
218 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
219 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
221 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
225 Summary: QEMU command line tool for manipulating disk images
226 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
227 Group: Development/Tools
228 Obsoletes: qemu-kvm-img
229 Conflicts: qemu < 1.0-2
232 This package provides a command line tool for manipulating disk
235 %description img -l pl.UTF-8
236 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
240 Summary: QEMU user mode emulation of qemu targets
241 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
242 Group: Development/Tools
243 Requires: %{name}-common = %{version}-%{release}
244 Requires(post,postun): systemd-units >= 38
245 Requires: systemd-units >= 38
246 Obsoletes: qemu-kvm-user
249 QEMU is a generic and open source processor emulator which achieves a
250 good emulation speed by using dynamic translation.
252 This package provides the user mode emulation of QEMU targets.
254 %description user -l pl.UTF-8
255 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
256 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
258 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
260 %package system-aarch64
261 Summary: QEMU system emulator for Alpha
262 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
263 Group: Development/Tools
264 Requires: %{name}-common = %{version}-%{release}
266 Obsoletes: qemu-kvm-system-aarch64
268 %description system-aarch64
269 QEMU is a generic and open source processor emulator which achieves a
270 good emulation speed by using dynamic translation.
272 This package provides the system emulator with Alpha CPU.
274 %description system-aarch64 -l pl.UTF-8
275 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
276 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
278 Ten pakiet zawiera emulator systemu z procesorem Alpha.
280 %package system-alpha
281 Summary: QEMU system emulator for Alpha
282 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
283 Group: Development/Tools
284 Requires: %{name}-common = %{version}-%{release}
286 Obsoletes: qemu-kvm-system-alpha
288 %description system-alpha
289 QEMU is a generic and open source processor emulator which achieves a
290 good emulation speed by using dynamic translation.
292 This package provides the system emulator with Alpha CPU.
294 %description system-alpha -l pl.UTF-8
295 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
296 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
298 Ten pakiet zawiera emulator systemu z procesorem Alpha.
301 Summary: QEMU system emulator for ARM
302 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
303 Group: Development/Tools
304 Requires: %{name}-common = %{version}-%{release}
306 Obsoletes: qemu-kvm-system-arm
308 %description system-arm
309 QEMU is a generic and open source processor emulator which achieves a
310 good emulation speed by using dynamic translation.
312 This package provides the system emulator for ARM.
314 %description system-arm -l pl.UTF-8
315 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
316 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
318 Ten pakiet zawiera emulator systemu z procesorem ARM.
321 Summary: QEMU system emulator for CRIS
322 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
323 Group: Development/Tools
324 Requires: %{name}-common = %{version}-%{release}
326 Obsoletes: qemu-kvm-system-cris
328 %description system-cris
329 QEMU is a generic and open source processor emulator which achieves a
330 good emulation speed by using dynamic translation.
332 This package provides the system emulator with CRIS CPU.
334 %description system-cris -l pl.UTF-8
335 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
336 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
338 Ten pakiet zawiera emulator systemu z procesorem CRIS.
341 Summary: QEMU system emulator for LM32
342 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
343 Group: Development/Tools
344 Requires: %{name}-common = %{version}-%{release}
346 Obsoletes: qemu-kvm-system-lm32
348 %description system-lm32
349 QEMU is a generic and open source processor emulator which achieves a
350 good emulation speed by using dynamic translation.
352 This package provides the system emulator with LM32 CPU.
354 %description system-lm32 -l pl.UTF-8
355 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
356 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
358 Ten pakiet zawiera emulator systemu z procesorem LM32.
361 Summary: QEMU system emulator for m68k
362 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
363 Group: Development/Tools
364 Requires: %{name}-common = %{version}-%{release}
366 Obsoletes: qemu-kvm-system-m68k
368 %description system-m68k
369 QEMU is a generic and open source processor emulator which achieves a
370 good emulation speed by using dynamic translation.
372 This package provides the system emulator with m68k CPU.
374 %description system-m68k -l pl.UTF-8
375 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
376 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
378 Ten pakiet zawiera emulator systemu z procesorem m68k.
380 %package system-microblaze
381 Summary: QEMU system emulator for MicroBlaze
382 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
383 Group: Development/Tools
384 Requires: %{name}-common = %{version}-%{release}
386 Obsoletes: qemu-kvm-system-microblaze
388 %description system-microblaze
389 QEMU is a generic and open source processor emulator which achieves a
390 good emulation speed by using dynamic translation.
392 This package provides the system emulator with MicroBlaze CPU.
394 %description system-microblaze -l pl.UTF-8
395 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
396 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
398 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
401 Summary: QEMU system emulator for MIPS
402 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
403 Group: Development/Tools
404 Requires: %{name}-common = %{version}-%{release}
406 Obsoletes: qemu-kvm-system-mips
408 %description system-mips
409 QEMU is a generic and open source processor emulator which achieves a
410 good emulation speed by using dynamic translation.
412 This package provides the system emulator with MIPS CPU.
414 %description system-mips -l pl.UTF-8
415 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
416 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
418 Ten pakiet zawiera emulator systemu z procesorem MIPS.
420 %package system-moxie
421 Summary: QEMU system emulator for Moxie
422 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
423 Group: Development/Tools
424 Requires: %{name}-common = %{version}-%{release}
427 %description system-moxie
428 QEMU is a generic and open source processor emulator which achieves a
429 good emulation speed by using dynamic translation.
431 This package provides the system emulator with Moxie CPU.
433 %description system-moxie -l pl.UTF-8
434 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
435 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
437 Ten pakiet zawiera emulator systemu z procesorem Moxie.
440 Summary: QEMU system emulator for OpenRISC
441 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
442 Group: Development/Tools
443 Requires: %{name}-common = %{version}-%{release}
445 Obsoletes: qemu-kvm-system-or32
447 %description system-or32
448 QEMU is a generic and open source processor emulator which achieves a
449 good emulation speed by using dynamic translation.
451 This package provides the system emulator with OpenRISC CPU.
453 %description system-or32 -l pl.UTF-8
454 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
455 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
457 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
460 Summary: QEMU system emulator for PowerPC
461 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
462 Group: Development/Tools
463 Requires: %{name}-common = %{version}-%{release}
465 Obsoletes: qemu-kvm-system-ppc
467 %description system-ppc
468 QEMU is a generic and open source processor emulator which achieves a
469 good emulation speed by using dynamic translation.
471 This package provides the system emulator with PowerPC CPU.
473 %description system-ppc -l pl.UTF-8
474 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
475 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
477 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
479 %package system-s390x
480 Summary: QEMU system emulator for S390
481 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
482 Group: Development/Tools
483 Requires: %{name}-common = %{version}-%{release}
485 Obsoletes: qemu-kvm-system-s390x
487 %description system-s390x
488 QEMU is a generic and open source processor emulator which achieves a
489 good emulation speed by using dynamic translation.
491 This package provides the system emulator with S390 CPU.
493 %description system-s390x -l pl.UTF-8
494 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
495 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
497 Ten pakiet zawiera emulator systemu z procesorem S390.
500 Summary: QEMU system emulator for SH4
501 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
502 Group: Development/Tools
503 Requires: %{name}-common = %{version}-%{release}
505 Obsoletes: qemu-kvm-system-sh4
507 %description system-sh4
508 QEMU is a generic and open source processor emulator which achieves a
509 good emulation speed by using dynamic translation.
511 This package provides the system emulator with SH4 CPU.
513 %description system-sh4 -l pl.UTF-8
514 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
515 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
517 Ten pakiet zawiera emulator systemu z procesorem SH4.
519 %package system-sparc
520 Summary: QEMU system emulator for SPARC
521 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
522 Group: Development/Tools
523 Requires: %{name}-common = %{version}-%{release}
525 Obsoletes: qemu-kvm-system-sparc
527 %description system-sparc
528 QEMU is a generic and open source processor emulator which achieves a
529 good emulation speed by using dynamic translation.
531 This package provides the system emulator with SPARC/SPARC64 CPU.
533 %description system-sparc -l pl.UTF-8
534 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
535 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
537 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
539 %package system-unicore32
540 Summary: QEMU system emulator for UniCore32
541 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
542 Group: Development/Tools
543 Requires: %{name}-common = %{version}-%{release}
545 Obsoletes: qemu-kvm-system-unicore32
547 %description system-unicore32
548 QEMU is a generic and open source processor emulator which achieves a
549 good emulation speed by using dynamic translation.
551 This package provides the system emulator with UniCore32 CPU.
553 %description system-unicore32 -l pl.UTF-8
554 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
555 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
557 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
560 Summary: QEMU system emulator for x86
561 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
562 Group: Development/Tools
563 Requires: %{name}-common = %{version}-%{release}
564 %{?with_system_seabios:Requires: seabios}
567 Obsoletes: qemu-kvm-system-x86
569 %description system-x86
570 QEMU is a generic and open source processor emulator which achieves a
571 good emulation speed by using dynamic translation.
573 %description system-x86 -l pl.UTF-8
574 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
575 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
577 %package system-xtensa
578 Summary: QEMU system emulator for Xtensa
579 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
580 Group: Development/Tools
581 Requires: %{name}-common = %{version}-%{release}
583 Obsoletes: qemu-kvm-system-xtensa
585 %description system-xtensa
586 QEMU is a generic and open source processor emulator which achieves a
587 good emulation speed by using dynamic translation.
589 This package provides the system emulator with Xtensa CPU.
591 %description system-xtensa -l pl.UTF-8
592 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
593 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
595 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
598 Summary: QEMU guest agent
599 Summary(pl.UTF-8): Agent gościa QEMU
601 Requires(post,preun,postun): systemd-units >= 38
602 Requires: glib2 >= 1:2.12
603 Requires: systemd-units >= 38
604 Obsoletes: qemu-kvm-guest-agent
606 %description guest-agent
607 QEMU is a generic and open source processor emulator which achieves a
608 good emulation speed by using dynamic translation.
610 This package provides an agent to run inside guests, which
611 communicates with the host over a virtio-serial channel named
612 "org.qemu.guest_agent.0".
614 This package does not need to be installed on the host OS.
616 %description guest-agent -l pl.UTF-8
617 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
618 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
620 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
621 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
622 "org.qemu.guest_agent.0".
624 Ten pakiet nie musi być zainstalowany w systemie hosta.
626 %package module-block-curl
627 Summary: QEMU module for 'curl' block devices
628 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'curl'
629 Group: Development/Tools
630 Requires: %{name}-common = %{version}-%{release}
632 %description module-block-curl
633 'curl' block device support for QEMU.
635 %description module-block-curl -l pl.UTF-8
636 Moduł QEMU dla urządeń blokowych typu 'curl'.
638 %package module-block-gluster
639 Summary: QEMU module for 'gluster' block devices
640 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'gluster'
641 Group: Development/Tools
642 Requires: %{name}-common = %{version}-%{release}
644 %description module-block-gluster
645 'gluster' block device support for QEMU.
647 %description module-block-gluster -l pl.UTF-8
648 Moduł QEMU dla urządeń blokowych typu 'gluster'.
650 %package module-block-iscsi
651 Summary: QEMU module for 'iscsi' block devices
652 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'iscsi'
653 Group: Development/Tools
654 Requires: %{name}-common = %{version}-%{release}
656 %description module-block-iscsi
657 'iscsi' block device support for QEMU.
659 %description module-block-iscsi -l pl.UTF-8
660 Moduł QEMU dla urządeń blokowych typu 'iscsi'.
662 %package module-block-rbd
663 Summary: QEMU module for 'rbd' block devices
664 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'rbd'
665 Group: Development/Tools
666 Requires: %{name}-common = %{version}-%{release}
668 %description module-block-rbd
669 'rbd' block device support for QEMU.
671 %description module-block-rbd -l pl.UTF-8
672 Moduł QEMU dla urządeń blokowych typu 'rbd'.
674 %package module-block-ssh
675 Summary: QEMU module for 'ssh' block devices
676 Summary(pl.UTF-8): Moduł QEMU dla urządeń blokowych typu 'ssh'
677 Group: Development/Tools
678 Requires: %{name}-common = %{version}-%{release}
680 %description module-block-ssh
681 'ssh' block device support for QEMU.
683 %description module-block-ssh -l pl.UTF-8
684 Moduł QEMU dla urządeń blokowych typu 'ssh'.
695 %{__mv} libcacard libcacard-use-system-lib
697 # workaround for conflict with alsa/error.h
698 ln -s ../error.h qapi/error.h
702 --extra-cflags="%{rpmcflags} -I/usr/include/ncurses" \
703 --extra-ldflags="%{rpmldflags}" \
704 --prefix=%{_prefix} \
705 --libdir=%{_libdir} \
706 --libexecdir=%{_libexecdir} \
707 --sysconfdir=%{_sysconfdir} \
709 --host-cc="%{__cc}" \
712 %{__enable_disable bluetooth bluez} \
713 %{__enable_disable brlapi} \
719 %{__enable_disable glusterfs} \
720 %{__enable_disable iscsi libiscsi} \
721 %{__enable_disable glx} \
722 %{__enable_disable ceph rbd} \
723 %{__enable_disable rdma} \
724 %{__enable_disable sdl} \
726 %{__enable_disable seccomp} \
727 %{__enable_disable spice} \
728 %{__enable_disable smartcard smartcard-nss} \
730 %{__enable_disable usbredir usb-redir} \
739 %{__enable_disable xen} \
744 %{__enable_disable snappy} \
746 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
747 --interp-prefix=%{_libdir}/qemu/lib-%%M \
748 %if %{without gtk2} && %{without gtk3}
751 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
756 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
758 # rebuild patched vesa tables with additional widescreen modes.
759 %{__make} -C roms/vgabios stdvga-bios
761 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
764 rm -rf $RPM_BUILD_ROOT
765 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
766 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
767 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
770 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
771 DESTDIR=$RPM_BUILD_ROOT
773 install -d $RPM_BUILD_ROOT%{_sysconfdir}
774 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
779 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
781 %ifarch %{ix86} %{x8664}
782 install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
783 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
784 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
787 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
788 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
789 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
791 install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
792 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
793 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
795 # For the qemu-guest-agent subpackage install the systemd
796 # service and udev rules.
797 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
798 install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
801 %ifnarch %{ix86} %{x8664}
810 %ifnarch sparc sparc64
817 test $i = dummy && continue
818 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i.conf
822 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
823 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
825 # install patched vesa tables with additional widescreen modes.
826 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
828 %if %{with system_seabios}
829 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
830 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
831 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
833 if [ -e "/usr/share/seabios/$bn" ] ; then
834 ln -sf "/usr/share/seabios/$bn" "$f"
839 %if %{with gtk2} || %{with gtk3}
840 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
841 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
848 rm -rf $RPM_BUILD_ROOT
852 %groupadd -g 276 qemu
853 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
856 %systemd_post ksm.service
857 %systemd_post ksmtuned.service
860 %systemd_preun ksm.service
861 %systemd_preun ksmtuned.service
864 if [ "$1" = "0" ]; then
871 %triggerpostun common -- qemu-common < 1.6.1-4
872 %systemd_trigger ksm.service
873 %systemd_trigger ksmtuned.service
876 %systemd_service_restart systemd-binfmt.service
879 %systemd_service_restart systemd-binfmt.service
885 %systemd_preun qemu-guest-agent.service
891 %defattr(644,root,root,755)
893 %files common -f %{name}.lang
894 %defattr(644,root,root,755)
895 %doc README qemu-doc.html qemu-tech.html qmp-commands.txt
896 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
897 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu/target-*.conf
898 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
899 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
900 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
901 %{systemdunitdir}/ksm.service
902 %{systemdunitdir}/ksmtuned.service
903 %dir %{_sysconfdir}/qemu
904 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
905 %attr(755,root,root) %{_bindir}/qemu-nbd
906 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
907 %attr(755,root,root) %{_sbindir}/ksmctl
908 %attr(755,root,root) %{_sbindir}/ksmtuned
909 %{_mandir}/man1/qemu.1*
910 %{_mandir}/man1/virtfs-proxy-helper.1*
911 %{_mandir}/man8/qemu-nbd.8*
913 %dir %{_datadir}/qemu
914 %{_datadir}/%{name}/keymaps
915 %{_datadir}/%{name}/qemu-icon.bmp
917 # various bios images
918 # all should be probably moved to the right system subpackage
919 %{_datadir}/%{name}/QEMU,cgthree.bin
920 %{_datadir}/%{name}/QEMU,tcx.bin
921 %{_datadir}/%{name}/bamboo.dtb
922 %{_datadir}/%{name}/efi-e1000.rom
923 %{_datadir}/%{name}/efi-eepro100.rom
924 %{_datadir}/%{name}/efi-ne2k_pci.rom
925 %{_datadir}/%{name}/efi-pcnet.rom
926 %{_datadir}/%{name}/efi-rtl8139.rom
927 %{_datadir}/%{name}/efi-virtio.rom
928 %{_datadir}/%{name}/kvmvapic.bin
929 %{_datadir}/%{name}/linuxboot.bin
930 %{_datadir}/%{name}/multiboot.bin
931 %{_datadir}/%{name}/openbios-ppc
932 %{_datadir}/%{name}/openbios-sparc*
933 %{_datadir}/%{name}/palcode-clipper
934 %{_datadir}/%{name}/petalogix-ml605.dtb
935 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
936 %{_datadir}/%{name}/ppc_rom.bin
937 %{_datadir}/%{name}/pxe-e1000.rom
938 %{_datadir}/%{name}/pxe-eepro100.rom
939 %{_datadir}/%{name}/pxe-ne2k_pci.rom
940 %{_datadir}/%{name}/pxe-pcnet.rom
941 %{_datadir}/%{name}/pxe-rtl8139.rom
942 %{_datadir}/%{name}/pxe-virtio.rom
943 %{_datadir}/%{name}/qemu_logo_no_text.svg
944 %{_datadir}/%{name}/s390-ccw.img
945 %{_datadir}/%{name}/s390-zipl.rom
946 %{_datadir}/%{name}/sgabios.bin
947 %{_datadir}/%{name}/slof.bin
948 %{_datadir}/%{name}/spapr-rtas.bin
949 %{_datadir}/%{name}/vgabios-cirrus.bin
950 %{_datadir}/%{name}/vgabios-qxl.bin
951 %{_datadir}/%{name}/vgabios-stdvga.bin
952 %{_datadir}/%{name}/vgabios-vmware.bin
953 %{_datadir}/%{name}/vgabios.bin
955 %dir %{_libdir}/%{name}
958 %defattr(644,root,root,755)
959 %attr(755,root,root) %{_bindir}/qemu-img
960 %{_mandir}/man1/qemu-img.1*
963 %defattr(644,root,root,755)
964 /usr/lib/binfmt.d/qemu-*.conf
965 %attr(755,root,root) %{_bindir}/qemu-aarch64
966 %attr(755,root,root) %{_bindir}/qemu-alpha
967 %attr(755,root,root) %{_bindir}/qemu-arm
968 %attr(755,root,root) %{_bindir}/qemu-armeb
969 %attr(755,root,root) %{_bindir}/qemu-cris
970 %attr(755,root,root) %{_bindir}/qemu-i386
971 %attr(755,root,root) %{_bindir}/qemu-io
972 %attr(755,root,root) %{_bindir}/qemu-m68k
973 %attr(755,root,root) %{_bindir}/qemu-microblaze
974 %attr(755,root,root) %{_bindir}/qemu-microblazeel
975 %attr(755,root,root) %{_bindir}/qemu-mips
976 %attr(755,root,root) %{_bindir}/qemu-mipsel
977 %attr(755,root,root) %{_bindir}/qemu-mips64
978 %attr(755,root,root) %{_bindir}/qemu-mips64el
979 %attr(755,root,root) %{_bindir}/qemu-mipsn32
980 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
981 %attr(755,root,root) %{_bindir}/qemu-or32
982 %attr(755,root,root) %{_bindir}/qemu-ppc
983 %attr(755,root,root) %{_bindir}/qemu-ppc64
984 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
985 %attr(755,root,root) %{_bindir}/qemu-s390x
986 %attr(755,root,root) %{_bindir}/qemu-sh4
987 %attr(755,root,root) %{_bindir}/qemu-sh4eb
988 %attr(755,root,root) %{_bindir}/qemu-sparc
989 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
990 %attr(755,root,root) %{_bindir}/qemu-sparc64
991 %attr(755,root,root) %{_bindir}/qemu-unicore32
992 %attr(755,root,root) %{_bindir}/qemu-x86_64
994 %files system-aarch64
995 %defattr(644,root,root,755)
996 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
999 %defattr(644,root,root,755)
1000 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1003 %defattr(644,root,root,755)
1004 %attr(755,root,root) %{_bindir}/qemu-system-arm
1007 %defattr(644,root,root,755)
1008 %attr(755,root,root) %{_bindir}/qemu-system-cris
1011 %defattr(644,root,root,755)
1012 %attr(755,root,root) %{_bindir}/qemu-system-lm32
1015 %defattr(644,root,root,755)
1016 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1018 %files system-microblaze
1019 %defattr(644,root,root,755)
1020 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1021 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1024 %defattr(644,root,root,755)
1025 %attr(755,root,root) %{_bindir}/qemu-system-mips
1026 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1027 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1028 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1031 %defattr(644,root,root,755)
1032 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1035 %defattr(644,root,root,755)
1036 %attr(755,root,root) %{_bindir}/qemu-system-or32
1039 %defattr(644,root,root,755)
1040 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1041 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1042 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
1045 %defattr(644,root,root,755)
1046 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1049 %defattr(644,root,root,755)
1050 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1051 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1054 %defattr(644,root,root,755)
1055 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1056 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1058 %files system-unicore32
1059 %defattr(644,root,root,755)
1060 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1063 %defattr(644,root,root,755)
1064 %attr(755,root,root) %{_bindir}/qemu-system-i386
1065 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1066 %ifarch %{ix86} %{x8664}
1067 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1068 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
1069 %attr(755,root,root) %{_bindir}/kvm_stat
1071 %{_datadir}/%{name}/bios.bin
1072 %{_datadir}/%{name}/bios-256k.bin
1073 %{_datadir}/%{name}/acpi-dsdt.aml
1074 %{_datadir}/%{name}/q35-acpi-dsdt.aml
1076 %files system-xtensa
1077 %defattr(644,root,root,755)
1078 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1079 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1082 %defattr(644,root,root,755)
1083 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
1084 %{systemdunitdir}/qemu-guest-agent.service
1085 %attr(755,root,root) %{_bindir}/qemu-ga
1087 %files module-block-curl
1088 %defattr(644,root,root,755)
1089 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1091 %files module-block-gluster
1092 %defattr(644,root,root,755)
1093 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1095 %files module-block-iscsi
1096 %defattr(644,root,root,755)
1097 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1099 %files module-block-rbd
1100 %defattr(644,root,root,755)
1101 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1103 %files module-block-ssh
1104 %defattr(644,root,root,755)
1105 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so