Search
j0ke.net Open Build Service
>
Projects
>
virtualization
:
Qemu
>
qemu
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 26
[-]
[+]
Added
qemu.spec
@@ -0,0 +1,482 @@ +# +# spec file for package qemu (Version 0.10.1) +# +# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + + +Name: qemu +BuildRequires: SDL-devel bison e2fsprogs-devel libgnutls-devel libpcap-devel ncurses-devel zlib-devel-static +Url: http://fabrice.bellard.free.fr/qemu/ +License: BSD 3-Clause; GPL v2 or later; LGPL v2.1 or later; X11/MIT +Group: System/Emulators/PC +Summary: Universal CPU emulator +Version: 0.10.1 +Release: 2 +Source: %name-%version.tar.bz2 +Patch1: qemu-0.9.0.cvs-binfmt.patch +Patch6: qemu-0.7.0-amd64.patch +Patch8: qemu-cvs-pthread.patch +#Patch19: qemu-0.9.0-nousbdevfs.patch +Patch34: qemu-0.9.0-migration.patch +Patch50: qemu-cvs-newpath.patch +Patch53: qemu-cvs-sched_getaffinity.patch +Patch56: qemu-cvs-ipc.patch +Patch57: qemu-cvs-ipc_semop.patch +Patch58: qemu-cvs-ioctl_debug.patch +Patch59: qemu-cvs-alsa_bitfield.patch +Patch60: qemu-cvs-alsa_ioctl.patch +Patch61: qemu-cvs-ioctl_nodirection.patch +Patch62: qemu-cvs-alsa_mmap.patch +Patch63: qemu-cvs-gettimeofday.patch +Patch64: qemu-cvs-nofadvise64.patch +Patch65: qemu-cvs-flash.patch +Patch66: qemu-cvs-mmap-amd64.patch +Patch85: qemu-img-vmdk-scsi.patch +Patch86: qemu-svn-ncurses.patch +Patch88: qemu-svn-pcap.patch +Patch90: qemu-nonvoid_return.patch +#Patch91: qemu-svn-dirent.patch +Patch92: qemu-svn-s390.patch +Patch93: qemu-svn-i386-nptl.patch +# this is to make lint happy +Source300: rpmlintrc +BuildRoot: %{_tmppath}/%{name}-%{version}-build +ExclusiveArch: %ix86 ppc sparc %arm x86_64 s390x ppc64 + +%description +QEMU is an extremely well-performing CPU emulator that allows you to +choose between simulating an entire system and running userspace +binaries for different architectures under your native operating +system. It currently emulates x86, ARM, PowerPC and SPARC CPUs as well +as PC and PowerMac systems. + + + +Authors: +-------- + Fabrice Bellard <fabrice.bellard@free.fr> + +%prep +%setup -q +ln -s fpu/*.h . +%patch1 -p1 +%patch6 +%patch8 -p1 +#%patch19 +%patch50 -p1 +%patch53 -p1 +%patch56 -p1 +%patch57 -p1 +%patch58 -p1 +%patch59 -p1 +%patch60 -p1 +%patch61 -p1 +%patch62 -p1 +%patch63 -p1 +%patch64 -p1 +%patch65 -p1 +%patch66 -p1 +%patch85 -p1 +%patch86 +%patch88 +%patch90 +#%patch91 +%patch92 +%patch93 + +%build +# build QEMU +mkdir -p dynamic +# build qemu-system without kqemu support +./configure --prefix=/usr \ + --interp-prefix=/usr/share/qemu/qemu-i386 \ + --audio-card-list="ac97 adlib cs4231a gus" \ + --audio-drv-list="alsa sdl" --enable-mixemu \ + --extra-cflags="$QEMU_OPT_FLAGS" --enable-system --disable-linux-user +make %{?jobs:-j%{jobs}} V=1 +make qemu-img V=1 +mv */qemu */qemu-* qemu-img dynamic || true +make clean +# build userland emus +./configure --prefix=/usr \ + --interp-prefix=/usr/share/qemu/qemu-i386 \ + --enable-linux-user \ + --disable-system \ + --static \ + --extra-cflags="$QEMU_OPT_FLAGS" +make %{?jobs:-j%{jobs}} V=1 + +%install +install -d -m 755 $RPM_BUILD_ROOT/usr/bin +%ifnarch alpha +install -m 755 */qemu $RPM_BUILD_ROOT/usr/bin +ln -sf qemu $RPM_BUILD_ROOT/usr/bin/qemu-system-i386 +%endif +install -m 755 */qemu-*[^.]? $RPM_BUILD_ROOT/usr/bin +install -d -m 755 $RPM_BUILD_ROOT/%{_mandir}/man1 +install -m 644 qemu.1 $RPM_BUILD_ROOT/%{_mandir}/man1 +install -d -m 755 $RPM_BUILD_ROOT/usr/share/qemu +install -m 644 pc-bios/*.bin pc-bios/video.x pc-bios/openbios-sparc* $RPM_BUILD_ROOT/usr/share/qemu +install -d -m 755 $RPM_BUILD_ROOT/usr/sbin +install -m 755 qemu-binfmt-conf.sh $RPM_BUILD_ROOT/usr/sbin +install -m 755 dynamic/qemu-img $RPM_BUILD_ROOT/usr/bin +install -d -m 755 $RPM_BUILD_ROOT/usr/share/qemu/keymaps +install -m 644 keymaps/[a-z]* $RPM_BUILD_ROOT/usr/share/qemu/keymaps +%ifnarch %ix86 x86_64 +ln -sf ../../../emul/ia32-linux $RPM_BUILD_ROOT/usr/share/qemu/qemu-i386 +%endif +%ifnarch ia64 +mkdir -p $RPM_BUILD_ROOT/emul/ia32-linux +%endif + +%clean +rm -rf ${RPM_BUILD_ROOT} + +%files +%defattr(-, root, root) +%doc COPYING COPYING.LIB Changelog README TODO VERSION qemu-doc.html +%ifnarch alpha +/usr/bin/qemu +%endif +/usr/bin/qemu-* +/usr/sbin/qemu* +%{_mandir}/man1/qemu*.1.gz +/usr/share/qemu +%ifnarch %ix86 x86_64 ia64 +%dir /emul/ia32-linux +%endif + +%changelog +* Thu Apr 16 2009 ro@suse.de +- buildfix: refresh patches +* Fri Mar 27 2009 crrodriguez@suse.de +- BuildRequire zlib-devel-static +* Tue Mar 24 2009 uli@suse.de +- update -> release (0.10.1) + - fixes bnc #435135 (CVE-2008-4539, SWAMP #22179), #362956 + (CVE-2008-1945, CVE-2008-0928), #461565 (CVE-2008-2382) + - Kernel Virtual Machine acceleration support + - GDB XML register description support + - Intel e1000 emulation + - HPET emulation + - VirtIO paravirtual device support + - Marvell 88w8618 / MusicPal emulation + - Nokia N-series tablet emulation / OMAP2 processor emulation + - PCI hotplug support + - Curses display support + - qemu-nbd utility to mount supported block formats + - Altivec support in PPC emulation and new firmware (OpenBIOS) + - Multiple VNC clients are now supported + - TLS encryption is now supported in VNC + - MIPS Magnum R4000 machine (Hervé Poussineau) + - Braille support (Samuel Thibault) + - Freecom MusicPal system emulation (Jan Kiszka) + - OMAP242x and Nokia N800, N810 machines (Andrzej Zaborowski) + - EsounD audio driver (Frederick Reeve) + - Gravis Ultrasound GF1 sound card (Tibor "TS" Schütz) + - Many, many, bug fixes and new features + - virtio-net: allow masking of notifications on empty queue (Alex + Williamson) + - e1000: fix rx descriptor low threshold logic (Alex Willaimson) + - x86 tcg: add NULL checks to lsl instruction (Jan Kiszka) + - kvm vga: fix screen corruption with -std-vga and Windows (Avi Kivity) + - kvm vga: fix screen corruption with Ubuntu installations (Glauber Costa) + - virtio-net: check right return size on sg list (Alex Williamson) + - Make qemu_announce_self handle holes (live migration after hotplug)