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