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