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