dcavalca / rpms / qemu

Forked from rpms/qemu a year ago
Clone

Blame qemu.spec

David Woodhouse 5c3734
Summary: QEMU is a FAST! processor emulator
David Woodhouse 5c3734
Name: qemu
David Woodhouse 7b2bfb
Version: 0.8.1
David Woodhouse fb30f3
Release: 2%{?dist}
Michael Schwendt e4c605
David Woodhouse c8e4b3
License: GPL/LGPL
David Woodhouse 5c3734
Group: Development/Tools
David Woodhouse 5c3734
URL: http://fabrice.bellard.free.fr/qemu
David Woodhouse 9f8ef0
Source0: http://www.qemu.org/%{name}-%{version}.tar.gz
David Woodhouse 5c3734
Source1: qemu.init
David Woodhouse 9b980e
Patch0: qemu-0.7.0-build.patch
David Woodhouse 943292
Patch1: qemu-0.8.0-sdata.patch
David Woodhouse fb30f3
Patch2: qemu-0.8.1-syscall-macros.patch
David Woodhouse 5c3734
BuildRoot: %{_tmppath}/%{name}-%{version}-root
David Woodhouse 1e29a0
BuildRequires: SDL-devel compat-gcc-32 zlib-devel texi2html
David Woodhouse 5c3734
PreReq: /sbin/chkconfig
David Woodhouse 5c3734
PreReq: /sbin/service
David Woodhouse 5c3734
ExclusiveArch: %{ix86} ppc alpha sparc armv4l x86_64
David Woodhouse 5c3734
David Woodhouse 5c3734
%description
David Woodhouse 5c3734
By using dynamic translation it achieves a reasonable speed while being easy
David Woodhouse 5c3734
to port on new host CPUs. QEMU has two operating modes:
David Woodhouse 5c3734
David Woodhouse 5c3734
 * User mode emulation. In this mode, QEMU can launch Linux processes compiled
David Woodhouse 5c3734
   for one CPU on another CPU. Linux system calls are converted because of
David Woodhouse 5c3734
   endianness and 32/64 bit mismatches. Wine (Windows emulation) and DOSEMU
David Woodhouse 5c3734
   (DOS emulation) are the main targets for QEMU.
David Woodhouse 5c3734
 * Full system emulation. In this mode, QEMU emulates a full system, including
David Woodhouse 9b980e
   a processor and various peripherals. Currently, it is only used to launch
David Woodhouse 5c3734
   an x86 Linux kernel on an x86 Linux system. It enables easier testing and
David Woodhouse 5c3734
   debugging of system code. It can also be used to provide virtual hosting
Matthias Saou 8cd57a
   of several virtual PC on a single server.
David Woodhouse 5c3734
David Woodhouse 5c3734
As QEMU requires no host kernel patches to run, it is very safe and easy to use.
David Woodhouse 5c3734
David Woodhouse 5c3734
%prep
David Woodhouse 5c3734
%setup -q
David Woodhouse c8e4b3
%patch0 -p1
David Woodhouse 943292
%patch1 -p1
David Woodhouse fb30f3
%patch2 -p1
David Woodhouse 5c3734
David Woodhouse 5c3734
%build
David Woodhouse 9f8ef0
./configure --prefix=%{_prefix} --interp-prefix=%{_prefix}/qemu-%%M \
David Woodhouse 9f8ef0
%ifarch x86_64
David Woodhouse 9f8ef0
   --target-list="i386-user arm-user armeb-user ppc-user mips-user mipsel-user i386-softmmu ppc-softmmu  x86_64-softmmu mips-softmmu arm-softmmu" \
David Woodhouse 9f8ef0
%endif
David Woodhouse 9f8ef0
   --cc=gcc32 --enable-alsa
David Woodhouse 5c3734
make
David Woodhouse 5c3734
David Woodhouse 5c3734
%install
David Woodhouse 5c3734
rm -rf $RPM_BUILD_ROOT
David Woodhouse 5c3734
David Woodhouse 5c3734
make prefix="${RPM_BUILD_ROOT}%{_prefix}" \
David Woodhouse 5c3734
	bindir="${RPM_BUILD_ROOT}%{_bindir}" \
David Woodhouse 5c3734
	sharedir="${RPM_BUILD_ROOT}%{_prefix}/share/qemu" \
David Woodhouse 5c3734
	mandir="${RPM_BUILD_ROOT}%{_mandir}" \
David Woodhouse c8e4b3
	docdir="${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}" \
David Woodhouse 5c3734
	datadir="${RPM_BUILD_ROOT}%{_prefix}/share/qemu" install
Matthias Saou 8cd57a
Matthias Saou 8cd57a
install -D $RPM_SOURCE_DIR/qemu.init $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/qemu
David Woodhouse 5c3734
David Woodhouse 5c3734
%clean
David Woodhouse 5c3734
rm -rf $RPM_BUILD_ROOT
David Woodhouse 5c3734
David Woodhouse 5c3734
%post
David Woodhouse 5c3734
/sbin/chkconfig --add qemu
David Woodhouse 5c3734
David Woodhouse 5c3734
%preun
David Woodhouse 5c3734
if [ $1 = 0 ]; then
David Woodhouse 5c3734
        /sbin/service qemu stop > /dev/null 2>&1
David Woodhouse 5c3734
fi
David Woodhouse c8e4b3
/sbin/chkconfig --del qemu
David Woodhouse 5c3734
David Woodhouse 5c3734
%files
David Woodhouse 5c3734
%defattr(-,root,root)
David Woodhouse 5c3734
%doc Changelog README README.distrib TODO
Matthias Saou 8cd57a
%doc qemu-tech.texi qemu-doc.texi
David Woodhouse 9b980e
%doc *.html
David Woodhouse c8e4b3
%{_bindir}/qemu*
David Woodhouse 5c3734
%{_prefix}/share/qemu
David Woodhouse c8e4b3
%{_mandir}/man?/*
David Woodhouse c8e4b3
%config %{_sysconfdir}/rc.d/init.d/qemu
David Woodhouse 5c3734
David Woodhouse 5c3734
%changelog
David Woodhouse fb30f3
* Wed Jun 7 2006 David Woodhouse <dwmw2@infradead.org> 0.8.1-2
David Woodhouse fb30f3
- Fix up kernel header abuse
David Woodhouse fb30f3
David Woodhouse 7b2bfb
* Tue May 30 2006 David Woodhouse <dwmw2@infradead.org> 0.8.1-1
David Woodhouse 7b2bfb
- Update to 0.8.1
David Woodhouse 7b2bfb
David Woodhouse 943292
* Sat Mar 18 2006 David Woodhouse <dwmw2@infradead.org> 0.8.0-6
David Woodhouse 943292
- Update linker script for PPC
David Woodhouse 943292
David Woodhouse 943292
* Sat Mar 18 2006 David Woodhouse <dwmw2@infradead.org> 0.8.0-5
David Woodhouse 943292
- Just drop $RPM_OPT_FLAGS. They're too much of a PITA
David Woodhouse 943292
David Woodhouse 943292
* Sat Mar 18 2006 David Woodhouse <dwmw2@infradead.org> 0.8.0-4
David Woodhouse 943292
- Disable stack-protector options which gcc 3.2 doesn't like
David Woodhouse 943292
David Woodhouse 9f8ef0
* Fri Mar 17 2006 David Woodhouse <dwmw2@infradead.org> 0.8.0-3
David Woodhouse 9f8ef0
- Use -mcpu= instead of -mtune= on x86_64 too
David Woodhouse 9f8ef0
- Disable SPARC targets on x86_64, because dyngen doesn't like fnegs
David Woodhouse 9f8ef0
David Woodhouse bf4430
* Fri Mar 17 2006 David Woodhouse <dwmw2@infradead.org> 0.8.0-2
David Woodhouse bf4430
- Don't use -mtune=pentium4 on i386. GCC 3.2 doesn't like it
David Woodhouse bf4430
David Woodhouse a08e53
* Fri Mar 17 2006 David Woodhouse <dwmw2@infradead.org> 0.8.0-1
David Woodhouse a08e53
- Update to 0.8.0
David Woodhouse a08e53
- Resort to using compat-gcc-32
David Woodhouse a08e53
- Enable ALSA
David Woodhouse a08e53
David Woodhouse a08e53
* Mon May 16 2005 David Woodhouse <dwmw2@infradead.org> 0.7.0-2
David Woodhouse 66db2b
- Proper fix for GCC 4 putting 'blr' or 'ret' in the middle of the function,
David Woodhouse 66db2b
  for i386, x86_64 and PPC.
David Woodhouse 66db2b
David Woodhouse a08e53
* Sat Apr 30 2005 David Woodhouse <dwmw2@infradead.org> 0.7.0-1
David Woodhouse 9b980e
- Update to 0.7.0
David Woodhouse 9b980e
- Fix dyngen for PPC functions which end in unconditional branch
David Woodhouse 9b980e
Michael Schwendt e4c605
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
Michael Schwendt e4c605
- rebuilt
Michael Schwendt e4c605
David Woodhouse c8e4b3
* Sun Feb 13 2005 David Woodhouse <dwmw2@infradead.org> 0.6.1-2
David Woodhouse c8e4b3
- Package cleanup
David Woodhouse c8e4b3
David Woodhouse 5c3734
* Sun Nov 21 2004 David Woodhouse <dwmw2@redhat.com> 0.6.1-1
David Woodhouse 5c3734
- Update to 0.6.1
David Woodhouse 5c3734
David Woodhouse 5c3734
* Tue Jul 20 2004 David Woodhouse <dwmw2@redhat.com> 0.6.0-2
David Woodhouse 5c3734
- Compile fix from qemu CVS, add x86_64 host support
David Woodhouse 5c3734
David Woodhouse 5c3734
* Mon May 12 2004 David Woodhouse <dwmw2@redhat.com> 0.6.0-1
David Woodhouse 5c3734
- Update to 0.6.0.
David Woodhouse 5c3734
David Woodhouse 5c3734
* Sat May 8 2004 David Woodhouse <dwmw2@redhat.com> 0.5.5-1
David Woodhouse 5c3734
- Update to 0.5.5.
David Woodhouse 5c3734
David Woodhouse 5c3734
* Thu May 2 2004 David Woodhouse <dwmw2@redhat.com> 0.5.4-1
David Woodhouse 5c3734
- Update to 0.5.4.
David Woodhouse 5c3734
David Woodhouse 5c3734
* Thu Apr 22 2004 David Woodhouse <dwmw2@redhat.com> 0.5.3-1
David Woodhouse 5c3734
- Update to 0.5.3. Add init script.
David Woodhouse 5c3734
David Woodhouse 5c3734
* Thu Jul 17 2003 Jeff Johnson <jbj@redhat.com> 0.4.3-1
David Woodhouse 5c3734
- Create.