5c37348
Summary: QEMU is a FAST! processor emulator
5c37348
Name: qemu
Glauber Costa e0f4cd7
Version: 0.10
Glauber Costa 0b5d26d
Release: 2%{?dist}
Glauber Costa c9c3df6
# I have mistakenly thought the revision name would be 1.0.
Glauber Costa c9c3df6
# So 0.10 series get Epoch = 1
Glauber Costa 9235f99
Epoch: 2
913ab98
License: GPLv2+ and LGPLv2+ and BSD
5c37348
Group: Development/Tools
67348d7
URL: http://www.qemu.org/
Glauber Costa 8571d06
#Source0: http://www.qemu.org/%{name}-%{version}.tar.gz
Glauber Costa 9e9690b
# git clone git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm.git
Glauber Costa 9e9690b
# git clone git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm-userspace.git
Glauber Costa 9e9690b
# echo "kdir=$(pwd)/kvm" > ~/.kvm-release-config
Glauber Costa 9e9690b
# cd kvm-userspace
Glauber Costa 9e9690b
# mkdir $(HOME)/sf-releases
Glauber Costa 9e9690b
# ./scripts/make-release kvm-85rc-1.git-snapshot-date +%Y%m%d HEAD HEAD
Glauber Costa 9e9690b
Glauber Costa 47b0758
Source0: qemu-kvm-%{version}.tar.gz
5c37348
Source1: qemu.init
Glauber Costa 8571d06
Source2: kvm.modules
42af212
Glauber Costa 47b0758
Glauber Costa 47b0758
Patch1: 01-tls-handshake-fix.patch
Glauber Costa 47b0758
Patch2: 02-vnc-monitor-info.patch
Glauber Costa 47b0758
Patch3: 03-display-keymaps.patch
Glauber Costa 47b0758
Patch4: 04-vnc-struct.patch
Glauber Costa 47b0758
Patch5: 05-vnc-tls-vencrypt.patch
Glauber Costa 47b0758
Patch6: 06-vnc-sasl.patch
Glauber Costa 47b0758
Patch7: 07-vnc-monitor-authinfo.patch
Glauber Costa 47b0758
Patch8: 08-vnc-acl-mgmt.patch
Glauber Costa 47b0758
Glauber Costa 47b0758
Patch9: kvm-upstream-ppc.patch
Glauber Costa 47b0758
Patch10: qemu-fix-debuginfo.patch
Glauber Costa 47b0758
Patch11: qemu-fix-gcc.patch
42af212
1ca9271
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
42af212
BuildRequires: SDL-devel zlib-devel which texi2html gnutls-devel cyrus-sasl-devel
Glauber Costa 4da298f
BuildRequires: rsync dev86 iasl
9a6ed39
BuildRequires: pciutils-devel
Glauber Costa 9235f99
Requires: %{name}-user = %{epoch}:%{version}-%{release}
Glauber Costa 9235f99
Requires: %{name}-system-x86 = %{epoch}:%{version}-%{release}
Glauber Costa 9235f99
Requires: %{name}-system-sparc = %{epoch}:%{version}-%{release}
Glauber Costa 9235f99
Requires: %{name}-system-arm = %{epoch}:%{version}-%{release}
Glauber Costa 9235f99
Requires: %{name}-system-cris = %{epoch}:%{version}-%{release}
Glauber Costa 9235f99
Requires: %{name}-system-sh4 = %{epoch}:%{version}-%{release}
Glauber Costa 9235f99
Requires: %{name}-system-m68k = %{epoch}:%{version}-%{release}
Glauber Costa 9235f99
Requires: %{name}-system-mips = %{epoch}:%{version}-%{release}
Glauber Costa 9235f99
Requires: %{name}-system-ppc = %{epoch}:%{version}-%{release}
Glauber Costa 9235f99
Requires: %{name}-img = %{epoch}:%{version}-%{release}
Glauber Costa 8571d06
Glauber Costa 485711f
%define qemudocdir %{_docdir}/%{name}-%{version}
Glauber Costa 485711f
5c37348
%description
67348d7
QEMU is a generic and open source processor emulator which achieves a good
67348d7
emulation speed by using dynamic translation. QEMU has two operating modes:
5c37348
67348d7
 * Full system emulation. In this mode, QEMU emulates a full system (for
67348d7
   example a PC), including a processor and various peripherials. It can be
67348d7
   used to launch different Operating Systems without rebooting the PC or
67348d7
   to debug system code.
5c37348
 * User mode emulation. In this mode, QEMU can launch Linux processes compiled
67348d7
   for one CPU on another CPU.
