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