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