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