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