5c37348
67348d7
As QEMU requires no host kernel patches to run, it is safe and easy to use.
5c37348
Glauber Costa 9235f99
%package  img
Glauber Costa 9235f99
Summary: QEMU command line tool for manipulating disk images
Glauber Costa 9235f99
Group: Development/Tools
Glauber Costa 9235f99
%description img
Glauber Costa 9235f99
QEMU is a generic and open source processor emulator which achieves a good 
Glauber Costa 9235f99
emulation speed by using dynamic translation.
Glauber Costa 9235f99
Glauber Costa 9235f99
This package provides the command line tool for manipulating disk images
36ffedc
Glauber Costa 9235f99
%package  common
Glauber Costa 9235f99
Summary: QEMU common files needed by all QEMU targets
Glauber Costa 9235f99
Group: Development/Tools
Glauber Costa 9235f99
%description common
Glauber Costa c9c3df6
QEMU is a generic and open source processor emulator which achieves a good
Glauber Costa 9235f99
emulation speed by using dynamic translation.
Glauber Costa 9235f99
Glauber Costa 9235f99
This package provides the common files needed by all QEMU targets
Glauber Costa 485711f
Glauber Costa 9235f99
%package user
Glauber Costa 9235f99
Summary: QEMU user mode emulation of qemu targets
Glauber Costa 9235f99
Group: Development/Tools
Glauber Costa 9235f99
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Glauber Costa 485711f
Requires(post): /sbin/chkconfig
Glauber Costa 485711f
Requires(preun): /sbin/service /sbin/chkconfig
Glauber Costa 485711f
Requires(postun): /sbin/service
Glauber Costa 9235f99
%description user
Glauber Costa c9c3df6
QEMU is a generic and open source processor emulator which achieves a good
Glauber Costa 9235f99
emulation speed by using dynamic translation.
Glauber Costa 485711f
Glauber Costa 9235f99
This package provides the user mode emulation of qemu targets
Glauber Costa 9235f99
Glauber Costa 9235f99
%package system-x86
Glauber Costa 9235f99
Summary: QEMU system emulator for x86
Glauber Costa 9235f99
Group: Development/Tools
Glauber Costa 9235f99
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Glauber Costa f0365cc
Requires: etherboot-zroms-kvm
Glauber Costa 3e01e73
Requires: vgabios
Glauber Costa 5b0b644
Requires: bochs-bios >= 2.3.8-0.5
Glauber Costa 0c2ec92
Provides: kvm = 85
Glauber Costa 9235f99
Obsoletes: kvm < 85
Glauber Costa 9235f99
Glauber Costa 9235f99
%description system-x86
Glauber Costa c9c3df6
QEMU is a generic and open source processor emulator which achieves a good
Glauber Costa 9235f99
emulation speed by using dynamic translation.
Glauber Costa 9235f99
Glauber Costa 4da298f
This package provides the system emulator for x86. When being run in a x86
Glauber Costa 4da298f
machine that supports it, this package also provides the KVM virtualization
Glauber Costa 4da298f
platform.
Glauber Costa 9235f99
Glauber Costa 9235f99
%package system-ppc
Glauber Costa 9235f99
Summary: QEMU system emulator for ppc
Glauber Costa 9235f99
Group: Development/Tools
Glauber Costa 9235f99
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Glauber Costa 47b0758
Requires: openbios-ppc
Glauber Costa 9235f99
%description system-ppc
Glauber Costa c9c3df6
QEMU is a generic and open source processor emulator which achieves a good
Glauber Costa 9235f99
emulation speed by using dynamic translation.
Glauber Costa 9235f99
Glauber Costa 9235f99
This package provides the system emulator for ppc
Glauber Costa 9235f99
Glauber Costa 9235f99
%package system-sparc
Glauber Costa 9235f99
Summary: QEMU system emulator for sparc
Glauber Costa 9235f99
Group: Development/Tools
Glauber Costa 9235f99
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Glauber Costa 9235f99
%description system-sparc
Glauber Costa c9c3df6
QEMU is a generic and open source processor emulator which achieves a good
Glauber Costa 9235f99
emulation speed by using dynamic translation.
Glauber Costa 9235f99
Glauber Costa 9235f99
This package provides the system emulator for sparc
Glauber Costa 9235f99
Glauber Costa 9235f99
%package system-arm
Glauber Costa 9235f99
Summary: QEMU system emulator for arm
Glauber Costa 9235f99
Group: Development/Tools
Glauber Costa 9235f99
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Glauber Costa 9235f99
%description system-arm
Glauber Costa c9c3df6
QEMU is a generic and open source processor emulator which achieves a good
Glauber Costa 9235f99
emulation speed by using dynamic translation.
Glauber Costa 9235f99
Glauber Costa 9235f99
This package provides the system emulator for arm
Glauber Costa 9235f99
Glauber Costa 9235f99
%package system-mips
Glauber Costa 9235f99
Summary: QEMU system emulator for mips
Glauber Costa 9235f99
Group: Development/Tools
Glauber Costa 9235f99
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Glauber Costa 9235f99
%description system-mips
Glauber Costa c9c3df6
QEMU is a generic and open source processor emulator which achieves a good
Glauber Costa 9235f99
emulation speed by using dynamic translation.
Glauber Costa 9235f99
Glauber Costa 9235f99
This package provides the system emulator for mips
Glauber Costa 485711f
Glauber Costa 9235f99
%package system-cris
Glauber Costa 9235f99
Summary: QEMU system emulator for cris
Glauber Costa 9235f99
Group: Development/Tools
Glauber Costa 9235f99
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Glauber Costa 9235f99
%description system-cris
Glauber Costa c9c3df6
QEMU is a generic and open source processor emulator which achieves a good
Glauber Costa 9235f99
emulation speed by using dynamic translation.
Glauber Costa 9235f99
Glauber Costa 9235f99
This package provides the system emulator for cris
Glauber Costa 9235f99
Glauber Costa 9235f99
%package system-m68k
Glauber Costa 9235f99
Summary: QEMU system emulator for m68k
Glauber Costa 9235f99
Group: Development/Tools
Glauber Costa 9235f99
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Glauber Costa 9235f99
%description system-m68k
Glauber Costa c9c3df6
QEMU is a generic and open source processor emulator which achieves a good
Glauber Costa 9235f99
emulation speed by using dynamic translation.
Glauber Costa 9235f99
Glauber Costa 9235f99
This package provides the system emulator for m68k
36ffedc
Glauber Costa 9235f99
%package system-sh4
Glauber Costa 9235f99
Summary: QEMU system emulator for sh4
Glauber Costa 9235f99
Group: Development/Tools
Glauber Costa 9235f99
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Glauber Costa 9235f99
%description system-sh4
Glauber Costa c9c3df6
QEMU is a generic and open source processor emulator which achieves a good
Glauber Costa 9235f99
emulation speed by using dynamic translation.
Glauber Costa 9235f99
Glauber Costa 9235f99
This package provides the system emulator for sh4
36ffedc
Glauber Costa 0f3f164
%ifarch %{ix86} x86_64
Glauber Costa 0f3f164
%package kvm-tools
Glauber Costa 0f3f164
Summary: KVM debugging and diagnostics tools
Glauber Costa 0f3f164
Group: Development/Tools
Glauber Costa 0f3f164
Glauber Costa 0f3f164
%description kvm-tools
Glauber Costa 0f3f164
This package contains some diagnostics and debugging tools for KVM,
Glauber Costa 0f3f164
such as kvmtrace and kvm_stat.
Glauber Costa 0f3f164
%endif
Glauber Costa 0f3f164
5c37348
%prep
Glauber Costa 47b0758
%setup -q -n qemu-kvm-%{version}
Glauber Costa 47b0758
42af212
%patch1 -p1
Glauber Costa 47b0758
%patch2 -p1
Glauber Costa 47b0758
%patch3 -p1
Glauber Costa 47b0758
%patch4 -p1
Glauber Costa 47b0758
%patch5 -p1
Glauber Costa 47b0758
%patch6 -p1
Glauber Costa 47b0758
%patch7 -p1
Glauber Costa 47b0758
%patch8 -p1
Glauber Costa 47b0758
%patch9 -p1
Glauber Costa 47b0758
%patch10 -p1
Glauber Costa 47b0758
%patch11 -p1
5c37348
5c37348
%build
Glauber Costa c9c3df6
# systems like rhel build system does not have a recent enough linker so
Glauber Costa 485711f
# --build-id works. this option is used fedora 8 onwards for giving info
Glauber Costa 485711f
# to the debug packages.
Glauber Costa 485711f
Glauber Costa 485711f
build_id_available() {
Glauber Costa 485711f
 echo "int main () { return 0; }" | gcc -x c -Wl,--build-id - 2>/dev/null
Glauber Costa 485711f
}
Glauber Costa 485711f
Glauber Costa 485711f
if build_id_available; then
Glauber Costa 8571d06
 extraldflags="-Wl,--build-id";
