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