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 5c3734
Version: 0.6.1
David Woodhouse c8e4b3
Release: 2
David Woodhouse c8e4b3
License: GPL/LGPL
David Woodhouse 5c3734
Group: Development/Tools
David Woodhouse 5c3734
URL: http://fabrice.bellard.free.fr/qemu
David Woodhouse 5c3734
Source0: http://fabrice.bellard.free.fr/qemu/%{name}-%{version}.tar.gz
David Woodhouse 5c3734
Source1: qemu.init
David Woodhouse c8e4b3
Patch0: qemu-0.6.1-build.patch
David Woodhouse 5c3734
BuildRoot: %{_tmppath}/%{name}-%{version}-root
David Woodhouse 5c3734
BuildRequires: SDL-devel
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 5c3734
   a processor and various peripherials. 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 5c3734
David Woodhouse 5c3734
%build
David Woodhouse 5c3734
./configure --prefix=%{_prefix} --interp-prefix=%{_prefix}/qemu-%%M
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 c8e4b3
%doc linux-2.6-qemu-fast.patch *.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 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.