Summary: QEMU is a FAST! processor emulator Name: qemu Version: 1.0 Release: 0.5.svn6666%{?dist} License: GPLv2+ and LGPLv2+ Group: Development/Tools URL: http://www.qemu.org/ Source0: http://www.qemu.org/%{name}-%{version}.tar.gz Source1: qemu.init # VNC SASL authentication support # Not upstream yet, but approved for commit immediately # after this release Patch1: qemu-sasl-01-tls-handshake-fix.patch Patch2: qemu-sasl-02-vnc-monitor-info.patch Patch3: qemu-sasl-03-display-keymaps.patch Patch4: qemu-sasl-04-vnc-struct.patch Patch5: qemu-sasl-05-vnc-tls-vencrypt.patch Patch6: qemu-sasl-06-vnc-sasl.patch Patch7: qemu-sasl-07-vnc-monitor-authinfo.patch Patch8: qemu-sasl-08-vnc-acl-mgmt.patch # NB, delibrately not including patch 09 which is not # intended for commit BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: SDL-devel zlib-devel which texi2html gnutls-devel cyrus-sasl-devel Requires: %{name}-user = %{version}-%{release} Requires: %{name}-system-x86 = %{version}-%{release} Requires: %{name}-system-sparc = %{version}-%{release} Requires: %{name}-system-arm = %{version}-%{release} Requires: %{name}-system-cris = %{version}-%{release} Requires: %{name}-system-sh4 = %{version}-%{release} Requires: %{name}-system-m68k = %{version}-%{release} Requires: %{name}-system-mips = %{version}-%{release} Requires: %{name}-system-ppc = %{version}-%{release} Requires: %{name}-img = %{version}-%{release} #ExclusiveArch: %{ix86} x86_64 ppc alpha sparcv9 sparc64 armv4l %define qemudocdir %{_docdir}/%{name}-%{version} %define qemupkg() \ %package %1\ Summary: QEMU %2\ Group: Development/Tools \ Requires: %{name}-common = %{version}-%{release} \ %{nil} %define qemudesc() \ %description %1 \ QEMU is a generic and open source processor emulator which achieves a good \ emulation speed by using dynamic translation. \ \ This package provides the %2 %{nil} %define qemupkgdesc() \ %package %1\ Summary: QEMU %2\ Group: Development/Tools \ Requires: %{name}-common = %{version}-%{release} \ %description %1 \ QEMU is a generic and open source processor emulator which achieves a good \ emulation speed by using dynamic translation. \ \ This package provides the %2 %{nil} %description QEMU is a generic and open source processor emulator which achieves a good emulation speed by using dynamic translation. QEMU has two operating modes: * Full system emulation. In this mode, QEMU emulates a full system (for example a PC), including a processor and various peripherials. It can be used to launch different Operating Systems without rebooting the PC or to debug system code. * User mode emulation. In this mode, QEMU can launch Linux processes compiled for one CPU on another CPU. As QEMU requires no host kernel patches to run, it is safe and easy to use. %qemupkgdesc img {command line tool for manipulating disk images} %qemupkgdesc common {common files needed by all QEMU targets} %qemupkg user {user mode emulation of qemu targets} Requires(post): /sbin/chkconfig Requires(preun): /sbin/service /sbin/chkconfig Requires(postun): /sbin/service Requires: %{name}-common = %{version}-%{release} %qemudesc user {user mode emulation of qemu targets} %qemupkg system-x86 {system emulator for x86} Requires: etherboot-zroms-kvm Requires: vgabios Requires: bochs-bios-data %qemudesc system-x86 {system emulator for x86} %qemupkgdesc system-ppc {system emulator for ppc} %qemupkg system-sparc {system emulator for sparc} %qemudesc system-sparc {system emulator for sparc} %qemupkgdesc system-arm {system emulator for arm} %qemupkgdesc system-mips {system emulator for mips} %qemupkgdesc system-cris {system emulator for cris} %qemupkgdesc system-m68k {system emulator for m68k} %qemupkgdesc system-sh4 {system emulator for sh4} %prep %setup -q # 01-tls-handshake-fix %patch1 -p1 # 02-vnc-monitor-info %patch2 -p1 # 03-display-keymaps %patch3 -p1 # 04-vnc-struct %patch4 -p1 # 05-vnc-tls-vencrypt %patch5 -p1 # 06-vnc-sasl %patch6 -p1 # 07-vnc-monitor-authinfo %patch7 -p1 # 08-vnc-acl-mgmt %patch8 -p1 %build # systems like rhel build system does not have a recent enough linker so # --build-id works. this option is used fedora 8 onwards for giving info # to the debug packages. build_id_available() { echo "int main () { return 0; }" | gcc -x c -Wl,--build-id - 2>/dev/null } if build_id_available; then extraldflags="--extra-ldflags=-Wl,--build-id" buildldflags="VL_LDFLAGS=-Wl,--build-id" else extraldflags="" buildldflags="" fi ./configure \ --prefix=%{_prefix} \ --interp-prefix=%{_prefix}/qemu-%%M \ $extraldflags; make %{?_smp_mflags} $buildldflags %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}" \ docdir="${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}" \ datadir="${RPM_BUILD_ROOT}%{_prefix}/share/qemu" install chmod -x ${RPM_BUILD_ROOT}%{_mandir}/man1/* install -D -p -m 0755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/qemu install -D -p -m 0644 -t ${RPM_BUILD_ROOT}/%{qemudocdir} Changelog README TODO COPYING COPYING.LIB LICENSE install -D -p -m 0644 qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl2/qemu.conf rm -rf ${RPM_BUILD_ROOT}/usr/share//qemu/pxe*bin rm -rf ${RPM_BUILD_ROOT}/usr/share//qemu/vgabios*bin rm -rf ${RPM_BUILD_ROOT}/usr/share//qemu/bios.bin # the pxe etherboot images will be symlinks to the images on # /usr/share/etherboot, as QEMU doesn't know how to look # for other paths, yet. pxe_link() { ln -s ../etherboot/$2.zrom %{buildroot}/usr/share/qemu/pxe-$1.bin } pxe_link e1000 e1000-82542 pxe_link ne2k_pci ne pxe_link pcnet pcnet32 pxe_link rtl8139 rtl8139 pxe_link virtio virtio-net ln -s ../vgabios/VGABIOS-lgpl-latest.bin %{buildroot}/usr/share/qemu/vgabios.bin ln -s ../vgabios/VGABIOS-lgpl-latest.cirrus.bin %{buildroot}/usr/share/qemu/vgabios-cirrus.bin ln -s ../bochs/BIOS-bochs-latest %{buildroot}/usr/share/qemu/bios.bin %clean rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add qemu %preun if [ $1 -eq 0 ]; then /sbin/service qemu stop &>/dev/null || : /sbin/chkconfig --del qemu fi %postun if [ $1 -ge 1 ]; then /sbin/service qemu condrestart &>/dev/null || : fi %files %defattr(-,root,root) %files common %defattr(-,root,root) %doc %{qemudocdir}/Changelog %doc %{qemudocdir}/README %doc %{qemudocdir}/TODO %doc %{qemudocdir}/qemu-doc.html %doc %{qemudocdir}/qemu-tech.html %doc %{qemudocdir}/COPYING %doc %{qemudocdir}/COPYING.LIB %doc %{qemudocdir}/LICENSE %{_prefix}/share/qemu/keymaps/ %{_prefix}/share/qemu/* %{_mandir}/man1/qemu.1* %{_mandir}/man8/qemu-nbd.8* %{_bindir}/qemu-nbd %config(noreplace) %{_sysconfdir}/sasl2/qemu.conf %files user %defattr(-,root,root) %{_sysconfdir}/rc.d/init.d/qemu %{_bindir}/qemu-alpha %{_bindir}/qemu-arm %{_bindir}/qemu-armeb %{_bindir}/qemu-cris %{_bindir}/qemu-i386 %{_bindir}/qemu-x86_64 %{_bindir}/qemu-m68k %{_bindir}/qemu-mips %{_bindir}/qemu-mipsel %{_bindir}/qemu-ppc %{_bindir}/qemu-ppc64 %{_bindir}/qemu-ppc64abi32 %{_bindir}/qemu-sh4 %{_bindir}/qemu-sh4eb %{_bindir}/qemu-sparc %{_bindir}/qemu-sparc64 %{_bindir}/qemu-sparc32plus %files system-x86 %defattr(-,root,root) %{_bindir}/qemu %{_bindir}/qemu-system-x86_64 %{_prefix}/share/qemu/bios.bin %{_prefix}/share/qemu/vgabios.bin %{_prefix}/share/qemu/vgabios-cirrus.bin %files system-sparc %defattr(-,root,root) %{_bindir}/qemu-system-sparc %{_prefix}/share/qemu/openbios-sparc32 %{_prefix}/share/qemu/openbios-sparc64 %files system-arm %defattr(-,root,root) %{_bindir}/qemu-system-arm %files system-mips %defattr(-,root,root) %{_bindir}/qemu-system-mips %{_bindir}/qemu-system-mipsel %{_bindir}/qemu-system-mips64 %{_bindir}/qemu-system-mips64el %files system-ppc %defattr(-,root,root) %{_bindir}/qemu-system-ppc %{_bindir}/qemu-system-ppc64 %{_bindir}/qemu-system-ppcemb %files system-cris %defattr(-,root,root) %{_bindir}/qemu-system-cris %files system-m68k %defattr(-,root,root) %{_bindir}/qemu-system-m68k %files system-sh4 %defattr(-,root,root) %{_bindir}/qemu-system-sh4 %{_bindir}/qemu-system-sh4eb %files img %defattr(-,root,root) %{_bindir}/qemu-img %{_mandir}/man1/qemu-img.1* %changelog * Tue Mar 3 2009 Daniel P. Berrange - 1.0-0.5.svn6666 - Support VNC SASL authentication protocol - Fix dep on bochs-bios-data * Tue Mar 03 2009 Glauber Costa - 1.0-0.4.svn6666 - use bios from bochs-bios package. * Tue Mar 03 2009 Glauber Costa - 1.0-0.3.svn6666 - use vgabios from vgabios package. * Mon Mar 02 2009 Glauber Costa - 1.0-0.2.svn6666 - use pxe roms from etherboot package. * Mon Mar 02 2009 Glauber Costa - 1.0-0.1.svn6666 - Updated to tip svn (release 6666). Featuring split packages for qemu. Unfortunately, still using binary blobs for the bioses. * Wed Feb 25 2009 Fedora Release Engineering - 0.9.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sun Jan 11 2009 Debarshi Ray - 0.9.1-12 - Updated build patch. Closes Red Hat Bugzilla bug #465041. * Wed Dec 31 2008 Dennis Gilmore - 0.9.1-11 - add sparcv9 and sparc64 support * Fri Jul 25 2008 Bill Nottingham - Fix qemu-img summary (#456344) * Wed Jun 25 2008 Daniel P. Berrange - 0.9.1-10.fc10 - Rebuild for GNU TLS ABI change * Wed Jun 11 2008 Daniel P. Berrange - 0.9.1-9.fc10 - Remove bogus wildcard from files list (rhbz #450701) * Sat May 17 2008 Lubomir Rintel - 0.9.1-8 - Register binary handlers also for shared libraries * Mon May 5 2008 Daniel P. Berrange - 0.9.1-7.fc10 - Fix text console PTYs to be in rawmode * Sun Apr 27 2008 Lubomir Kundrak - 0.9.1-6 - Register binary handler for SuperH-4 CPU * Wed Mar 19 2008 Daniel P. Berrange - 0.9.1-5.fc9 - Split qemu-img tool into sub-package for smaller footprint installs * Wed Feb 27 2008 Daniel P. Berrange - 0.9.1-4.fc9 - Fix block device checks for extendable disk formats (rhbz #435139) * Sat Feb 23 2008 Daniel P. Berrange - 0.9.1-3.fc9 - Fix block device extents check (rhbz #433560) * Mon Feb 18 2008 Fedora Release Engineering - 0.9.1-2 - Autorebuild for GCC 4.3 * Tue Jan 8 2008 Daniel P. Berrange - 0.9.1-1.fc9 - Updated to 0.9.1 release - Fix license tag syntax - Don't mark init script as a config file * Wed Sep 26 2007 Daniel P. Berrange - 0.9.0-5.fc8 - Fix rtl8139 checksum calculation for Vista (rhbz #308201) * Tue Aug 28 2007 Daniel P. Berrange - 0.9.0-4.fc8 - Fix debuginfo by passing -Wl,--build-id to linker * Tue Aug 28 2007 David Woodhouse 0.9.0-4 - Update licence - Fix CDROM emulation (#253542) * Tue Aug 28 2007 Daniel P. Berrange - 0.9.0-3.fc8 - Added backport of VNC password auth, and TLS+x509 cert auth - Switch to rtl8139 NIC by default for linkstate reporting - Fix rtl8139 mmio region mappings with multiple NICs * Sun Apr 1 2007 Hans de Goede 0.9.0-2 - Fix direct loading of a linux kernel with -kernel & -initrd (bz 234681) - Remove spurious execute bits from manpages (bz 222573) * Tue Feb 6 2007 David Woodhouse 0.9.0-1 - Update to 0.9.0 * Wed Jan 31 2007 David Woodhouse 0.8.2-5 - Include licences * Mon Nov 13 2006 Hans de Goede 0.8.2-4 - Backport patch to make FC6 guests work by Kevin Kofler (bz 207843). * Mon Sep 11 2006 David Woodhouse 0.8.2-3 - Rebuild * Thu Aug 24 2006 Matthias Saou 0.8.2-2 - Remove the target-list iteration for x86_64 since they all build again. - Make gcc32 vs. gcc34 conditional on %%{fedora} to share the same spec for FC5 and FC6. * Wed Aug 23 2006 Matthias Saou 0.8.2-1 - Update to 0.8.2 (#200065). - Drop upstreamed syscall-macros patch2. - Put correct scriplet dependencies. - Force install mode for the init script to avoid umask problems. - Add %%postun condrestart for changes to the init script to be applied if any. - Update description with the latest "about" from the web page (more current). - Update URL to qemu.org one like the Source. - Add which build requirement. - Don't include texi files in %%doc since we ship them in html. - Switch to using gcc34 on devel, FC5 still has gcc32. - Add kernheaders patch to fix linux/compiler.h inclusion. - Add target-sparc patch to fix compiling on ppc (some int32 to float). * Thu Jun 8 2006 David Woodhouse 0.8.1-3 - More header abuse in modify_ldt(), change BuildRoot: * Wed Jun 7 2006 David Woodhouse 0.8.1-2 - Fix up kernel header abuse * Tue May 30 2006 David Woodhouse 0.8.1-1 - Update to 0.8.1 * Sat Mar 18 2006 David Woodhouse 0.8.0-6 - Update linker script for PPC * Sat Mar 18 2006 David Woodhouse 0.8.0-5 - Just drop $RPM_OPT_FLAGS. They're too much of a PITA * Sat Mar 18 2006 David Woodhouse 0.8.0-4 - Disable stack-protector options which gcc 3.2 doesn't like * Fri Mar 17 2006 David Woodhouse 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 * Fri Mar 17 2006 David Woodhouse 0.8.0-2 - Don't use -mtune=pentium4 on i386. GCC 3.2 doesn't like it * Fri Mar 17 2006 David Woodhouse 0.8.0-1 - Update to 0.8.0 - Resort to using compat-gcc-32 - Enable ALSA * Mon May 16 2005 David Woodhouse 0.7.0-2 - Proper fix for GCC 4 putting 'blr' or 'ret' in the middle of the function, for i386, x86_64 and PPC. * Sat Apr 30 2005 David Woodhouse 0.7.0-1 - Update to 0.7.0 - Fix dyngen for PPC functions which end in unconditional branch * Fri Apr 7 2005 Michael Schwendt - rebuilt * Sun Feb 13 2005 David Woodhouse 0.6.1-2 - Package cleanup * Sun Nov 21 2004 David Woodhouse 0.6.1-1 - Update to 0.6.1 * Tue Jul 20 2004 David Woodhouse 0.6.0-2 - Compile fix from qemu CVS, add x86_64 host support * Mon May 12 2004 David Woodhouse 0.6.0-1 - Update to 0.6.0. * Sat May 8 2004 David Woodhouse 0.5.5-1 - Update to 0.5.5. * Thu May 2 2004 David Woodhouse 0.5.4-1 - Update to 0.5.4. * Thu Apr 22 2004 David Woodhouse 0.5.3-1 - Update to 0.5.3. Add init script. * Thu Jul 17 2003 Jeff Johnson 0.4.3-1 - Create.