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