Add aio support and an option to build --with x86only
This commit is contained in:
parent
c7edac6759
commit
a6cb6ec1bd
54
qemu.spec
54
qemu.spec
|
@ -1,13 +1,17 @@
|
||||||
Summary: QEMU is a FAST! processor emulator
|
Summary: QEMU is a FAST! processor emulator
|
||||||
Name: qemu
|
Name: qemu
|
||||||
Version: 0.12.3
|
Version: 0.12.3
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
# Epoch because we pushed a qemu-1.0 package
|
# Epoch because we pushed a qemu-1.0 package
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
License: GPLv2+ and LGPLv2+ and BSD
|
License: GPLv2+ and LGPLv2+ and BSD
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
URL: http://www.qemu.org/
|
URL: http://www.qemu.org/
|
||||||
|
|
||||||
|
# Allow one off builds to be minimalized without foreign
|
||||||
|
# architecture support (--with x86only):
|
||||||
|
%define with_x86only %{?_with_x86only: 1} %{?!_with_x86only: 0}
|
||||||
|
|
||||||
Source0: http://downloads.sourceforge.net/sourceforge/kvm/qemu-kvm-%{version}.tar.gz
|
Source0: http://downloads.sourceforge.net/sourceforge/kvm/qemu-kvm-%{version}.tar.gz
|
||||||
Source1: qemu.init
|
Source1: qemu.init
|
||||||
|
|
||||||
|
@ -82,6 +86,7 @@ Patch48: 0048-virtio-serial-pci-Allow-MSI-to-be-disabled.patch
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
BuildRequires: SDL-devel zlib-devel which texi2html gnutls-devel cyrus-sasl-devel
|
BuildRequires: SDL-devel zlib-devel which texi2html gnutls-devel cyrus-sasl-devel
|
||||||
|
BuildRequires: libaio-devel
|
||||||
BuildRequires: rsync
|
BuildRequires: rsync
|
||||||
BuildRequires: pciutils-devel
|
BuildRequires: pciutils-devel
|
||||||
BuildRequires: pulseaudio-libs-devel
|
BuildRequires: pulseaudio-libs-devel
|
||||||
|
@ -183,6 +188,7 @@ This package provides the system emulator for x86. When being run in a x86
|
||||||
machine that supports it, this package also provides the KVM virtualization
|
machine that supports it, this package also provides the KVM virtualization
|
||||||
platform.
|
platform.
|
||||||
|
|
||||||
|
%if !%{with_x86only}
|
||||||
%package system-ppc
|
%package system-ppc
|
||||||
Summary: QEMU system emulator for ppc
|
Summary: QEMU system emulator for ppc
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
|
@ -253,6 +259,7 @@ QEMU is a generic and open source processor emulator which achieves a good
|
||||||
emulation speed by using dynamic translation.
|
emulation speed by using dynamic translation.
|
||||||
|
|
||||||
This package provides the system emulator for sh4
|
This package provides the system emulator for sh4
|
||||||
|
%endif
|
||||||
|
|
||||||
%ifarch %{ix86} x86_64
|
%ifarch %{ix86} x86_64
|
||||||
%package kvm-tools
|
%package kvm-tools
|
||||||
|
@ -317,6 +324,22 @@ such as kvmtrace and kvm_stat.
|
||||||
%patch48 -p1
|
%patch48 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
# By default we build everything, but allow x86 to build a minimal version
|
||||||
|
# with only similar arch target support
|
||||||
|
%if %{with_x86only}
|
||||||
|
buildarch="i386-softmmu x86_64-softmmu i386-linux-user x86_64-linux-user"
|
||||||
|
%else
|
||||||
|
buildarch="i386-softmmu x86_64-softmmu arm-softmmu cris-softmmu m68k-softmmu \
|
||||||
|
mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu ppc-softmmu \
|
||||||
|
ppcemb-softmmu ppc64-softmmu sh4-softmmu sh4eb-softmmu sparc-softmmu \
|
||||||
|
i386-linux-user x86_64-linux-user alpha-linux-user arm-linux-user \
|
||||||
|
armeb-linux-user cris-linux-user m68k-linux-user mips-linux-user \
|
||||||
|
mipsel-linux-user ppc-linux-user ppc64-linux-user ppc64abi32-linux-user \
|
||||||
|
sh4-linux-user sh4eb-linux-user sparc-linux-user sparc64-linux-user \
|
||||||
|
sparc32plus-linux-user" \
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
# --build-id option is used fedora 8 onwards for giving info to the debug packages.
|
# --build-id option is used fedora 8 onwards for giving info to the debug packages.
|
||||||
extraldflags="-Wl,--build-id";
|
extraldflags="-Wl,--build-id";
|
||||||
buildldflags="VL_LDFLAGS=-Wl,--build-id"
|
buildldflags="VL_LDFLAGS=-Wl,--build-id"
|
||||||
|
@ -349,14 +372,7 @@ cd ../../
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
./configure \
|
./configure \
|
||||||
--target-list="i386-softmmu x86_64-softmmu arm-softmmu cris-softmmu m68k-softmmu \
|
--target-list="$buildarch" \
|
||||||
mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu ppc-softmmu \
|
|
||||||
ppcemb-softmmu ppc64-softmmu sh4-softmmu sh4eb-softmmu sparc-softmmu \
|
|
||||||
i386-linux-user x86_64-linux-user alpha-linux-user arm-linux-user \
|
|
||||||
armeb-linux-user cris-linux-user m68k-linux-user mips-linux-user \
|
|
||||||
mipsel-linux-user ppc-linux-user ppc64-linux-user ppc64abi32-linux-user \
|
|
||||||
sh4-linux-user sh4eb-linux-user sparc-linux-user sparc64-linux-user \
|
|
||||||
sparc32plus-linux-user" \
|
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--interp-prefix=%{_prefix}/qemu-%%M \
|
--interp-prefix=%{_prefix}/qemu-%%M \
|
||||||
--audio-drv-list=pa,sdl,alsa,oss \
|
--audio-drv-list=pa,sdl,alsa,oss \
|
||||||
|
@ -416,6 +432,11 @@ rm -rf ${RPM_BUILD_ROOT}%{_datadir}/%{name}/openbios-ppc
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/%{name}/openbios-sparc32
|
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/%{name}/openbios-sparc32
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/%{name}/openbios-sparc64
|
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/%{name}/openbios-sparc64
|
||||||
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/%{name}/petalogix-s3adsp1800.dtb
|
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/%{name}/petalogix-s3adsp1800.dtb
|
||||||
|
%if %{with_x86only}
|
||||||
|
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/%{name}/bamboo.dtb
|
||||||
|
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/%{name}/ppc_rom.bin
|
||||||
|
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/%{name}/video.x
|
||||||
|
%endif
|
||||||
|
|
||||||
# the pxe gpxe images will be symlinks to the images on
|
# the pxe gpxe images will be symlinks to the images on
|
||||||
# /usr/share/gpxe, as QEMU doesn't know how to look
|
# /usr/share/gpxe, as QEMU doesn't know how to look
|
||||||
|
@ -432,10 +453,11 @@ pxe_link virtio virtio-net
|
||||||
ln -s ../vgabios/VGABIOS-lgpl-latest.bin %{buildroot}/%{_datadir}/%{name}/vgabios.bin
|
ln -s ../vgabios/VGABIOS-lgpl-latest.bin %{buildroot}/%{_datadir}/%{name}/vgabios.bin
|
||||||
ln -s ../vgabios/VGABIOS-lgpl-latest.cirrus.bin %{buildroot}/%{_datadir}/%{name}/vgabios-cirrus.bin
|
ln -s ../vgabios/VGABIOS-lgpl-latest.cirrus.bin %{buildroot}/%{_datadir}/%{name}/vgabios-cirrus.bin
|
||||||
ln -s ../seabios/bios.bin %{buildroot}/%{_datadir}/%{name}/bios.bin
|
ln -s ../seabios/bios.bin %{buildroot}/%{_datadir}/%{name}/bios.bin
|
||||||
|
%if !%{with_x86only}
|
||||||
ln -s ../openbios/openbios-ppc %{buildroot}/%{_datadir}/%{name}/openbios-ppc
|
ln -s ../openbios/openbios-ppc %{buildroot}/%{_datadir}/%{name}/openbios-ppc
|
||||||
ln -s ../openbios/openbios-sparc32 %{buildroot}/%{_datadir}/%{name}/openbios-sparc32
|
ln -s ../openbios/openbios-sparc32 %{buildroot}/%{_datadir}/%{name}/openbios-sparc32
|
||||||
ln -s ../openbios/openbios-sparc64 %{buildroot}/%{_datadir}/%{name}/openbios-sparc64
|
ln -s ../openbios/openbios-sparc64 %{buildroot}/%{_datadir}/%{name}/openbios-sparc64
|
||||||
|
%endif
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
@ -514,12 +536,13 @@ fi
|
||||||
%files user
|
%files user
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_initddir}/qemu
|
%{_initddir}/qemu
|
||||||
|
%{_bindir}/qemu-i386
|
||||||
|
%{_bindir}/qemu-x86_64
|
||||||
|
%if !%{with_x86only}
|
||||||
%{_bindir}/qemu-alpha
|
%{_bindir}/qemu-alpha
|
||||||
%{_bindir}/qemu-arm
|
%{_bindir}/qemu-arm
|
||||||
%{_bindir}/qemu-armeb
|
%{_bindir}/qemu-armeb
|
||||||
%{_bindir}/qemu-cris
|
%{_bindir}/qemu-cris
|
||||||
%{_bindir}/qemu-i386
|
|
||||||
%{_bindir}/qemu-x86_64
|
|
||||||
%{_bindir}/qemu-m68k
|
%{_bindir}/qemu-m68k
|
||||||
%{_bindir}/qemu-mips
|
%{_bindir}/qemu-mips
|
||||||
%{_bindir}/qemu-mipsel
|
%{_bindir}/qemu-mipsel
|
||||||
|
@ -531,6 +554,7 @@ fi
|
||||||
%{_bindir}/qemu-sparc
|
%{_bindir}/qemu-sparc
|
||||||
%{_bindir}/qemu-sparc64
|
%{_bindir}/qemu-sparc64
|
||||||
%{_bindir}/qemu-sparc32plus
|
%{_bindir}/qemu-sparc32plus
|
||||||
|
%endif
|
||||||
%files system-x86
|
%files system-x86
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/qemu
|
%{_bindir}/qemu
|
||||||
|
@ -557,6 +581,7 @@ fi
|
||||||
%{_bindir}/kvmtrace_format
|
%{_bindir}/kvmtrace_format
|
||||||
%{_bindir}/kvm_stat
|
%{_bindir}/kvm_stat
|
||||||
%endif
|
%endif
|
||||||
|
%if !%{with_x86only}
|
||||||
%files system-sparc
|
%files system-sparc
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/qemu-system-sparc
|
%{_bindir}/qemu-system-sparc
|
||||||
|
@ -590,6 +615,7 @@ fi
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/qemu-system-sh4
|
%{_bindir}/qemu-system-sh4
|
||||||
%{_bindir}/qemu-system-sh4eb
|
%{_bindir}/qemu-system-sh4eb
|
||||||
|
%endif
|
||||||
|
|
||||||
%files img
|
%files img
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
@ -598,6 +624,10 @@ fi
|
||||||
%{_mandir}/man1/qemu-img.1*
|
%{_mandir}/man1/qemu-img.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 09 2010 Justin M. Forbes <jforbes@redhat.com> - 2:0.12.3-4
|
||||||
|
- Allow builds --with x86only
|
||||||
|
- Add libaio-devel buildreq for aio support
|
||||||
|
|
||||||
* Sun Feb 28 2010 Justin M. Forbes <jforbes@redhat.com> - 2:0.12.3-3
|
* Sun Feb 28 2010 Justin M. Forbes <jforbes@redhat.com> - 2:0.12.3-3
|
||||||
- Update patches against 0.12.3
|
- Update patches against 0.12.3
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue