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