]> TLD Linux GIT Repositories - packages/qemu.git/blob - qemu.spec
- updated to 2.8.0, partial PLD merge
[packages/qemu.git] / qemu.spec
1 #
2 # Conditional build:
3 %bcond_without  sdl             # SDL UI and audio support
4 %bcond_without  gl              # Don't require gl deps
5 %bcond_without  ceph            # Ceph/RBD support
6 %bcond_without  glusterfs       # GlusterFS backend
7 %bcond_without  rdma            # RDMA-based migration support
8 %bcond_with     xseg            # Archipelago backend [non-distributable: GPLv3+ vs GPLv2-only]
9 %bcond_with     gtk2            # GTK+ 2.x instead of 3.x
10 %bcond_without  gtk3            # Do not build GTK+ UI
11 %bcond_without  vte             # VTE support in GTK+ UI
12 %bcond_without  spice           # SPICE support
13 %bcond_with     esd             # EsounD audio support
14 %bcond_without  oss             # OSS audio support
15 %bcond_without  pulseaudio      # PulseAudio audio support
16 %bcond_without  xen             # Xen backend driver support
17 %bcond_without  bluetooth       # bluetooth support
18 %bcond_with     brlapi          # brlapi support
19 %bcond_without  smartcard       # smartcard-nss support
20 %bcond_without  iscsi           # iscsi support
21 %bcond_without  libnfs          # NFS support
22 %bcond_without  seccomp         # seccomp support
23 %bcond_without  usbredir        # usb network redirection support
24 %bcond_without  system_seabios  # system seabios binary
25 %bcond_without  snappy          # snappy compression library
26 %bcond_without  user_static     # build linux-user static packages
27 %bcond_with     lttng           # lttng-ust trace backend support
28 %bcond_with     systemtap       # SystemTap/dtrace trace backend support
29
30 %if %{with gtk2}
31 %undefine with_gtk3
32 %endif
33
34 %ifarch x32
35 %undefine       with_xen
36 %endif
37
38 Summary:        QEMU CPU Emulator
39 Summary(pl.UTF-8):      QEMU - emulator procesora
40 Name:           qemu
41 Version:        2.8.0
42 Release:        1
43 License:        GPL v2
44 Group:          Applications/Emulators
45 Source0:        http://wiki.qemu-project.org/download/%{name}-%{version}.tar.bz2
46 # Source0-md5:  17940dce063b6ce450a12e719a6c9c43
47 # Loads kvm kernel modules at boot
48 Source3:        kvm-modules-load.conf
49 # Creates /dev/kvm
50 Source4:        80-kvm.rules
51 # KSM control scripts
52 Source6:        ksm.sysconfig
53 Source7:        ksmctl.c
54 Source9:        ksmtuned
55 Source10:       ksmtuned.conf
56 Source12:       99-%{name}-guest-agent.rules
57 Patch0:         %{name}-cflags.patch
58 Patch1:         vgabios-widescreens.patch
59 Patch2:         %{name}-whitelist.patch
60 Patch3:         %{name}-user-execve.patch
61 Patch4:         %{name}-xattr.patch
62 Patch5:         libjpeg-boolean.patch
63 Patch6:         x32.patch
64 URL:            http://www.qemu-project.org/
65 %{?with_gl:BuildRequires:       OpenGL-GLX-devel}
66 %{?with_gl:BuildRequires:       OpenGL-devel}
67 %{?with_sdl:BuildRequires:      SDL2-devel >= 2.0}
68 BuildRequires:  alsa-lib-devel
69 BuildRequires:  bcc >= 0.16.21-2
70 %{?with_bluetooth:BuildRequires:        bluez-libs-devel}
71 %{?with_brlapi:BuildRequires:   brlapi-devel}
72 BuildRequires:  bzip2-devel
73 %{?with_ceph:BuildRequires:     ceph-devel}
74 BuildRequires:  curl-devel
75 BuildRequires:  cyrus-sasl-devel >= 2
76 %{?with_esd:BuildRequires:      esound-devel}
77 BuildRequires:  glib2-devel >= 1:2.22
78 %{?with_glusterfs:BuildRequires:        glusterfs-devel >= 3.4}
79 BuildRequires:  gnutls-devel > 2.10.0
80 BuildRequires:  libaio-devel
81 %{?with_smartcard:BuildRequires:        libcacard-devel}
82 BuildRequires:  libcap-devel
83 BuildRequires:  libcap-ng-devel
84 %{?with_gl:BuildRequires:       libepoxy-devel}
85 BuildRequires:  libfdt-devel
86 %{?with_rdma:BuildRequires:     libibverbs-devel}
87 %{?with_iscsi:BuildRequires:    libiscsi-devel >= 1.9.0}
88 BuildRequires:  libjpeg-devel
89 %{?with_libnfs:BuildRequires:   libnfs-devel >= 1.9.3}
90 BuildRequires:  libpng-devel
91 %{?with_rdma:BuildRequires:     librdmacm-devel}
92 %{?with_seccomp:BuildRequires:  libseccomp-devel >= 2.1.1}
93 BuildRequires:  libssh2-devel >= 1.2.8
94 BuildRequires:  libusb-devel >= 1.0.13
95 BuildRequires:  libuuid-devel
96 %{?with_xseg:BuildRequires:     libxseg-devel}
97 %{?with_lttng:BuildRequires:    lttng-ust-devel}
98 BuildRequires:  lzo-devel >= 2
99 BuildRequires:  ncurses-devel
100 %{?with_smartcard:BuildRequires:        nss-devel >= 1:3.12.8}
101 BuildRequires:  numactl-devel
102 BuildRequires:  perl-Encode
103 BuildRequires:  perl-tools-pod
104 BuildRequires:  pixman-devel >= 0.21.8
105 BuildRequires:  pkgconfig
106 %{?with_pulseaudio:BuildRequires:       pulseaudio-devel}
107 BuildRequires:  rpmbuild(macros) >= 1.644
108 %{?with_system_seabios:BuildRequires:   seabios}
109 BuildRequires:  sed >= 4.0
110 %{?with_snappy:BuildRequires:   snappy-devel}
111 %if %{with spice}
112 BuildRequires:  spice-protocol >= 0.12.3
113 BuildRequires:  spice-server-devel >= 0.12.0
114 %endif
115 %{?with_systemtap:BuildRequires:        systemtap-sdt-devel}
116 BuildRequires:  texi2html
117 BuildRequires:  texinfo
118 %{?with_usbredir:BuildRequires: usbredir-devel >= 0.6}
119 %{?with_lttng:BuildRequires:    userspace-rcu-devel}
120 BuildRequires:  vde2-devel
121 BuildRequires:  which
122 %{?with_xen:BuildRequires:      xen-devel >= 3.4}
123 BuildRequires:  xfsprogs-devel
124 BuildRequires:  xorg-lib-libX11-devel
125 BuildRequires:  zlib-devel
126 %if %{with gtk2}
127 BuildRequires:  gtk+2-devel >= 2:2.18.0
128 %{?with_vte:BuildRequires:      vte0-devel >= 0.24.0}
129 %endif
130 %if %{with gtk3}
131 BuildRequires:  gtk+3-devel >= 3.0.0
132 %{?with_vte:BuildRequires:      vte2.90-devel >= 0.32.0}
133 %endif
134 %if %{with user_static}
135 BuildRequires:  glib2-static
136 BuildRequires:  glibc-static
137 BuildRequires:  pcre-static
138 BuildRequires:  zlib-static
139 %endif
140 Requires:       %{name}-img = %{version}-%{release}
141 Requires:       %{name}-system-aarch64 = %{version}-%{release}
142 Requires:       %{name}-system-alpha = %{version}-%{release}
143 Requires:       %{name}-system-arm = %{version}-%{release}
144 Requires:       %{name}-system-cris = %{version}-%{release}
145 Requires:       %{name}-system-lm32 = %{version}-%{release}
146 Requires:       %{name}-system-m68k = %{version}-%{release}
147 Requires:       %{name}-system-microblaze = %{version}-%{release}
148 Requires:       %{name}-system-mips = %{version}-%{release}
149 Requires:       %{name}-system-moxie = %{version}-%{release}
150 Requires:       %{name}-system-or32 = %{version}-%{release}
151 Requires:       %{name}-system-ppc = %{version}-%{release}
152 Requires:       %{name}-system-s390x = %{version}-%{release}
153 Requires:       %{name}-system-sh4 = %{version}-%{release}
154 Requires:       %{name}-system-sparc = %{version}-%{release}
155 Requires:       %{name}-system-tricore = %{version}-%{release}
156 Requires:       %{name}-system-unicore32 = %{version}-%{release}
157 Requires:       %{name}-system-x86 = %{version}-%{release}
158 Requires:       %{name}-system-xtensa = %{version}-%{release}
159 Requires:       %{name}-user = %{version}-%{release}
160 Obsoletes:      qemu-kvm
161 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
162
163 %define systempkg_req \
164 %if %{with sdl} \
165 Requires:       SDL2 \
166 %endif \
167 %if %{with seccomp} \
168 Requires:       libseccomp >= 2.1.0 \
169 %endif \
170 Requires:       libusb >= 1.0.13 \
171 Requires:       pixman >= 0.21.8 \
172 %if %{with usbredir} \
173 Requires:       usbredir >= 0.6 \
174 %endif \
175 %if %{with gtk2} \
176 Requires:       gtk+2 >= 2:2.18.0 \
177 %{?with_vte:Requires:   vte0 >= 0.24.0} \
178 %endif \
179 %if %{with gtk3} \
180 Requires:       gtk+3 >= 3.0.0 \
181 %{?with_vte:Requires:   vte2.90 >= 0.32.0} \
182 %endif
183
184 # don't strip/chrpath anything in there; these are boot images, roms etc
185 %define         _noautostrip    .*%{_datadir}/qemu/.*
186 %define         _noautochrpath  .*%{_datadir}/qemu/.*
187
188 %description
189 QEMU is a FAST! processor emulator. By using dynamic translation it
190 achieves a reasonnable speed while being easy to port on new host
191 CPUs. QEMU has two operating modes:
192
193 - User mode emulation. In this mode, QEMU can launch Linux processes
194   compiled for one CPU on another CPU. Linux system calls are converted
195   because of endianness and 32/64 bit mismatches. Wine (Windows
196   emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
197
198 - Full system emulation. In this mode, QEMU emulates a full system,
199   including a processor and various peripherials. It can also be used to
200   provide virtual hosting of several virtual PC on a single server.
201
202 %description -l pl.UTF-8
203 QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
204 tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
205 aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
206
207 - Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
208   procesy linuksowe skompilowane dla jednego procesora na innym
209   procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
210   niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
211   słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
212   cele QEMU.
213
214 - Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
215   włączając w to procesor i różne urządzenia peryferyjne. Może być także
216   używane do wirtualnego hostowania kilku wirtualnych pecetów na
217   pojedynczym serwerze.
218
219 %package common
220 Summary:        QEMU common files needed by all QEMU targets
221 Summary(pl.UTF-8):      Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
222 Group:          Development/Tools
223 Requires(postun):       /usr/sbin/groupdel
224 Requires(postun):       /usr/sbin/userdel
225 Requires(pre):  /bin/id
226 Requires(pre):  /usr/bin/getgid
227 Requires(pre):  /usr/sbin/groupadd
228 Requires(pre):  /usr/sbin/useradd
229 Requires:       glib2 >= 1:2.22
230 Requires:       libssh2 >= 1.2.8
231 Provides:       group(qemu)
232 Provides:       user(qemu)
233 Obsoletes:      qemu-kvm-common
234 Conflicts:      qemu < 1.0-2
235
236 %description common
237 QEMU is a generic and open source processor emulator which achieves a
238 good emulation speed by using dynamic translation.
239
240 This package provides the common files needed by all QEMU targets.
241
242 %description common -l pl.UTF-8
243 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
244 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
245
246 Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
247 środowiska QEMU.
248
249 %package img
250 Summary:        QEMU command line tool for manipulating disk images
251 Summary(pl.UTF-8):      Narzędzie QEMU do operacji na obrazach dysków
252 Group:          Development/Tools
253 Obsoletes:      qemu-kvm-img
254 Conflicts:      qemu < 1.0-2
255
256 %description img
257 This package provides a command line tool for manipulating disk
258 images.
259
260 %description img -l pl.UTF-8
261 Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
262 na obrazach dysków.
263
264 %package ivshmem
265 Summary:        Client and server for QEMU ivshmem device
266 Summary(pl.UTF-8):      Klient i serwer dla urządzeia ivshmem QEMU
267 Group:          Development/Tools
268
269 %description ivshmem
270 This package provides client and server tools for QEMU's ivshmem
271 device.
272
273 %description ivshmem -l pl.UTF-8
274 Ten pakiet udostępnia działające z linii poleceń narzędzia dla
275 urządzenia ivshmem QEMU.
276
277 %package user
278 Summary:        QEMU user mode emulation of qemu targets
279 Summary(pl.UTF-8):      QEMU - emulacja trybu użytkownika środowisk qemu
280 Group:          Development/Tools
281 Requires:       %{name}-common = %{version}-%{release}
282 Obsoletes:      qemu-kvm-user
283
284 %description user
285 QEMU is a generic and open source processor emulator which achieves a
286 good emulation speed by using dynamic translation.
287
288 This package provides the user mode emulation of QEMU targets.
289
290 %description user -l pl.UTF-8
291 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
292 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
293
294 Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
295
296 %package user-static
297 Summary:        QEMU user mode emulation of qemu targets static build
298 Group:          Development/Tools
299
300 %description user-static
301 QEMU is a generic and open source processor emulator which achieves a
302 good emulation speed by using dynamic translation.
303
304 This package provides the user mode emulation of qemu targets built as
305 static binaries
306
307 %package system-aarch64
308 Summary:        QEMU system emulator for AArch64
309 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem AArch64
310 Group:          Development/Tools
311 Requires:       %{name}-common = %{version}-%{release}
312 %systempkg_req
313 Obsoletes:      qemu-kvm-system-aarch64
314
315 %description system-aarch64
316 QEMU is a generic and open source processor emulator which achieves a
317 good emulation speed by using dynamic translation.
318
319 This package provides the system emulator with AArch64 CPU.
320
321 %description system-aarch64 -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.
324
325 Ten pakiet zawiera emulator systemu z procesorem AArch64.
326
327 %package system-alpha
328 Summary:        QEMU system emulator for Alpha
329 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem Alpha
330 Group:          Development/Tools
331 Requires:       %{name}-common = %{version}-%{release}
332 %systempkg_req
333 Obsoletes:      qemu-kvm-system-alpha
334
335 %description system-alpha
336 QEMU is a generic and open source processor emulator which achieves a
337 good emulation speed by using dynamic translation.
338
339 This package provides the system emulator with Alpha CPU.
340
341 %description system-alpha -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.
344
345 Ten pakiet zawiera emulator systemu z procesorem Alpha.
346
347 %package system-arm
348 Summary:        QEMU system emulator for ARM
349 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem ARM
350 Group:          Development/Tools
351 Requires:       %{name}-common = %{version}-%{release}
352 %systempkg_req
353 Obsoletes:      qemu-kvm-system-arm
354
355 %description system-arm
356 QEMU is a generic and open source processor emulator which achieves a
357 good emulation speed by using dynamic translation.
358
359 This package provides the system emulator for ARM.
360
361 %description system-arm -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.
364
365 Ten pakiet zawiera emulator systemu z procesorem ARM.
366
367 %package system-cris
368 Summary:        QEMU system emulator for CRIS
369 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem CRIS
370 Group:          Development/Tools
371 Requires:       %{name}-common = %{version}-%{release}
372 %systempkg_req
373 Obsoletes:      qemu-kvm-system-cris
374
375 %description system-cris
376 QEMU is a generic and open source processor emulator which achieves a
377 good emulation speed by using dynamic translation.
378
379 This package provides the system emulator with CRIS CPU.
380
381 %description system-cris -l pl.UTF-8
382 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
383 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
384
385 Ten pakiet zawiera emulator systemu z procesorem CRIS.
386
387 %package system-lm32
388 Summary:        QEMU system emulator for LM32
389 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem LM32
390 Group:          Development/Tools
391 Requires:       %{name}-common = %{version}-%{release}
392 %systempkg_req
393 Obsoletes:      qemu-kvm-system-lm32
394
395 %description system-lm32
396 QEMU is a generic and open source processor emulator which achieves a
397 good emulation speed by using dynamic translation.
398
399 This package provides the system emulator with LM32 CPU.
400
401 %description system-lm32 -l pl.UTF-8
402 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
403 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
404
405 Ten pakiet zawiera emulator systemu z procesorem LM32.
406
407 %package system-m68k
408 Summary:        QEMU system emulator for m68k
409 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem m68k
410 Group:          Development/Tools
411 Requires:       %{name}-common = %{version}-%{release}
412 %systempkg_req
413 Obsoletes:      qemu-kvm-system-m68k
414
415 %description system-m68k
416 QEMU is a generic and open source processor emulator which achieves a
417 good emulation speed by using dynamic translation.
418
419 This package provides the system emulator with m68k CPU.
420
421 %description system-m68k -l pl.UTF-8
422 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
423 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
424
425 Ten pakiet zawiera emulator systemu z procesorem m68k.
426
427 %package system-microblaze
428 Summary:        QEMU system emulator for MicroBlaze
429 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem MicroBlaze
430 Group:          Development/Tools
431 Requires:       %{name}-common = %{version}-%{release}
432 %systempkg_req
433 Obsoletes:      qemu-kvm-system-microblaze
434
435 %description system-microblaze
436 QEMU is a generic and open source processor emulator which achieves a
437 good emulation speed by using dynamic translation.
438
439 This package provides the system emulator with MicroBlaze CPU.
440
441 %description system-microblaze -l pl.UTF-8
442 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
443 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
444
445 Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
446
447 %package system-mips
448 Summary:        QEMU system emulator for MIPS
449 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem MIPS
450 Group:          Development/Tools
451 Requires:       %{name}-common = %{version}-%{release}
452 %systempkg_req
453 Obsoletes:      qemu-kvm-system-mips
454
455 %description system-mips
456 QEMU is a generic and open source processor emulator which achieves a
457 good emulation speed by using dynamic translation.
458
459 This package provides the system emulator with MIPS CPU.
460
461 %description system-mips -l pl.UTF-8
462 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
463 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
464
465 Ten pakiet zawiera emulator systemu z procesorem MIPS.
466
467 %package system-moxie
468 Summary:        QEMU system emulator for Moxie
469 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem Moxie
470 Group:          Development/Tools
471 Requires:       %{name}-common = %{version}-%{release}
472 %systempkg_req
473
474 %description system-moxie
475 QEMU is a generic and open source processor emulator which achieves a
476 good emulation speed by using dynamic translation.
477
478 This package provides the system emulator with Moxie CPU.
479
480 %description system-moxie -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.
483
484 Ten pakiet zawiera emulator systemu z procesorem Moxie.
485
486 %package system-or32
487 Summary:        QEMU system emulator for OpenRISC
488 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem OpenRISC
489 Group:          Development/Tools
490 Requires:       %{name}-common = %{version}-%{release}
491 %systempkg_req
492 Obsoletes:      qemu-kvm-system-or32
493
494 %description system-or32
495 QEMU is a generic and open source processor emulator which achieves a
496 good emulation speed by using dynamic translation.
497
498 This package provides the system emulator with OpenRISC CPU.
499
500 %description system-or32 -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.
503
504 Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
505
506 %package system-ppc
507 Summary:        QEMU system emulator for PowerPC
508 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem PowerPC
509 Group:          Development/Tools
510 Requires:       %{name}-common = %{version}-%{release}
511 %systempkg_req
512 Obsoletes:      qemu-kvm-system-ppc
513
514 %description system-ppc
515 QEMU is a generic and open source processor emulator which achieves a
516 good emulation speed by using dynamic translation.
517
518 This package provides the system emulator with PowerPC CPU.
519
520 %description system-ppc -l pl.UTF-8
521 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
522 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
523
524 Ten pakiet zawiera emulator systemu z procesorem PowerPC.
525
526 %package system-s390x
527 Summary:        QEMU system emulator for S390
528 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem S390
529 Group:          Development/Tools
530 Requires:       %{name}-common = %{version}-%{release}
531 %systempkg_req
532 Obsoletes:      qemu-kvm-system-s390x
533
534 %description system-s390x
535 QEMU is a generic and open source processor emulator which achieves a
536 good emulation speed by using dynamic translation.
537
538 This package provides the system emulator with S390 CPU.
539
540 %description system-s390x -l pl.UTF-8
541 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
542 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
543
544 Ten pakiet zawiera emulator systemu z procesorem S390.
545
546 %package system-sh4
547 Summary:        QEMU system emulator for SH4
548 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem SH4
549 Group:          Development/Tools
550 Requires:       %{name}-common = %{version}-%{release}
551 %systempkg_req
552 Obsoletes:      qemu-kvm-system-sh4
553
554 %description system-sh4
555 QEMU is a generic and open source processor emulator which achieves a
556 good emulation speed by using dynamic translation.
557
558 This package provides the system emulator with SH4 CPU.
559
560 %description system-sh4 -l pl.UTF-8
561 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
562 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
563
564 Ten pakiet zawiera emulator systemu z procesorem SH4.
565
566 %package system-sparc
567 Summary:        QEMU system emulator for SPARC
568 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem SPARC
569 Group:          Development/Tools
570 Requires:       %{name}-common = %{version}-%{release}
571 %systempkg_req
572 Obsoletes:      qemu-kvm-system-sparc
573
574 %description system-sparc
575 QEMU is a generic and open source processor emulator which achieves a
576 good emulation speed by using dynamic translation.
577
578 This package provides the system emulator with SPARC/SPARC64 CPU.
579
580 %description system-sparc -l pl.UTF-8
581 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
582 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
583
584 Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
585
586 %package system-tricore
587 Summary:        QEMU system emulator for TriCore
588 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem TriCore
589 Group:          Development/Tools
590 Requires:       %{name}-common = %{version}-%{release}
591 %systempkg_req
592
593 %description system-tricore
594 QEMU is a generic and open source processor emulator which achieves a
595 good emulation speed by using dynamic translation.
596
597 This package provides the system emulator with TriCore CPU.
598
599 %description system-sparc -l pl.UTF-8
600 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
601 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
602
603 Ten pakiet zawiera emulator systemu z procesorem TriCore.
604
605 %package system-unicore32
606 Summary:        QEMU system emulator for UniCore32
607 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem UniCore32
608 Group:          Development/Tools
609 Requires:       %{name}-common = %{version}-%{release}
610 %systempkg_req
611 Obsoletes:      qemu-kvm-system-unicore32
612
613 %description system-unicore32
614 QEMU is a generic and open source processor emulator which achieves a
615 good emulation speed by using dynamic translation.
616
617 This package provides the system emulator with UniCore32 CPU.
618
619 %description system-unicore32 -l pl.UTF-8
620 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
621 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
622
623 Ten pakiet zawiera emulator systemu z procesorem UniCore32.
624
625 %package system-x86
626 Summary:        QEMU system emulator for x86
627 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem x86
628 Group:          Development/Tools
629 Requires:       %{name}-common = %{version}-%{release}
630 %{?with_system_seabios:Requires:        seabios}
631 %systempkg_req
632 Obsoletes:      kvm
633 Obsoletes:      qemu-kvm-system-x86
634
635 %description system-x86
636 QEMU is a generic and open source processor emulator which achieves a
637 good emulation speed by using dynamic translation.
638
639 %description system-x86 -l pl.UTF-8
640 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
641 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
642
643 %package system-xtensa
644 Summary:        QEMU system emulator for Xtensa
645 Summary(pl.UTF-8):      QEMU - emulator systemu z procesorem Xtensa
646 Group:          Development/Tools
647 Requires:       %{name}-common = %{version}-%{release}
648 %systempkg_req
649 Obsoletes:      qemu-kvm-system-xtensa
650
651 %description system-xtensa
652 QEMU is a generic and open source processor emulator which achieves a
653 good emulation speed by using dynamic translation.
654
655 This package provides the system emulator with Xtensa CPU.
656
657 %description system-xtensa -l pl.UTF-8
658 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
659 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
660
661 Ten pakiet zawiera emulator systemu z procesorem Xtensa.
662
663 %package guest-agent
664 Summary:        QEMU guest agent
665 Summary(pl.UTF-8):      Agent gościa QEMU
666 Group:          Daemons
667 Requires:       glib2 >= 1:2.22
668 Obsoletes:      qemu-kvm-guest-agent
669
670 %description guest-agent
671 QEMU is a generic and open source processor emulator which achieves a
672 good emulation speed by using dynamic translation.
673
674 This package provides an agent to run inside guests, which
675 communicates with the host over a virtio-serial channel named
676 "org.qemu.guest_agent.0".
677
678 This package does not need to be installed on the host OS.
679
680 %description guest-agent -l pl.UTF-8
681 QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
682 dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
683
684 Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
685 systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
686 "org.qemu.guest_agent.0".
687
688 Ten pakiet nie musi być zainstalowany w systemie hosta.
689
690 %package module-block-archipelago
691 Summary:        QEMU module for Archipelago block devices
692 Summary(pl.UTF-8):      Moduł QEMU dla urządeń blokowych Archipelago
693 Group:          Development/Tools
694 Requires:       %{name}-common = %{version}-%{release}
695
696 %description module-block-archipelago
697 Archipelago block device support for QEMU.
698
699 %description module-block-archipelago -l pl.UTF-8
700 Moduł QEMU dla urządeń blokowych Archipelago.
701
702 %package module-block-curl
703 Summary:        QEMU module for 'curl' block devices
704 Summary(pl.UTF-8):      Moduł QEMU dla urządeń blokowych typu 'curl'
705 Group:          Development/Tools
706 Requires:       %{name}-common = %{version}-%{release}
707
708 %description module-block-curl
709 'curl' block device support for QEMU.
710
711 %description module-block-curl -l pl.UTF-8
712 Moduł QEMU dla urządeń blokowych typu 'curl'.
713
714 %package module-block-dmg
715 Summary:        QEMU module for 'dmg' block devices
716 Summary(pl.UTF-8):      Moduł QEMU dla urządeń blokowych typu 'dmg'
717 Group:          Development/Tools
718 Requires:       %{name}-common = %{version}-%{release}
719 Requires:       bzip2-libs
720
721 %description module-block-dmg
722 'dmg' block device support for QEMU.
723
724 %description module-block-dmg -l pl.UTF-8
725 Moduł QEMU dla urządeń blokowych typu 'dmg'.
726
727 %package module-block-gluster
728 Summary:        QEMU module for 'gluster' block devices
729 Summary(pl.UTF-8):      Moduł QEMU dla urządeń blokowych typu 'gluster'
730 Group:          Development/Tools
731 Requires:       %{name}-common = %{version}-%{release}
732 Requires:       glusterfs-libs >= 3.4
733
734 %description module-block-gluster
735 'gluster' block device support for QEMU.
736
737 %description module-block-gluster -l pl.UTF-8
738 Moduł QEMU dla urządeń blokowych typu 'gluster'.
739
740 %package module-block-iscsi
741 Summary:        QEMU module for 'iscsi' block devices
742 Summary(pl.UTF-8):      Moduł QEMU dla urządeń blokowych typu 'iscsi'
743 Group:          Development/Tools
744 Requires:       %{name}-common = %{version}-%{release}
745 Requires:       libiscsi >= 1.9.0
746
747 %description module-block-iscsi
748 'iscsi' block device support for QEMU.
749
750 %description module-block-iscsi -l pl.UTF-8
751 Moduł QEMU dla urządeń blokowych typu 'iscsi'.
752
753 %package module-block-nfs
754 Summary:        QEMU module for 'nfs' block devices
755 Summary(pl.UTF-8):      Moduł QEMU dla urządeń blokowych typu 'nfs'
756 Group:          Development/Tools
757 Requires:       %{name}-common = %{version}-%{release}
758 Requires:       libnfs >= 1.9.3
759
760 %description module-block-nfs
761 'nfs' block device support for QEMU.
762
763 %description module-block-nfs -l pl.UTF-8
764 Moduł QEMU dla urządeń blokowych typu 'nfs'.
765
766 %package module-block-rbd
767 Summary:        QEMU module for 'rbd' block devices
768 Summary(pl.UTF-8):      Moduł QEMU dla urządeń blokowych typu 'rbd'
769 Group:          Development/Tools
770 Requires:       %{name}-common = %{version}-%{release}
771
772 %description module-block-rbd
773 'rbd' block device support for QEMU.
774
775 %description module-block-rbd -l pl.UTF-8
776 Moduł QEMU dla urządeń blokowych typu 'rbd'.
777
778 %package module-block-ssh
779 Summary:        QEMU module for 'ssh' block devices
780 Summary(pl.UTF-8):      Moduł QEMU dla urządeń blokowych typu 'ssh'
781 Group:          Development/Tools
782 Requires:       %{name}-common = %{version}-%{release}
783
784 %description module-block-ssh
785 'ssh' block device support for QEMU.
786
787 %description module-block-ssh -l pl.UTF-8
788 Moduł QEMU dla urządeń blokowych typu 'ssh'.
789
790 %prep
791 %setup -q
792 %patch0 -p1
793 %patch1 -p1
794 %patch2 -p1
795 %patch3 -p1
796 %patch4 -p1
797 %patch5 -p1
798 %patch6 -p1
799
800 # workaround for conflict with alsa/error.h
801 ln -s ../error.h qapi/error.h
802
803 %build
804
805 build() {
806         local target=$1
807         shift
808
809         install -d build-$target
810         cd build-$target
811
812         ../configure \
813         --prefix=%{_prefix} \
814         --libdir=%{_libdir} \
815         --libexecdir=%{_libexecdir} \
816         --sysconfdir=%{_sysconfdir} \
817         --localstatedir=%{_localstatedir} \
818         --interp-prefix=%{_libdir}/qemu/lib-%%M \
819         --cc="%{__cc}" \
820         --host-cc="%{__cc}" \
821         --disable-strip \
822         --enable-trace-backends="nop%{?with_systemtap:,dtrace}%{?with_lttng:,ust}" \
823         --enable-kvm \
824         "$@"
825
826         %{__make} \
827                 V=1 \
828                 %{!?with_smartcard:CONFIG_USB_SMARTCARD=n}
829
830         cd ..
831 }
832
833 build dynamic \
834         --extra-cflags="%{rpmcflags} %{rpmcppflags} -fPIE -DPIE" \
835         --extra-ldflags="%{rpmldflags} -pie -Wl,-z,relro -Wl,-z,now" \
836         %{__enable_disable xseg archipelago} \
837         --enable-attr \
838         %{__enable_disable bluetooth bluez} \
839         %{__enable_disable brlapi} \
840         --enable-cap-ng \
841         --enable-curl \
842         --enable-curses \
843         --enable-docs \
844         --enable-fdt \
845         %{__enable_disable glusterfs} \
846         %{__enable_disable iscsi libiscsi} \
847         %{__enable_disable ceph rbd} \
848         %{__enable_disable rdma} \
849         %{__enable_disable sdl} \
850         --with-sdlabi=2.0 \
851         %{__enable_disable seccomp} \
852         %{__enable_disable spice} \
853         %{__enable_disable smartcard smartcard} \
854         --enable-tpm \
855         %{__enable_disable usbredir usb-redir} \
856         --enable-uuid \
857         --enable-vde \
858         --enable-virtfs \
859         --enable-vnc-jpeg \
860         --enable-vnc-png \
861         --enable-vnc-sasl \
862         %{!?with_vte:--disable-vte} \
863         %{__enable_disable xen} \
864         --enable-modules \
865         --disable-netmap \
866         %{__enable_disable libnfs} \
867         --enable-lzo \
868         %{__enable_disable snappy} \
869         --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
870 %if %{without gtk2} && %{without gtk3}
871         --disable-gtk
872 %else
873         --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
874 %endif
875
876 %if %{with user_static}
877 build static \
878         --disable-brlapi \
879         --disable-cap-ng \
880         --disable-curl \
881         --disable-curses \
882         --disable-gcrypt \
883         --disable-gnutls \
884         --disable-gtk \
885         --disable-guest-agent \
886         --disable-guest-agent-msi \
887         --disable-libnfs \
888         --disable-nettle \
889         --disable-pie \
890         --disable-sdl \
891         --disable-spice \
892         --disable-tcmalloc \
893         --disable-tools \
894         --disable-uuid \
895         --enable-user \
896         --disable-system \
897         --static
898
899 %endif
900
901 # rebuild patched vesa tables with additional widescreen modes.
902 %{__make} -C roms/vgabios stdvga-bios
903
904 %{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
905
906 %install
907 rm -rf $RPM_BUILD_ROOT
908 install -d $RPM_BUILD_ROOT/usr/lib/binfmt.d \
909         $RPM_BUILD_ROOT/etc/{qemu,sysconfig,udev/rules.d,modules-load.d} \
910         $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
911
912 %if %{with user_static}
913 %{__make} -C build-static install \
914         %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
915         DESTDIR=$RPM_BUILD_ROOT
916
917 # Give all QEMU user emulators a -static suffix
918 for src in $RPM_BUILD_ROOT%{_bindir}/qemu-*; do
919         mv $src $src-static
920 done
921
922 %endif
923
924 %{__make} -C build-dynamic install \
925         %{!?with_smartcard:CONFIG_USB_SMARTCARD=n} \
926         DESTDIR=$RPM_BUILD_ROOT
927
928 echo "#allow br0" > $RPM_BUILD_ROOT/etc/qemu/bridge.conf
929
930 install -d $RPM_BUILD_ROOT%{_sysconfdir}
931 cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
932 #!/bin/sh
933
934 EOF
935
936 install -p qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl/qemu.conf
937
938 %ifarch %{ix86} %{x8664} x32
939 install -p %{SOURCE3} $RPM_BUILD_ROOT/etc/modules-load.d/kvm.conf
940 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
941 %endif
942
943 install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
944 install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
945
946 install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
947 install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
948
949 install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
950
951 # packaged as %doc
952 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-doc.html
953 %{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
954
955 # install patched vesa tables with additional widescreen modes.
956 cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
957
958 %if %{with system_seabios}
959 ln -sf /usr/share/seabios/bios.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/bios-256k.bin
960 # bios.bin provided by qemu is stripped to 128k, with no Xen support, keep it
961 for f in $RPM_BUILD_ROOT%{_datadir}/%{name}/*.aml ; do
962         bn="$(basename $f)"
963         if [ -e "/usr/share/seabios/$bn" ] ; then
964                 ln -sf "/usr/share/seabios/$bn" "$f"
965         fi
966 done
967 %endif
968
969 %if %{with gtk2} || %{with gtk3}
970 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
971 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{fr_FR,fr}
972 %find_lang %{name}
973 %else
974 : > qemu.lang
975 %endif
976
977 %clean
978 rm -rf $RPM_BUILD_ROOT
979
980 %pre common
981 %groupadd -g 160 kvm
982 %groupadd -g 276 qemu
983 %useradd -u 276 -g qemu -G kvm -c "QEMU User" qemu
984
985 %postun common
986 if [ "$1" = "0" ]; then
987         %userremove qemu
988         %groupremove qemu
989         %groupremove kvm
990 fi
991
992 %files
993 %defattr(644,root,root,755)
994
995 %files common -f %{name}.lang
996 %defattr(644,root,root,755)
997 %doc LICENSE README
998 %doc build-dynamic/qemu-doc.html
999 %attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
1000 %config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
1001 %config(noreplace) %verify(not md5 mtime size) /etc/sasl/qemu.conf
1002 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
1003 %dir /etc/qemu
1004 %attr(640,root,qemu) %config(noreplace) %verify(not md5 mtime size) /etc/qemu/bridge.conf
1005 %attr(755,root,root) %{_bindir}/virtfs-proxy-helper
1006 %attr(755,root,root) %{_bindir}/qemu-nbd
1007 %attr(755,root,root) %{_bindir}/qemu-tilegx
1008 %attr(755,root,root) %{_libdir}/qemu-bridge-helper
1009 %attr(755,root,root) %{_sbindir}/ksmctl
1010 %attr(755,root,root) %{_sbindir}/ksmtuned
1011 %{_mandir}/man1/qemu.1*
1012 %{_mandir}/man1/virtfs-proxy-helper.1*
1013 %{_mandir}/man8/qemu-nbd.8*
1014
1015 %dir %{_datadir}/qemu
1016 %{_datadir}/%{name}/keymaps
1017 %{_datadir}/%{name}/qemu-icon.bmp
1018 %{_datadir}/%{name}/trace-events-all
1019
1020 # various bios images
1021 # all should be probably moved to the right system subpackage
1022 %{_datadir}/%{name}/bamboo.dtb
1023 %{_datadir}/%{name}/efi-e1000e.rom
1024 %{_datadir}/%{name}/efi-e1000.rom
1025 %{_datadir}/%{name}/efi-eepro100.rom
1026 %{_datadir}/%{name}/efi-ne2k_pci.rom
1027 %{_datadir}/%{name}/efi-pcnet.rom
1028 %{_datadir}/%{name}/efi-rtl8139.rom
1029 %{_datadir}/%{name}/efi-virtio.rom
1030 %{_datadir}/%{name}/efi-vmxnet3.rom
1031 %{_datadir}/%{name}/kvmvapic.bin
1032 %{_datadir}/%{name}/linuxboot.bin
1033 %{_datadir}/%{name}/linuxboot_dma.bin
1034 %{_datadir}/%{name}/multiboot.bin
1035 %{_datadir}/%{name}/openbios-ppc
1036 %{_datadir}/%{name}/openbios-sparc*
1037 %{_datadir}/%{name}/palcode-clipper
1038 %{_datadir}/%{name}/petalogix-ml605.dtb
1039 %{_datadir}/%{name}/petalogix-s3adsp1800.dtb
1040 %{_datadir}/%{name}/ppc_rom.bin
1041 %{_datadir}/%{name}/pxe-e1000.rom
1042 %{_datadir}/%{name}/pxe-eepro100.rom
1043 %{_datadir}/%{name}/pxe-ne2k_pci.rom
1044 %{_datadir}/%{name}/pxe-pcnet.rom
1045 %{_datadir}/%{name}/pxe-rtl8139.rom
1046 %{_datadir}/%{name}/pxe-virtio.rom
1047 %{_datadir}/%{name}/QEMU,cgthree.bin
1048 %{_datadir}/%{name}/qemu_logo_no_text.svg
1049 %{_datadir}/%{name}/QEMU,tcx.bin
1050 %{_datadir}/%{name}/s390-ccw.img
1051 %{_datadir}/%{name}/sgabios.bin
1052 %{_datadir}/%{name}/skiboot.lid
1053 %{_datadir}/%{name}/slof.bin
1054 %{_datadir}/%{name}/spapr-rtas.bin
1055 %{_datadir}/%{name}/vgabios.bin
1056 %{_datadir}/%{name}/vgabios-cirrus.bin
1057 %{_datadir}/%{name}/vgabios-qxl.bin
1058 %{_datadir}/%{name}/vgabios-stdvga.bin
1059 %{_datadir}/%{name}/vgabios-virtio.bin
1060 %{_datadir}/%{name}/vgabios-vmware.bin
1061
1062 %dir %{_libdir}/%{name}
1063
1064 %files img
1065 %defattr(644,root,root,755)
1066 %attr(755,root,root) %{_bindir}/qemu-img
1067 %{_mandir}/man1/qemu-img.1*
1068
1069 %files ivshmem
1070 %defattr(644,root,root,755)
1071 %attr(755,root,root) %{_bindir}/ivshmem-client
1072 %attr(755,root,root) %{_bindir}/ivshmem-server
1073
1074 %files user
1075 %defattr(644,root,root,755)
1076 %attr(755,root,root) %{_bindir}/qemu-aarch64
1077 %attr(755,root,root) %{_bindir}/qemu-alpha
1078 %attr(755,root,root) %{_bindir}/qemu-arm
1079 %attr(755,root,root) %{_bindir}/qemu-armeb
1080 %attr(755,root,root) %{_bindir}/qemu-cris
1081 %attr(755,root,root) %{_bindir}/qemu-i386
1082 %attr(755,root,root) %{_bindir}/qemu-io
1083 %attr(755,root,root) %{_bindir}/qemu-m68k
1084 %attr(755,root,root) %{_bindir}/qemu-microblaze
1085 %attr(755,root,root) %{_bindir}/qemu-microblazeel
1086 %attr(755,root,root) %{_bindir}/qemu-mips
1087 %attr(755,root,root) %{_bindir}/qemu-mipsel
1088 %attr(755,root,root) %{_bindir}/qemu-mips64
1089 %attr(755,root,root) %{_bindir}/qemu-mips64el
1090 %attr(755,root,root) %{_bindir}/qemu-mipsn32
1091 %attr(755,root,root) %{_bindir}/qemu-mipsn32el
1092 %attr(755,root,root) %{_bindir}/qemu-or32
1093 %attr(755,root,root) %{_bindir}/qemu-ppc
1094 %attr(755,root,root) %{_bindir}/qemu-ppc64
1095 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32
1096 %attr(755,root,root) %{_bindir}/qemu-ppc64le
1097 %attr(755,root,root) %{_bindir}/qemu-s390x
1098 %attr(755,root,root) %{_bindir}/qemu-sh4
1099 %attr(755,root,root) %{_bindir}/qemu-sh4eb
1100 %attr(755,root,root) %{_bindir}/qemu-sparc
1101 %attr(755,root,root) %{_bindir}/qemu-sparc32plus
1102 %attr(755,root,root) %{_bindir}/qemu-sparc64
1103 %attr(755,root,root) %{_bindir}/qemu-x86_64
1104
1105 %if %{with user_static}
1106 %files user-static
1107 %defattr(644,root,root,755)
1108 %attr(755,root,root) %{_bindir}/qemu-aarch64-static
1109 %attr(755,root,root) %{_bindir}/qemu-alpha-static
1110 %attr(755,root,root) %{_bindir}/qemu-arm-static
1111 %attr(755,root,root) %{_bindir}/qemu-armeb-static
1112 %attr(755,root,root) %{_bindir}/qemu-cris-static
1113 %attr(755,root,root) %{_bindir}/qemu-i386-static
1114 %attr(755,root,root) %{_bindir}/qemu-m68k-static
1115 %attr(755,root,root) %{_bindir}/qemu-microblaze-static
1116 %attr(755,root,root) %{_bindir}/qemu-microblazeel-static
1117 %attr(755,root,root) %{_bindir}/qemu-mips-static
1118 %attr(755,root,root) %{_bindir}/qemu-mips64-static
1119 %attr(755,root,root) %{_bindir}/qemu-mips64el-static
1120 %attr(755,root,root) %{_bindir}/qemu-mipsel-static
1121 %attr(755,root,root) %{_bindir}/qemu-mipsn32-static
1122 %attr(755,root,root) %{_bindir}/qemu-mipsn32el-static
1123 %attr(755,root,root) %{_bindir}/qemu-or32-static
1124 %attr(755,root,root) %{_bindir}/qemu-ppc-static
1125 %attr(755,root,root) %{_bindir}/qemu-ppc64-static
1126 %attr(755,root,root) %{_bindir}/qemu-ppc64abi32-static
1127 %attr(755,root,root) %{_bindir}/qemu-ppc64le-static
1128 %attr(755,root,root) %{_bindir}/qemu-s390x-static
1129 %attr(755,root,root) %{_bindir}/qemu-sh4-static
1130 %attr(755,root,root) %{_bindir}/qemu-sh4eb-static
1131 %attr(755,root,root) %{_bindir}/qemu-sparc-static
1132 %attr(755,root,root) %{_bindir}/qemu-sparc32plus-static
1133 %attr(755,root,root) %{_bindir}/qemu-sparc64-static
1134 %attr(755,root,root) %{_bindir}/qemu-tilegx-static
1135 %attr(755,root,root) %{_bindir}/qemu-x86_64-static
1136 %endif
1137
1138 %files system-aarch64
1139 %defattr(644,root,root,755)
1140 %attr(755,root,root) %{_bindir}/qemu-system-aarch64
1141
1142 %files system-alpha
1143 %defattr(644,root,root,755)
1144 %attr(755,root,root) %{_bindir}/qemu-system-alpha
1145
1146 %files system-arm
1147 %defattr(644,root,root,755)
1148 %attr(755,root,root) %{_bindir}/qemu-system-arm
1149
1150 %files system-cris
1151 %defattr(644,root,root,755)
1152 %attr(755,root,root) %{_bindir}/qemu-system-cris
1153
1154 %files system-lm32
1155 %defattr(644,root,root,755)
1156 %attr(755,root,root) %{_bindir}/qemu-system-lm32
1157
1158 %files system-m68k
1159 %defattr(644,root,root,755)
1160 %attr(755,root,root) %{_bindir}/qemu-system-m68k
1161
1162 %files system-microblaze
1163 %defattr(644,root,root,755)
1164 %attr(755,root,root) %{_bindir}/qemu-system-microblaze
1165 %attr(755,root,root) %{_bindir}/qemu-system-microblazeel
1166
1167 %files system-mips
1168 %defattr(644,root,root,755)
1169 %attr(755,root,root) %{_bindir}/qemu-system-mips
1170 %attr(755,root,root) %{_bindir}/qemu-system-mipsel
1171 %attr(755,root,root) %{_bindir}/qemu-system-mips64
1172 %attr(755,root,root) %{_bindir}/qemu-system-mips64el
1173
1174 %files system-moxie
1175 %defattr(644,root,root,755)
1176 %attr(755,root,root) %{_bindir}/qemu-system-moxie
1177
1178 %files system-or32
1179 %defattr(644,root,root,755)
1180 %attr(755,root,root) %{_bindir}/qemu-system-or32
1181
1182 %files system-ppc
1183 %defattr(644,root,root,755)
1184 %attr(755,root,root) %{_bindir}/qemu-system-ppc
1185 %attr(755,root,root) %{_bindir}/qemu-system-ppc64
1186 #%attr(755,root,root) %{_bindir}/qemu-system-ppc64le
1187 %attr(755,root,root) %{_bindir}/qemu-system-ppcemb
1188 %{_datadir}/%{name}/u-boot.e500
1189
1190 %files system-s390x
1191 %defattr(644,root,root,755)
1192 %attr(755,root,root) %{_bindir}/qemu-system-s390x
1193
1194 %files system-sh4
1195 %defattr(644,root,root,755)
1196 %attr(755,root,root) %{_bindir}/qemu-system-sh4
1197 %attr(755,root,root) %{_bindir}/qemu-system-sh4eb
1198
1199 %files system-sparc
1200 %defattr(644,root,root,755)
1201 %attr(755,root,root) %{_bindir}/qemu-system-sparc
1202 %attr(755,root,root) %{_bindir}/qemu-system-sparc64
1203
1204 %files system-tricore
1205 %defattr(644,root,root,755)
1206 %attr(755,root,root) %{_bindir}/qemu-system-tricore
1207
1208 %files system-unicore32
1209 %defattr(644,root,root,755)
1210 %attr(755,root,root) %{_bindir}/qemu-system-unicore32
1211
1212 %files system-x86
1213 %defattr(644,root,root,755)
1214 %attr(755,root,root) %{_bindir}/qemu-system-i386
1215 %attr(755,root,root) %{_bindir}/qemu-system-x86_64
1216 %ifarch %{ix86} %{x8664} x32
1217 %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/kvm.conf
1218 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/80-kvm.rules
1219 %endif
1220 %{_datadir}/%{name}/bios.bin
1221 %{_datadir}/%{name}/bios-256k.bin
1222 %{_datadir}/%{name}/acpi-dsdt.aml
1223
1224 %files system-xtensa
1225 %defattr(644,root,root,755)
1226 %attr(755,root,root) %{_bindir}/qemu-system-xtensa
1227 %attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
1228
1229 %files guest-agent
1230 %defattr(644,root,root,755)
1231 %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
1232 %attr(755,root,root) %{_bindir}/qemu-ga
1233 %{_mandir}/man8/qemu-ga.8*
1234
1235 %if %{with xseg}
1236 %files module-block-archipelago
1237 %defattr(644,root,root,755)
1238 %attr(755,root,root) %{_libdir}/%{name}/block-archipelago.so
1239 %endif
1240
1241 %files module-block-curl
1242 %defattr(644,root,root,755)
1243 %attr(755,root,root) %{_libdir}/%{name}/block-curl.so
1244
1245 %files module-block-dmg
1246 %defattr(644,root,root,755)
1247 %attr(755,root,root) %{_libdir}/%{name}/block-dmg-bz2.so
1248
1249 %if %{with glusterfs}
1250 %files module-block-gluster
1251 %defattr(644,root,root,755)
1252 %attr(755,root,root) %{_libdir}/%{name}/block-gluster.so
1253 %endif
1254
1255 %if %{with iscsi}
1256 %files module-block-iscsi
1257 %defattr(644,root,root,755)
1258 %attr(755,root,root) %{_libdir}/%{name}/block-iscsi.so
1259 %endif
1260
1261 %if %{with libnfs}
1262 %files module-block-nfs
1263 %defattr(644,root,root,755)
1264 %attr(755,root,root) %{_libdir}/%{name}/block-nfs.so
1265 %endif
1266
1267 %if %{with ceph}
1268 %files module-block-rbd
1269 %defattr(644,root,root,755)
1270 %attr(755,root,root) %{_libdir}/%{name}/block-rbd.so
1271 %endif
1272
1273 %files module-block-ssh
1274 %defattr(644,root,root,755)
1275 %attr(755,root,root) %{_libdir}/%{name}/block-ssh.so