Name: qemu Version: 1.0.1 Release: 1.1mamba2 Summary: A generic and open source processor emulator Group: Applications/Emulators Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://qemu.org Source: http://wiki.qemu.org/download/qemu-%{version}.tar.gz Source1: %{name}-initscript Patch0: %{name}-0.8.1-build.patch Patch1: %{name}-0.8.0-dyngen.patch Patch2: %{name}-0.8.0-gcc4_x86.patch Patch3: %{name}-0.8.0-gcc4_ppc.patch Patch4: %{name}-0.8.0-ldscript_ppc.patch License: GPL, LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libalsa-devel BuildRequires: libgnutls-devel %if "%{stage1}" != "1" BuildRequires: libSDL-devel %endif BuildRequires: libz-devel BuildRequires: libglib-static BuildRequires: libglib-devel ## AUTOBUILDREQ-END BuildRequires: libadplug-devel >= 1.5.1 #% if "%{_build_cpu}" != "ppc" #BuildRequires: gcc34 #% endif Conflicts: kvm BuildRoot: %{_tmppath}/%{name}-%{version}-root %description QEMU is a generic and open source processor emulator which achieves a good emulation speed by using dynamic translation. QEMU has two operating modes: - Full system emulation. In this mode, QEMU emulates a full system (for example a PC or a PowerMac), including a processor and various peripherials. It can be used to launch different Operating Systems without rebooting the PC or to debug system code. - User mode emulation (Linux host only). In this mode, QEMU can launch Linux processes compiled for one CPU on another CPU. %package static Summary: Static QEMU user mode emulators Group: Applications/Emulators Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description static QEMU is a generic and open source processor emulator which achieves a good emulation speed by using dynamic translation. This package contains static user mode emulators. In this mode, QEMU can launch Linux processes compiled for one CPU on another CPU. %prep %setup -q %if "%{_build_cpu}" == "ppc" %patch0 -p1 %patch1 %patch2 %patch3 %patch4 -p1 %endif %build # static build for usermode emulation targets only # used by cross platform installation tools like makedist ./configure \ --prefix=%{_prefix} \ --cc=%{_build}-gcc \ --host-cc=%{_host}-gcc \ --cpu=%{_host_cpu} \ --static \ --disable-sdl \ --disable-curl \ --disable-bluez \ --disable-system \ --disable-smartcard-nss \ --enable-linux-user %make mkdir static find *-linux-user -name qemu-\* -exec mv {} static/ \; make clean # dynamic build ./configure \ --prefix=%{_prefix} \ --cc=%{_build}-gcc \ --host-cc=%{_host}-gcc \ --cpu=%{_host_cpu} \ %if "%{_build_cpu}" == "ppc" --disable-gcc-check \ #% else # --cc=%{_target_platform}-gcc34 \ %endif --audio-drv-list=alsa %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeoldinstall \ docdir=%{buildroot}%{_docdir}/%{name} \ datadir=%{buildroot}%{_datadir}/%{name} install -D -m 755 %{S:1} \ %{buildroot}%{_initrddir}/%{name} cd static for f in *; do install -m755 $f %{buildroot}%{_bindir}/$f.static done %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post # new install if [ $1 -eq 1 ]; then /sbin/chkconfig --add %{name} service %{name} start fi : %preun # erase if [ $1 -eq 0 ]; then service %{name} stop /sbin/chkconfig --del %{name} fi : %postun # upgrade if [ $1 -eq 1 ]; then /sbin/chkconfig %{name} [ $? -eq 0 ] && service %{name} restart fi : %files %defattr(-,root,root) %dir %{_sysconfdir}/qemu %config %{_sysconfdir}/qemu/target-x86_64.conf %{_bindir}/%{name}* %exclude %{_bindir}/%{name}*.static %{_initrddir}/%{name} %{_datadir}/%{name} %{_docdir}/%{name} %{_mandir}/man1/%{name}* %{_mandir}/man8/%{name}-nbd.8.gz %doc COPYING COPYING.LIB LICENSE README TODO %files static %defattr(-,root,root) %{_bindir}/%{name}*.static %changelog * Tue Sep 25 2012 Silvan Calarco 1.0.1-1.1mamba2 - rebuilt (previous 1mamba2 release segfaulted) * Tue May 01 2012 Silvan Calarco 1.0.1-1mamba2 - mamba2 milestone rebuild * Sun Apr 15 2012 Automatic Build System 1.0.1-1mamba - automatic version update by autodist * Fri Apr 06 2012 Silvan Calarco 0.15.1-2mamba - initscript: fix cpu detection under x86_64 and don't configure qemu to do emulation for x86 binfmt * Wed Oct 26 2011 Automatic Build System 0.15.1-1mamba - update to 0.15.1 * Sat May 07 2011 Automatic Build System 0.14.1-1mamba - automatic update by autodist * Thu Feb 17 2011 Automatic Build System 0.14.0-1mamba - automatic update by autodist * Sat Nov 06 2010 Silvan Calarco 0.13.0-1mamba - update to 0.13.0 * Tue Sep 14 2010 Silvan Calarco 0.12.5-5mamba - added conflict with kvm * Wed Aug 11 2010 Silvan Calarco 0.12.5-4mamba - initscript updated with support for more archs: x86_64, m64k, mips * Sun Aug 01 2010 Silvan Calarco 0.12.5-3mamba - initscript: mount binfmt_misc before registering entries * Tue Jul 27 2010 Silvan Calarco 0.12.5-2mamba - qemu-arm binary mask previous fix was incorrect (?); refixing * Fri Jul 23 2010 Automatic Build System 0.12.5-1mamba - automatic update to 0.12.5 by autodist * Wed Jul 14 2010 Silvan Calarco 0.12.4-4mamba - initscript: fixed binfmt_misc mask for arm platform * Thu Jun 17 2010 Silvan Calarco 0.12.4-3mamba - initscript: remove check for /usr/qemu-* existence to register non native binary handlers * Thu Jun 17 2010 Silvan Calarco 0.12.4-2mamba - rebuilt with gcc 4.5 (dropped use of legacy gcc 3.4) - added static package with statically built user mode emulators (qemu-*.static) * Wed May 05 2010 Automatic Build System 0.12.4-1mamba - automatic update to 0.12.4 by autodist * Sun Feb 28 2010 Automatic Build System 0.12.3-1mamba - automatic update to 0.12.3 by autodist * Sat Jan 16 2010 Automatic Build System 0.12.2-1mamba - automatic update to 0.12.2 by autodist * Tue Jan 05 2010 Automatic Build System 0.12.1-1mamba - automatic update to 0.12.1 by autodist * Wed Sep 30 2009 Automatic Build System 0.11.0-1mamba - automatic update by autodist * Sun Jul 19 2009 Automatic Build System 0.10.6-1mamba - automatic update by autodist * Fri May 22 2009 Automatic Build System 0.10.5-1mamba - automatic update to 0.10.5 by autodist * Wed May 13 2009 Automatic Build System 0.10.4-1mamba - automatic update to 0.10.4 by autodist * Sat May 02 2009 Automatic Build System 0.10.3-1mamba - automatic update to 0.10.3 by autodist * Wed Apr 08 2009 Silvan Calarco 0.10.2-1mamba - automatic update to 0.10.2 by autodist * Sun Mar 22 2009 Silvan Calarco 0.10.1-1mamba - automatic update to 0.10.1 by autodist * Sun Mar 08 2009 Silvan Calarco 0.10.0-1mamba - update to 0.10.0 * Wed Jun 04 2008 Silvan Calarco 0.9.1-1mamba - update to 0.9.1 * Sat Mar 10 2007 Silvan Calarco 0.9.0-1qilnx - update to version 0.9.0 by autospec - removed requirement for gcc34 * Mon Jun 26 2006 Stefano Cotta Ramusino 0.8.1-1qilnx - update to version 0.8.1 by autospec - added initscript for user emulation * Fri Mar 10 2006 Stefano Cotta Ramusino 0.8.0-3qilnx - fixed for ppc build * Sat Jan 28 2006 Stefano Cotta Ramusino 0.8.0-2qilnx - added ALSA audio driver support * Fri Jan 20 2006 Stefano Cotta Ramusino 0.8.0-1qilnx - update to version 0.8.0 by autospec * Thu Aug 18 2005 Stefano Cotta Ramusino 0.7.1-1qilnx - package created by autospec