2 # - merge missing bits from qemu-kvm
3 # - qemu-system-ppc -hda ac-ppc.img says:
4 # qemu: could not open disk image ac-ppc.img: error "Success"
5 # qemu-0.12.2-2.x86_64.rpm - broken
6 # qemu-0.12.3-3.x86_64/qemu-0.12.4-1.x86_64 - stops on "returning from prom_init"
7 # qemu-0.15.0-2.x86_64.rpm - qemu-system-sparc/ppc booting with -kernel, -initrd options stalls in openbios prompt
8 # qemu-0.11.1-*.x86_64.rpm - OK
11 %bcond_without sdl # SDL UI and audio support
12 %bcond_without glx # OpenGL/GLX support
13 %bcond_without ceph # Ceph/RBD support
14 %bcond_without glusterfs # GlusterFS backend
15 %bcond_without rdma # RDMA-based migration support
16 %bcond_with gtk2 # GTK+ 2.x instead of 3.x
17 %bcond_without spice # SPICE support
18 %bcond_with esd # EsounD audio support
19 %bcond_without oss # OSS audio support
20 %bcond_without pulseaudio # PulseAudio audio support
21 %bcond_without xen # Xen backend driver support
23 Summary: QEMU CPU Emulator
24 Summary(pl.UTF-8): QEMU - emulator procesora
29 Group: Applications/Emulators
30 Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.bz2
31 # Source0-md5: 3a897d722457c5a895cd6ac79a28fda0
32 Source11: qemu-guest-agent.service
33 Source12: 99-qemu-guest-agent.rules
34 Patch0: %{name}-cflags.patch
35 Patch1: vgabios-widescreens.patch
36 Patch2: %{name}-whitelist.patch
37 Patch3: %{name}-system-libcacard.patch
38 # Proof of concept, for reference, do not remove
39 Patch4: %{name}-kde_virtual_workspaces_hack.patch
40 URL: http://www.qemu-project.org/
41 %{?with_opengl:BuildRequires: OpenGL-GLX-devel}
42 %{?with_sdl:BuildRequires: SDL-devel >= 1.2.1}
43 BuildRequires: alsa-lib-devel
45 BuildRequires: bluez-libs-devel
46 BuildRequires: brlapi-devel
47 %{?with_ceph:BuildRequires: ceph-devel}
48 BuildRequires: curl-devel
49 BuildRequires: cyrus-sasl-devel >= 2
50 %{?with_esd:BuildRequires: esound-devel}
51 BuildRequires: glib2-devel >= 1:2.12
52 %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
53 BuildRequires: gnutls-devel
54 BuildRequires: libaio-devel
55 BuildRequires: libcacard-devel
56 BuildRequires: libcap-devel
57 BuildRequires: libcap-ng-devel
58 BuildRequires: libfdt-devel
59 %{?with_rdma:BuildRequires: libibverbs-devel}
60 BuildRequires: libiscsi-devel
61 BuildRequires: libjpeg-devel
62 BuildRequires: libpng-devel
63 %{?with_rdma:BuildRequires: librdmacm-devel}
64 BuildRequires: libseccomp-devel
65 BuildRequires: libssh2-devel >= 1.2.8
66 # for usb passthrough, when available
67 #BuildRequires: libusb-devel >= 1.0.13
68 BuildRequires: libuuid-devel
69 BuildRequires: ncurses-devel
70 BuildRequires: nss-devel >= 3.12.8
71 BuildRequires: perl-Encode
72 BuildRequires: perl-tools-pod
73 BuildRequires: pkgconfig
74 %{?with_pulseaudio:BuildRequires: pulseaudio-devel}
75 BuildRequires: rpmbuild(macros) >= 1.202
76 BuildRequires: sed >= 4.0
78 BuildRequires: spice-protocol >= 0.12.0
79 BuildRequires: spice-server-devel >= 0.12.0
81 BuildRequires: texi2html
82 BuildRequires: texinfo
83 BuildRequires: usbredir-devel >= 0.6
84 BuildRequires: vde2-devel
86 %{?with_xen:BuildRequires: xen-devel >= 3.4}
87 BuildRequires: xfsprogs-devel
88 BuildRequires: xorg-lib-libX11-devel
89 BuildRequires: zlib-devel
91 BuildRequires: gtk+2-devel >= 2:2.18.0
92 BuildRequires: vte0-devel >= 0.24.0
94 BuildRequires: gtk+3-devel >= 3.0.0
95 BuildRequires: vte-devel >= 0.32.0
97 Requires: %{name}-img = %{version}-%{release}
98 Requires: %{name}-system-alpha = %{version}-%{release}
99 Requires: %{name}-system-arm = %{version}-%{release}
100 Requires: %{name}-system-cris = %{version}-%{release}
101 Requires: %{name}-system-lm32 = %{version}-%{release}
102 Requires: %{name}-system-m68k = %{version}-%{release}
103 Requires: %{name}-system-microblaze = %{version}-%{release}
104 Requires: %{name}-system-mips = %{version}-%{release}
105 Requires: %{name}-system-moxie = %{version}-%{release}
106 Requires: %{name}-system-or32 = %{version}-%{release}
107 Requires: %{name}-system-ppc = %{version}-%{release}
108 Requires: %{name}-system-s390x = %{version}-%{release}
109 Requires: %{name}-system-sh4 = %{version}-%{release}
110 Requires: %{name}-system-sparc = %{version}-%{release}
111 Requires: %{name}-system-unicore32 = %{version}-%{release}
112 Requires: %{name}-system-x86 = %{version}-%{release}
113 Requires: %{name}-system-xtensa = %{version}-%{release}
114 Requires: %{name}-user = %{version}-%{release}
116 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
118 %define systempkg_req \
119 Requires: SDL >= 1.2.1 \
120 Requires: usbredir >= 0.6 \
122 Requires: gtk+2 >= 2:2.18.0 \
123 Requires: vte0 >= 0.24.0 \
125 Requires: gtk+3 >= 3.0.0 \
126 Requires: vte >= 0.32.0 \
129 # some PPC/SPARC boot image in ELF format
130 %define _noautostrip .*%{_datadir}/qemu/.*-.*
133 QEMU is a FAST! processor emulator. By using dynamic translation it
134 achieves a reasonnable speed while being easy to port on new host
135 CPUs. QEMU has two operating modes:
137 - User mode emulation. In this mode, QEMU can launch Linux processes
138 compiled for one CPU on another CPU. Linux system calls are converted
139 because of endianness and 32/64 bit mismatches. Wine (Windows
140 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
142 - Full system emulation. In this mode, QEMU emulates a full system,
143 including a processor and various peripherials. It can also be used to
144 provide virtual hosting of several virtual PC on a single server.
146 %description -l pl.UTF-8
147 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
148 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
149 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
151 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
152 procesy linuksowe skompilowane dla jednego procesora na innym
153 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
154 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
155 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
158 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
159 włączając w to procesor i różne urządzenia peryferyjne. Może być także
160 używane do wirtualnego hostowania kilku wirtualnych pecetów na
161 pojedynczym serwerze.
164 Summary: QEMU common files needed by all QEMU targets
165 Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
166 Group: Development/Tools
167 Requires(postun): /usr/sbin/groupdel
168 Requires(postun): /usr/sbin/userdel
169 Requires(pre): /bin/id
170 Requires(pre): /usr/bin/getgid
171 Requires(pre): /usr/sbin/groupadd
172 Requires(pre): /usr/sbin/useradd
173 Requires: glib2 >= 1:2.12
174 Requires: libssh2 >= 1.2.8
175 Provides: group(qemu)
177 Obsoletes: qemu-kvm-common
178 Conflicts: qemu < 1.0-2
181 QEMU is a generic and open source processor emulator which achieves a
182 good emulation speed by using dynamic translation.
184 This package provides the common files needed by all QEMU targets.
186 %description common -l pl.UTF-8
187 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
188 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
190 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
194 Summary: QEMU command line tool for manipulating disk images
195 Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
196 Group: Development/Tools
197 Conflicts: qemu < 1.0-2
198 Obsoletes: qemu-kvm-img
201 This package provides a command line tool for manipulating disk
204 %description img -l pl.UTF-8
205 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
209 Summary: QEMU user mode emulation of qemu targets
210 Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
211 Group: Development/Tools
212 Requires: %{name}-common = %{version}-%{release}
213 Obsoletes: qemu-kvm-user
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 user mode emulation of QEMU targets.
221 %description user -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 emulację trybu użytkownika środowisk QEMU.
227 %package system-alpha
228 Summary: QEMU system emulator for Alpha
229 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
230 Group: Development/Tools
231 Requires: %{name}-common = %{version}-%{release}
233 Obsoletes: qemu-kvm-system-alpha
235 %description system-alpha
236 QEMU is a generic and open source processor emulator which achieves a
237 good emulation speed by using dynamic translation.
239 This package provides the system emulator with Alpha CPU.
241 %description system-alpha -l pl.UTF-8
242 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
243 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
245 Ten pakiet zawiera emulator systemu z procesorem Alpha.
248 Summary: QEMU system emulator for ARM
249 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
250 Group: Development/Tools
251 Requires: %{name}-common = %{version}-%{release}
253 Obsoletes: qemu-kvm-system-arm
255 %description system-arm
256 QEMU is a generic and open source processor emulator which achieves a
257 good emulation speed by using dynamic translation.
259 This package provides the system emulator for ARM.
261 %description system-arm -l pl.UTF-8
262 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
263 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
265 Ten pakiet zawiera emulator systemu z procesorem ARM.
268 Summary: QEMU system emulator for CRIS
269 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
270 Group: Development/Tools
271 Requires: %{name}-common = %{version}-%{release}
273 Obsoletes: qemu-kvm-system-cris
275 %description system-cris
276 QEMU is a generic and open source processor emulator which achieves a
277 good emulation speed by using dynamic translation.
279 This package provides the system emulator with CRIS CPU.
281 %description system-cris -l pl.UTF-8
282 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
283 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
285 Ten pakiet zawiera emulator systemu z procesorem CRIS.
288 Summary: QEMU system emulator for LM32
289 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
290 Group: Development/Tools
291 Requires: %{name}-common = %{version}-%{release}
293 Obsoletes: qemu-kvm-system-lm32
295 %description system-lm32
296 QEMU is a generic and open source processor emulator which achieves a
297 good emulation speed by using dynamic translation.
299 This package provides the system emulator with LM32 CPU.
301 %description system-lm32 -l pl.UTF-8
302 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
303 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
305 Ten pakiet zawiera emulator systemu z procesorem LM32.
308 Summary: QEMU system emulator for m68k
309 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
310 Group: Development/Tools
311 Requires: %{name}-common = %{version}-%{release}
313 Obsoletes: qemu-kvm-system-m68k
315 %description system-m68k
316 QEMU is a generic and open source processor emulator which achieves a
317 good emulation speed by using dynamic translation.
319 This package provides the system emulator with m68k CPU.
321 %description system-m68k -l pl.UTF-8
322 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
323 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
325 Ten pakiet zawiera emulator systemu z procesorem m68k.
327 %package system-microblaze
328 Summary: QEMU system emulator for MicroBlaze
329 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
330 Group: Development/Tools
331 Requires: %{name}-common = %{version}-%{release}
333 Obsoletes: qemu-kvm-system-microblaze
335 %description system-microblaze
336 QEMU is a generic and open source processor emulator which achieves a
337 good emulation speed by using dynamic translation.
339 This package provides the system emulator with MicroBlaze CPU.
341 %description system-microblaze -l pl.UTF-8
342 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
343 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
345 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
348 Summary: QEMU system emulator for MIPS
349 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
350 Group: Development/Tools
351 Requires: %{name}-common = %{version}-%{release}
353 Obsoletes: qemu-kvm-system-mips
355 %description system-mips
356 QEMU is a generic and open source processor emulator which achieves a
357 good emulation speed by using dynamic translation.
359 This package provides the system emulator with MIPS CPU.
361 %description system-mips -l pl.UTF-8
362 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
363 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
365 Ten pakiet zawiera emulator systemu z procesorem MIPS.
367 %package system-moxie
368 Summary: QEMU system emulator for Moxie
369 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
370 Group: Development/Tools
371 Requires: %{name}-common = %{version}-%{release}
374 %description system-moxie
375 QEMU is a generic and open source processor emulator which achieves a
376 good emulation speed by using dynamic translation.
378 This package provides the system emulator with Moxie CPU.
380 %description system-moxie -l pl.UTF-8
381 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
382 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
384 Ten pakiet zawiera emulator systemu z procesorem Moxie.
387 Summary: QEMU system emulator for OpenRISC
388 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
389 Group: Development/Tools
390 Requires: %{name}-common = %{version}-%{release}
392 Obsoletes: qemu-kvm-system-or32
394 %description system-or32
395 QEMU is a generic and open source processor emulator which achieves a
396 good emulation speed by using dynamic translation.
398 This package provides the system emulator with OpenRISC CPU.
400 %description system-or32 -l pl.UTF-8
401 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
402 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
404 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
407 Summary: QEMU system emulator for PowerPC
408 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
409 Group: Development/Tools
410 Requires: %{name}-common = %{version}-%{release}
412 Obsoletes: qemu-kvm-system-ppc
414 %description system-ppc
415 QEMU is a generic and open source processor emulator which achieves a
416 good emulation speed by using dynamic translation.
418 This package provides the system emulator with PowerPC CPU.
420 %description system-ppc -l pl.UTF-8
421 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
422 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
424 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
426 %package system-s390x
427 Summary: QEMU system emulator for S390
428 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
429 Group: Development/Tools
430 Requires: %{name}-common = %{version}-%{release}
432 Obsoletes: qemu-kvm-system-s390x
434 %description system-s390x
435 QEMU is a generic and open source processor emulator which achieves a
436 good emulation speed by using dynamic translation.
438 This package provides the system emulator with S390 CPU.
440 %description system-s390x -l pl.UTF-8
441 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
442 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
444 Ten pakiet zawiera emulator systemu z procesorem S390.
447 Summary: QEMU system emulator for SH4
448 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
449 Group: Development/Tools
450 Requires: %{name}-common = %{version}-%{release}
452 Obsoletes: qemu-kvm-system-sh4
454 %description system-sh4
455 QEMU is a generic and open source processor emulator which achieves a
456 good emulation speed by using dynamic translation.
458 This package provides the system emulator with SH4 CPU.
460 %description system-sh4 -l pl.UTF-8
461 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
462 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
464 Ten pakiet zawiera emulator systemu z procesorem SH4.
466 %package system-sparc
467 Summary: QEMU system emulator for SPARC
468 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
469 Group: Development/Tools
470 Requires: %{name}-common = %{version}-%{release}
472 Obsoletes: qemu-kvm-system-sparc
474 %description system-sparc
475 QEMU is a generic and open source processor emulator which achieves a
476 good emulation speed by using dynamic translation.
478 This package provides the system emulator with SPARC/SPARC64 CPU.
480 %description system-sparc -l pl.UTF-8
481 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
482 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
484 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
486 %package system-unicore32
487 Summary: QEMU system emulator for UniCore32
488 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
489 Group: Development/Tools
490 Requires: %{name}-common = %{version}-%{release}
492 Obsoletes: qemu-kvm-system-unicore32
494 %description system-unicore32
495 QEMU is a generic and open source processor emulator which achieves a
496 good emulation speed by using dynamic translation.
498 This package provides the system emulator with UniCore32 CPU.
500 %description system-unicore32 -l pl.UTF-8
501 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
502 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
504 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
507 Summary: QEMU system emulator for x86
508 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
509 Group: Development/Tools
510 Requires: %{name}-common = %{version}-%{release}
512 Obsoletes: qemu-kvm-system-x86
514 %description system-x86
515 QEMU is a generic and open source processor emulator which achieves a
516 good emulation speed by using dynamic translation.
518 %description system-x86 -l pl.UTF-8
519 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
520 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
522 %package system-xtensa
523 Summary: QEMU system emulator for Xtensa
524 Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
525 Group: Development/Tools
526 Requires: %{name}-common = %{version}-%{release}
528 Obsoletes: qemu-kvm-system-xtensa
530 %description system-xtensa
531 QEMU is a generic and open source processor emulator which achieves a
532 good emulation speed by using dynamic translation.
534 This package provides the system emulator with Xtensa CPU.
536 %description system-xtensa -l pl.UTF-8
537 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
538 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
540 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
543 Summary: QEMU guest agent
544 Summary(pl.UTF-8): Agent gościa QEMU
546 Requires(post,preun,postun): systemd-units >= 38
547 Requires: glib2 >= 1:2.12
548 Requires: systemd-units >= 38
549 Obsoletes: qemu-kvm-guest-agent
551 %description guest-agent
552 QEMU is a generic and open source processor emulator which achieves
553 a good emulation speed by using dynamic translation.
555 This package provides an agent to run inside guests, which
556 communicates with the host over a virtio-serial channel named
557 "org.qemu.guest_agent.0".
559 This package does not need to be installed on the host OS.
561 %description guest-agent -l pl.UTF-8
562 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
563 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
565 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
566 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
567 "org.qemu.guest_agent.0".
569 Ten pakiet nie musi być zainstalowany w systemie hosta.
578 %{__mv} libcacard libcacard-use-system-lib
580 # workaround for conflict with alsa/error.h
581 ln -s ../error.h qapi/error.h
585 --extra-cflags="%{rpmcflags} -I/usr/include/ncurses" \
586 --extra-ldflags="%{rpmldflags}" \
587 --prefix=%{_prefix} \
588 --sysconfdir=%{_sysconfdir} \
590 --host-cc="%{__cc}" \
600 %{__enable_disable glusterfs} \
603 %{__enable_disable glx} \
604 %{__enable_disable ceph rbd} \
605 %{__enable_disable rdma} \
606 %{__enable_disable sdl} \
608 %{__enable_disable spice} \
609 --enable-smartcard-nss \
619 %{__enable_disable xen} \
620 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
621 --interp-prefix=%{_libdir}/qemu/lib-%%M \
622 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
624 # note: CONFIG_QEMU_HELPERDIR is used when compiling, libexecdir when installing;
625 # --libexecdir in configure is nop
628 CONFIG_QEMU_HELPERDIR="%{_libdir}"
630 # rebuild patched vesa tables with additional widescreen modes.
631 %{__make} -C roms/vgabios stdvga-bios
634 rm -rf $RPM_BUILD_ROOT
637 DESTDIR=$RPM_BUILD_ROOT \
638 libexecdir=%{_libdir}
640 install -d $RPM_BUILD_ROOT%{_sysconfdir}
641 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
646 # For the qemu-guest-agent subpackage install the systemd
647 # service and udev rules.
648 install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
649 install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
652 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
653 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
655 # install patched vesa tables with additional widescreen modes.
656 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
658 %{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{de_DE,de}
659 %{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{fr_FR,fr}
663 rm -rf $RPM_BUILD_ROOT
666 %groupadd -g 276 qemu
667 %useradd -u 276 -g qemu -c "QEMU User" qemu
670 if [ "$1" = "0" ]; then
679 %systemd_preun qemu-guest-agent.service
685 %defattr(644,root,root,755)
687 %files common -f %{name}.lang
688 %defattr(644,root,root,755)
689 %doc README qemu-doc.html qemu-tech.html QMP/qmp-commands.txt
690 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
691 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu/target-*.conf
692 %dir %{_sysconfdir}/qemu
693 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
694 %attr(755,root,root) %{_bindir}/qemu-nbd
695 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
696 %{_mandir}/man1/qemu.1*
697 %{_mandir}/man1/virtfs-proxy-helper.1*
698 %{_mandir}/man8/qemu-nbd.8*
700 %dir %{_datadir}/qemu
701 %{_datadir}/%{name}/keymaps
702 %{_datadir}/%{name}/qemu-icon.bmp
703 # various bios images
704 %{_datadir}/%{name}/*.aml
705 %{_datadir}/%{name}/*.bin
706 %{_datadir}/%{name}/*.rom
707 %{_datadir}/%{name}/*.dtb
708 %{_datadir}/%{name}/qemu_logo_no_text.svg
709 %{_datadir}/%{name}/openbios-ppc
710 %{_datadir}/%{name}/openbios-sparc*
711 %{_datadir}/%{name}/palcode-clipper
712 %{_datadir}/%{name}/s390-ccw.img
715 %defattr(644,root,root,755)
716 %attr(755,root,root) %{_bindir}/qemu-img
717 %{_mandir}/man1/qemu-img.1*
720 %defattr(644,root,root,755)
721 %attr(755,root,root) %{_bindir}/qemu-alpha
722 %attr(755,root,root) %{_bindir}/qemu-arm
723 %attr(755,root,root) %{_bindir}/qemu-armeb
724 %attr(755,root,root) %{_bindir}/qemu-cris
725 %attr(755,root,root) %{_bindir}/qemu-i386
726 %attr(755,root,root) %{_bindir}/qemu-io
727 %attr(755,root,root) %{_bindir}/qemu-m68k
728 %attr(755,root,root) %{_bindir}/qemu-microblaze
729 %attr(755,root,root) %{_bindir}/qemu-microblazeel
730 %attr(755,root,root) %{_bindir}/qemu-mips
731 %attr(755,root,root) %{_bindir}/qemu-mipsel
732 %attr(755,root,root) %{_bindir}/qemu-mips64
733 %attr(755,root,root) %{_bindir}/qemu-mips64el
734 %attr(755,root,root) %{_bindir}/qemu-mipsn32
735 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
736 %attr(755,root,root) %{_bindir}/qemu-or32
737 %attr(755,root,root) %{_bindir}/qemu-ppc
738 %attr(755,root,root) %{_bindir}/qemu-ppc64
739 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
740 %attr(755,root,root) %{_bindir}/qemu-s390x
741 %attr(755,root,root) %{_bindir}/qemu-sh4
742 %attr(755,root,root) %{_bindir}/qemu-sh4eb
743 %attr(755,root,root) %{_bindir}/qemu-sparc
744 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
745 %attr(755,root,root) %{_bindir}/qemu-sparc64
746 %attr(755,root,root) %{_bindir}/qemu-unicore32
747 %attr(755,root,root) %{_bindir}/qemu-x86_64
750 %defattr(644,root,root,755)
751 %attr(755,root,root) %{_bindir}/qemu-system-alpha
754 %defattr(644,root,root,755)
755 %attr(755,root,root) %{_bindir}/qemu-system-arm
758 %defattr(644,root,root,755)
759 %attr(755,root,root) %{_bindir}/qemu-system-cris
762 %defattr(644,root,root,755)
763 %attr(755,root,root) %{_bindir}/qemu-system-lm32
766 %defattr(644,root,root,755)
767 %attr(755,root,root) %{_bindir}/qemu-system-m68k
769 %files system-microblaze
770 %defattr(644,root,root,755)
771 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
772 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
775 %defattr(644,root,root,755)
776 %attr(755,root,root) %{_bindir}/qemu-system-mips
777 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
778 %attr(755,root,root) %{_bindir}/qemu-system-mips64
779 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
782 %defattr(644,root,root,755)
783 %attr(755,root,root) %{_bindir}/qemu-system-moxie
786 %defattr(644,root,root,755)
787 %attr(755,root,root) %{_bindir}/qemu-system-or32
790 %defattr(644,root,root,755)
791 %attr(755,root,root) %{_bindir}/qemu-system-ppc
792 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
793 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
796 %defattr(644,root,root,755)
797 %attr(755,root,root) %{_bindir}/qemu-system-s390x
800 %defattr(644,root,root,755)
801 %attr(755,root,root) %{_bindir}/qemu-system-sh4
802 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
805 %defattr(644,root,root,755)
806 %attr(755,root,root) %{_bindir}/qemu-system-sparc
807 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
809 %files system-unicore32
810 %defattr(644,root,root,755)
811 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
814 %defattr(644,root,root,755)
815 %attr(755,root,root) %{_bindir}/qemu-system-i386
816 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
819 %defattr(644,root,root,755)
820 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
821 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
824 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
825 %{systemdunitdir}/qemu-guest-agent.service
826 %attr(755,root,root) %{_bindir}/qemu-ga