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