3 %bcond_with kqemu # with QEMU accelerator module
5 Summary: QEMU CPU Emulator
6 Summary(pl): QEMU - emulator procesora
11 Group: Applications/Emulators
12 #Source0Download: http://fabrice.bellard.free.fr/qemu/download.html
13 Source0: http://fabrice.bellard.free.fr/qemu/%{name}-%{version}.tar.gz
14 # Source0-md5: 234e9ace03b00259bb57dc5a9c633056
16 Source1: http://fabrice.bellard.free.fr/qemu/kqemu-0.6.2-1.tar.gz
17 # NoSource1-md5: c6bb3b40fb3d526d731eb0f1f9dee7ee
20 Patch0: %{name}-nostatic.patch
21 Patch1: %{name}-DESTDIR.patch
22 Patch2: %{name}-longjmp.patch
23 Patch3: %{name}-dot.patch
24 URL: http://fabrice.bellard.free.fr/qemu/
25 BuildRequires: SDL-devel >= 1.2.1
26 BuildRequires: sed >= 4.0
27 ExclusiveArch: %{ix86} %{x8664} ppc
28 # sparc is currently unsupported (missing cpu_get_real_ticks() impl in vl.c)
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 # some SPARC boot image in ELF format
32 %define _noautostrip .*%{_datadir}/qemu/proll.elf
35 QEMU is a FAST! processor emulator. By using dynamic translation it
36 achieves a reasonnable speed while being easy to port on new host
37 CPUs. QEMU has two operating modes:
39 - User mode emulation. In this mode, QEMU can launch Linux processes
40 compiled for one CPU on another CPU. Linux system calls are converted
41 because of endianness and 32/64 bit mismatches. Wine (Windows
42 emulation) and DOSEMU (DOS emulation) are the main targets for QEMU.
44 - Full system emulation. In this mode, QEMU emulates a full system,
45 including a processor and various peripherials.
46 It can also be used to provide virtual hosting of several
47 virtual PC on a single server.
50 QEMU to szybki(!) emulator procesora. Poprzez u¿ycie dynamicznego
51 t³umaczenia osi±ga rozs±dn± szybko¶æ i jest ³atwy do przeportowania,
52 aby dzia³a³ na kolejnych procesorach. QEMU ma dwa tryby pracy:
54 - Emulacja trybu u¿ytkownika. W tym trybie QEMU mo¿e uruchamiaæ
55 procesy linuksowe skompilowane dla jednego procesora na innym
56 procesorze. Linuksowe wywo³ania systemowe s± t³umaczone ze wzglêdu
57 na niezgodno¶æ kolejno¶ci bajtów w s³owie i 32/64-bitowego rozmiaru
58 s³owa. Wine (emulacja Windows) i DOSEMU (emulacja DOS-a) to g³ówne
61 - Pe³na emulacja systemu. W tym trybie QEMU emuluje ca³y system,
62 w³±czaj±c w to procesor i ró¿ne urz±dzenia peryferyjne.
63 Mo¿e byæ tak¿e u¿ywane do wirtualnego hostowania kilku wirtualnych
64 pecetów na pojedynczym serwerze.
67 %setup -q %{?with_kqemu:-a1}
73 sed -i -e 's/sdl_static=yes/sdl_static=no/' configure
74 # cannot use optflags on x86 - they cause "no register to spill" errors
75 #sed -i -e 's/-Wall -O2 -g/-Wall %{rpmcflags}/' Makefile Makefile.target
77 %{?with_kqemu:echo -n > kqemu/install.sh}
80 # --extra-cflags don't work (overridden by CFLAGS in Makefile*)
89 rm -rf $RPM_BUILD_ROOT
92 DESTDIR=$RPM_BUILD_ROOT
95 rm -rf $RPM_BUILD_ROOT
98 %defattr(644,root,root,755)
99 %doc README qemu-doc.html qemu-tech.html
100 %attr(755,root,root) %{_bindir}/*
102 %{_mandir}/man1/qemu.1*
103 %{_mandir}/man1/qemu-img.1*