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