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