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