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