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