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