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