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