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