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