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