Blame qemu.spec

David Woodhouse 5c3734
Summary: QEMU is a FAST! processor emulator
David Woodhouse 5c3734
Name: qemu
Matthias Saou 67348d
Version: 0.8.2
Matthias Saou 67348d
Release: 1%{?dist}
David Woodhouse c8e4b3
License: GPL/LGPL
David Woodhouse 5c3734
Group: Development/Tools
Matthias Saou 67348d
URL: http://www.qemu.org/
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
Matthias Saou 5d0953
Patch2: qemu-0.8.2-kernheaders.patch
Matthias Saou 5c9bd8
Patch3: qemu-0.8.2-target-sparc.patch
David Woodhouse 1ca927
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Matthias Saou 01139d
BuildRequires: SDL-devel compat-gcc-34 zlib-devel which texi2html
Matthias Saou 67348d
Requires(post): /sbin/chkconfig
Matthias Saou 67348d
Requires(preun): /sbin/service /sbin/chkconfig
Matthias Saou 67348d
Requires(postun): /sbin/service
Matthias Saou 67348d
ExclusiveArch: %{ix86} x86_64 ppc alpha sparc armv4l
David Woodhouse 5c3734
David Woodhouse 5c3734
%description
Matthias Saou 67348d
QEMU is a generic and open source processor emulator which achieves a good
Matthias Saou 67348d
emulation speed by using dynamic translation. QEMU has two operating modes:
David Woodhouse 5c3734
Matthias Saou 67348d
 * Full system emulation. In this mode, QEMU emulates a full system (for
Matthias Saou 67348d
   example a PC), including a processor and various peripherials. It can be
Matthias Saou 67348d
   used to launch different Operating Systems without rebooting the PC or
Matthias Saou 67348d
   to debug system code.
David Woodhouse 5c3734
 * User mode emulation. In this mode, QEMU can launch Linux processes compiled
Matthias Saou 67348d
   for one CPU on another CPU.
David Woodhouse 5c3734
Matthias Saou 67348d
As QEMU requires no host kernel patches to run, it is 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
Matthias Saou 5d0953
%patch2 -p1
Matthias Saou 5c9bd8
%patch3 -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
Matthias Saou 67348d
    --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
Matthias Saou 01139d
    --cc=gcc34 --enable-alsa
Matthias Saou 67348d
make %{?_smp_mflags}
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}" \
Matthias Saou 67348d
     bindir="${RPM_BUILD_ROOT}%{_bindir}" \
Matthias Saou 67348d
     sharedir="${RPM_BUILD_ROOT}%{_prefix}/share/qemu" \
Matthias Saou 67348d
     mandir="${RPM_BUILD_ROOT}%{_mandir}" \
Matthias Saou 67348d
     docdir="${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}" \
Matthias Saou 67348d
     datadir="${RPM_BUILD_ROOT}%{_prefix}/share/qemu" install
Matthias Saou 8cd57a
Matthias Saou 67348d
install -D -p -m 0755 %{SOURCE1} $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
Matthias Saou 67348d
if [ $1 -eq 0 ]; then
Matthias Saou 67348d
    /sbin/service qemu stop &>/dev/null || :
Matthias Saou 67348d
    /sbin/chkconfig --del qemu
Matthias Saou 67348d
fi
Matthias Saou 67348d
Matthias Saou 67348d
%postun
Matthias Saou 67348d
if [ $1 -ge 1 ]; then
Matthias Saou 67348d
    /sbin/service qemu condrestart &>/dev/null || :
David Woodhouse 5c3734
fi
David Woodhouse 5c3734
David Woodhouse 5c3734
%files
David Woodhouse 5c3734
%defattr(-,root,root)
David Woodhouse 5c3734
%doc Changelog README README.distrib TODO
Matthias Saou 67348d
%doc qemu-doc.html qemu-tech.html
David Woodhouse c8e4b3
%config %{_sysconfdir}/rc.d/init.d/qemu
Matthias Saou 67348d
%{_bindir}/qemu*
Matthias Saou 67348d
%{_prefix}/share/qemu/
Matthias Saou 67348d
%{_mandir}/man1/*
David Woodhouse 5c3734
David Woodhouse 5c3734
%changelog
Matthias Saou 67348d
* Wed Aug 23 2006 Matthias Saou <http://freshrpms.net/> 0.8.2-1
Matthias Saou 67348d
- Update to 0.8.2 (#200065).
Matthias Saou 67348d
- Drop upstreamed syscall-macros patch2.
Matthias Saou 67348d
- Put correct scriplet dependencies.
Matthias Saou 67348d
- Force install mode for the init script to avoid umask problems.
Matthias Saou 67348d
- Add %%postun condrestart for changes to the init script to be applied if any.
Matthias Saou 67348d
- Update description with the latest "about" from the web page (more current).
Matthias Saou 67348d
- Update URL to qemu.org one like the Source.
Matthias Saou 67348d
- Add which build requirement.
Matthias Saou 67348d
- Don't include texi files in %%doc since we ship them in html.
Matthias Saou 01139d
- Switch to using gcc34 on devel, FC5 still has gcc32.
Matthias Saou 5d0953
- Add kernheaders patch to fix linux/compiler.h inclusion.
Matthias Saou 5c9bd8
- Add target-sparc patch to fix compiling on ppc (some int32 to float).
Matthias Saou 67348d
David Woodhouse 1ca927
* Thu Jun  8 2006 David Woodhouse <dwmw2@infradead.org> 0.8.1-3
David Woodhouse 1ca927
- More header abuse in modify_ldt(), change BuildRoot:
David Woodhouse 1ca927
David Woodhouse 1ca927
* 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.