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