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