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