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