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