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
26 Summary: QEMU CPU Emulator
27 Summary(pl.UTF-8): QEMU - emulator procesora
32 Group: Applications/Emulators
33 Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.bz2
34 # Source0-md5: 9541063d999cf9659ed7fdce71314f31
35 Source2: %{name}.binfmt
36 # Loads kvm kernel modules at boot
37 Source3: kvm-modules-load.conf
42 Source6: ksm.sysconfig
44 Source8: ksmtuned.service
46 Source10: ksmtuned.conf
47 Source11: %{name}-guest-agent.service
48 Source12: 99-%{name}-guest-agent.rules
49 Patch0: %{name}-cflags.patch
50 Patch1: vgabios-widescreens.patch
51 Patch2: %{name}-whitelist.patch
52 Patch3: %{name}-system-libcacard.patch
54 Patch5: %{name}-xattr.patch
55 Patch6: libjpeg-boolean.patch
56 # Proof of concept, for reference, do not remove
57 Patch400: %{name}-kde_virtual_workspaces_hack.patch
58 URL: http://www.qemu-project.org/
59 %{?with_opengl:BuildRequires: OpenGL-GLX-devel}
60 %{?with_sdl:BuildRequires: SDL-devel >= 1.2.1}
61 BuildRequires: alsa-lib-devel
63 %{?with_bluetooth:BuildRequires: bluez-libs-devel}
64 %{?with_brlapi:BuildRequires: brlapi-devel}
65 %{?with_ceph:BuildRequires: ceph-devel}
66 BuildRequires: curl-devel
67 BuildRequires: cyrus-sasl-devel >= 2
68 %{?with_esd:BuildRequires: esound-devel}
69 BuildRequires: glib2-devel >= 1:2.12
70 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
71 BuildRequires: gnutls-devel
72 BuildRequires: libaio-devel
73 %{?with_smartcard:BuildRequires: libcacard-devel}
74 BuildRequires: libcap-devel
75 BuildRequires: libcap-ng-devel
76 BuildRequires: libfdt-devel
77 %{?with_rdma:BuildRequires: libibverbs-devel}
78 %{?with_iscsi:BuildRequires: libiscsi-devel}
79 BuildRequires: libjpeg-devel
80 BuildRequires: libpng-devel
81 %{?with_rdma:BuildRequires: librdmacm-devel}
82 %{?with_seccomp:BuildRequires: libseccomp-devel}
83 BuildRequires: libssh2-devel >= 1.2.8
84 # for usb passthrough, when available
85 #BuildRequires: libusb-devel >= 1.0.13
86 BuildRequires: libuuid-devel
87 BuildRequires: ncurses-devel
88 %{?with_smartcard:BuildRequires: nss-devel >= 3.12.8}
89 BuildRequires: perl-Encode
90 BuildRequires: perl-tools-pod
91 BuildRequires: pkgconfig
92 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
93 BuildRequires: rpmbuild(macros) >= 1.644
94 BuildRequires: sed >= 4.0
96 BuildRequires: spice-protocol >= 0.12.0
97 BuildRequires: spice-server-devel >= 0.12.0
99 BuildRequires: texi2html
100 BuildRequires: texinfo
101 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
102 BuildRequires: vde2-devel
104 %{?with_xen:BuildRequires: xen-devel >= 3.4}
105 BuildRequires: xfsprogs-devel
106 BuildRequires: xorg-lib-libX11-devel
107 BuildRequires: zlib-devel
109 BuildRequires: gtk+2-devel >= 2:2.18.0
110 BuildRequires: vte0-devel >= 0.24.0
113 BuildRequires: gtk+3-devel >= 3.0.0
114 BuildRequires: vte-devel >= 0.32.0
116 Requires: %{name}-img = %{version}-%{release}
117 Requires: %{name}-system-alpha = %{version}-%{release}
118 Requires: %{name}-system-arm = %{version}-%{release}
119 Requires: %{name}-system-cris = %{version}-%{release}
120 Requires: %{name}-system-lm32 = %{version}-%{release}
121 Requires: %{name}-system-m68k = %{version}-%{release}
122 Requires: %{name}-system-microblaze = %{version}-%{release}
123 Requires: %{name}-system-mips = %{version}-%{release}
124 Requires: %{name}-system-moxie = %{version}-%{release}
125 Requires: %{name}-system-or32 = %{version}-%{release}
126 Requires: %{name}-system-ppc = %{version}-%{release}
127 Requires: %{name}-system-s390x = %{version}-%{release}
128 Requires: %{name}-system-sh4 = %{version}-%{release}
129 Requires: %{name}-system-sparc = %{version}-%{release}
130 Requires: %{name}-system-unicore32 = %{version}-%{release}
131 Requires: %{name}-system-x86 = %{version}-%{release}
132 Requires: %{name}-system-xtensa = %{version}-%{release}
133 Requires: %{name}-user = %{version}-%{release}
135 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
137 %define systempkg_req \
138 Requires: SDL >= 1.2.1 \
139 %if %{with usbredir} \
140 Requires: usbredir >= 0.6 \
143 Requires: gtk+2 >= 2:2.18.0 \
144 Requires: vte0 >= 0.24.0 \
147 Requires: gtk+3 >= 3.0.0 \
148 Requires: vte >= 0.32.0 \
151 # some PPC/SPARC boot image in ELF format
152 %define _noautostrip .*%{_datadir}/qemu/.*-.*
155 QEMU is a FAST! processor emulator. By using dynamic translation it
156 achieves a reasonnable speed while being easy to port on new host
157 CPUs. QEMU has two operating modes:
159 - User mode emulation. In this mode, QEMU can launch Linux processes
160 compiled for one CPU on another CPU. Linux system calls are converted
161 because of endianness and 32/64 bit mismatches. Wine (Windows
162 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
164 - Full system emulation. In this mode, QEMU emulates a full system,
165 including a processor and various peripherials. It can also be used to
166 provide virtual hosting of several virtual PC on a single server.
168 %description -l pl.UTF-8
169 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
170 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
171 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
173 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
174 procesy linuksowe skompilowane dla jednego procesora na innym
175 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
176 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
177 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
180 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
181 włączając w to procesor i różne urządzenia peryferyjne. Może być także
182 używane do wirtualnego hostowania kilku wirtualnych pecetów na
183 pojedynczym serwerze.
186 Summary: QEMU common files needed by all QEMU targets
187 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
188 Group: Development/Tools
189 Requires(post,preun,postun): systemd-units >= 38
190 Requires(postun): /usr/sbin/groupdel
191 Requires(postun): /usr/sbin/userdel
192 Requires(pre): /bin/id
193 Requires(pre): /usr/bin/getgid
194 Requires(pre): /usr/sbin/groupadd
195 Requires(pre): /usr/sbin/useradd
196 Requires: glib2 >= 1:2.12
197 Requires: libssh2 >= 1.2.8
198 Requires: systemd-units >= 38
199 Provides: group(qemu)
201 Obsoletes: qemu-kvm-common
202 Conflicts: qemu < 1.0-2
205 QEMU is a generic and open source processor emulator which achieves a
206 good emulation speed by using dynamic translation.
208 This package provides the common files needed by all QEMU targets.
210 %description common -l pl.UTF-8
211 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
212 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
214 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
218 Summary: QEMU command line tool for manipulating disk images
219 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
220 Group: Development/Tools
221 Obsoletes: qemu-kvm-img
222 Conflicts: qemu < 1.0-2
225 This package provides a command line tool for manipulating disk
228 %description img -l pl.UTF-8
229 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
233 Summary: QEMU user mode emulation of qemu targets
234 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
235 Group: Development/Tools
236 Requires: %{name}-common = %{version}-%{release}
237 Requires(post,postun): systemd-units >= 38
238 Requires: systemd-units >= 38
239 Obsoletes: qemu-kvm-user
242 QEMU is a generic and open source processor emulator which achieves a
243 good emulation speed by using dynamic translation.
245 This package provides the user mode emulation of QEMU targets.
247 %description user -l pl.UTF-8
248 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
249 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
251 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
253 %package system-alpha
254 Summary: QEMU system emulator for Alpha
255 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
256 Group: Development/Tools
257 Requires: %{name}-common = %{version}-%{release}
259 Obsoletes: qemu-kvm-system-alpha
261 %description system-alpha
262 QEMU is a generic and open source processor emulator which achieves a
263 good emulation speed by using dynamic translation.
265 This package provides the system emulator with Alpha CPU.
267 %description system-alpha -l pl.UTF-8
268 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
269 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
271 Ten pakiet zawiera emulator systemu z procesorem Alpha.
274 Summary: QEMU system emulator for ARM
275 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
276 Group: Development/Tools
277 Requires: %{name}-common = %{version}-%{release}
279 Obsoletes: qemu-kvm-system-arm
281 %description system-arm
282 QEMU is a generic and open source processor emulator which achieves a
283 good emulation speed by using dynamic translation.
285 This package provides the system emulator for ARM.
287 %description system-arm -l pl.UTF-8
288 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
289 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
291 Ten pakiet zawiera emulator systemu z procesorem ARM.
294 Summary: QEMU system emulator for CRIS
295 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
296 Group: Development/Tools
297 Requires: %{name}-common = %{version}-%{release}
299 Obsoletes: qemu-kvm-system-cris
301 %description system-cris
302 QEMU is a generic and open source processor emulator which achieves a
303 good emulation speed by using dynamic translation.
305 This package provides the system emulator with CRIS CPU.
307 %description system-cris -l pl.UTF-8
308 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
309 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
311 Ten pakiet zawiera emulator systemu z procesorem CRIS.
314 Summary: QEMU system emulator for LM32
315 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
316 Group: Development/Tools
317 Requires: %{name}-common = %{version}-%{release}
319 Obsoletes: qemu-kvm-system-lm32
321 %description system-lm32
322 QEMU is a generic and open source processor emulator which achieves a
323 good emulation speed by using dynamic translation.
325 This package provides the system emulator with LM32 CPU.
327 %description system-lm32 -l pl.UTF-8
328 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
329 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
331 Ten pakiet zawiera emulator systemu z procesorem LM32.
334 Summary: QEMU system emulator for m68k
335 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
336 Group: Development/Tools
337 Requires: %{name}-common = %{version}-%{release}
339 Obsoletes: qemu-kvm-system-m68k
341 %description system-m68k
342 QEMU is a generic and open source processor emulator which achieves a
343 good emulation speed by using dynamic translation.
345 This package provides the system emulator with m68k CPU.
347 %description system-m68k -l pl.UTF-8
348 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
349 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
351 Ten pakiet zawiera emulator systemu z procesorem m68k.
353 %package system-microblaze
354 Summary: QEMU system emulator for MicroBlaze
355 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
356 Group: Development/Tools
357 Requires: %{name}-common = %{version}-%{release}
359 Obsoletes: qemu-kvm-system-microblaze
361 %description system-microblaze
362 QEMU is a generic and open source processor emulator which achieves a
363 good emulation speed by using dynamic translation.
365 This package provides the system emulator with MicroBlaze CPU.
367 %description system-microblaze -l pl.UTF-8
368 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
369 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
371 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
374 Summary: QEMU system emulator for MIPS
375 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
376 Group: Development/Tools
377 Requires: %{name}-common = %{version}-%{release}
379 Obsoletes: qemu-kvm-system-mips
381 %description system-mips
382 QEMU is a generic and open source processor emulator which achieves a
383 good emulation speed by using dynamic translation.
385 This package provides the system emulator with MIPS CPU.
387 %description system-mips -l pl.UTF-8
388 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
389 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
391 Ten pakiet zawiera emulator systemu z procesorem MIPS.
393 %package system-moxie
394 Summary: QEMU system emulator for Moxie
395 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
396 Group: Development/Tools
397 Requires: %{name}-common = %{version}-%{release}
400 %description system-moxie
401 QEMU is a generic and open source processor emulator which achieves a
402 good emulation speed by using dynamic translation.
404 This package provides the system emulator with Moxie CPU.
406 %description system-moxie -l pl.UTF-8
407 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
408 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
410 Ten pakiet zawiera emulator systemu z procesorem Moxie.
413 Summary: QEMU system emulator for OpenRISC
414 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
415 Group: Development/Tools
416 Requires: %{name}-common = %{version}-%{release}
418 Obsoletes: qemu-kvm-system-or32
420 %description system-or32
421 QEMU is a generic and open source processor emulator which achieves a
422 good emulation speed by using dynamic translation.
424 This package provides the system emulator with OpenRISC CPU.
426 %description system-or32 -l pl.UTF-8
427 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
428 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
430 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
433 Summary: QEMU system emulator for PowerPC
434 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
435 Group: Development/Tools
436 Requires: %{name}-common = %{version}-%{release}
438 Obsoletes: qemu-kvm-system-ppc
440 %description system-ppc
441 QEMU is a generic and open source processor emulator which achieves a
442 good emulation speed by using dynamic translation.
444 This package provides the system emulator with PowerPC CPU.
446 %description system-ppc -l pl.UTF-8
447 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
448 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
450 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
452 %package system-s390x
453 Summary: QEMU system emulator for S390
454 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
455 Group: Development/Tools
456 Requires: %{name}-common = %{version}-%{release}
458 Obsoletes: qemu-kvm-system-s390x
460 %description system-s390x
461 QEMU is a generic and open source processor emulator which achieves a
462 good emulation speed by using dynamic translation.
464 This package provides the system emulator with S390 CPU.
466 %description system-s390x -l pl.UTF-8
467 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
468 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
470 Ten pakiet zawiera emulator systemu z procesorem S390.
473 Summary: QEMU system emulator for SH4
474 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
475 Group: Development/Tools
476 Requires: %{name}-common = %{version}-%{release}
478 Obsoletes: qemu-kvm-system-sh4
480 %description system-sh4
481 QEMU is a generic and open source processor emulator which achieves a
482 good emulation speed by using dynamic translation.
484 This package provides the system emulator with SH4 CPU.
486 %description system-sh4 -l pl.UTF-8
487 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
488 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
490 Ten pakiet zawiera emulator systemu z procesorem SH4.
492 %package system-sparc
493 Summary: QEMU system emulator for SPARC
494 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
495 Group: Development/Tools
496 Requires: %{name}-common = %{version}-%{release}
498 Obsoletes: qemu-kvm-system-sparc
500 %description system-sparc
501 QEMU is a generic and open source processor emulator which achieves a
502 good emulation speed by using dynamic translation.
504 This package provides the system emulator with SPARC/SPARC64 CPU.
506 %description system-sparc -l pl.UTF-8
507 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
508 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
510 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
512 %package system-unicore32
513 Summary: QEMU system emulator for UniCore32
514 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
515 Group: Development/Tools
516 Requires: %{name}-common = %{version}-%{release}
518 Obsoletes: qemu-kvm-system-unicore32
520 %description system-unicore32
521 QEMU is a generic and open source processor emulator which achieves a
522 good emulation speed by using dynamic translation.
524 This package provides the system emulator with UniCore32 CPU.
526 %description system-unicore32 -l pl.UTF-8
527 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
528 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
530 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
533 Summary: QEMU system emulator for x86
534 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
535 Group: Development/Tools
536 Requires: %{name}-common = %{version}-%{release}
539 Obsoletes: qemu-kvm-system-x86
541 %description system-x86
542 QEMU is a generic and open source processor emulator which achieves a
543 good emulation speed by using dynamic translation.
545 %description system-x86 -l pl.UTF-8
546 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
547 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
549 %package system-xtensa
550 Summary: QEMU system emulator for Xtensa
551 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
552 Group: Development/Tools
553 Requires: %{name}-common = %{version}-%{release}
555 Obsoletes: qemu-kvm-system-xtensa
557 %description system-xtensa
558 QEMU is a generic and open source processor emulator which achieves a
559 good emulation speed by using dynamic translation.
561 This package provides the system emulator with Xtensa CPU.
563 %description system-xtensa -l pl.UTF-8
564 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
565 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
567 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
570 Summary: QEMU guest agent
571 Summary(pl.UTF-8): Agent gościa QEMU
573 Requires(post,preun,postun): systemd-units >= 38
574 Requires: glib2 >= 1:2.12
575 Requires: systemd-units >= 38
576 Obsoletes: qemu-kvm-guest-agent
578 %description guest-agent
579 QEMU is a generic and open source processor emulator which achieves a
580 good emulation speed by using dynamic translation.
582 This package provides an agent to run inside guests, which
583 communicates with the host over a virtio-serial channel named
584 "org.qemu.guest_agent.0".
586 This package does not need to be installed on the host OS.
588 %description guest-agent -l pl.UTF-8
589 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
590 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
592 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
593 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
594 "org.qemu.guest_agent.0".
596 Ten pakiet nie musi być zainstalowany w systemie hosta.
608 %{__mv} libcacard libcacard-use-system-lib
610 # workaround for conflict with alsa/error.h
611 ln -s ../error.h qapi/error.h
615 --extra-cflags="%{rpmcflags} -I/usr/include/ncurses" \
616 --extra-ldflags="%{rpmldflags}" \
617 --prefix=%{_prefix} \
618 --sysconfdir=%{_sysconfdir} \
620 --host-cc="%{__cc}" \
623 %{__enable_disable bluetooth bluez} \
624 %{__enable_disable brlapi} \
630 %{__enable_disable glusterfs} \
631 %{__enable_disable iscsi libiscsi} \
632 %{__enable_disable glx} \
633 %{__enable_disable ceph rbd} \
634 %{__enable_disable rdma} \
635 %{__enable_disable sdl} \
636 %{__enable_disable seccomp} \
637 %{__enable_disable spice} \
638 %{__enable_disable smartcard smartcard-nss} \
640 %{__enable_disable usbredir usb-redir} \
649 %{__enable_disable xen} \
650 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
651 --interp-prefix=%{_libdir}/qemu/lib-%%M \
652 %if %{without gtk2} && %{without gtk3}
655 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
658 # note: CONFIG_QEMU_HELPERDIR is used when compiling, libexecdir when installing;
659 # --libexecdir in configure is nop
662 CONFIG_QEMU_HELPERDIR="%{_libdir}" \
663 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
665 # rebuild patched vesa tables with additional widescreen modes.
666 %{__make} -C roms/vgabios stdvga-bios
668 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
671 rm -rf $RPM_BUILD_ROOT
672 install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
673 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
674 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
677 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
678 DESTDIR=$RPM_BUILD_ROOT \
679 libexecdir=%{_libdir}
681 install -d $RPM_BUILD_ROOT%{_sysconfdir}
682 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
687 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
689 %ifarch %{ix86} %{x8664}
690 install -p scripts/kvm/kvm_stat $RPM_BUILD_ROOT%{_bindir}
691 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
692 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
695 install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
696 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
697 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
699 install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
700 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
701 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
703 # For the qemu-guest-agent subpackage install the systemd
704 # service and udev rules.
705 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
706 install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
709 %ifnarch %{ix86} %{x8664}
718 %ifnarch sparc sparc64
725 test $i = dummy && continue
726 grep /$i:\$ %{SOURCE2} > $RPM_BUILD_ROOT/usr/lib/binfmt.d/$i.conf
730 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
731 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
733 # install patched vesa tables with additional widescreen modes.
734 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
736 %if %{with gtk2} || %{with gtk3}
737 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
738 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
745 rm -rf $RPM_BUILD_ROOT
749 %groupadd -g 276 qemu
750 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
753 %systemd_post ksm.service
754 %systemd_post ksmtuned.service
757 %systemd_preun ksm.service
758 %systemd_preun ksmtuned.service
761 if [ "$1" = "0" ]; then
768 %triggerpostun common -- qemu-common < 1.6.1-4
769 %systemd_trigger ksm.service
770 %systemd_trigger ksmtuned.service
773 %systemd_service_restart systemd-binfmt.service
776 %systemd_service_restart systemd-binfmt.service
782 %systemd_preun qemu-guest-agent.service
788 %defattr(644,root,root,755)
790 %files common -f %{name}.lang
791 %defattr(644,root,root,755)
792 %doc README qemu-doc.html qemu-tech.html qmp-commands.txt
793 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
794 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu/target-*.conf
795 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
796 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
797 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
798 %{systemdunitdir}/ksm.service
799 %{systemdunitdir}/ksmtuned.service
800 %dir %{_sysconfdir}/qemu
801 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
802 %attr(755,root,root) %{_bindir}/qemu-nbd
803 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
804 %attr(755,root,root) %{_sbindir}/ksmctl
805 %attr(755,root,root) %{_sbindir}/ksmtuned
806 %{_mandir}/man1/qemu.1*
807 %{_mandir}/man1/virtfs-proxy-helper.1*
808 %{_mandir}/man8/qemu-nbd.8*
810 %dir %{_datadir}/qemu
811 %{_datadir}/%{name}/keymaps
812 %{_datadir}/%{name}/qemu-icon.bmp
813 # various bios images
814 %{_datadir}/%{name}/*.aml
815 %{_datadir}/%{name}/*.bin
816 %{_datadir}/%{name}/*.rom
817 %{_datadir}/%{name}/*.dtb
818 %{_datadir}/%{name}/qemu_logo_no_text.svg
819 %{_datadir}/%{name}/openbios-ppc
820 %{_datadir}/%{name}/openbios-sparc*
821 %{_datadir}/%{name}/palcode-clipper
822 %{_datadir}/%{name}/s390-ccw.img
825 %defattr(644,root,root,755)
826 %attr(755,root,root) %{_bindir}/qemu-img
827 %{_mandir}/man1/qemu-img.1*
830 %defattr(644,root,root,755)
831 /usr/lib/binfmt.d/qemu-*.conf
832 %attr(755,root,root) %{_bindir}/qemu-alpha
833 %attr(755,root,root) %{_bindir}/qemu-arm
834 %attr(755,root,root) %{_bindir}/qemu-armeb
835 %attr(755,root,root) %{_bindir}/qemu-cris
836 %attr(755,root,root) %{_bindir}/qemu-i386
837 %attr(755,root,root) %{_bindir}/qemu-io
838 %attr(755,root,root) %{_bindir}/qemu-m68k
839 %attr(755,root,root) %{_bindir}/qemu-microblaze
840 %attr(755,root,root) %{_bindir}/qemu-microblazeel
841 %attr(755,root,root) %{_bindir}/qemu-mips
842 %attr(755,root,root) %{_bindir}/qemu-mipsel
843 %attr(755,root,root) %{_bindir}/qemu-mips64
844 %attr(755,root,root) %{_bindir}/qemu-mips64el
845 %attr(755,root,root) %{_bindir}/qemu-mipsn32
846 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
847 %attr(755,root,root) %{_bindir}/qemu-or32
848 %attr(755,root,root) %{_bindir}/qemu-ppc
849 %attr(755,root,root) %{_bindir}/qemu-ppc64
850 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
851 %attr(755,root,root) %{_bindir}/qemu-s390x
852 %attr(755,root,root) %{_bindir}/qemu-sh4
853 %attr(755,root,root) %{_bindir}/qemu-sh4eb
854 %attr(755,root,root) %{_bindir}/qemu-sparc
855 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
856 %attr(755,root,root) %{_bindir}/qemu-sparc64
857 %attr(755,root,root) %{_bindir}/qemu-unicore32
858 %attr(755,root,root) %{_bindir}/qemu-x86_64
861 %defattr(644,root,root,755)
862 %attr(755,root,root) %{_bindir}/qemu-system-alpha
865 %defattr(644,root,root,755)
866 %attr(755,root,root) %{_bindir}/qemu-system-arm
869 %defattr(644,root,root,755)
870 %attr(755,root,root) %{_bindir}/qemu-system-cris
873 %defattr(644,root,root,755)
874 %attr(755,root,root) %{_bindir}/qemu-system-lm32
877 %defattr(644,root,root,755)
878 %attr(755,root,root) %{_bindir}/qemu-system-m68k
880 %files system-microblaze
881 %defattr(644,root,root,755)
882 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
883 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
886 %defattr(644,root,root,755)
887 %attr(755,root,root) %{_bindir}/qemu-system-mips
888 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
889 %attr(755,root,root) %{_bindir}/qemu-system-mips64
890 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
893 %defattr(644,root,root,755)
894 %attr(755,root,root) %{_bindir}/qemu-system-moxie
897 %defattr(644,root,root,755)
898 %attr(755,root,root) %{_bindir}/qemu-system-or32
901 %defattr(644,root,root,755)
902 %attr(755,root,root) %{_bindir}/qemu-system-ppc
903 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
904 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
907 %defattr(644,root,root,755)
908 %attr(755,root,root) %{_bindir}/qemu-system-s390x
911 %defattr(644,root,root,755)
912 %attr(755,root,root) %{_bindir}/qemu-system-sh4
913 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
916 %defattr(644,root,root,755)
917 %attr(755,root,root) %{_bindir}/qemu-system-sparc
918 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
920 %files system-unicore32
921 %defattr(644,root,root,755)
922 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
925 %defattr(644,root,root,755)
926 %attr(755,root,root) %{_bindir}/qemu-system-i386
927 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
928 %ifarch %{ix86} %{x8664}
929 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
930 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
931 %attr(755,root,root) %{_bindir}/kvm_stat
935 %defattr(644,root,root,755)
936 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
937 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
940 %defattr(644,root,root,755)
941 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
942 %{systemdunitdir}/qemu-guest-agent.service
943 %attr(755,root,root) %{_bindir}/qemu-ga