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