]> git.pld-linux.org Git - packages/qemu.git/blame - qemu.spec
- added Kernel Samepage Merging support from qemu-kvm
[packages/qemu.git] / qemu.spec
CommitLineData
0b920c52 1# TODO:
c1d653f6 2# - merge missing bits from qemu-kvm
0b920c52 3#
6aef4654 4# Conditional build:
78a71650 5%bcond_without sdl # SDL UI and audio support
ce44b534 6%bcond_without glx # OpenGL/GLX support
78a71650 7%bcond_without ceph # Ceph/RBD support
80dbeed1
JB
8%bcond_without glusterfs # GlusterFS backend
9%bcond_without rdma # RDMA-based migration support
ce44b534 10%bcond_with gtk2 # GTK+ 2.x instead of 3.x
59bc1300 11%bcond_without spice # SPICE support
78a71650
JB
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
ae8bf749 16
cd19124e 17Summary: QEMU CPU Emulator
eec0535a 18Summary(pl.UTF-8): QEMU - emulator procesora
7b81d160 19Name: qemu
1d034de3 20Version: 1.6.1
9221be1e 21Release: 3
78a71650 22License: GPL v2+
5a2da1d0 23Group: Applications/Emulators
46ca1df6 24Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.bz2
1d034de3 25# Source0-md5: 3a897d722457c5a895cd6ac79a28fda0
9fdf235e
JR
26# KSM control scripts
27Source5: ksm.service
28Source6: ksm.sysconfig
29Source7: ksmctl.c
30Source8: ksmtuned.service
31Source9: ksmtuned
32Source10: ksmtuned.conf
93473205
JR
33Source11: qemu-guest-agent.service
34Source12: 99-qemu-guest-agent.rules
9bcd4ab6 35Patch0: %{name}-cflags.patch
d9002706 36Patch1: vgabios-widescreens.patch
449d43aa
JB
37Patch2: %{name}-whitelist.patch
38Patch3: %{name}-system-libcacard.patch
81a493f2 39# Proof of concept, for reference, do not remove
449d43aa 40Patch4: %{name}-kde_virtual_workspaces_hack.patch
ae8bf749 41URL: http://www.qemu-project.org/
78a71650
JB
42%{?with_opengl:BuildRequires: OpenGL-GLX-devel}
43%{?with_sdl:BuildRequires: SDL-devel >= 1.2.1}
b0b3ca8d 44BuildRequires: alsa-lib-devel
e8a4bb4c 45BuildRequires: bcc
b99b1652 46BuildRequires: bluez-libs-devel
78a71650
JB
47BuildRequires: brlapi-devel
48%{?with_ceph:BuildRequires: ceph-devel}
49BuildRequires: curl-devel
50BuildRequires: cyrus-sasl-devel >= 2
51%{?with_esd:BuildRequires: esound-devel}
52BuildRequires: glib2-devel >= 1:2.12
1ffe7dfd 53%{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4}
b99b1652 54BuildRequires: gnutls-devel
87364910 55BuildRequires: libaio-devel
c18e9cf6 56BuildRequires: libcacard-devel
78a71650
JB
57BuildRequires: libcap-devel
58BuildRequires: libcap-ng-devel
59BuildRequires: libfdt-devel
80dbeed1 60%{?with_rdma:BuildRequires: libibverbs-devel}
78a71650
JB
61BuildRequires: libiscsi-devel
62BuildRequires: libjpeg-devel
63BuildRequires: libpng-devel
80dbeed1 64%{?with_rdma:BuildRequires: librdmacm-devel}
78a71650 65BuildRequires: libseccomp-devel
ce44b534
JB
66BuildRequires: libssh2-devel >= 1.2.8
67# for usb passthrough, when available
68#BuildRequires: libusb-devel >= 1.0.13
78a71650 69BuildRequires: libuuid-devel
98a1a188 70BuildRequires: ncurses-devel
78a71650 71BuildRequires: nss-devel >= 3.12.8
995bac8b 72BuildRequires: perl-Encode
2fb8ea02 73BuildRequires: perl-tools-pod
ba84a935 74BuildRequires: pkgconfig
78a71650 75%{?with_pulseaudio:BuildRequires: pulseaudio-devel}
14b9f266 76BuildRequires: rpmbuild(macros) >= 1.202
8bb1261c 77BuildRequires: sed >= 4.0
59bc1300 78%if %{with spice}
e8a4bb4c
GPP
79BuildRequires: spice-protocol >= 0.12.0
80BuildRequires: spice-server-devel >= 0.12.0
59bc1300 81%endif
a1146336 82BuildRequires: texi2html
22f71ecb 83BuildRequires: texinfo
b7485d2e 84BuildRequires: usbredir-devel >= 0.6
78a71650 85BuildRequires: vde2-devel
cad677a4 86BuildRequires: which
78a71650
JB
87%{?with_xen:BuildRequires: xen-devel >= 3.4}
88BuildRequires: xfsprogs-devel
ba84a935 89BuildRequires: xorg-lib-libX11-devel
78a71650 90BuildRequires: zlib-devel
ce44b534
JB
91%if %{with gtk2}
92BuildRequires: gtk+2-devel >= 2:2.18.0
93BuildRequires: vte0-devel >= 0.24.0
94%else
95BuildRequires: gtk+3-devel >= 3.0.0
96BuildRequires: vte-devel >= 0.32.0
97%endif
fabf5a9c
ER
98Requires: %{name}-img = %{version}-%{release}
99Requires: %{name}-system-alpha = %{version}-%{release}
100Requires: %{name}-system-arm = %{version}-%{release}
101Requires: %{name}-system-cris = %{version}-%{release}
102Requires: %{name}-system-lm32 = %{version}-%{release}
103Requires: %{name}-system-m68k = %{version}-%{release}
104Requires: %{name}-system-microblaze = %{version}-%{release}
105Requires: %{name}-system-mips = %{version}-%{release}
a56d4cfd 106Requires: %{name}-system-moxie = %{version}-%{release}
92c357d4 107Requires: %{name}-system-or32 = %{version}-%{release}
ae8bf749 108Requires: %{name}-system-ppc = %{version}-%{release}
fabf5a9c
ER
109Requires: %{name}-system-s390x = %{version}-%{release}
110Requires: %{name}-system-sh4 = %{version}-%{release}
111Requires: %{name}-system-sparc = %{version}-%{release}
72ddf007 112Requires: %{name}-system-unicore32 = %{version}-%{release}
fabf5a9c
ER
113Requires: %{name}-system-x86 = %{version}-%{release}
114Requires: %{name}-system-xtensa = %{version}-%{release}
115Requires: %{name}-user = %{version}-%{release}
e03112c2 116Obsoletes: qemu-kvm
cd19124e 117BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
118
78a71650 119%define systempkg_req \
449d43aa 120Requires: SDL >= 1.2.1 \
ce44b534
JB
121Requires: usbredir >= 0.6 \
122%if %{with gtk2} \
123Requires: gtk+2 >= 2:2.18.0 \
124Requires: vte0 >= 0.24.0 \
125%else \
126Requires: gtk+3 >= 3.0.0 \
127Requires: vte >= 0.32.0 \
128%endif
78a71650 129
98a1a188 130# some PPC/SPARC boot image in ELF format
22f71ecb 131%define _noautostrip .*%{_datadir}/qemu/.*-.*
a154aede 132
cd19124e 133%description
134QEMU is a FAST! processor emulator. By using dynamic translation it
135achieves a reasonnable speed while being easy to port on new host
136CPUs. QEMU has two operating modes:
137
138- User mode emulation. In this mode, QEMU can launch Linux processes
139 compiled for one CPU on another CPU. Linux system calls are converted
140 because of endianness and 32/64 bit mismatches. Wine (Windows
141 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
142
143- Full system emulation. In this mode, QEMU emulates a full system,
8799423b
ER
144 including a processor and various peripherials. It can also be used to
145 provide virtual hosting of several virtual PC on a single server.
cd19124e 146
27b30e9c
JR
147%description -l pl.UTF-8
148QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
149tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
150aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
5a2da1d0 151
27b30e9c 152- Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
5a2da1d0 153 procesy linuksowe skompilowane dla jednego procesora na innym
27b30e9c
JR
154 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
155 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
156 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
5a2da1d0
JB
157 cele QEMU.
158
27b30e9c
JR
159- Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
160 włączając w to procesor i różne urządzenia peryferyjne. Może być także
161 używane do wirtualnego hostowania kilku wirtualnych pecetów na
8799423b 162 pojedynczym serwerze.
5a2da1d0 163
d86014ba 164%package common
fabf5a9c 165Summary: QEMU common files needed by all QEMU targets
d86014ba 166Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU
fabf5a9c 167Group: Development/Tools
14b9f266
AG
168Requires(postun): /usr/sbin/groupdel
169Requires(postun): /usr/sbin/userdel
170Requires(pre): /bin/id
171Requires(pre): /usr/bin/getgid
172Requires(pre): /usr/sbin/groupadd
173Requires(pre): /usr/sbin/useradd
ce44b534
JB
174Requires: glib2 >= 1:2.12
175Requires: libssh2 >= 1.2.8
14b9f266
AG
176Provides: group(qemu)
177Provides: user(qemu)
e03112c2 178Obsoletes: qemu-kvm-common
fabf5a9c
ER
179Conflicts: qemu < 1.0-2
180
181%description common
182QEMU is a generic and open source processor emulator which achieves a
183good emulation speed by using dynamic translation.
184
185This package provides the common files needed by all QEMU targets.
186
d86014ba
JB
187%description common -l pl.UTF-8
188QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
189dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
190
191Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
192środowiska QEMU.
193
194%package img
fabf5a9c 195Summary: QEMU command line tool for manipulating disk images
d86014ba 196Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
fabf5a9c
ER
197Group: Development/Tools
198Conflicts: qemu < 1.0-2
e03112c2 199Obsoletes: qemu-kvm-img
fabf5a9c
ER
200
201%description img
d86014ba
JB
202This package provides a command line tool for manipulating disk
203images.
204
205%description img -l pl.UTF-8
206Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
207na obrazach dysków.
fabf5a9c
ER
208
209%package user
210Summary: QEMU user mode emulation of qemu targets
d86014ba 211Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
fabf5a9c
ER
212Group: Development/Tools
213Requires: %{name}-common = %{version}-%{release}
e03112c2 214Obsoletes: qemu-kvm-user
fabf5a9c
ER
215
216%description user
217QEMU is a generic and open source processor emulator which achieves a
218good emulation speed by using dynamic translation.
219
220This package provides the user mode emulation of QEMU targets.
221
d86014ba
JB
222%description user -l pl.UTF-8
223QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
224dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
225
226Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
227
fabf5a9c 228%package system-alpha
d86014ba
JB
229Summary: QEMU system emulator for Alpha
230Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
fabf5a9c
ER
231Group: Development/Tools
232Requires: %{name}-common = %{version}-%{release}
78a71650 233%systempkg_req
e03112c2 234Obsoletes: qemu-kvm-system-alpha
fabf5a9c
ER
235
236%description system-alpha
237QEMU is a generic and open source processor emulator which achieves a
238good emulation speed by using dynamic translation.
239
d86014ba
JB
240This package provides the system emulator with Alpha CPU.
241
242%description system-alpha -l pl.UTF-8
243QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
244dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
245
246Ten pakiet zawiera emulator systemu z procesorem Alpha.
fabf5a9c
ER
247
248%package system-arm
d86014ba
JB
249Summary: QEMU system emulator for ARM
250Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
fabf5a9c
ER
251Group: Development/Tools
252Requires: %{name}-common = %{version}-%{release}
78a71650 253%systempkg_req
e03112c2 254Obsoletes: qemu-kvm-system-arm
fabf5a9c
ER
255
256%description system-arm
257QEMU is a generic and open source processor emulator which achieves a
258good emulation speed by using dynamic translation.
259
d86014ba
JB
260This package provides the system emulator for ARM.
261
262%description system-arm -l pl.UTF-8
263QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
264dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
265
266Ten pakiet zawiera emulator systemu z procesorem ARM.
fabf5a9c
ER
267
268%package system-cris
59bc1300 269Summary: QEMU system emulator for CRIS
d86014ba 270Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
fabf5a9c
ER
271Group: Development/Tools
272Requires: %{name}-common = %{version}-%{release}
78a71650 273%systempkg_req
e03112c2 274Obsoletes: qemu-kvm-system-cris
fabf5a9c
ER
275
276%description system-cris
277QEMU is a generic and open source processor emulator which achieves a
278good emulation speed by using dynamic translation.
279
d86014ba
JB
280This package provides the system emulator with CRIS CPU.
281
282%description system-cris -l pl.UTF-8
283QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
284dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
285
286Ten pakiet zawiera emulator systemu z procesorem CRIS.
fabf5a9c
ER
287
288%package system-lm32
d86014ba
JB
289Summary: QEMU system emulator for LM32
290Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
fabf5a9c
ER
291Group: Development/Tools
292Requires: %{name}-common = %{version}-%{release}
78a71650 293%systempkg_req
e03112c2 294Obsoletes: qemu-kvm-system-lm32
fabf5a9c
ER
295
296%description system-lm32
297QEMU is a generic and open source processor emulator which achieves a
298good emulation speed by using dynamic translation.
299
d86014ba
JB
300This package provides the system emulator with LM32 CPU.
301
302%description system-lm32 -l pl.UTF-8
303QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
304dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
305
306Ten pakiet zawiera emulator systemu z procesorem LM32.
fabf5a9c
ER
307
308%package system-m68k
309Summary: QEMU system emulator for m68k
d86014ba 310Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
fabf5a9c
ER
311Group: Development/Tools
312Requires: %{name}-common = %{version}-%{release}
78a71650 313%systempkg_req
e03112c2 314Obsoletes: qemu-kvm-system-m68k
fabf5a9c
ER
315
316%description system-m68k
317QEMU is a generic and open source processor emulator which achieves a
318good emulation speed by using dynamic translation.
319
d86014ba
JB
320This package provides the system emulator with m68k CPU.
321
322%description system-m68k -l pl.UTF-8
323QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
324dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
325
326Ten pakiet zawiera emulator systemu z procesorem m68k.
fabf5a9c
ER
327
328%package system-microblaze
d86014ba
JB
329Summary: QEMU system emulator for MicroBlaze
330Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
fabf5a9c
ER
331Group: Development/Tools
332Requires: %{name}-common = %{version}-%{release}
78a71650 333%systempkg_req
e03112c2 334Obsoletes: qemu-kvm-system-microblaze
fabf5a9c
ER
335
336%description system-microblaze
337QEMU is a generic and open source processor emulator which achieves a
338good emulation speed by using dynamic translation.
339
d86014ba
JB
340This package provides the system emulator with MicroBlaze CPU.
341
342%description system-microblaze -l pl.UTF-8
343QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
344dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
345
346Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
fabf5a9c
ER
347
348%package system-mips
d86014ba
JB
349Summary: QEMU system emulator for MIPS
350Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
fabf5a9c
ER
351Group: Development/Tools
352Requires: %{name}-common = %{version}-%{release}
78a71650 353%systempkg_req
e03112c2 354Obsoletes: qemu-kvm-system-mips
fabf5a9c
ER
355
356%description system-mips
357QEMU is a generic and open source processor emulator which achieves a
358good emulation speed by using dynamic translation.
359
d86014ba
JB
360This package provides the system emulator with MIPS CPU.
361
362%description system-mips -l pl.UTF-8
363QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
364dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
365
366Ten pakiet zawiera emulator systemu z procesorem MIPS.
fabf5a9c 367
a56d4cfd
JB
368%package system-moxie
369Summary: QEMU system emulator for Moxie
370Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
371Group: Development/Tools
372Requires: %{name}-common = %{version}-%{release}
373%systempkg_req
374
375%description system-moxie
376QEMU is a generic and open source processor emulator which achieves a
377good emulation speed by using dynamic translation.
378
379This package provides the system emulator with Moxie CPU.
380
381%description system-moxie -l pl.UTF-8
382QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
383dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
384
385Ten pakiet zawiera emulator systemu z procesorem Moxie.
386
92c357d4 387%package system-or32
d86014ba
JB
388Summary: QEMU system emulator for OpenRISC
389Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
92c357d4
PS
390Group: Development/Tools
391Requires: %{name}-common = %{version}-%{release}
78a71650 392%systempkg_req
e03112c2 393Obsoletes: qemu-kvm-system-or32
92c357d4
PS
394
395%description system-or32
396QEMU is a generic and open source processor emulator which achieves a
397good emulation speed by using dynamic translation.
398
d86014ba
JB
399This package provides the system emulator with OpenRISC CPU.
400
401%description system-or32 -l pl.UTF-8
402QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
403dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
404
405Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
92c357d4 406
fabf5a9c 407%package system-ppc
d86014ba
JB
408Summary: QEMU system emulator for PowerPC
409Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
fabf5a9c
ER
410Group: Development/Tools
411Requires: %{name}-common = %{version}-%{release}
78a71650 412%systempkg_req
e03112c2 413Obsoletes: qemu-kvm-system-ppc
fabf5a9c
ER
414
415%description system-ppc
416QEMU is a generic and open source processor emulator which achieves a
417good emulation speed by using dynamic translation.
418
d86014ba
JB
419This package provides the system emulator with PowerPC CPU.
420
421%description system-ppc -l pl.UTF-8
422QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
423dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
424
425Ten pakiet zawiera emulator systemu z procesorem PowerPC.
fabf5a9c
ER
426
427%package system-s390x
d86014ba
JB
428Summary: QEMU system emulator for S390
429Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
fabf5a9c
ER
430Group: Development/Tools
431Requires: %{name}-common = %{version}-%{release}
78a71650 432%systempkg_req
e03112c2 433Obsoletes: qemu-kvm-system-s390x
fabf5a9c
ER
434
435%description system-s390x
436QEMU is a generic and open source processor emulator which achieves a
437good emulation speed by using dynamic translation.
438
d86014ba
JB
439This package provides the system emulator with S390 CPU.
440
441%description system-s390x -l pl.UTF-8
442QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
443dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
444
445Ten pakiet zawiera emulator systemu z procesorem S390.
fabf5a9c
ER
446
447%package system-sh4
d86014ba
JB
448Summary: QEMU system emulator for SH4
449Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
fabf5a9c
ER
450Group: Development/Tools
451Requires: %{name}-common = %{version}-%{release}
78a71650 452%systempkg_req
e03112c2 453Obsoletes: qemu-kvm-system-sh4
fabf5a9c
ER
454
455%description system-sh4
456QEMU is a generic and open source processor emulator which achieves a
457good emulation speed by using dynamic translation.
458
d86014ba
JB
459This package provides the system emulator with SH4 CPU.
460
461%description system-sh4 -l pl.UTF-8
462QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
463dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
464
465Ten pakiet zawiera emulator systemu z procesorem SH4.
fabf5a9c
ER
466
467%package system-sparc
d86014ba
JB
468Summary: QEMU system emulator for SPARC
469Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
fabf5a9c
ER
470Group: Development/Tools
471Requires: %{name}-common = %{version}-%{release}
78a71650 472%systempkg_req
e03112c2 473Obsoletes: qemu-kvm-system-sparc
fabf5a9c
ER
474
475%description system-sparc
476QEMU is a generic and open source processor emulator which achieves a
477good emulation speed by using dynamic translation.
478
d86014ba
JB
479This package provides the system emulator with SPARC/SPARC64 CPU.
480
481%description system-sparc -l pl.UTF-8
482QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
483dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
484
485Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
fabf5a9c 486
72ddf007 487%package system-unicore32
d86014ba
JB
488Summary: QEMU system emulator for UniCore32
489Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
72ddf007
PS
490Group: Development/Tools
491Requires: %{name}-common = %{version}-%{release}
78a71650 492%systempkg_req
e03112c2 493Obsoletes: qemu-kvm-system-unicore32
72ddf007
PS
494
495%description system-unicore32
496QEMU is a generic and open source processor emulator which achieves a
497good emulation speed by using dynamic translation.
498
d86014ba
JB
499This package provides the system emulator with UniCore32 CPU.
500
501%description system-unicore32 -l pl.UTF-8
502QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
503dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
504
505Ten pakiet zawiera emulator systemu z procesorem UniCore32.
72ddf007 506
fabf5a9c
ER
507%package system-x86
508Summary: QEMU system emulator for x86
d86014ba 509Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
fabf5a9c
ER
510Group: Development/Tools
511Requires: %{name}-common = %{version}-%{release}
78a71650 512%systempkg_req
e03112c2 513Obsoletes: qemu-kvm-system-x86
fabf5a9c
ER
514
515%description system-x86
516QEMU is a generic and open source processor emulator which achieves a
517good emulation speed by using dynamic translation.
518
d86014ba
JB
519%description system-x86 -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
fabf5a9c 523%package system-xtensa
d86014ba
JB
524Summary: QEMU system emulator for Xtensa
525Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
fabf5a9c
ER
526Group: Development/Tools
527Requires: %{name}-common = %{version}-%{release}
78a71650 528%systempkg_req
e03112c2 529Obsoletes: qemu-kvm-system-xtensa
fabf5a9c
ER
530
531%description system-xtensa
532QEMU is a generic and open source processor emulator which achieves a
533good emulation speed by using dynamic translation.
534
d86014ba
JB
535This package provides the system emulator with Xtensa CPU.
536
537%description system-xtensa -l pl.UTF-8
538QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
539dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
540
541Ten pakiet zawiera emulator systemu z procesorem Xtensa.
fabf5a9c 542
93473205
JR
543%package guest-agent
544Summary: QEMU guest agent
545Summary(pl.UTF-8): Agent gościa QEMU
546Group: Daemons
547Requires(post,preun,postun): systemd-units >= 38
548Requires: glib2 >= 1:2.12
549Requires: systemd-units >= 38
550Obsoletes: qemu-kvm-guest-agent
551
552%description guest-agent
553QEMU is a generic and open source processor emulator which achieves
554a good emulation speed by using dynamic translation.
555
556This package provides an agent to run inside guests, which
557communicates with the host over a virtio-serial channel named
558"org.qemu.guest_agent.0".
559
560This package does not need to be installed on the host OS.
561
562%description guest-agent -l pl.UTF-8
563QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
564dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
565
566Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
567systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
568"org.qemu.guest_agent.0".
569
570Ten pakiet nie musi być zainstalowany w systemie hosta.
571
cd19124e 572%prep
c21a255a 573%setup -q
3c6e2290 574%patch0 -p1
d9002706 575%patch1 -p1
449d43aa
JB
576%patch2 -p0
577%patch3 -p1
c18e9cf6
JB
578
579%{__mv} libcacard libcacard-use-system-lib
0b920c52 580
bd30ad73
GP
581# workaround for conflict with alsa/error.h
582ln -s ../error.h qapi/error.h
583
80bac37e 584%build
8bd2aee2 585./configure \
3c6e2290
JR
586 --extra-cflags="%{rpmcflags} -I/usr/include/ncurses" \
587 --extra-ldflags="%{rpmldflags}" \
8bd2aee2 588 --prefix=%{_prefix} \
87364910 589 --sysconfdir=%{_sysconfdir} \
98a1a188
AM
590 --cc="%{__cc}" \
591 --host-cc="%{__cc}" \
5263f8f5 592 --disable-strip \
78a71650
JB
593 --enable-attr \
594 --enable-bluez \
595 --enable-brlapi \
596 --enable-cap-ng \
597 --enable-curl \
598 --enable-curses \
87364910 599 --enable-docs \
78a71650 600 --enable-fdt \
449d43aa 601 %{__enable_disable glusterfs} \
78a71650 602 --enable-libiscsi \
b99b1652 603 --enable-mixemu \
d5150748 604 %{__enable_disable glx} \
78a71650 605 %{__enable_disable ceph rbd} \
80dbeed1 606 %{__enable_disable rdma} \
78a71650
JB
607 %{__enable_disable sdl} \
608 --enable-seccomp \
59bc1300 609 %{__enable_disable spice} \
78a71650 610 --enable-smartcard-nss \
ce44b534 611 --enable-tpm \
78a71650
JB
612 --enable-usb-redir \
613 --enable-uuid \
614 --enable-vde \
615 --enable-virtfs \
616 --enable-vnc-jpeg \
87364910 617 --enable-vnc-png \
78a71650
JB
618 --enable-vnc-sasl \
619 --enable-vnc-tls \
51327cc0 620 --enable-kvm \
78a71650 621 %{__enable_disable xen} \
87364910 622 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
ce44b534
JB
623 --interp-prefix=%{_libdir}/qemu/lib-%%M \
624 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
625
5263f8f5
JB
626# note: CONFIG_QEMU_HELPERDIR is used when compiling, libexecdir when installing;
627# --libexecdir in configure is nop
628%{__make} \
629 V=1 \
630 CONFIG_QEMU_HELPERDIR="%{_libdir}"
cd19124e 631
d9002706
PS
632# rebuild patched vesa tables with additional widescreen modes.
633%{__make} -C roms/vgabios stdvga-bios
634
9fdf235e
JR
635%{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
636
cd19124e 637%install
638rm -rf $RPM_BUILD_ROOT
51327cc0
JR
639install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
640 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
641 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
5a2da1d0 642
cd19124e 643%{__make} install \
5263f8f5
JB
644 DESTDIR=$RPM_BUILD_ROOT \
645 libexecdir=%{_libdir}
ac6e5743 646
a91fea76 647install -d $RPM_BUILD_ROOT%{_sysconfdir}
648cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
ac6e5743 649#!/bin/sh
a91fea76 650
ac6e5743 651EOF
a62a2d89 652
9fdf235e
JR
653install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
654install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
655install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
656
657install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
658install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
659install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
660
93473205
JR
661# For the qemu-guest-agent subpackage install the systemd
662# service and udev rules.
663install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
664install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
665
c33439fc 666# already packaged
5263f8f5
JB
667%{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
668%{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
c33439fc 669
d9002706 670# install patched vesa tables with additional widescreen modes.
ae8bf749 671cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
d9002706 672
a56d4cfd
JB
673%{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{de_DE,de}
674%{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{fr_FR,fr}
675%find_lang %{name}
676
cd19124e 677%clean
678rm -rf $RPM_BUILD_ROOT
679
c1d653f6
AG
680%pre common
681%groupadd -g 276 qemu
682%useradd -u 276 -g qemu -c "QEMU User" qemu
683
9fdf235e
JR
684%post common
685%systemd_post ksm.service
686%systemd_post ksmtuned.service
687
688%preun common
689%systemd_preun ksm.service
690%systemd_preun ksmtuned.service
691
c1d653f6
AG
692%postun common
693if [ "$1" = "0" ]; then
694 %userremove qemu
695 %groupremove qemu
696fi
9fdf235e
JR
697%systemd_reload
698
699%triggerpostun common -- qemu-common < 1.6.1-4
700%systemd_trigger ksm.service
701%systemd_trigger ksmtuned.service
c1d653f6 702
93473205
JR
703%post guest-agent
704%systemd_reload
705
706%preun guest-agent
707%systemd_preun qemu-guest-agent.service
708
709%postun guest-agent
710%systemd_reload
711
cd19124e 712%files
713%defattr(644,root,root,755)
fabf5a9c 714
a56d4cfd 715%files common -f %{name}.lang
fabf5a9c 716%defattr(644,root,root,755)
5263f8f5 717%doc README qemu-doc.html qemu-tech.html QMP/qmp-commands.txt
a91fea76 718%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
fabf5a9c 719%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu/target-*.conf
7c0786d1 720%dir %{_sysconfdir}/qemu
5263f8f5 721%attr(755,root,root) %{_bindir}/virtfs-proxy-helper
fabf5a9c 722%attr(755,root,root) %{_bindir}/qemu-nbd
5263f8f5 723%attr(755,root,root) %{_libdir}/qemu-bridge-helper
cd19124e 724%{_mandir}/man1/qemu.1*
5263f8f5 725%{_mandir}/man1/virtfs-proxy-helper.1*
98a1a188 726%{_mandir}/man8/qemu-nbd.8*
fabf5a9c
ER
727
728%dir %{_datadir}/qemu
729%{_datadir}/%{name}/keymaps
5263f8f5 730%{_datadir}/%{name}/qemu-icon.bmp
fabf5a9c 731# various bios images
f8ecc2ec 732%{_datadir}/%{name}/*.aml
fabf5a9c
ER
733%{_datadir}/%{name}/*.bin
734%{_datadir}/%{name}/*.rom
735%{_datadir}/%{name}/*.dtb
abd58763 736%{_datadir}/%{name}/qemu_logo_no_text.svg
fabf5a9c
ER
737%{_datadir}/%{name}/openbios-ppc
738%{_datadir}/%{name}/openbios-sparc*
739%{_datadir}/%{name}/palcode-clipper
a56d4cfd 740%{_datadir}/%{name}/s390-ccw.img
fabf5a9c
ER
741
742%files img
743%defattr(644,root,root,755)
744%attr(755,root,root) %{_bindir}/qemu-img
745%{_mandir}/man1/qemu-img.1*
746
747%files user
748%defattr(644,root,root,755)
fabf5a9c
ER
749%attr(755,root,root) %{_bindir}/qemu-alpha
750%attr(755,root,root) %{_bindir}/qemu-arm
751%attr(755,root,root) %{_bindir}/qemu-armeb
752%attr(755,root,root) %{_bindir}/qemu-cris
59bc1300 753%attr(755,root,root) %{_bindir}/qemu-i386
fabf5a9c
ER
754%attr(755,root,root) %{_bindir}/qemu-io
755%attr(755,root,root) %{_bindir}/qemu-m68k
756%attr(755,root,root) %{_bindir}/qemu-microblaze
757%attr(755,root,root) %{_bindir}/qemu-microblazeel
758%attr(755,root,root) %{_bindir}/qemu-mips
759%attr(755,root,root) %{_bindir}/qemu-mipsel
a56d4cfd
JB
760%attr(755,root,root) %{_bindir}/qemu-mips64
761%attr(755,root,root) %{_bindir}/qemu-mips64el
762%attr(755,root,root) %{_bindir}/qemu-mipsn32
763%attr(755,root,root) %{_bindir}/qemu-mipsn32el
92c357d4 764%attr(755,root,root) %{_bindir}/qemu-or32
fabf5a9c
ER
765%attr(755,root,root) %{_bindir}/qemu-ppc
766%attr(755,root,root) %{_bindir}/qemu-ppc64
767%attr(755,root,root) %{_bindir}/qemu-ppc64abi32
768%attr(755,root,root) %{_bindir}/qemu-s390x
769%attr(755,root,root) %{_bindir}/qemu-sh4
770%attr(755,root,root) %{_bindir}/qemu-sh4eb
771%attr(755,root,root) %{_bindir}/qemu-sparc
772%attr(755,root,root) %{_bindir}/qemu-sparc32plus
773%attr(755,root,root) %{_bindir}/qemu-sparc64
774%attr(755,root,root) %{_bindir}/qemu-unicore32
59bc1300 775%attr(755,root,root) %{_bindir}/qemu-x86_64
fabf5a9c
ER
776
777%files system-alpha
778%defattr(644,root,root,755)
779%attr(755,root,root) %{_bindir}/qemu-system-alpha
780
781%files system-arm
782%defattr(644,root,root,755)
783%attr(755,root,root) %{_bindir}/qemu-system-arm
784
785%files system-cris
786%defattr(644,root,root,755)
787%attr(755,root,root) %{_bindir}/qemu-system-cris
788
789%files system-lm32
790%defattr(644,root,root,755)
791%attr(755,root,root) %{_bindir}/qemu-system-lm32
792
793%files system-m68k
794%defattr(644,root,root,755)
795%attr(755,root,root) %{_bindir}/qemu-system-m68k
796
797%files system-microblaze
798%defattr(644,root,root,755)
799%attr(755,root,root) %{_bindir}/qemu-system-microblaze
800%attr(755,root,root) %{_bindir}/qemu-system-microblazeel
801
802%files system-mips
803%defattr(644,root,root,755)
804%attr(755,root,root) %{_bindir}/qemu-system-mips
805%attr(755,root,root) %{_bindir}/qemu-system-mipsel
806%attr(755,root,root) %{_bindir}/qemu-system-mips64
807%attr(755,root,root) %{_bindir}/qemu-system-mips64el
808
a56d4cfd
JB
809%files system-moxie
810%defattr(644,root,root,755)
811%attr(755,root,root) %{_bindir}/qemu-system-moxie
812
92c357d4
PS
813%files system-or32
814%defattr(644,root,root,755)
815%attr(755,root,root) %{_bindir}/qemu-system-or32
816
fabf5a9c
ER
817%files system-ppc
818%defattr(644,root,root,755)
819%attr(755,root,root) %{_bindir}/qemu-system-ppc
820%attr(755,root,root) %{_bindir}/qemu-system-ppc64
821%attr(755,root,root) %{_bindir}/qemu-system-ppcemb
822
823%files system-s390x
824%defattr(644,root,root,755)
825%attr(755,root,root) %{_bindir}/qemu-system-s390x
826
827%files system-sh4
828%defattr(644,root,root,755)
829%attr(755,root,root) %{_bindir}/qemu-system-sh4
830%attr(755,root,root) %{_bindir}/qemu-system-sh4eb
831
832%files system-sparc
833%defattr(644,root,root,755)
834%attr(755,root,root) %{_bindir}/qemu-system-sparc
835%attr(755,root,root) %{_bindir}/qemu-system-sparc64
836
72ddf007
PS
837%files system-unicore32
838%defattr(644,root,root,755)
839%attr(755,root,root) %{_bindir}/qemu-system-unicore32
840
fabf5a9c
ER
841%files system-x86
842%defattr(644,root,root,755)
843%attr(755,root,root) %{_bindir}/qemu-system-i386
844%attr(755,root,root) %{_bindir}/qemu-system-x86_64
845
846%files system-xtensa
847%defattr(644,root,root,755)
848%attr(755,root,root) %{_bindir}/qemu-system-xtensa
849%attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
93473205
JR
850
851%files guest-agent
852%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
853%{systemdunitdir}/qemu-guest-agent.service
854%attr(755,root,root) %{_bindir}/qemu-ga
This page took 0.293243 seconds and 4 git commands to generate.