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