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