Glauber Costa 485711f
 buildldflags="VL_LDFLAGS=-Wl,--build-id"
Glauber Costa 485711f
else
Glauber Costa 485711f
 extraldflags=""
Glauber Costa 485711f
 buildldflags=""
Glauber Costa 485711f
fi
Glauber Costa 485711f
Glauber Costa 8571d06
%ifarch %{ix86} x86_64
Glauber Costa 8571d06
# build kvm
Glauber Costa 8571d06
echo "%{name}-%{version}" > $(pwd)/kernel/.kernelrelease
Glauber Costa 0c2ec92
# sdl outputs to alsa or pulseaudio directly depending on what the system has configured
Glauber Costa 0c2ec92
# alsa works, but causes huge CPU load due to bugs
Glauber Costa 0c2ec92
# oss works, but is very problematic because it grabs exclusive control of the device causing other apps to go haywire
Glauber Costa 9e9690b
./configure --target-list=x86_64-softmmu \
Glauber Costa 8571d06
            --kerneldir=$(pwd)/kernel --prefix=%{_prefix} \
Glauber Costa 0c2ec92
            --audio-drv-list=sdl,alsa,oss \
Glauber Costa 47b0758
            --with-patched-kernel \
Glauber Costa 47b0758
            --disable-strip \
Glauber Costa 0c2ec92
            --qemu-ldflags=$extraldflags \
Glauber Costa 0c2ec92
            --qemu-cflags="$RPM_OPT_FLAGS"
Glauber Costa 8571d06
Glauber Costa 8571d06
make %{?_smp_mflags} $buildldflags
Glauber Costa 8571d06
cp qemu/x86_64-softmmu/qemu-system-x86_64 qemu-kvm
Glauber Costa 0f3f164
cp user/kvmtrace  .
Glauber Costa 0f3f164
cp user/kvmtrace_format  .
Glauber Costa 8571d06
make clean
Glauber Costa 8571d06
%endif
Glauber Costa 8571d06
Glauber Costa 8571d06
echo "%{name}-%{version}" > $(pwd)/kernel/.kernelrelease
Glauber Costa 8571d06
cd qemu
e6d232d
./configure \
Glauber Costa 8571d06
    --target-list="i386-softmmu x86_64-softmmu arm-softmmu cris-softmmu m68k-softmmu \
Glauber Costa 8571d06
                mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu ppc-softmmu \
Glauber Costa 8571d06
                ppcemb-softmmu ppc64-softmmu sh4-softmmu sh4eb-softmmu sparc-softmmu \
Glauber Costa 8571d06
                i386-linux-user x86_64-linux-user alpha-linux-user arm-linux-user \
Glauber Costa 8571d06
                armeb-linux-user cris-linux-user m68k-linux-user mips-linux-user \
Glauber Costa 8571d06
                mipsel-linux-user ppc-linux-user ppc64-linux-user ppc64abi32-linux-user \
Glauber Costa 8571d06
                sh4-linux-user sh4eb-linux-user sparc-linux-user sparc64-linux-user \
Glauber Costa 8571d06
                sparc32plus-linux-user" \
e6d232d
    --prefix=%{_prefix} \
e6d232d
    --interp-prefix=%{_prefix}/qemu-%%M \
Glauber Costa 31b341d
    --kerneldir=$(pwd)/../kernel --prefix=%{_prefix} \
Glauber Costa 47b0758
    --disable-strip \
Glauber Costa 8571d06
    --disable-kvm \
Glauber Costa 0c2ec92
    --extra-ldflags=$extraldflags \
Glauber Costa 0c2ec92
    --audio-drv-list=sdl,alsa,oss \
Glauber Costa 0c2ec92
    --extra-cflags="$RPM_OPT_FLAGS"
Glauber Costa 0c2ec92
Glauber Costa 485711f
Glauber Costa 8571d06
make %{?_smp_mflags} $buildldflags
5c37348
5c37348
%install
5c37348
rm -rf $RPM_BUILD_ROOT
5c37348
Glauber Costa 9235f99
%ifarch %{ix86} x86_64
Glauber Costa 9235f99
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/modules
Glauber Costa 9235f99
mkdir -p $RPM_BUILD_ROOT%{_bindir}/
Glauber Costa 9235f99
Glauber Costa e41549d
install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/modules/kvm.modules
Glauber Costa 9235f99
install -m 0755 kvmtrace $RPM_BUILD_ROOT%{_bindir}/
Glauber Costa 9235f99
install -m 0755 kvmtrace_format $RPM_BUILD_ROOT%{_bindir}/
Glauber Costa 9235f99
install -m 0755 kvm_stat $RPM_BUILD_ROOT%{_bindir}/
Glauber Costa 4da298f
Glauber Costa 4da298f
install -m 0755 qemu-kvm $RPM_BUILD_ROOT%{_bindir}/
Glauber Costa 9235f99
%endif
Glauber Costa 9235f99
Glauber Costa 9235f99
cd qemu
5c37348
make prefix="${RPM_BUILD_ROOT}%{_prefix}" \
67348d7
     bindir="${RPM_BUILD_ROOT}%{_bindir}" \
