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