]> git.pld-linux.org Git - packages/qemu.git/blame - qemu.spec
updated to 1.2.0.
[packages/qemu.git] / qemu.spec
CommitLineData
0b920c52 1# TODO:
3d0e0752 2# - package virtfs-proxy-helper, qemu-bridge-helper.
697b0ba8 3# - package qemu-system-or32
98a1a188 4# - update patches
01b9430c 5# - qemu-system-ppc -hda ac-ppc.img says:
fabf5a9c 6# qemu: could not open disk image ac-ppc.img: error "Success"
01b9430c 7# qemu-0.12.2-2.x86_64.rpm - broken
cef095a4 8# qemu-0.12.3-3.x86_64/qemu-0.12.4-1.x86_64 - stops on "returning from prom_init"
fabf5a9c
ER
9# qemu-0.15.0-2.x86_64.rpm - qemu-system-sparc/ppc booting with -kernel, -initrd options stalls in openbios prompt
10# qemu-0.11.1-*.x86_64.rpm - OK
0b920c52 11#
6aef4654 12# Conditional build:
a6d3659e 13%bcond_with nosdlgui # do not use SDL gui (use X11 instead)
007877cb 14
cd19124e 15Summary: QEMU CPU Emulator
eec0535a 16Summary(pl.UTF-8): QEMU - emulator procesora
7b81d160 17Name: qemu
697b0ba8 18Version: 1.2.0
ad857655 19Release: 1
5a2da1d0
JB
20License: GPL
21Group: Applications/Emulators
697b0ba8
PS
22Source0: http://wiki.qemu.org/download/%{name}-%{version}.tar.bz2
23# Source0-md5: 78eb1e984f4532aa9f2bdd3c127b5b61
7b81d160 24Patch6: %{name}-nosdlgui.patch
81a493f2 25# Proof of concept, for reference, do not remove
7b81d160 26Patch8: %{name}-kde_virtual_workspaces_hack.patch
ba4329df 27Patch17: %{name}-whitelist.patch
d6bd22e9 28URL: http://wiki.qemu.org/Index.html
867764ba 29BuildRequires: SDL-devel >= 1.2.1
b0b3ca8d 30BuildRequires: alsa-lib-devel
b99b1652
AM
31BuildRequires: bluez-libs-devel
32BuildRequires: gnutls-devel
98a1a188 33BuildRequires: ncurses-devel
995bac8b 34BuildRequires: perl-Encode
2fb8ea02 35BuildRequires: perl-tools-pod
ba84a935 36BuildRequires: pkgconfig
8bb1261c 37BuildRequires: sed >= 4.0
a1146336 38BuildRequires: texi2html
22f71ecb 39BuildRequires: texinfo
cad677a4 40BuildRequires: which
3d0e0752 41BuildRequires: xen-devel
ba84a935 42BuildRequires: xorg-lib-libX11-devel
fabf5a9c
ER
43Requires: %{name}-img = %{version}-%{release}
44Requires: %{name}-system-alpha = %{version}-%{release}
45Requires: %{name}-system-arm = %{version}-%{release}
46Requires: %{name}-system-cris = %{version}-%{release}
47Requires: %{name}-system-lm32 = %{version}-%{release}
48Requires: %{name}-system-m68k = %{version}-%{release}
49Requires: %{name}-system-microblaze = %{version}-%{release}
50Requires: %{name}-system-mips = %{version}-%{release}
51Requires: %{name}-system-ppc = %{version}-%{release}
52Requires: %{name}-system-s390x = %{version}-%{release}
53Requires: %{name}-system-sh4 = %{version}-%{release}
54Requires: %{name}-system-sparc = %{version}-%{release}
55Requires: %{name}-system-x86 = %{version}-%{release}
56Requires: %{name}-system-xtensa = %{version}-%{release}
57Requires: %{name}-user = %{version}-%{release}
2ef13cb9 58# sparc is currently unsupported (missing cpu_get_real_ticks() impl in vl.c)
007877cb 59ExclusiveArch: %{ix86} %{x8664} %{?with_userspace:ppc}
cd19124e 60BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61
98a1a188 62# some PPC/SPARC boot image in ELF format
22f71ecb 63%define _noautostrip .*%{_datadir}/qemu/.*-.*
a154aede 64
cd19124e 65%description
66QEMU is a FAST! processor emulator. By using dynamic translation it
67achieves a reasonnable speed while being easy to port on new host
68CPUs. QEMU has two operating modes:
69
70- User mode emulation. In this mode, QEMU can launch Linux processes
71 compiled for one CPU on another CPU. Linux system calls are converted
72 because of endianness and 32/64 bit mismatches. Wine (Windows
73 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
74
75- Full system emulation. In this mode, QEMU emulates a full system,
8799423b
ER
76 including a processor and various peripherials. It can also be used to
77 provide virtual hosting of several virtual PC on a single server.
cd19124e 78
27b30e9c
JR
79%description -l pl.UTF-8
80QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego
81tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania,
82aby działał na kolejnych procesorach. QEMU ma dwa tryby pracy:
5a2da1d0 83
27b30e9c 84- Emulacja trybu użytkownika. W tym trybie QEMU może uruchamiać
5a2da1d0 85 procesy linuksowe skompilowane dla jednego procesora na innym
27b30e9c
JR
86 procesorze. Linuksowe wywołania systemowe są tłumaczone ze względu na
87 niezgodność kolejności bajtów w słowie i 32/64-bitowego rozmiaru
88 słowa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to główne
5a2da1d0
JB
89 cele QEMU.
90
27b30e9c
JR
91- Pełna emulacja systemu. W tym trybie QEMU emuluje cały system,
92 włączając w to procesor i różne urządzenia peryferyjne. Może być także
93 używane do wirtualnego hostowania kilku wirtualnych pecetów na
8799423b 94 pojedynczym serwerze.
5a2da1d0 95
fabf5a9c
ER
96%package common
97Summary: QEMU common files needed by all QEMU targets
98Group: Development/Tools
99Requires: SDL >= 1.2.1
100Conflicts: qemu < 1.0-2
101
102%description common
103QEMU is a generic and open source processor emulator which achieves a
104good emulation speed by using dynamic translation.
105
106This package provides the common files needed by all QEMU targets.
107
108%package img
109Summary: QEMU command line tool for manipulating disk images
110Group: Development/Tools
111Conflicts: qemu < 1.0-2
112
113%description img
114This package provides a command line tool for manipulating disk images
115
116%package user
117Summary: QEMU user mode emulation of qemu targets
118Group: Development/Tools
119Requires: %{name}-common = %{version}-%{release}
120
121%description user
122QEMU is a generic and open source processor emulator which achieves a
123good emulation speed by using dynamic translation.
124
125This package provides the user mode emulation of QEMU targets.
126
127%package system-alpha
128Summary: QEMU system emulator for alpha
129Group: Development/Tools
130Requires: %{name}-common = %{version}-%{release}
131
132%description system-alpha
133QEMU is a generic and open source processor emulator which achieves a
134good emulation speed by using dynamic translation.
135
136This package provides the system emulator for alpha.
137
138%package system-arm
139Summary: QEMU system emulator for arm
140Group: Development/Tools
141Requires: %{name}-common = %{version}-%{release}
142
143%description system-arm
144QEMU is a generic and open source processor emulator which achieves a
145good emulation speed by using dynamic translation.
146
147This package provides the system emulator for arm.
148
149%package system-cris
150Summary: QEMU system emulator for cris
151Group: Development/Tools
152Requires: %{name}-common = %{version}-%{release}
153
154%description system-cris
155QEMU is a generic and open source processor emulator which achieves a
156good emulation speed by using dynamic translation.
157
158This package provides the system emulator for cris.
159
160%package system-lm32
161Summary: QEMU system emulator for lm32
162Group: Development/Tools
163Requires: %{name}-common = %{version}-%{release}
164
165%description system-lm32
166QEMU is a generic and open source processor emulator which achieves a
167good emulation speed by using dynamic translation.
168
169This package provides the system emulator for lm32.
170
171%package system-m68k
172Summary: QEMU system emulator for m68k
173Group: Development/Tools
174Requires: %{name}-common = %{version}-%{release}
175
176%description system-m68k
177QEMU is a generic and open source processor emulator which achieves a
178good emulation speed by using dynamic translation.
179
180This package provides the system emulator for m68k.
181
182%package system-microblaze
183Summary: QEMU system emulator for microblaze
184Group: Development/Tools
185Requires: %{name}-common = %{version}-%{release}
186
187%description system-microblaze
188QEMU is a generic and open source processor emulator which achieves a
189good emulation speed by using dynamic translation.
190
191This package provides the system emulator for microblaze.
192
193%package system-mips
194Summary: QEMU system emulator for mips
195Group: Development/Tools
196Requires: %{name}-common = %{version}-%{release}
197
198%description system-mips
199QEMU is a generic and open source processor emulator which achieves a
200good emulation speed by using dynamic translation.
201
202This package provides the system emulator for mips.
203
204%package system-ppc
205Summary: QEMU system emulator for ppc
206Group: Development/Tools
207Requires: %{name}-common = %{version}-%{release}
208
209%description system-ppc
210QEMU is a generic and open source processor emulator which achieves a
211good emulation speed by using dynamic translation.
212
213This package provides the system emulator for ppc.
214
215%package system-s390x
216Summary: QEMU system emulator for s390x
217Group: Development/Tools
218Requires: %{name}-common = %{version}-%{release}
219
220%description system-s390x
221QEMU is a generic and open source processor emulator which achieves a
222good emulation speed by using dynamic translation.
223
224This package provides the system emulator for s390x.
225
226%package system-sh4
227Summary: QEMU system emulator for sh4
228Group: Development/Tools
229Requires: %{name}-common = %{version}-%{release}
230
231%description system-sh4
232QEMU is a generic and open source processor emulator which achieves a
233good emulation speed by using dynamic translation.
234
235This package provides the system emulator for sh4.
236
237%package system-sparc
238Summary: QEMU system emulator for sparc
239Group: Development/Tools
240Requires: %{name}-common = %{version}-%{release}
241
242%description system-sparc
243QEMU is a generic and open source processor emulator which achieves a
244good emulation speed by using dynamic translation.
245
246This package provides the system emulator for sparc/sparc64.
247
248%package system-x86
249Summary: QEMU system emulator for x86
250Group: Development/Tools
251Requires: %{name}-common = %{version}-%{release}
fabf5a9c
ER
252
253%description system-x86
254QEMU is a generic and open source processor emulator which achieves a
255good emulation speed by using dynamic translation.
256
257This package provides the system emulator for x86. When being run in a
258x86 machine that supports it, this package also provides the KVM
259virtualization platform.
260
261%package system-xtensa
262Summary: QEMU system emulator for xtensa
263Group: Development/Tools
264Requires: %{name}-common = %{version}-%{release}
265
266%description system-xtensa
267QEMU is a generic and open source processor emulator which achieves a
268good emulation speed by using dynamic translation.
269
270This package provides the system emulator for xtensa.
271
cd19124e 272%prep
c21a255a 273%setup -q
3c6e2290 274%patch0 -p1
8d073aaa 275%{?with_nosdlgui:%patch6 -p1}
7b81d160 276#patch8 -p1
137653c3 277%patch17 -p0
0b920c52 278
bd30ad73
GP
279# workaround for conflict with alsa/error.h
280ln -s ../error.h qapi/error.h
281
80bac37e 282%build
8bd2aee2 283./configure \
3c6e2290
JR
284 --extra-cflags="%{rpmcflags} -I/usr/include/ncurses" \
285 --extra-ldflags="%{rpmldflags}" \
697b0ba8 286 --disable-strip \
7c0786d1 287 --sysconfdir=%{_sysconfdir} \
8bd2aee2 288 --prefix=%{_prefix} \
98a1a188
AM
289 --cc="%{__cc}" \
290 --host-cc="%{__cc}" \
b99b1652 291 --enable-mixemu \
98a1a188 292 --audio-drv-list="alsa" \
7b81d160 293 --interp-prefix=%{_libdir}/%{name}
b74098c4 294%{__make} V=1
cd19124e 295
296%install
297rm -rf $RPM_BUILD_ROOT
5a2da1d0 298
cd19124e 299%{__make} install \
300 DESTDIR=$RPM_BUILD_ROOT
ac6e5743 301
a91fea76 302install -d $RPM_BUILD_ROOT%{_sysconfdir}
303cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup
ac6e5743 304#!/bin/sh
a91fea76 305
ac6e5743 306EOF
a62a2d89 307
c33439fc
ER
308# already packaged
309rm -rf $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
310
cd19124e 311%clean
312rm -rf $RPM_BUILD_ROOT
313
314%files
315%defattr(644,root,root,755)
fabf5a9c
ER
316
317%files common
318%defattr(644,root,root,755)
867764ba 319%doc README qemu-doc.html qemu-tech.html
a91fea76 320%attr(755,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu-ifup
fabf5a9c 321%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/qemu/target-*.conf
7c0786d1 322%dir %{_sysconfdir}/qemu
fabf5a9c 323%attr(755,root,root) %{_bindir}/qemu-nbd
cd19124e 324%{_mandir}/man1/qemu.1*
98a1a188 325%{_mandir}/man8/qemu-nbd.8*
fabf5a9c
ER
326
327%dir %{_datadir}/qemu
3d0e0752 328%{_datadir}/%{name}/cpus-*.conf
fabf5a9c
ER
329%{_datadir}/%{name}/keymaps
330# various bios images
331%{_datadir}/%{name}/*.bin
332%{_datadir}/%{name}/*.rom
333%{_datadir}/%{name}/*.dtb
334%{_datadir}/%{name}/openbios-ppc
335%{_datadir}/%{name}/openbios-sparc*
336%{_datadir}/%{name}/palcode-clipper
337
338%files img
339%defattr(644,root,root,755)
340%attr(755,root,root) %{_bindir}/qemu-img
341%{_mandir}/man1/qemu-img.1*
342
343%files user
344%defattr(644,root,root,755)
345%attr(755,root,root) %{_bindir}/qemu-x86_64
346%attr(755,root,root) %{_bindir}/qemu-i386
347%attr(755,root,root) %{_bindir}/qemu-alpha
348%attr(755,root,root) %{_bindir}/qemu-arm
349%attr(755,root,root) %{_bindir}/qemu-armeb
350%attr(755,root,root) %{_bindir}/qemu-cris
351%attr(755,root,root) %{_bindir}/qemu-ga
352%attr(755,root,root) %{_bindir}/qemu-io
353%attr(755,root,root) %{_bindir}/qemu-m68k
354%attr(755,root,root) %{_bindir}/qemu-microblaze
355%attr(755,root,root) %{_bindir}/qemu-microblazeel
356%attr(755,root,root) %{_bindir}/qemu-mips
357%attr(755,root,root) %{_bindir}/qemu-mipsel
358%attr(755,root,root) %{_bindir}/qemu-ppc
359%attr(755,root,root) %{_bindir}/qemu-ppc64
360%attr(755,root,root) %{_bindir}/qemu-ppc64abi32
361%attr(755,root,root) %{_bindir}/qemu-s390x
362%attr(755,root,root) %{_bindir}/qemu-sh4
363%attr(755,root,root) %{_bindir}/qemu-sh4eb
364%attr(755,root,root) %{_bindir}/qemu-sparc
365%attr(755,root,root) %{_bindir}/qemu-sparc32plus
366%attr(755,root,root) %{_bindir}/qemu-sparc64
367%attr(755,root,root) %{_bindir}/qemu-unicore32
368
369%files system-alpha
370%defattr(644,root,root,755)
371%attr(755,root,root) %{_bindir}/qemu-system-alpha
372
373%files system-arm
374%defattr(644,root,root,755)
375%attr(755,root,root) %{_bindir}/qemu-system-arm
376
377%files system-cris
378%defattr(644,root,root,755)
379%attr(755,root,root) %{_bindir}/qemu-system-cris
380
381%files system-lm32
382%defattr(644,root,root,755)
383%attr(755,root,root) %{_bindir}/qemu-system-lm32
384
385%files system-m68k
386%defattr(644,root,root,755)
387%attr(755,root,root) %{_bindir}/qemu-system-m68k
388
389%files system-microblaze
390%defattr(644,root,root,755)
391%attr(755,root,root) %{_bindir}/qemu-system-microblaze
392%attr(755,root,root) %{_bindir}/qemu-system-microblazeel
393
394%files system-mips
395%defattr(644,root,root,755)
396%attr(755,root,root) %{_bindir}/qemu-system-mips
397%attr(755,root,root) %{_bindir}/qemu-system-mipsel
398%attr(755,root,root) %{_bindir}/qemu-system-mips64
399%attr(755,root,root) %{_bindir}/qemu-system-mips64el
400
401%files system-ppc
402%defattr(644,root,root,755)
403%attr(755,root,root) %{_bindir}/qemu-system-ppc
404%attr(755,root,root) %{_bindir}/qemu-system-ppc64
405%attr(755,root,root) %{_bindir}/qemu-system-ppcemb
406
407%files system-s390x
408%defattr(644,root,root,755)
409%attr(755,root,root) %{_bindir}/qemu-system-s390x
410
411%files system-sh4
412%defattr(644,root,root,755)
413%attr(755,root,root) %{_bindir}/qemu-system-sh4
414%attr(755,root,root) %{_bindir}/qemu-system-sh4eb
415
416%files system-sparc
417%defattr(644,root,root,755)
418%attr(755,root,root) %{_bindir}/qemu-system-sparc
419%attr(755,root,root) %{_bindir}/qemu-system-sparc64
420
421%files system-x86
422%defattr(644,root,root,755)
423%attr(755,root,root) %{_bindir}/qemu-system-i386
424%attr(755,root,root) %{_bindir}/qemu-system-x86_64
425
426%files system-xtensa
427%defattr(644,root,root,755)
428%attr(755,root,root) %{_bindir}/qemu-system-xtensa
429%attr(755,root,root) %{_bindir}/qemu-system-xtensaeb
This page took 0.136851 seconds and 4 git commands to generate.