|
Matthias Saou |
e6d232 |
# For FC >= 6 we have gcc 3.4, for FC <= 5 we have gcc 3.2
|
|
Matthias Saou |
e6d232 |
%if %{!?fedora:6}%{?fedora} >= 6
|
|
Matthias Saou |
e6d232 |
%define gccver 34
|
|
Matthias Saou |
e6d232 |
%else
|
|
Matthias Saou |
e6d232 |
%define gccver 32
|
|
Matthias Saou |
e6d232 |
%endif
|
|
Matthias Saou |
e6d232 |
|
|
David Woodhouse |
5c3734 |
Summary: QEMU is a FAST! processor emulator
|
|
David Woodhouse |
5c3734 |
Name: qemu
|
|
Daniel P. Berrange |
e62519 |
Version: 0.9.1
|
|
Jesse Keating |
609577 |
Release: 2%{?dist}
|
|
Daniel P. Berrange |
e62519 |
License: GPLv2+ and LGPLv2+
|
|
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
|
|
Daniel P. Berrange |
304b40 |
# Change default NIC to rtl8139 to get link-state detection
|
|
Daniel P. Berrange |
e62519 |
Patch3: qemu-0.9.1-nic-defaults.patch
|
|
David Woodhouse |
1ca927 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Daniel P. Berrange |
304b40 |
BuildRequires: SDL-devel compat-gcc-%{gccver} zlib-devel which texi2html gnutls-devel
|
|
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
|
|
Daniel P. Berrange |
304b40 |
%patch3 -p1
|
|
David Woodhouse |
5c3734 |
|
|
David Woodhouse |
5c3734 |
%build
|
|
Matthias Saou |
e6d232 |
./configure \
|
|
Matthias Saou |
e6d232 |
--prefix=%{_prefix} \
|
|
Matthias Saou |
e6d232 |
--interp-prefix=%{_prefix}/qemu-%%M \
|
|
Matthias Saou |
e6d232 |
--cc=gcc%{gccver} \
|
|
Daniel P. Berrange |
4ecadb |
--enable-alsa \
|
|
Daniel P. Berrange |
4ecadb |
--extra-ldflags="-Wl,--build-id"
|
|
Daniel P. Berrange |
4ecadb |
make %{?_smp_mflags} VL_LDFLAGS="-Wl,--build-id"
|
|
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
|
|
Hans de Goede |
76b47e |
chmod -x ${RPM_BUILD_ROOT}%{_mandir}/man1/*
|
|
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 |
4cf268 |
%doc Changelog README TODO
|
|
Matthias Saou |
67348d |
%doc qemu-doc.html qemu-tech.html
|
|
David Woodhouse |
f57922 |
%doc COPYING COPYING.LIB LICENSE
|
|
Daniel P. Berrange |
e62519 |
%{_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
|
|
Jesse Keating |
609577 |
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.1-2
|
|
Jesse Keating |
609577 |
- Autorebuild for GCC 4.3
|
|
Jesse Keating |
609577 |
|
|
Daniel P. Berrange |
e62519 |
* Tue Jan 8 2008 Daniel P. Berrange <berrange@redhat.com> - 0.9.1-1.fc9
|
|
Daniel P. Berrange |
e62519 |
- Updated to 0.9.1 release
|
|
Daniel P. Berrange |
e62519 |
- Fix license tag syntax
|
|
Daniel P. Berrange |
e62519 |
- Don't mark init script as a config file
|
|
Daniel P. Berrange |
e62519 |
|
|
Daniel P. Berrange |
f4a1bb |
* Wed Sep 26 2007 Daniel P. Berrange <berrange@redhat.com> - 0.9.0-5.fc8
|
|
Daniel P. Berrange |
f4a1bb |
- Fix rtl8139 checksum calculation for Vista (rhbz #308201)
|
|
Daniel P. Berrange |
f4a1bb |
|
|
Daniel P. Berrange |
4ecadb |
* Tue Aug 28 2007 Daniel P. Berrange <berrange@redhat.com> - 0.9.0-4.fc8
|
|
Daniel P. Berrange |
4ecadb |
- Fix debuginfo by passing -Wl,--build-id to linker
|
|
Daniel P. Berrange |
4ecadb |
|
|
David Woodhouse |
e415ab |
* Tue Aug 28 2007 David Woodhouse <dwmw2@infradead.org> 0.9.0-4
|
|
David Woodhouse |
e415ab |
- Update licence
|
|
David Woodhouse |
e415ab |
- Fix CDROM emulation (#253542)
|
|
David Woodhouse |
e415ab |
|
|
Daniel P. Berrange |
304b40 |
* Tue Aug 28 2007 Daniel P. Berrange <berrange@redhat.com> - 0.9.0-3.fc8
|
|
Daniel P. Berrange |
304b40 |
- Added backport of VNC password auth, and TLS+x509 cert auth
|
|
Daniel P. Berrange |
304b40 |
- Switch to rtl8139 NIC by default for linkstate reporting
|
|
Daniel P. Berrange |
304b40 |
- Fix rtl8139 mmio region mappings with multiple NICs
|
|
Daniel P. Berrange |
304b40 |
|
|
Hans de Goede |
76b47e |
* Sun Apr 1 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.9.0-2
|
|
Hans de Goede |
76b47e |
- Fix direct loading of a linux kernel with -kernel & -initrd (bz 234681)
|
|
Hans de Goede |
76b47e |
- Remove spurious execute bits from manpages (bz 222573)
|
|
Hans de Goede |
76b47e |
|
|
David Woodhouse |
4cf268 |
* Tue Feb 6 2007 David Woodhouse <dwmw2@infradead.org> 0.9.0-1
|
|
David Woodhouse |
4cf268 |
- Update to 0.9.0
|
|
David Woodhouse |
4cf268 |
|
|
David Woodhouse |
f57922 |
* Wed Jan 31 2007 David Woodhouse <dwmw2@infradead.org> 0.8.2-5
|
|
David Woodhouse |
f57922 |
- Include licences
|
|
David Woodhouse |
f57922 |
|
|
Hans de Goede |
019db4 |
* Mon Nov 13 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.8.2-4
|
|
Hans de Goede |
019db4 |
- Backport patch to make FC6 guests work by Kevin Kofler
|
|
Hans de Goede |
019db4 |
<Kevin@tigcc.ticalc.org> (bz 207843).
|
|
Hans de Goede |
019db4 |
|
|
David Woodhouse |
f6b93b |
* Mon Sep 11 2006 David Woodhouse <dwmw2@infradead.org> 0.8.2-3
|
|
David Woodhouse |
f6b93b |
- Rebuild
|
|
David Woodhouse |
f6b93b |
|
|
Matthias Saou |
e6d232 |
* Thu Aug 24 2006 Matthias Saou <http://freshrpms.net/> 0.8.2-2
|
|
Matthias Saou |
e6d232 |
- Remove the target-list iteration for x86_64 since they all build again.
|
|
Matthias Saou |
e6d232 |
- Make gcc32 vs. gcc34 conditional on %%{fedora} to share the same spec for
|
|
Matthias Saou |
e6d232 |
FC5 and FC6.
|
|
Matthias Saou |
e6d232 |
|
|
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.
|