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