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