67348d7
     sharedir="${RPM_BUILD_ROOT}%{_prefix}/share/qemu" \
67348d7
     mandir="${RPM_BUILD_ROOT}%{_mandir}" \
67348d7
     docdir="${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}" \
67348d7
     datadir="${RPM_BUILD_ROOT}%{_prefix}/share/qemu" install
76b47ee
chmod -x ${RPM_BUILD_ROOT}%{_mandir}/man1/*
67348d7
install -D -p -m 0755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/qemu
Glauber Costa 485711f
install -D -p -m 0644 -t ${RPM_BUILD_ROOT}/%{qemudocdir} Changelog README TODO COPYING COPYING.LIB LICENSE
5c37348
42af212
install -D -p -m 0644 qemu.sasl $RPM_BUILD_ROOT%{_sysconfdir}/sasl2/qemu.conf
42af212
Glauber Costa f0365cc
rm -rf ${RPM_BUILD_ROOT}/usr/share//qemu/pxe*bin
Glauber Costa 3e01e73
rm -rf ${RPM_BUILD_ROOT}/usr/share//qemu/vgabios*bin
Glauber Costa f97a706
rm -rf ${RPM_BUILD_ROOT}/usr/share//qemu/bios.bin
Glauber Costa 47b0758
rm -rf ${RPM_BUILD_ROOT}/usr/share//qemu/openbios-ppc
Glauber Costa 47b0758
rm -rf ${RPM_BUILD_ROOT}/usr/share//qemu/openbios-sparc32
Glauber Costa 47b0758
rm -rf ${RPM_BUILD_ROOT}/usr/share//qemu/openbios-sparc64
Glauber Costa f0365cc
Glauber Costa f0365cc
# the pxe etherboot images will be symlinks to the images on
Glauber Costa f0365cc
# /usr/share/etherboot, as QEMU doesn't know how to look
Glauber Costa f0365cc
# for other paths, yet.
Glauber Costa f0365cc
pxe_link() {
Glauber Costa 4da298f
  ln -s ../etherboot/$2.zrom %{buildroot}%{_prefix}/share/qemu/pxe-$1.bin
Glauber Costa f0365cc
}
Glauber Costa f0365cc
Glauber Costa f0365cc
pxe_link e1000 e1000-82542
Glauber Costa f0365cc
pxe_link ne2k_pci ne
Glauber Costa f0365cc
pxe_link pcnet pcnet32
Glauber Costa f0365cc
pxe_link rtl8139 rtl8139
Glauber Costa f0365cc
pxe_link virtio virtio-net
Glauber Costa 4da298f
ln -s ../vgabios/VGABIOS-lgpl-latest.bin  %{buildroot}/%{_prefix}/share/qemu/vgabios.bin
Glauber Costa 4da298f
ln -s ../vgabios/VGABIOS-lgpl-latest.cirrus.bin %{buildroot}/%{_prefix}/share/qemu/vgabios-cirrus.bin
Glauber Costa 0c2ec92
ln -s ../bochs/BIOS-bochs-kvm %{buildroot}/%{_prefix}/share/qemu/bios.bin
Glauber Costa 47b0758
ln -s ../openbios/openbios-ppc %{buildroot}/%{_prefix}/share/qemu/openbios-ppc
Glauber Costa 47b0758
ln -s ../openbios/openbios-sparc32 %{buildroot}/%{_prefix}/share/qemu/openbios-sparc32
Glauber Costa 47b0758
ln -s ../openbios/openbios-sparc64 %{buildroot}/%{_prefix}/share/qemu/openbios-sparc64
Glauber Costa 4da298f
Glauber Costa 4da298f
Glauber Costa f0365cc
5c37348
%clean
5c37348
rm -rf $RPM_BUILD_ROOT
5c37348
Glauber Costa 8571d06
%post system-x86
Glauber Costa 8571d06
%ifarch %{ix86}
Glauber Costa 8571d06
# load kvm modules now, so we can make sure no reboot is needed.
Glauber Costa 8571d06
# If there's already a kvm module installed, we don't mess with it
Glauber Costa 8571d06
sh /%{_sysconfdir}/sysconfig/modules/kvm.modules
Glauber Costa 8571d06
%endif
Glauber Costa 8571d06
Glauber Costa d56efc3
%post user
5c37348
/sbin/chkconfig --add qemu
5c37348
Glauber Costa d56efc3
%preun user
67348d7
if [ $1 -eq 0 ]; then
67348d7
    /sbin/service qemu stop &>/dev/null || :
67348d7
    /sbin/chkconfig --del qemu
67348d7
fi
67348d7
Glauber Costa d56efc3
%postun user
67348d7
if [ $1 -ge 1 ]; then
67348d7
    /sbin/service qemu condrestart &>/dev/null || :
5c37348
fi
5c37348
Glauber Costa 485711f
%files 
Glauber Costa 485711f
%defattr(-,root,root)
Glauber Costa 485711f
Glauber Costa 485711f
%files common
Glauber Costa 485711f
%defattr(-,root,root)
Glauber Costa 485711f
%doc %{qemudocdir}/Changelog
Glauber Costa 485711f
%doc %{qemudocdir}/README
Glauber Costa 485711f
%doc %{qemudocdir}/TODO
Glauber Costa 485711f
%doc %{qemudocdir}/qemu-doc.html 
Glauber Costa 485711f
%doc %{qemudocdir}/qemu-tech.html
Glauber Costa 485711f
%doc %{qemudocdir}/COPYING 
Glauber Costa 485711f
%doc %{qemudocdir}/COPYING.LIB 
Glauber Costa 485711f
%doc %{qemudocdir}/LICENSE
Glauber Costa 47b0758
%dir %{_prefix}/share/qemu/
Glauber Costa 485711f
%{_prefix}/share/qemu/keymaps/
Glauber Costa 485711f
%{_mandir}/man1/qemu.1*
Glauber Costa 485711f
%{_mandir}/man8/qemu-nbd.8*
Glauber Costa 485711f
%{_bindir}/qemu-nbd
42af212
%config(noreplace) %{_sysconfdir}/sasl2/qemu.conf
Glauber Costa 485711f
%files user
5c37348
%defattr(-,root,root)
e62519f
%{_sysconfdir}/rc.d/init.d/qemu
b4adffa
%{_bindir}/qemu-alpha
36ffedc
%{_bindir}/qemu-arm
36ffedc
%{_bindir}/qemu-armeb
b4adffa
%{_bindir}/qemu-cris
36ffedc
%{_bindir}/qemu-i386
Glauber Costa 485711f
%{_bindir}/qemu-x86_64
36ffedc
%{_bindir}/qemu-m68k
36ffedc
%{_bindir}/qemu-mips
36ffedc
%{_bindir}/qemu-mipsel
36ffedc
%{_bindir}/qemu-ppc
b4adffa
%{_bindir}/qemu-ppc64
b4adffa
%{_bindir}/qemu-ppc64abi32
b4adffa
%{_bindir}/qemu-sh4
b4adffa
%{_bindir}/qemu-sh4eb
36ffedc
%{_bindir}/qemu-sparc
b4adffa
%{_bindir}/qemu-sparc64
Glauber Costa 485711f
%{_bindir}/qemu-sparc32plus
Glauber Costa 485711f
%files system-x86
Glauber Costa 485711f
%defattr(-,root,root)
Glauber Costa 485711f
%{_bindir}/qemu
Glauber Costa 485711f
%{_bindir}/qemu-system-x86_64
Glauber Costa 0f3f164
%{_prefix}/share/qemu/bios.bin
Glauber Costa 0f3f164
%{_prefix}/share/qemu/vgabios.bin
Glauber Costa 0f3f164
%{_prefix}/share/qemu/vgabios-cirrus.bin
Glauber Costa 47b0758
%{_prefix}/share/qemu/pxe-e1000.bin
Glauber Costa 47b0758
%{_prefix}/share/qemu/pxe-virtio.bin
Glauber Costa 47b0758
%{_prefix}/share/qemu/pxe-pcnet.bin
Glauber Costa 47b0758
%{_prefix}/share/qemu/pxe-rtl8139.bin
Glauber Costa 47b0758
%{_prefix}/share/qemu/pxe-ne2k_pci.bin
Glauber Costa 8571d06
%ifarch %{ix86} x86_64
Glauber Costa a2460b8
%{_prefix}/share/qemu/extboot.bin
Glauber Costa 8571d06
%{_bindir}/qemu-kvm
Glauber Costa 8571d06
%{_sysconfdir}/sysconfig/modules/kvm.modules
Glauber Costa 0f3f164
%files kvm-tools
Glauber Costa 0f3f164
%defattr(-,root,root,-)
Glauber Costa 0f3f164
%{_bindir}/kvmtrace
Glauber Costa 0f3f164
%{_bindir}/kvmtrace_format
Glauber Costa 0f3f164
%{_bindir}/kvm_stat
Glauber Costa 8571d06
%endif
Glauber Costa 485711f
%files system-sparc
Glauber Costa 485711f
%defattr(-,root,root)
Glauber Costa 485711f
%{_bindir}/qemu-system-sparc
Glauber Costa 485711f
%{_prefix}/share/qemu/openbios-sparc32
Glauber Costa 485711f
%{_prefix}/share/qemu/openbios-sparc64
Glauber Costa 485711f
%files system-arm
Glauber Costa 485711f
%defattr(-,root,root)
36ffedc
%{_bindir}/qemu-system-arm
Glauber Costa 485711f
%files system-mips
Glauber Costa 485711f
%defattr(-,root,root)
36ffedc
%{_bindir}/qemu-system-mips
36ffedc
%{_bindir}/qemu-system-mipsel
b4adffa
%{_bindir}/qemu-system-mips64
b4adffa
%{_bindir}/qemu-system-mips64el
Glauber Costa 485711f
%files system-ppc
Glauber Costa 485711f
%defattr(-,root,root)
Glauber Costa 485711f
%{_bindir}/qemu-system-ppc
b4adffa
%{_bindir}/qemu-system-ppc64
b4adffa
%{_bindir}/qemu-system-ppcemb
Glauber Costa 47b0758
%{_prefix}/share/qemu/openbios-ppc
Glauber Costa 47b0758
%{_prefix}/share/qemu/video.x
Glauber Costa 47b0758
%{_prefix}/share/qemu/bamboo.dtb
Glauber Costa 47b0758
%{_prefix}/share/qemu/ppc_rom.bin
Glauber Costa 485711f
%files system-cris
Glauber Costa 485711f
%defattr(-,root,root)
Glauber Costa 485711f
%{_bindir}/qemu-system-cris
Glauber Costa 485711f
%files system-m68k
Glauber Costa 485711f
%defattr(-,root,root)
Glauber Costa 485711f
%{_bindir}/qemu-system-m68k
Glauber Costa 485711f
%files system-sh4
Glauber Costa 485711f
%defattr(-,root,root)
b4adffa
%{_bindir}/qemu-system-sh4
b4adffa
%{_bindir}/qemu-system-sh4eb
36ffedc
36ffedc
%files img
36ffedc
%defattr(-,root,root)
36ffedc
%{_bindir}/qemu-img
36ffedc
%{_mandir}/man1/qemu-img.1*
5c37348
5c37348
%changelog
Glauber Costa 0b5d26d
* Wed Apr 01 2009 Glauber Costa <glommer@redhat.com> - 2:0.10-2
Glauber Costa 0b5d26d
- added missing patch. love for CVS.
Glauber Costa 0b5d26d
Glauber Costa 47b0758
* Wed Apr 01 2009 Glauber Costa <glommer@redhat.com> - 2:0.10-1
Glauber Costa 47b0758
- Include debuginfo for qemu-img
Glauber Costa 47b0758
- Do not require qemu-common for qemu-img
Glauber Costa 47b0758
- Explicitly own each of the firmware files
Glauber Costa 47b0758
- remove firmwares for ppc and sparc. They should be provided by an external package.
Glauber Costa 47b0758
  Not that the packages exists for sparc in the secondary arch repo as noarch, but they
Glauber Costa 47b0758
  don't automatically get into main repos. Unfortunately it's the best we can do right
Glauber Costa 47b0758
  now.
Glauber Costa 47b0758
- rollback a bit in time. Snapshot from avi's maint/2.6.30
Glauber Costa 47b0758
  - this requires the sasl patches to come back.
Glauber Costa 47b0758
  - with-patched-kernel comes back.
Glauber Costa 47b0758
9a6ed39
* Wed Mar 25 2009 Mark McLoughlin <markmc@redhat.com> - 2:0.10-0.12.kvm20090323git
9a6ed39
- BuildRequires pciutils-devel for device assignment (#492076)
9a6ed39
Glauber Costa 9e9690b
* Mon Mar 23 2009 Glauber Costa <glommer@redhat.com> - 2:0.10-0.11.kvm20090323git
Glauber Costa 9e9690b
- Update to snapshot kvm20090323.
Glauber Costa 9e9690b
- Removed patch2 (upstream).
Glauber Costa 9e9690b
- use upstream's new split package.
Glauber Costa 9e9690b
- --with-patched-kernel flag not needed anymore
Glauber Costa 9e9690b
- Tell how to get the sources.
Glauber Costa 9e9690b
Glauber Costa a2460b8
* Wed Mar 18 2009 Glauber Costa <glommer@redhat.com> - 2:0.10-0.10.kvm20090310git
Glauber Costa a2460b8
- Added extboot to files list.
Glauber Costa a2460b8
Glauber Costa 5b0b644
* Wed Mar 11 2009 Glauber Costa <glommer@redhat.com> - 2:0.10-0.9.kvm20090310git
Glauber Costa 5b0b644
- Fix wrong reference to bochs bios.
Glauber Costa 5b0b644
Glauber Costa 0c2ec92
* Wed Mar 11 2009 Glauber Costa <glommer@redhat.com> - 2:0.10-0.8.kvm20090310git
Glauber Costa 0c2ec92
- fix Obsolete/Provides pair
Glauber Costa 0c2ec92
- Use kvm bios from bochs-bios package.
Glauber Costa 0c2ec92
- Using RPM_OPT_FLAGS in configure
Glauber Costa 0c2ec92
- Picked back audio-drv-list from kvm package
Glauber Costa 0c2ec92
Glauber Costa 206c786
* Tue Mar 10 2009 Glauber Costa <glommer@redhat.com> - 2:0.10-0.7.kvm20090310git
Glauber Costa 206c786
- modify ppc patch
Glauber Costa 206c786
Glauber Costa 31b341d
* Tue Mar 10 2009 Glauber Costa <glommer@redhat.com> - 2:0.10-0.6.kvm20090310git
Glauber Costa 31b341d
- updated to kvm20090310git
Glauber Costa 31b341d
- removed sasl patches (already in this release)
Glauber Costa 31b341d
Glauber Costa 4da298f
* Tue Mar 10 2009 Glauber Costa <glommer@redhat.com> - 2:0.10-0.5.kvm20090303git
Glauber Costa 4da298f
- kvm.modules were being wrongly mentioned at %%install.
Glauber Costa 4da298f
- update description for the x86 system package to include kvm support
Glauber Costa 4da298f
- build kvm's own bios. It is still necessary while kvm uses a slightly different
Glauber Costa 4da298f
  irq routing mechanism
Glauber Costa e41549d
Glauber Costa b9aebde
* Thu Mar 05 2009 Glauber Costa <glommer@redhat.com> - 2:0.10-0.4.kvm20090303git
Glauber Costa b9aebde
- seems Epoch does not go into the tags. So start back here.
Glauber Costa b9aebde
Glauber Costa e0f4cd7
* Thu Mar 05 2009 Glauber Costa <glommer@redhat.com> - 2:0.10-0.1.kvm20090303git
Glauber Costa e0f4cd7
- Use bochs-bios instead of bochs-bios-data
Glauber Costa e0f4cd7
- It's official: upstream set on 0.10
Glauber Costa e0f4cd7
913ab98
* Thu Mar  5 2009 Daniel P. Berrange <berrange@redhat.com> - 2:0.9.2-0.2.kvm20090303git
913ab98
- Added BSD to license list, since many files are covered by BSD
913ab98
Glauber Costa 420de02
* Wed Mar 04 2009 Glauber Costa <glommer@redhat.com> - 0.9.2-0.1.kvm20090303git
Glauber Costa 420de02
- missing a dot. shame on me
Glauber Costa 420de02
Glauber Costa 9235f99
* Wed Mar 04 2009 Glauber Costa <glommer@redhat.com> - 0.92-0.1.kvm20090303git
Glauber Costa 9235f99
- Set Epoch to 2
Glauber Costa 9235f99
- Set version to 0.92. It seems upstream keep changing minds here, so pick the lowest
Glauber Costa 9235f99
- Provides KVM, Obsoletes KVM
Glauber Costa 9235f99
- Only install qemu-kvm in ix86 and x86_64
Glauber Costa 9235f99
- Remove pkgdesc macros, as they were generating bogus output for rpm -qi.
Glauber Costa 9235f99
- fix ppc and ppc64 builds
Glauber Costa 9235f99
Glauber Costa d56efc3
* Tue Mar 03 2009 Glauber Costa <glommer@redhat.com> - 0.10-0.3.kvm20090303git
Glauber Costa d56efc3
- only execute post scripts for user package.
Glauber Costa 0f3f164
- added kvm tools.
Glauber Costa d56efc3
Glauber Costa b8bea84
* Tue Mar 03 2009 Glauber Costa <glommer@redhat.com> - 0.10-0.2.kvm20090303git
Glauber Costa b8bea84
- put kvm.modules into cvs
Glauber Costa b8bea84
Glauber Costa 8571d06
* Tue Mar 03 2009 Glauber Costa <glommer@redhat.com> - 0.10-0.1.kvm20090303git
Glauber Costa 8571d06
- Set Epoch to 1
Glauber Costa 8571d06
- Build KVM (basic build, no tools yet)
Glauber Costa 8571d06
- Set ppc in ExcludeArch. This is temporary, just to fix one issue at a time.
Glauber Costa 8571d06
  ppc users (IBM ? ;-)) please wait a little bit.
Glauber Costa 8571d06
42af212
* Tue Mar  3 2009 Daniel P. Berrange <berrange@redhat.com> - 1.0-0.5.svn6666
42af212
- Support VNC SASL authentication protocol
42af212
- Fix dep on bochs-bios-data
42af212
Glauber Costa f97a706
* Tue Mar 03 2009 Glauber Costa <glommer@redhat.com> - 1.0-0.4.svn6666
Glauber Costa f97a706
- use bios from bochs-bios package.
Glauber Costa f97a706
Glauber Costa 3e01e73
* Tue Mar 03 2009 Glauber Costa <glommer@redhat.com> - 1.0-0.3.svn6666
Glauber Costa 3e01e73
- use vgabios from vgabios package.
Glauber Costa 3e01e73
Glauber Costa f0365cc
* Mon Mar 02 2009 Glauber Costa <glommer@redhat.com> - 1.0-0.2.svn6666
Glauber Costa f0365cc
- use pxe roms from etherboot package.
Glauber Costa f0365cc
Glauber Costa 485711f
* Mon Mar 02 2009 Glauber Costa <glommer@redhat.com> - 1.0-0.1.svn6666
Glauber Costa 485711f
- Updated to tip svn (release 6666). Featuring split packages for qemu.
Glauber Costa 485711f
  Unfortunately, still using binary blobs for the bioses.
Glauber Costa 485711f
c6f944a
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-13
c6f944a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c6f944a
ff91915
* Sun Jan 11 2009 Debarshi Ray <rishi@fedoraproject.org> - 0.9.1-12
ff91915
- Updated build patch. Closes Red Hat Bugzilla bug #465041.
ff91915
1cd90b0
* Wed Dec 31 2008 Dennis Gilmore <dennis@ausil.us> - 0.9.1-11
1cd90b0
- add sparcv9 and sparc64 support
1cd90b0
a7289f8
* Fri Jul 25 2008 Bill Nottingham <notting@redhat.com>
a7289f8
- Fix qemu-img summary (#456344)
a7289f8
549de8e
* Wed Jun 25 2008 Daniel P. Berrange <berrange@redhat.com> - 0.9.1-10.fc10
549de8e
- Rebuild for GNU TLS ABI change
549de8e
b4adffa
* Wed Jun 11 2008 Daniel P. Berrange <berrange@redhat.com> - 0.9.1-9.fc10
b4adffa
- Remove bogus wildcard from files list (rhbz #450701)
b4adffa
4c8582a
* Sat May 17 2008 Lubomir Rintel <lkundrak@v3.sk> - 0.9.1-8
4c8582a
- Register binary handlers also for shared libraries
4c8582a
a1020fb
* Mon May  5 2008 Daniel P. Berrange <berrange@redhat.com> - 0.9.1-7.fc10
a1020fb
- Fix text console PTYs to be in rawmode
a1020fb
d0fefc1
* Sun Apr 27 2008 Lubomir Kundrak <lkundrak@redhat.com> - 0.9.1-6
d0fefc1
- Register binary handler for SuperH-4 CPU
d0fefc1
36ffedc
* Wed Mar 19 2008 Daniel P. Berrange <berrange@redhat.com> - 0.9.1-5.fc9
36ffedc
- Split qemu-img tool into sub-package for smaller footprint installs
36ffedc
0778a10
* Wed Feb 27 2008 Daniel P. Berrange <berrange@redhat.com> - 0.9.1-4.fc9
0778a10
- Fix block device checks for extendable disk formats (rhbz #435139)
0778a10
0778a10
* Sat Feb 23 2008 Daniel P. Berrange <berrange@redhat.com> - 0.9.1-3.fc9
b80713d
- Fix block device extents check (rhbz #433560)
b80713d
6095772
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.1-2
6095772
- Autorebuild for GCC 4.3
6095772
e62519f
* Tue Jan  8 2008 Daniel P. Berrange <berrange@redhat.com> - 0.9.1-1.fc9
e62519f
- Updated to 0.9.1 release
e62519f
- Fix license tag syntax
e62519f
- Don't mark init script as a config file
e62519f
f4a1bb2
* Wed Sep 26 2007 Daniel P. Berrange <berrange@redhat.com> - 0.9.0-5.fc8
f4a1bb2
- Fix rtl8139 checksum calculation for Vista (rhbz #308201)
f4a1bb2
4ecadb0
* Tue Aug 28 2007 Daniel P. Berrange <berrange@redhat.com> - 0.9.0-4.fc8
4ecadb0
- Fix debuginfo by passing -Wl,--build-id to linker
4ecadb0
e415ab2
* Tue Aug 28 2007 David Woodhouse <dwmw2@infradead.org> 0.9.0-4
e415ab2
- Update licence
e415ab2
- Fix CDROM emulation (#253542)
e415ab2
304b402
* Tue Aug 28 2007 Daniel P. Berrange <berrange@redhat.com> - 0.9.0-3.fc8
304b402
- Added backport of VNC password auth, and TLS+x509 cert auth
304b402
- Switch to rtl8139 NIC by default for linkstate reporting
304b402
- Fix rtl8139 mmio region mappings with multiple NICs
304b402
76b47ee
* Sun Apr  1 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 0.9.0-2
76b47ee
- Fix direct loading of a linux kernel with -kernel & -initrd (bz 234681)
76b47ee
- Remove spurious execute bits from manpages (bz 222573)
76b47ee
4cf268e
* Tue Feb  6 2007 David Woodhouse <dwmw2@infradead.org> 0.9.0-1
4cf268e
- Update to 0.9.0
4cf268e
f579225
* Wed Jan 31 2007 David Woodhouse <dwmw2@infradead.org> 0.8.2-5
f579225
- Include licences
f579225
019db4e
* Mon Nov 13 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 0.8.2-4
019db4e
- Backport patch to make FC6 guests work by Kevin Kofler
019db4e
  <Kevin@tigcc.ticalc.org> (bz 207843).
019db4e
f6b93be
* Mon Sep 11 2006 David Woodhouse <dwmw2@infradead.org> 0.8.2-3
f6b93be
- Rebuild
f6b93be
e6d232d
* Thu Aug 24 2006 Matthias Saou <http://freshrpms.net/> 0.8.2-2
e6d232d
- Remove the target-list iteration for x86_64 since they all build again.
e6d232d
- Make gcc32 vs. gcc34 conditional on %%{fedora} to share the same spec for
e6d232d
  FC5 and FC6.
e6d232d
67348d7
* Wed Aug 23 2006 Matthias Saou <http://freshrpms.net/> 0.8.2-1
67348d7
- Update to 0.8.2 (#200065).
67348d7
- Drop upstreamed syscall-macros patch2.
67348d7
- Put correct scriplet dependencies.
67348d7
- Force install mode for the init script to avoid umask problems.
67348d7
- Add %%postun condrestart for changes to the init script to be applied if any.
67348d7
- Update description with the latest "about" from the web page (more current).
67348d7
- Update URL to qemu.org one like the Source.
67348d7
- Add which build requirement.
67348d7
- Don't include texi files in %%doc since we ship them in html.
01139d8
- Switch to using gcc34 on devel, FC5 still has gcc32.
5d09533
- Add kernheaders patch to fix linux/compiler.h inclusion.
5c9bd86
- Add target-sparc patch to fix compiling on ppc (some int32 to float).
67348d7
1ca9271
* Thu Jun  8 2006 David Woodhouse <dwmw2@infradead.org> 0.8.1-3
1ca9271
- More header abuse in modify_ldt(), change BuildRoot:
1ca9271
1ca9271
* Wed Jun  7 2006 David Woodhouse <dwmw2@infradead.org> 0.8.1-2
fb30f3e
- Fix up kernel header abuse
fb30f3e
7b2bfbe
* Tue May 30 2006 David Woodhouse <dwmw2@infradead.org> 0.8.1-1
7b2bfbe
- Update to 0.8.1
7b2bfbe
9432920
* Sat Mar 18 2006 David Woodhouse <dwmw2@infradead.org> 0.8.0-6
9432920
- Update linker script for PPC
9432920
9432920
* Sat Mar 18 2006 David Woodhouse <dwmw2@infradead.org> 0.8.0-5
9432920
- Just drop $RPM_OPT_FLAGS. They're too much of a PITA
9432920
9432920
* Sat Mar 18 2006 David Woodhouse <dwmw2@infradead.org> 0.8.0-4
9432920
- Disable stack-protector options which gcc 3.2 doesn't like
9432920
9f8ef0c
* Fri Mar 17 2006 David Woodhouse <dwmw2@infradead.org> 0.8.0-3
9f8ef0c
- Use -mcpu= instead of -mtune= on x86_64 too
9f8ef0c
- Disable SPARC targets on x86_64, because dyngen doesn't like fnegs
9f8ef0c
bf44302
* Fri Mar 17 2006 David Woodhouse <dwmw2@infradead.org> 0.8.0-2
bf44302
- Don't use -mtune=pentium4 on i386. GCC 3.2 doesn't like it
bf44302
a08e53e
* Fri Mar 17 2006 David Woodhouse <dwmw2@infradead.org> 0.8.0-1
a08e53e
- Update to 0.8.0
a08e53e
- Resort to using compat-gcc-32
a08e53e
- Enable ALSA
a08e53e
a08e53e
* Mon May 16 2005 David Woodhouse <dwmw2@infradead.org> 0.7.0-2
66db2b3
- Proper fix for GCC 4 putting 'blr' or 'ret' in the middle of the function,
66db2b3
  for i386, x86_64 and PPC.
66db2b3
a08e53e
* Sat Apr 30 2005 David Woodhouse <dwmw2@infradead.org> 0.7.0-1
9b980ed
- Update to 0.7.0
9b980ed
- Fix dyngen for PPC functions which end in unconditional branch
9b980ed
e4c6058
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
e4c6058
- rebuilt
e4c6058
c8e4b31
* Sun Feb 13 2005 David Woodhouse <dwmw2@infradead.org> 0.6.1-2
c8e4b31
- Package cleanup
c8e4b31
5c37348
* Sun Nov 21 2004 David Woodhouse <dwmw2@redhat.com> 0.6.1-1
5c37348
- Update to 0.6.1
5c37348
5c37348
* Tue Jul 20 2004 David Woodhouse <dwmw2@redhat.com> 0.6.0-2
5c37348
- Compile fix from qemu CVS, add x86_64 host support
5c37348
5c37348
* Mon May 12 2004 David Woodhouse <dwmw2@redhat.com> 0.6.0-1
5c37348
- Update to 0.6.0.
5c37348
5c37348
* Sat May 8 2004 David Woodhouse <dwmw2@redhat.com> 0.5.5-1
5c37348
- Update to 0.5.5.
5c37348
5c37348
* Thu May 2 2004 David Woodhouse <dwmw2@redhat.com> 0.5.4-1
5c37348
- Update to 0.5.4.
5c37348
5c37348
* Thu Apr 22 2004 David Woodhouse <dwmw2@redhat.com> 0.5.3-1
5c37348
- Update to 0.5.3. Add init script.
5c37348
5c37348
* Thu Jul 17 2003 Jeff Johnson <jbj@redhat.com> 0.4.3-1
5c37348
- Create.