]> git.pld-linux.org Git - packages/qemu.git/blame - qemu.spec
- package KSM support files
[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
c980f439 168Requires(post,preun,postun): systemd-units >= 38
14b9f266
AG
169Requires(postun): /usr/sbin/groupdel
170Requires(postun): /usr/sbin/userdel
171Requires(pre): /bin/id
172Requires(pre): /usr/bin/getgid
173Requires(pre): /usr/sbin/groupadd
174Requires(pre): /usr/sbin/useradd
ce44b534
JB
175Requires: glib2 >= 1:2.12
176Requires: libssh2 >= 1.2.8
c980f439 177Requires: systemd-units >= 38
14b9f266
AG
178Provides: group(qemu)
179Provides: user(qemu)
e03112c2 180Obsoletes: qemu-kvm-common
fabf5a9c
ER
181Conflicts: qemu < 1.0-2
182
183%description common
184QEMU is a generic and open source processor emulator which achieves a
185good emulation speed by using dynamic translation.
186
187This package provides the common files needed by all QEMU targets.
188
d86014ba
JB
189%description common -l pl.UTF-8
190QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
191dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
192
193Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie
194środowiska QEMU.
195
196%package img
fabf5a9c 197Summary: QEMU command line tool for manipulating disk images
d86014ba 198Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków
fabf5a9c
ER
199Group: Development/Tools
200Conflicts: qemu < 1.0-2
e03112c2 201Obsoletes: qemu-kvm-img
fabf5a9c
ER
202
203%description img
d86014ba
JB
204This package provides a command line tool for manipulating disk
205images.
206
207%description img -l pl.UTF-8
208Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji
209na obrazach dysków.
fabf5a9c
ER
210
211%package user
212Summary: QEMU user mode emulation of qemu targets
d86014ba 213Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu
fabf5a9c
ER
214Group: Development/Tools
215Requires: %{name}-common = %{version}-%{release}
e03112c2 216Obsoletes: qemu-kvm-user
fabf5a9c
ER
217
218%description user
219QEMU is a generic and open source processor emulator which achieves a
220good emulation speed by using dynamic translation.
221
222This package provides the user mode emulation of QEMU targets.
223
d86014ba
JB
224%description user -l pl.UTF-8
225QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
226dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
227
228Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU.
229
fabf5a9c 230%package system-alpha
d86014ba
JB
231Summary: QEMU system emulator for Alpha
232Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha
fabf5a9c
ER
233Group: Development/Tools
234Requires: %{name}-common = %{version}-%{release}
78a71650 235%systempkg_req
e03112c2 236Obsoletes: qemu-kvm-system-alpha
fabf5a9c
ER
237
238%description system-alpha
239QEMU is a generic and open source processor emulator which achieves a
240good emulation speed by using dynamic translation.
241
d86014ba
JB
242This package provides the system emulator with Alpha CPU.
243
244%description system-alpha -l pl.UTF-8
245QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
246dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
247
248Ten pakiet zawiera emulator systemu z procesorem Alpha.
fabf5a9c
ER
249
250%package system-arm
d86014ba
JB
251Summary: QEMU system emulator for ARM
252Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM
fabf5a9c
ER
253Group: Development/Tools
254Requires: %{name}-common = %{version}-%{release}
78a71650 255%systempkg_req
e03112c2 256Obsoletes: qemu-kvm-system-arm
fabf5a9c
ER
257
258%description system-arm
259QEMU is a generic and open source processor emulator which achieves a
260good emulation speed by using dynamic translation.
261
d86014ba
JB
262This package provides the system emulator for ARM.
263
264%description system-arm -l pl.UTF-8
265QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
266dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
267
268Ten pakiet zawiera emulator systemu z procesorem ARM.
fabf5a9c
ER
269
270%package system-cris
59bc1300 271Summary: QEMU system emulator for CRIS
d86014ba 272Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS
fabf5a9c
ER
273Group: Development/Tools
274Requires: %{name}-common = %{version}-%{release}
78a71650 275%systempkg_req
e03112c2 276Obsoletes: qemu-kvm-system-cris
fabf5a9c
ER
277
278%description system-cris
279QEMU is a generic and open source processor emulator which achieves a
280good emulation speed by using dynamic translation.
281
d86014ba
JB
282This package provides the system emulator with CRIS CPU.
283
284%description system-cris -l pl.UTF-8
285QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
286dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
287
288Ten pakiet zawiera emulator systemu z procesorem CRIS.
fabf5a9c
ER
289
290%package system-lm32
d86014ba
JB
291Summary: QEMU system emulator for LM32
292Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32
fabf5a9c
ER
293Group: Development/Tools
294Requires: %{name}-common = %{version}-%{release}
78a71650 295%systempkg_req
e03112c2 296Obsoletes: qemu-kvm-system-lm32
fabf5a9c
ER
297
298%description system-lm32
299QEMU is a generic and open source processor emulator which achieves a
300good emulation speed by using dynamic translation.
301
d86014ba
JB
302This package provides the system emulator with LM32 CPU.
303
304%description system-lm32 -l pl.UTF-8
305QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
306dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
307
308Ten pakiet zawiera emulator systemu z procesorem LM32.
fabf5a9c
ER
309
310%package system-m68k
311Summary: QEMU system emulator for m68k
d86014ba 312Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k
fabf5a9c
ER
313Group: Development/Tools
314Requires: %{name}-common = %{version}-%{release}
78a71650 315%systempkg_req
e03112c2 316Obsoletes: qemu-kvm-system-m68k
fabf5a9c
ER
317
318%description system-m68k
319QEMU is a generic and open source processor emulator which achieves a
320good emulation speed by using dynamic translation.
321
d86014ba
JB
322This package provides the system emulator with m68k CPU.
323
324%description system-m68k -l pl.UTF-8
325QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
326dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
327
328Ten pakiet zawiera emulator systemu z procesorem m68k.
fabf5a9c
ER
329
330%package system-microblaze
d86014ba
JB
331Summary: QEMU system emulator for MicroBlaze
332Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze
fabf5a9c
ER
333Group: Development/Tools
334Requires: %{name}-common = %{version}-%{release}
78a71650 335%systempkg_req
e03112c2 336Obsoletes: qemu-kvm-system-microblaze
fabf5a9c
ER
337
338%description system-microblaze
339QEMU is a generic and open source processor emulator which achieves a
340good emulation speed by using dynamic translation.
341
d86014ba
JB
342This package provides the system emulator with MicroBlaze CPU.
343
344%description system-microblaze -l pl.UTF-8
345QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
346dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
347
348Ten pakiet zawiera emulator systemu z procesorem MicroBlaze.
fabf5a9c
ER
349
350%package system-mips
d86014ba
JB
351Summary: QEMU system emulator for MIPS
352Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS
fabf5a9c
ER
353Group: Development/Tools
354Requires: %{name}-common = %{version}-%{release}
78a71650 355%systempkg_req
e03112c2 356Obsoletes: qemu-kvm-system-mips
fabf5a9c
ER
357
358%description system-mips
359QEMU is a generic and open source processor emulator which achieves a
360good emulation speed by using dynamic translation.
361
d86014ba
JB
362This package provides the system emulator with MIPS CPU.
363
364%description system-mips -l pl.UTF-8
365QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
366dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
367
368Ten pakiet zawiera emulator systemu z procesorem MIPS.
fabf5a9c 369
a56d4cfd
JB
370%package system-moxie
371Summary: QEMU system emulator for Moxie
372Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Moxie
373Group: Development/Tools
374Requires: %{name}-common = %{version}-%{release}
375%systempkg_req
376
377%description system-moxie
378QEMU is a generic and open source processor emulator which achieves a
379good emulation speed by using dynamic translation.
380
381This package provides the system emulator with Moxie CPU.
382
383%description system-moxie -l pl.UTF-8
384QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
385dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
386
387Ten pakiet zawiera emulator systemu z procesorem Moxie.
388
92c357d4 389%package system-or32
d86014ba
JB
390Summary: QEMU system emulator for OpenRISC
391Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC
92c357d4
PS
392Group: Development/Tools
393Requires: %{name}-common = %{version}-%{release}
78a71650 394%systempkg_req
e03112c2 395Obsoletes: qemu-kvm-system-or32
92c357d4
PS
396
397%description system-or32
398QEMU is a generic and open source processor emulator which achieves a
399good emulation speed by using dynamic translation.
400
d86014ba
JB
401This package provides the system emulator with OpenRISC CPU.
402
403%description system-or32 -l pl.UTF-8
404QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
405dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
406
407Ten pakiet zawiera emulator systemu z procesorem OpenRISC.
92c357d4 408
fabf5a9c 409%package system-ppc
d86014ba
JB
410Summary: QEMU system emulator for PowerPC
411Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC
fabf5a9c
ER
412Group: Development/Tools
413Requires: %{name}-common = %{version}-%{release}
78a71650 414%systempkg_req
e03112c2 415Obsoletes: qemu-kvm-system-ppc
fabf5a9c
ER
416
417%description system-ppc
418QEMU is a generic and open source processor emulator which achieves a
419good emulation speed by using dynamic translation.
420
d86014ba
JB
421This package provides the system emulator with PowerPC CPU.
422
423%description system-ppc -l pl.UTF-8
424QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
425dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
426
427Ten pakiet zawiera emulator systemu z procesorem PowerPC.
fabf5a9c
ER
428
429%package system-s390x
d86014ba
JB
430Summary: QEMU system emulator for S390
431Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390
fabf5a9c
ER
432Group: Development/Tools
433Requires: %{name}-common = %{version}-%{release}
78a71650 434%systempkg_req
e03112c2 435Obsoletes: qemu-kvm-system-s390x
fabf5a9c
ER
436
437%description system-s390x
438QEMU is a generic and open source processor emulator which achieves a
439good emulation speed by using dynamic translation.
440
d86014ba
JB
441This package provides the system emulator with S390 CPU.
442
443%description system-s390x -l pl.UTF-8
444QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
445dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
446
447Ten pakiet zawiera emulator systemu z procesorem S390.
fabf5a9c
ER
448
449%package system-sh4
d86014ba
JB
450Summary: QEMU system emulator for SH4
451Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4
fabf5a9c
ER
452Group: Development/Tools
453Requires: %{name}-common = %{version}-%{release}
78a71650 454%systempkg_req
e03112c2 455Obsoletes: qemu-kvm-system-sh4
fabf5a9c
ER
456
457%description system-sh4
458QEMU is a generic and open source processor emulator which achieves a
459good emulation speed by using dynamic translation.
460
d86014ba
JB
461This package provides the system emulator with SH4 CPU.
462
463%description system-sh4 -l pl.UTF-8
464QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
465dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
466
467Ten pakiet zawiera emulator systemu z procesorem SH4.
fabf5a9c
ER
468
469%package system-sparc
d86014ba
JB
470Summary: QEMU system emulator for SPARC
471Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC
fabf5a9c
ER
472Group: Development/Tools
473Requires: %{name}-common = %{version}-%{release}
78a71650 474%systempkg_req
e03112c2 475Obsoletes: qemu-kvm-system-sparc
fabf5a9c
ER
476
477%description system-sparc
478QEMU is a generic and open source processor emulator which achieves a
479good emulation speed by using dynamic translation.
480
d86014ba
JB
481This package provides the system emulator with SPARC/SPARC64 CPU.
482
483%description system-sparc -l pl.UTF-8
484QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
485dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
486
487Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64.
fabf5a9c 488
72ddf007 489%package system-unicore32
d86014ba
JB
490Summary: QEMU system emulator for UniCore32
491Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32
72ddf007
PS
492Group: Development/Tools
493Requires: %{name}-common = %{version}-%{release}
78a71650 494%systempkg_req
e03112c2 495Obsoletes: qemu-kvm-system-unicore32
72ddf007
PS
496
497%description system-unicore32
498QEMU is a generic and open source processor emulator which achieves a
499good emulation speed by using dynamic translation.
500
d86014ba
JB
501This package provides the system emulator with UniCore32 CPU.
502
503%description system-unicore32 -l pl.UTF-8
504QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
505dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
506
507Ten pakiet zawiera emulator systemu z procesorem UniCore32.
72ddf007 508
fabf5a9c
ER
509%package system-x86
510Summary: QEMU system emulator for x86
d86014ba 511Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86
fabf5a9c
ER
512Group: Development/Tools
513Requires: %{name}-common = %{version}-%{release}
78a71650 514%systempkg_req
e03112c2 515Obsoletes: qemu-kvm-system-x86
fabf5a9c
ER
516
517%description system-x86
518QEMU is a generic and open source processor emulator which achieves a
519good emulation speed by using dynamic translation.
520
d86014ba
JB
521%description system-x86 -l pl.UTF-8
522QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
523dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
524
fabf5a9c 525%package system-xtensa
d86014ba
JB
526Summary: QEMU system emulator for Xtensa
527Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa
fabf5a9c
ER
528Group: Development/Tools
529Requires: %{name}-common = %{version}-%{release}
78a71650 530%systempkg_req
e03112c2 531Obsoletes: qemu-kvm-system-xtensa
fabf5a9c
ER
532
533%description system-xtensa
534QEMU is a generic and open source processor emulator which achieves a
535good emulation speed by using dynamic translation.
536
d86014ba
JB
537This package provides the system emulator with Xtensa CPU.
538
539%description system-xtensa -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 Xtensa.
fabf5a9c 544
93473205
JR
545%package guest-agent
546Summary: QEMU guest agent
547Summary(pl.UTF-8): Agent gościa QEMU
548Group: Daemons
549Requires(post,preun,postun): systemd-units >= 38
550Requires: glib2 >= 1:2.12
551Requires: systemd-units >= 38
552Obsoletes: qemu-kvm-guest-agent
553
554%description guest-agent
555QEMU is a generic and open source processor emulator which achieves
556a good emulation speed by using dynamic translation.
557
558This package provides an agent to run inside guests, which
559communicates with the host over a virtio-serial channel named
560"org.qemu.guest_agent.0".
561
562This package does not need to be installed on the host OS.
563
564%description guest-agent -l pl.UTF-8
565QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający
566dobrą szybkość emulacji dzięki użyciu translacji dynamicznej.
567
568Ten pakiet udostępnia agenta przeznaczonego do uruchomienia w
569systemach-gościach, komunikującego się kanałem virtio-serial o nazwie
570"org.qemu.guest_agent.0".
571
572Ten pakiet nie musi być zainstalowany w systemie hosta.
573
cd19124e 574%prep
c21a255a 575%setup -q
3c6e2290 576%patch0 -p1
d9002706 577%patch1 -p1
449d43aa
JB
578%patch2 -p0
579%patch3 -p1
c18e9cf6
JB
580
581%{__mv} libcacard libcacard-use-system-lib
0b920c52 582
bd30ad73
GP
583# workaround for conflict with alsa/error.h
584ln -s ../error.h qapi/error.h
585
80bac37e 586%build
8bd2aee2 587./configure \
3c6e2290
JR
588 --extra-cflags="%{rpmcflags} -I/usr/include/ncurses" \
589 --extra-ldflags="%{rpmldflags}" \
8bd2aee2 590 --prefix=%{_prefix} \
87364910 591 --sysconfdir=%{_sysconfdir} \
98a1a188
AM
592 --cc="%{__cc}" \
593 --host-cc="%{__cc}" \
5263f8f5 594 --disable-strip \
78a71650
JB
595 --enable-attr \
596 --enable-bluez \
597 --enable-brlapi \
598 --enable-cap-ng \
599 --enable-curl \
600 --enable-curses \
87364910 601 --enable-docs \
78a71650 602 --enable-fdt \
449d43aa 603 %{__enable_disable glusterfs} \
78a71650 604 --enable-libiscsi \
b99b1652 605 --enable-mixemu \
d5150748 606 %{__enable_disable glx} \
78a71650 607 %{__enable_disable ceph rbd} \
80dbeed1 608 %{__enable_disable rdma} \
78a71650
JB
609 %{__enable_disable sdl} \
610 --enable-seccomp \
59bc1300 611 %{__enable_disable spice} \
78a71650 612 --enable-smartcard-nss \
ce44b534 613 --enable-tpm \
78a71650
JB
614 --enable-usb-redir \
615 --enable-uuid \
616 --enable-vde \
617 --enable-virtfs \
618 --enable-vnc-jpeg \
87364910 619 --enable-vnc-png \
78a71650
JB
620 --enable-vnc-sasl \
621 --enable-vnc-tls \
51327cc0 622 --enable-kvm \
78a71650 623 %{__enable_disable xen} \
87364910 624 --audio-drv-list="alsa%{?with_iss:,oss}%{?with_sdl:,sdl}%{?with_esd:,esd}%{?with_pulseaudio:,pa}" \
ce44b534
JB
625 --interp-prefix=%{_libdir}/qemu/lib-%%M \
626 --with-gtkabi="%{?with_gtk2:2.0}%{!?with_gtk2:3.0}"
627
5263f8f5
JB
628# note: CONFIG_QEMU_HELPERDIR is used when compiling, libexecdir when installing;
629# --libexecdir in configure is nop
630%{__make} \
631 V=1 \
632 CONFIG_QEMU_HELPERDIR="%{_libdir}"
cd19124e 633
d9002706
PS
634# rebuild patched vesa tables with additional widescreen modes.
635%{__make} -C roms/vgabios stdvga-bios
636
9fdf235e
JR
637%{__cc} %{SOURCE7} %{rpmcflags} -o ksmctl
638
cd19124e 639%install
640rm -rf $RPM_BUILD_ROOT
51327cc0
JR
641install -d $RPM_BUILD_ROOT{%{systemdunitdir},/usr/lib/binfmt.d} \
642 $RPM_BUILD_ROOT/etc/{sysconfig,udev/rules.d,modules-load.d} \
643 $RPM_BUILD_ROOT{%{_sysconfdir}/sasl,%{_sbindir}}
5a2da1d0 644
cd19124e 645%{__make} install \
5263f8f5
JB
646 DESTDIR=$RPM_BUILD_ROOT \
647 libexecdir=%{_libdir}
ac6e5743 648
a91fea76 649install -d $RPM_BUILD_ROOT%{_sysconfdir}
650cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
ac6e5743 651#!/bin/sh
a91fea76 652
ac6e5743 653EOF
a62a2d89 654
9fdf235e
JR
655install -p %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}/ksm.service
656install -p %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/ksm
657install -p ksmctl $RPM_BUILD_ROOT%{_sbindir}
658
659install -p %{SOURCE8} $RPM_BUILD_ROOT%{systemdunitdir}/ksmtuned.service
660install -p %{SOURCE9} $RPM_BUILD_ROOT%{_sbindir}/ksmtuned
661install -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/ksmtuned.conf
662
93473205
JR
663# For the qemu-guest-agent subpackage install the systemd
664# service and udev rules.
665install -p %{SOURCE11} $RPM_BUILD_ROOT%{systemdunitdir}
666install -p %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
667
c33439fc 668# already packaged
5263f8f5
JB
669%{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
670%{__rm} $RPM_BUILD_ROOT%{_docdir}/qemu/qmp-commands.txt
c33439fc 671
d9002706 672# install patched vesa tables with additional widescreen modes.
ae8bf749 673cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
d9002706 674
a56d4cfd
JB
675%{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{de_DE,de}
676%{__mv} $RPM_BUILD_ROOT%{_datadir}/locale/{fr_FR,fr}
677%find_lang %{name}
678
cd19124e 679%clean
680rm -rf $RPM_BUILD_ROOT
681
c1d653f6
AG
682%pre common
683%groupadd -g 276 qemu
684%useradd -u 276 -g qemu -c "QEMU User" qemu
685
9fdf235e
JR
686%post common
687%systemd_post ksm.service
688%systemd_post ksmtuned.service
689
690%preun common
691%systemd_preun ksm.service
692%systemd_preun ksmtuned.service
693
c1d653f6
AG
694%postun common
695if [ "$1" = "0" ]; then
696 %userremove qemu
697 %groupremove qemu
698fi
9fdf235e
JR
699%systemd_reload
700
701%triggerpostun common -- qemu-common < 1.6.1-4
702%systemd_trigger ksm.service
703%systemd_trigger ksmtuned.service
c1d653f6 704
93473205
JR
705%post guest-agent
706%systemd_reload
707
708%preun guest-agent
709%systemd_preun qemu-guest-agent.service
710
711%postun guest-agent
712%systemd_reload
713
cd19124e 714%files
715%defattr(644,root,root,755)
fabf5a9c 716
a56d4cfd 717%files common -f %{name}.lang
fabf5a9c 718%defattr(644,root,root,755)
5263f8f5 719%doc README qemu-doc.html qemu-tech.html QMP/qmp-commands.txt
a91fea76 720%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
fabf5a9c 721%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu/target-*.conf
c980f439
JR
722%config(noreplace) %verify(not md5 mtime size) /etc/ksmtuned.conf
723%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm
724%{systemdunitdir}/ksm.service
725%{systemdunitdir}/ksmtuned.service
7c0786d1 726%dir %{_sysconfdir}/qemu
5263f8f5 727%attr(755,root,root) %{_bindir}/virtfs-proxy-helper
fabf5a9c 728%attr(755,root,root) %{_bindir}/qemu-nbd
5263f8f5 729%attr(755,root,root) %{_libdir}/qemu-bridge-helper
c980f439
JR
730%attr(755,root,root) %{_sbindir}/ksmctl
731%attr(755,root,root) %{_sbindir}/ksmtuned
cd19124e 732%{_mandir}/man1/qemu.1*
5263f8f5 733%{_mandir}/man1/virtfs-proxy-helper.1*
98a1a188 734%{_mandir}/man8/qemu-nbd.8*
fabf5a9c
ER
735
736%dir %{_datadir}/qemu
737%{_datadir}/%{name}/keymaps
5263f8f5 738%{_datadir}/%{name}/qemu-icon.bmp
fabf5a9c 739# various bios images
f8ecc2ec 740%{_datadir}/%{name}/*.aml
fabf5a9c
ER
741%{_datadir}/%{name}/*.bin
742%{_datadir}/%{name}/*.rom
743%{_datadir}/%{name}/*.dtb
abd58763 744%{_datadir}/%{name}/qemu_logo_no_text.svg
fabf5a9c
ER
745%{_datadir}/%{name}/openbios-ppc
746%{_datadir}/%{name}/openbios-sparc*
747%{_datadir}/%{name}/palcode-clipper
a56d4cfd 748%{_datadir}/%{name}/s390-ccw.img
fabf5a9c
ER
749
750%files img
751%defattr(644,root,root,755)
752%attr(755,root,root) %{_bindir}/qemu-img
753%{_mandir}/man1/qemu-img.1*
754
755%files user
756%defattr(644,root,root,755)
fabf5a9c
ER
757%attr(755,root,root) %{_bindir}/qemu-alpha
758%attr(755,root,root) %{_bindir}/qemu-arm
759%attr(755,root,root) %{_bindir}/qemu-armeb
760%attr(755,root,root) %{_bindir}/qemu-cris
59bc1300 761%attr(755,root,root) %{_bindir}/qemu-i386
fabf5a9c
ER
762%attr(755,root,root) %{_bindir}/qemu-io
763%attr(755,root,root) %{_bindir}/qemu-m68k
764%attr(755,root,root) %{_bindir}/qemu-microblaze
765%attr(755,root,root) %{_bindir}/qemu-microblazeel
766%attr(755,root,root) %{_bindir}/qemu-mips
767%attr(755,root,root) %{_bindir}/qemu-mipsel
a56d4cfd
JB
768%attr(755,root,root) %{_bindir}/qemu-mips64
769%attr(755,root,root) %{_bindir}/qemu-mips64el
770%attr(755,root,root) %{_bindir}/qemu-mipsn32
771%attr(755,root,root) %{_bindir}/qemu-mipsn32el
92c357d4 772%attr(755,root,root) %{_bindir}/qemu-or32
fabf5a9c
ER
773%attr(755,root,root) %{_bindir}/qemu-ppc
774%attr(755,root,root) %{_bindir}/qemu-ppc64
775%attr(755,root,root) %{_bindir}/qemu-ppc64abi32
776%attr(755,root,root) %{_bindir}/qemu-s390x
777%attr(755,root,root) %{_bindir}/qemu-sh4
778%attr(755,root,root) %{_bindir}/qemu-sh4eb
779%attr(755,root,root) %{_bindir}/qemu-sparc
780%attr(755,root,root) %{_bindir}/qemu-sparc32plus
781%attr(755,root,root) %{_bindir}/qemu-sparc64
782%attr(755,root,root) %{_bindir}/qemu-unicore32
59bc1300 783%attr(755,root,root) %{_bindir}/qemu-x86_64
fabf5a9c
ER
784
785%files system-alpha
786%defattr(644,root,root,755)
787%attr(755,root,root) %{_bindir}/qemu-system-alpha
788
789%files system-arm
790%defattr(644,root,root,755)
791%attr(755,root,root) %{_bindir}/qemu-system-arm
792
793%files system-cris
794%defattr(644,root,root,755)
795%attr(755,root,root) %{_bindir}/qemu-system-cris
796
797%files system-lm32
798%defattr(644,root,root,755)
799%attr(755,root,root) %{_bindir}/qemu-system-lm32
800
801%files system-m68k
802%defattr(644,root,root,755)
803%attr(755,root,root) %{_bindir}/qemu-system-m68k
804
805%files system-microblaze
806%defattr(644,root,root,755)
807%attr(755,root,root) %{_bindir}/qemu-system-microblaze
808%attr(755,root,root) %{_bindir}/qemu-system-microblazeel
809
810%files system-mips
811%defattr(644,root,root,755)
812%attr(755,root,root) %{_bindir}/qemu-system-mips
813%attr(755,root,root) %{_bindir}/qemu-system-mipsel
814%attr(755,root,root) %{_bindir}/qemu-system-mips64
815%attr(755,root,root) %{_bindir}/qemu-system-mips64el
816
a56d4cfd
JB
817%files system-moxie
818%defattr(644,root,root,755)
819%attr(755,root,root) %{_bindir}/qemu-system-moxie
820
92c357d4
PS
821%files system-or32
822%defattr(644,root,root,755)
823%attr(755,root,root) %{_bindir}/qemu-system-or32
824
fabf5a9c
ER
825%files system-ppc
826%defattr(644,root,root,755)
827%attr(755,root,root) %{_bindir}/qemu-system-ppc
828%attr(755,root,root) %{_bindir}/qemu-system-ppc64
829%attr(755,root,root) %{_bindir}/qemu-system-ppcemb
830
831%files system-s390x
832%defattr(644,root,root,755)
833%attr(755,root,root) %{_bindir}/qemu-system-s390x
834
835%files system-sh4
836%defattr(644,root,root,755)
837%attr(755,root,root) %{_bindir}/qemu-system-sh4
838%attr(755,root,root) %{_bindir}/qemu-system-sh4eb
839
840%files system-sparc
841%defattr(644,root,root,755)
842%attr(755,root,root) %{_bindir}/qemu-system-sparc
843%attr(755,root,root) %{_bindir}/qemu-system-sparc64
844
72ddf007
PS
845%files system-unicore32
846%defattr(644,root,root,755)
847%attr(755,root,root) %{_bindir}/qemu-system-unicore32
848
fabf5a9c
ER
849%files system-x86
850%defattr(644,root,root,755)
851%attr(755,root,root) %{_bindir}/qemu-system-i386
852%attr(755,root,root) %{_bindir}/qemu-system-x86_64
853
854%files system-xtensa
855%defattr(644,root,root,755)
856%attr(755,root,root) %{_bindir}/qemu-system-xtensa
857%attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
93473205
JR
858
859%files guest-agent
860%config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/99-qemu-guest-agent.rules
861%{systemdunitdir}/qemu-guest-agent.service
862%attr(755,root,root) %{_bindir}/qemu-ga
This page took 0.187731 seconds and 4 git commands to generate.