]>
Commit | Line | Data |
---|---|---|
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 | 22 | Summary: QEMU CPU Emulator |
eec0535a | 23 | Summary(pl.UTF-8): QEMU - emulator procesora |
7b81d160 | 24 | Name: qemu |
4cc815ba | 25 | Version: 1.4.1 |
e3c8b382 | 26 | Release: 1 |
78a71650 | 27 | License: GPL v2+ |
5a2da1d0 | 28 | Group: Applications/Emulators |
46ca1df6 | 29 | Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.bz2 |
4cc815ba | 30 | # Source0-md5: eb2d696956324722b5ecfa46e41f9a75 |
9bcd4ab6 | 31 | Patch0: %{name}-cflags.patch |
d9002706 | 32 | Patch1: vgabios-widescreens.patch |
449d43aa JB |
33 | Patch2: %{name}-whitelist.patch |
34 | Patch3: %{name}-system-libcacard.patch | |
81a493f2 | 35 | # Proof of concept, for reference, do not remove |
449d43aa | 36 | Patch4: %{name}-kde_virtual_workspaces_hack.patch |
ae8bf749 | 37 | URL: http://www.qemu-project.org/ |
78a71650 JB |
38 | %{?with_opengl:BuildRequires: OpenGL-GLX-devel} |
39 | %{?with_sdl:BuildRequires: SDL-devel >= 1.2.1} | |
b0b3ca8d | 40 | BuildRequires: alsa-lib-devel |
e8a4bb4c | 41 | BuildRequires: bcc |
b99b1652 | 42 | BuildRequires: bluez-libs-devel |
78a71650 JB |
43 | BuildRequires: brlapi-devel |
44 | %{?with_ceph:BuildRequires: ceph-devel} | |
45 | BuildRequires: curl-devel | |
46 | BuildRequires: cyrus-sasl-devel >= 2 | |
47 | %{?with_esd:BuildRequires: esound-devel} | |
48 | BuildRequires: glib2-devel >= 1:2.12 | |
1ffe7dfd | 49 | %{?with_glusterfs:BuildRequires: glusterfs-devel >= 3.4} |
b99b1652 | 50 | BuildRequires: gnutls-devel |
87364910 | 51 | BuildRequires: libaio-devel |
c18e9cf6 | 52 | BuildRequires: libcacard-devel |
78a71650 JB |
53 | BuildRequires: libcap-devel |
54 | BuildRequires: libcap-ng-devel | |
55 | BuildRequires: libfdt-devel | |
56 | BuildRequires: libiscsi-devel | |
57 | BuildRequires: libjpeg-devel | |
58 | BuildRequires: libpng-devel | |
59 | BuildRequires: libseccomp-devel | |
60 | BuildRequires: libuuid-devel | |
98a1a188 | 61 | BuildRequires: ncurses-devel |
78a71650 | 62 | BuildRequires: nss-devel >= 3.12.8 |
995bac8b | 63 | BuildRequires: perl-Encode |
2fb8ea02 | 64 | BuildRequires: perl-tools-pod |
ba84a935 | 65 | BuildRequires: pkgconfig |
78a71650 | 66 | %{?with_pulseaudio:BuildRequires: pulseaudio-devel} |
14b9f266 | 67 | BuildRequires: rpmbuild(macros) >= 1.202 |
8bb1261c | 68 | BuildRequires: sed >= 4.0 |
59bc1300 | 69 | %if %{with spice} |
e8a4bb4c GPP |
70 | BuildRequires: spice-protocol >= 0.12.0 |
71 | BuildRequires: spice-server-devel >= 0.12.0 | |
59bc1300 | 72 | %endif |
a1146336 | 73 | BuildRequires: texi2html |
22f71ecb | 74 | BuildRequires: texinfo |
b7485d2e | 75 | BuildRequires: usbredir-devel >= 0.6 |
78a71650 | 76 | BuildRequires: vde2-devel |
cad677a4 | 77 | BuildRequires: which |
78a71650 JB |
78 | %{?with_xen:BuildRequires: xen-devel >= 3.4} |
79 | BuildRequires: xfsprogs-devel | |
ba84a935 | 80 | BuildRequires: xorg-lib-libX11-devel |
78a71650 | 81 | BuildRequires: zlib-devel |
fabf5a9c ER |
82 | Requires: %{name}-img = %{version}-%{release} |
83 | Requires: %{name}-system-alpha = %{version}-%{release} | |
84 | Requires: %{name}-system-arm = %{version}-%{release} | |
85 | Requires: %{name}-system-cris = %{version}-%{release} | |
86 | Requires: %{name}-system-lm32 = %{version}-%{release} | |
87 | Requires: %{name}-system-m68k = %{version}-%{release} | |
88 | Requires: %{name}-system-microblaze = %{version}-%{release} | |
89 | Requires: %{name}-system-mips = %{version}-%{release} | |
92c357d4 | 90 | Requires: %{name}-system-or32 = %{version}-%{release} |
ae8bf749 | 91 | Requires: %{name}-system-ppc = %{version}-%{release} |
fabf5a9c ER |
92 | Requires: %{name}-system-s390x = %{version}-%{release} |
93 | Requires: %{name}-system-sh4 = %{version}-%{release} | |
94 | Requires: %{name}-system-sparc = %{version}-%{release} | |
72ddf007 | 95 | Requires: %{name}-system-unicore32 = %{version}-%{release} |
fabf5a9c ER |
96 | Requires: %{name}-system-x86 = %{version}-%{release} |
97 | Requires: %{name}-system-xtensa = %{version}-%{release} | |
98 | Requires: %{name}-user = %{version}-%{release} | |
cd19124e | 99 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
100 | ||
78a71650 | 101 | %define systempkg_req \ |
449d43aa | 102 | Requires: SDL >= 1.2.1 \ |
b7485d2e | 103 | Requires: 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 |
109 | QEMU is a FAST! processor emulator. By using dynamic translation it | |
110 | achieves a reasonnable speed while being easy to port on new host | |
111 | CPUs. 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 |
123 | QEMU to szybki(!) emulator procesora. Poprzez użycie dynamicznego | |
124 | tłumaczenia osiąga rozsądną szybkość i jest łatwy do przeportowania, | |
125 | aby 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 | 140 | Summary: QEMU common files needed by all QEMU targets |
d86014ba | 141 | Summary(pl.UTF-8): Wspólne pliki QEMU wymagane przez wszystkie środowiska QEMU |
fabf5a9c | 142 | Group: Development/Tools |
78a71650 | 143 | Requires: glib2 >= 1:2.12 |
14b9f266 AG |
144 | Requires(postun): /usr/sbin/groupdel |
145 | Requires(postun): /usr/sbin/userdel | |
146 | Requires(pre): /bin/id | |
147 | Requires(pre): /usr/bin/getgid | |
148 | Requires(pre): /usr/sbin/groupadd | |
149 | Requires(pre): /usr/sbin/useradd | |
150 | Provides: group(qemu) | |
151 | Provides: user(qemu) | |
fabf5a9c ER |
152 | Conflicts: qemu < 1.0-2 |
153 | ||
154 | %description common | |
155 | QEMU is a generic and open source processor emulator which achieves a | |
156 | good emulation speed by using dynamic translation. | |
157 | ||
158 | This package provides the common files needed by all QEMU targets. | |
159 | ||
d86014ba JB |
160 | %description common -l pl.UTF-8 |
161 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
162 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
163 | ||
164 | Ten pakiet udostępnia wspólne pliki wymagane przez wszystkie | |
165 | środowiska QEMU. | |
166 | ||
167 | %package img | |
fabf5a9c | 168 | Summary: QEMU command line tool for manipulating disk images |
d86014ba | 169 | Summary(pl.UTF-8): Narzędzie QEMU do operacji na obrazach dysków |
fabf5a9c ER |
170 | Group: Development/Tools |
171 | Conflicts: qemu < 1.0-2 | |
172 | ||
173 | %description img | |
d86014ba JB |
174 | This package provides a command line tool for manipulating disk |
175 | images. | |
176 | ||
177 | %description img -l pl.UTF-8 | |
178 | Ten pakiet udostępnia działające z linii poleceń narzędzia do operacji | |
179 | na obrazach dysków. | |
fabf5a9c ER |
180 | |
181 | %package user | |
182 | Summary: QEMU user mode emulation of qemu targets | |
d86014ba | 183 | Summary(pl.UTF-8): QEMU - emulacja trybu użytkownika środowisk qemu |
fabf5a9c ER |
184 | Group: Development/Tools |
185 | Requires: %{name}-common = %{version}-%{release} | |
186 | ||
187 | %description user | |
188 | QEMU is a generic and open source processor emulator which achieves a | |
189 | good emulation speed by using dynamic translation. | |
190 | ||
191 | This package provides the user mode emulation of QEMU targets. | |
192 | ||
d86014ba JB |
193 | %description user -l pl.UTF-8 |
194 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
195 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
196 | ||
197 | Ten pakiet udostępnia emulację trybu użytkownika środowisk QEMU. | |
198 | ||
fabf5a9c | 199 | %package system-alpha |
d86014ba JB |
200 | Summary: QEMU system emulator for Alpha |
201 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Alpha | |
fabf5a9c ER |
202 | Group: Development/Tools |
203 | Requires: %{name}-common = %{version}-%{release} | |
78a71650 | 204 | %systempkg_req |
fabf5a9c ER |
205 | |
206 | %description system-alpha | |
207 | QEMU is a generic and open source processor emulator which achieves a | |
208 | good emulation speed by using dynamic translation. | |
209 | ||
d86014ba JB |
210 | This package provides the system emulator with Alpha CPU. |
211 | ||
212 | %description system-alpha -l pl.UTF-8 | |
213 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
214 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
215 | ||
216 | Ten pakiet zawiera emulator systemu z procesorem Alpha. | |
fabf5a9c ER |
217 | |
218 | %package system-arm | |
d86014ba JB |
219 | Summary: QEMU system emulator for ARM |
220 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem ARM | |
fabf5a9c ER |
221 | Group: Development/Tools |
222 | Requires: %{name}-common = %{version}-%{release} | |
78a71650 | 223 | %systempkg_req |
fabf5a9c ER |
224 | |
225 | %description system-arm | |
226 | QEMU is a generic and open source processor emulator which achieves a | |
227 | good emulation speed by using dynamic translation. | |
228 | ||
d86014ba JB |
229 | This package provides the system emulator for ARM. |
230 | ||
231 | %description system-arm -l pl.UTF-8 | |
232 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
233 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
234 | ||
235 | Ten pakiet zawiera emulator systemu z procesorem ARM. | |
fabf5a9c ER |
236 | |
237 | %package system-cris | |
59bc1300 | 238 | Summary: QEMU system emulator for CRIS |
d86014ba | 239 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem CRIS |
fabf5a9c ER |
240 | Group: Development/Tools |
241 | Requires: %{name}-common = %{version}-%{release} | |
78a71650 | 242 | %systempkg_req |
fabf5a9c ER |
243 | |
244 | %description system-cris | |
245 | QEMU is a generic and open source processor emulator which achieves a | |
246 | good emulation speed by using dynamic translation. | |
247 | ||
d86014ba JB |
248 | This package provides the system emulator with CRIS CPU. |
249 | ||
250 | %description system-cris -l pl.UTF-8 | |
251 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
252 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
253 | ||
254 | Ten pakiet zawiera emulator systemu z procesorem CRIS. | |
fabf5a9c ER |
255 | |
256 | %package system-lm32 | |
d86014ba JB |
257 | Summary: QEMU system emulator for LM32 |
258 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem LM32 | |
fabf5a9c ER |
259 | Group: Development/Tools |
260 | Requires: %{name}-common = %{version}-%{release} | |
78a71650 | 261 | %systempkg_req |
fabf5a9c ER |
262 | |
263 | %description system-lm32 | |
264 | QEMU is a generic and open source processor emulator which achieves a | |
265 | good emulation speed by using dynamic translation. | |
266 | ||
d86014ba JB |
267 | This package provides the system emulator with LM32 CPU. |
268 | ||
269 | %description system-lm32 -l pl.UTF-8 | |
270 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
271 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
272 | ||
273 | Ten pakiet zawiera emulator systemu z procesorem LM32. | |
fabf5a9c ER |
274 | |
275 | %package system-m68k | |
276 | Summary: QEMU system emulator for m68k | |
d86014ba | 277 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem m68k |
fabf5a9c ER |
278 | Group: Development/Tools |
279 | Requires: %{name}-common = %{version}-%{release} | |
78a71650 | 280 | %systempkg_req |
fabf5a9c ER |
281 | |
282 | %description system-m68k | |
283 | QEMU is a generic and open source processor emulator which achieves a | |
284 | good emulation speed by using dynamic translation. | |
285 | ||
d86014ba JB |
286 | This package provides the system emulator with m68k CPU. |
287 | ||
288 | %description system-m68k -l pl.UTF-8 | |
289 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
290 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
291 | ||
292 | Ten pakiet zawiera emulator systemu z procesorem m68k. | |
fabf5a9c ER |
293 | |
294 | %package system-microblaze | |
d86014ba JB |
295 | Summary: QEMU system emulator for MicroBlaze |
296 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MicroBlaze | |
fabf5a9c ER |
297 | Group: Development/Tools |
298 | Requires: %{name}-common = %{version}-%{release} | |
78a71650 | 299 | %systempkg_req |
fabf5a9c ER |
300 | |
301 | %description system-microblaze | |
302 | QEMU is a generic and open source processor emulator which achieves a | |
303 | good emulation speed by using dynamic translation. | |
304 | ||
d86014ba JB |
305 | This package provides the system emulator with MicroBlaze CPU. |
306 | ||
307 | %description system-microblaze -l pl.UTF-8 | |
308 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
309 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
310 | ||
311 | Ten pakiet zawiera emulator systemu z procesorem MicroBlaze. | |
fabf5a9c ER |
312 | |
313 | %package system-mips | |
d86014ba JB |
314 | Summary: QEMU system emulator for MIPS |
315 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem MIPS | |
fabf5a9c ER |
316 | Group: Development/Tools |
317 | Requires: %{name}-common = %{version}-%{release} | |
78a71650 | 318 | %systempkg_req |
fabf5a9c ER |
319 | |
320 | %description system-mips | |
321 | QEMU is a generic and open source processor emulator which achieves a | |
322 | good emulation speed by using dynamic translation. | |
323 | ||
d86014ba JB |
324 | This package provides the system emulator with MIPS CPU. |
325 | ||
326 | %description system-mips -l pl.UTF-8 | |
327 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
328 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
329 | ||
330 | Ten pakiet zawiera emulator systemu z procesorem MIPS. | |
fabf5a9c | 331 | |
92c357d4 | 332 | %package system-or32 |
d86014ba JB |
333 | Summary: QEMU system emulator for OpenRISC |
334 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem OpenRISC | |
92c357d4 PS |
335 | Group: Development/Tools |
336 | Requires: %{name}-common = %{version}-%{release} | |
78a71650 | 337 | %systempkg_req |
92c357d4 PS |
338 | |
339 | %description system-or32 | |
340 | QEMU is a generic and open source processor emulator which achieves a | |
341 | good emulation speed by using dynamic translation. | |
342 | ||
d86014ba JB |
343 | This package provides the system emulator with OpenRISC CPU. |
344 | ||
345 | %description system-or32 -l pl.UTF-8 | |
346 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
347 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
348 | ||
349 | Ten pakiet zawiera emulator systemu z procesorem OpenRISC. | |
92c357d4 | 350 | |
fabf5a9c | 351 | %package system-ppc |
d86014ba JB |
352 | Summary: QEMU system emulator for PowerPC |
353 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem PowerPC | |
fabf5a9c ER |
354 | Group: Development/Tools |
355 | Requires: %{name}-common = %{version}-%{release} | |
78a71650 | 356 | %systempkg_req |
fabf5a9c ER |
357 | |
358 | %description system-ppc | |
359 | QEMU is a generic and open source processor emulator which achieves a | |
360 | good emulation speed by using dynamic translation. | |
361 | ||
d86014ba JB |
362 | This package provides the system emulator with PowerPC CPU. |
363 | ||
364 | %description system-ppc -l pl.UTF-8 | |
365 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
366 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
367 | ||
368 | Ten pakiet zawiera emulator systemu z procesorem PowerPC. | |
fabf5a9c ER |
369 | |
370 | %package system-s390x | |
d86014ba JB |
371 | Summary: QEMU system emulator for S390 |
372 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem S390 | |
fabf5a9c ER |
373 | Group: Development/Tools |
374 | Requires: %{name}-common = %{version}-%{release} | |
78a71650 | 375 | %systempkg_req |
fabf5a9c ER |
376 | |
377 | %description system-s390x | |
378 | QEMU is a generic and open source processor emulator which achieves a | |
379 | good emulation speed by using dynamic translation. | |
380 | ||
d86014ba JB |
381 | This package provides the system emulator with S390 CPU. |
382 | ||
383 | %description system-s390x -l pl.UTF-8 | |
384 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
385 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
386 | ||
387 | Ten pakiet zawiera emulator systemu z procesorem S390. | |
fabf5a9c ER |
388 | |
389 | %package system-sh4 | |
d86014ba JB |
390 | Summary: QEMU system emulator for SH4 |
391 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SH4 | |
fabf5a9c ER |
392 | Group: Development/Tools |
393 | Requires: %{name}-common = %{version}-%{release} | |
78a71650 | 394 | %systempkg_req |
fabf5a9c ER |
395 | |
396 | %description system-sh4 | |
397 | QEMU is a generic and open source processor emulator which achieves a | |
398 | good emulation speed by using dynamic translation. | |
399 | ||
d86014ba JB |
400 | This package provides the system emulator with SH4 CPU. |
401 | ||
402 | %description system-sh4 -l pl.UTF-8 | |
403 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
404 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
405 | ||
406 | Ten pakiet zawiera emulator systemu z procesorem SH4. | |
fabf5a9c ER |
407 | |
408 | %package system-sparc | |
d86014ba JB |
409 | Summary: QEMU system emulator for SPARC |
410 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem SPARC | |
fabf5a9c ER |
411 | Group: Development/Tools |
412 | Requires: %{name}-common = %{version}-%{release} | |
78a71650 | 413 | %systempkg_req |
fabf5a9c ER |
414 | |
415 | %description system-sparc | |
416 | QEMU is a generic and open source processor emulator which achieves a | |
417 | good emulation speed by using dynamic translation. | |
418 | ||
d86014ba JB |
419 | This package provides the system emulator with SPARC/SPARC64 CPU. |
420 | ||
421 | %description system-sparc -l pl.UTF-8 | |
422 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
423 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
424 | ||
425 | Ten pakiet zawiera emulator systemu z procesorem SPARC/SPARC64. | |
fabf5a9c | 426 | |
72ddf007 | 427 | %package system-unicore32 |
d86014ba JB |
428 | Summary: QEMU system emulator for UniCore32 |
429 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem UniCore32 | |
72ddf007 PS |
430 | Group: Development/Tools |
431 | Requires: %{name}-common = %{version}-%{release} | |
78a71650 | 432 | %systempkg_req |
72ddf007 PS |
433 | |
434 | %description system-unicore32 | |
435 | QEMU is a generic and open source processor emulator which achieves a | |
436 | good emulation speed by using dynamic translation. | |
437 | ||
d86014ba JB |
438 | This package provides the system emulator with UniCore32 CPU. |
439 | ||
440 | %description system-unicore32 -l pl.UTF-8 | |
441 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
442 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
443 | ||
444 | Ten pakiet zawiera emulator systemu z procesorem UniCore32. | |
72ddf007 | 445 | |
fabf5a9c ER |
446 | %package system-x86 |
447 | Summary: QEMU system emulator for x86 | |
d86014ba | 448 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem x86 |
fabf5a9c ER |
449 | Group: Development/Tools |
450 | Requires: %{name}-common = %{version}-%{release} | |
78a71650 | 451 | %systempkg_req |
fabf5a9c ER |
452 | |
453 | %description system-x86 | |
454 | QEMU is a generic and open source processor emulator which achieves a | |
455 | good emulation speed by using dynamic translation. | |
456 | ||
d86014ba JB |
457 | %description system-x86 -l pl.UTF-8 |
458 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
459 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
460 | ||
fabf5a9c | 461 | %package system-xtensa |
d86014ba JB |
462 | Summary: QEMU system emulator for Xtensa |
463 | Summary(pl.UTF-8): QEMU - emulator systemu z procesorem Xtensa | |
fabf5a9c ER |
464 | Group: Development/Tools |
465 | Requires: %{name}-common = %{version}-%{release} | |
78a71650 | 466 | %systempkg_req |
fabf5a9c ER |
467 | |
468 | %description system-xtensa | |
469 | QEMU is a generic and open source processor emulator which achieves a | |
470 | good emulation speed by using dynamic translation. | |
471 | ||
d86014ba JB |
472 | This package provides the system emulator with Xtensa CPU. |
473 | ||
474 | %description system-xtensa -l pl.UTF-8 | |
475 | QEMU to ogólny, mający otwarte źródła emulator procesora, osiągający | |
476 | dobrą szybkość emulacji dzięki użyciu translacji dynamicznej. | |
477 | ||
478 | Ten 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 |
490 | ln -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 |
540 | rm -rf $RPM_BUILD_ROOT | |
5a2da1d0 | 541 | |
cd19124e | 542 | %{__make} install \ |
5263f8f5 JB |
543 | DESTDIR=$RPM_BUILD_ROOT \ |
544 | libexecdir=%{_libdir} | |
ac6e5743 | 545 | |
a91fea76 | 546 | install -d $RPM_BUILD_ROOT%{_sysconfdir} |
547 | cat <<'EOF' > $RPM_BUILD_ROOT%{_sysconfdir}/qemu-ifup | |
ac6e5743 | 548 | #!/bin/sh |
a91fea76 | 549 | |
ac6e5743 | 550 | EOF |
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 | 557 | cp -p roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin |
d9002706 | 558 | |
cd19124e | 559 | %clean |
560 | rm -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 | |
567 | if [ "$1" = "0" ]; then | |
568 | %userremove qemu | |
569 | %groupremove qemu | |
570 | fi | |
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 |