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