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