Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
kvm
kvm.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kvm.spec of Package kvm
# # spec file for package kvm (Version 78.0.10.6) # # 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 # icecream 0 %bcond_with vde %define real_version 0.10.6 Name: kvm BuildRequires: SDL-devel alsa alsa-devel gnutls-devel ncurses-devel perl texinfo %ifarch %ix86 x86_64 ia64 %if %suse_version > 1110 BuildRequires: acpica %else BuildRequires: pmtools %endif %endif %ifarch %ix86 x86_64 BuildRequires: dev86 %endif %if %suse_version >= 1100 BuildRequires: libcurl-devel libpulse-devel %endif %if %{with vde} BuildRequires: vde2-devel %endif Requires: python-curses Requires: kvm-kmp >= 78.2.6.30.1 License: BSD 3-Clause; GPL v2 only; GPL v2 or later; LGPL v2.1 or later; X11/MIT Group: System/Kernel Summary: Kernel-based Virtual Machine Url: http://kvm.qumranet.com/ Version: 78.%{real_version} Release: 0.<RELEASE1> #Source0: qemu-%name-%version.tar.bz2 Source0: qemu-kvm-%{real_version}.tar.bz2 ### To update to new version, recompress the kvm-??.tar.gz using: # rpmbuild -bp kvm.spec --define="_sourcedir `pwd`" #%( if [ -f qemu-%name-%version.tar.gz ]; then gunzip qemu-%name-%version.tar.gz bzip2 qemu-%name-%version.tar fi ) ### ExclusiveArch: %ix86 x86_64 ia64 s390 Source1: 60-kvm.rules Source2: NETKVM-20081229.iso Source3: qemu-ifup # common and X86 patches Patch01: qemu-datadir.diff Patch04: kvm-qemu-default-memsize.patch Patch06: kvm-qemu-writeback.patch Patch07: kvm-qemu-no-fallback-if-open-kvm-fails.patch # Mac OS X patches Patch11: kvm-qemu-lpc.patch Patch12: kvm-qemu-applesmc.patch Patch14: kvm-qemu-ide-ich6.patch Patch15: kvm-qemu-macmodel.patch Patch16: kvm-qemu-rtl8139-link.patch Patch85: kvm-maccpuid.patch Patch90: kvm-bios.patch # Post-release upstream patches Patch100: kvm-qemu-pre11-multiboot-1.patch Patch101: kvm-qemu-pre11-multiboot-2.patch Patch102: kvm-qemu-pre11-multiboot-3.patch Patch103: kvm-qemu-pre11-multiboot-4.patch Patch104: kvm-qemu-pre11-curl.patch Patch105: kvm-qemu-pre11-redir-1.patch Patch106: kvm-qemu-pre11-redir-2.patch Patch107: kvm-qemu-pre11-redir-3.patch Patch108: kvm-qemu-pre11-elfload.patch Patch109: kvm-qemu-preXX-dictzip1.patch Patch110: kvm-qemu-preXX-dictzip2.patch Patch111: kvm-qemu-preXX-dictzip3.patch Patch112: kvm-qemu-preXX-large-cow.patch Patch113: kvm-qemu-preXX-pci_add.patch Patch114: kvm-qemu-preXX-use-after-free.patch # SUSE Studio related patches Patch200: kvm-studio-slirp-nooutgoing.patch Patch201: kvm-studio-vnc.patch # for IA64 Source500: ia64-fix-pagesize.pl Patch500: IA64-kvm-suse.patch Patch501: IA64-compile-fix-suse.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: /usr/sbin/groupadd %description KVM (Kernel-based Virtual Machine) is a virtualization software for Linux which is based on hardware virtualization extensions (Intel VT-X and AMD-V) and a modified version of qemu to enable full hardware emulation as far as needed to boot many PC operating systems in unmodified form, including Linux, Windows and Mac OS X. Note: KVM is not yet ready for production use and has known issues. You can find details the Novell bugzilla: http://bugzilla.novell.com KVM depends on Intel VT and AMD-V and does not run on CPUs without these extensions. qemu can be used on those, with some performance penalty, instead. As the hardware emulation used for KVM is based on QEMU, virtual machines can be moved between QEMU and KVM hosts seamlessly. The package libvirt contains libvirtd, a simple hypervisor for managing multiple QEMU and KVM virtual machines on one host machine. The included virtsh allows to define virtual machines using XML files and allows some simple management of such virtual machines on the command line. virt-manager is a GUI for connecting to, and controlling virtual machines based on libvirt. Authors: -------- Avi Kivity <avi@qumranet.com> Yaniv Kamay <yaniv@qumranet.com> Dor Laor <dor.laor@qumranet.com> %package KMP License: BSD 3-Clause; GPL v2 only; GPL v2 or later; LGPL v2.1 or later; X11/MIT Summary: Updated kernel modules for KVM (Kernel-based Virtual Machine) Group: System/Kernel %description KMP This package contains updated kernel modules which are recommended for enhanced functionality of KVM. The Linux kernel rpm already contains kvm modules, but with this package installed and the modules of this package loaded, certain fixes which are not yet available in the kernel rpm. To verify the kernel to which this package is built for, compare the postfix of this package has after "kvm-kmp-" with the postfix after "kernel-", e.g. kvm-kmp-default contains updated modules for the kernel-default with the exact same version number. To take advantage of KVM in general, you need qemu-kvm (which is included in the package kvm) which contains the PC hardware simulation that is needed for full virtualisation. KVM guests implemented using qemu-kvm can be monitored using libvirt which contains a hypervisor for managing multible QEMU and KVM and Xen virtual machines. virt-manager provides a graphical application for connecting to and controlling virtual machines based on libvirt. Authors: -------- Avi Kivity <avi@qumranet.com> Yaniv Kamay <yaniv@qumranet.com> Dor Laor <dor.laor@qumranet.com> %prep # build the BIOS on x86 platforms %ifarch %ix86 x86_64 %define bios_targets bios vgabios extboot %define vanilla 0 # build no BIOS on others %else %define vanilla 1 %endif %setup -q -n qemu-kvm-%{real_version} %patch01 -p1 -b .use-qemu-kvm-as-datadir %patch04 -p1 %patch06 -p1 %patch07 -p1 # Mac OS X guest %if !%{vanilla} %patch11 -p1 %patch12 -p1 %patch14 -p1 %patch15 -p1 %patch16 -p1 %patch85 -p1 cp -a kvm/bios kvm/bios-mac %patch90 -p1 -b .bios-mac %endif # Post-release patches %patch100 -p1 %patch101 -p1 %patch102 -p1 %patch103 -p1 %patch104 -p1 %patch105 -p1 %patch106 -p1 %patch107 -p1 %patch108 -p1 %patch109 -p1 %patch110 -p1 %patch111 -p1 %patch112 -p1 %patch113 -p1 %patch114 -p1 %patch200 -p1 %patch201 -p1 # IA64 support %ifarch ia64 %patch500 -p1 %patch501 -p1 #%_sourcedir/ia64-fix-pagesize.pl # needs testing... %endif # Currently not used, keep it for later use: # Apply selected upstream patches from the kvm-commits list: #sh %_sourcedir/convert-commits-to-patch.sh %PATCH100 | patch -p0 %build # Temporary workaround until qemu's configure is fixed: sed -i 's/-lcurses/-lncurses/' configure ./configure --prefix=%{_prefix} \ --audio-card-list="ac97 adlib cs4231a gus" \ %if %suse_version >= 1100 --audio-drv-list="alsa sdl pa oss" \ %else --audio-drv-list="alsa sdl oss" \ %endif %ifarch ia64 --target-list="ia64-softmmu" --disable-cpu-emulation \ %endif --extra-cflags="%{optflags}" # Aborts if curses support is not enabled: grep "^CONFIG_CURSES=yes" config-host.mak # Patch the version, so we know which revision was installed: sed -i "s|kvm-%{real_version}|kvm-%{version}-%{release}|" config-host.h # Main build: make %{?jobs:-j%jobs} %if !%{vanilla} make -C kvm/bios-mac %endif %install make DESTDIR=%{buildroot} WANT_MODULE="" install mv qemu-doc.html qemu-kvm.html %if !%{vanilla} install -m 644 kvm/bios-mac/BIOS-bochs-latest %{buildroot}/%{_datadir}/qemu-kvm/bios-mac.bin %endif install -m 755 kvm/kvm_stat %{buildroot}/%_bindir/kvm_stat cd %{buildroot} rm -r .{%_bindir/qemu-img,%_bindir/qemu-nbd,%_datadir/{doc,qemu-kvm/{openbios-sparc32,openbios-sparc64,ppc_rom.bin,bamboo.dtb,video.x,openbios-ppc}}} %ifarch ia64 s390 rm -f .%_datadir/qemu-kvm/bios.bin %endif rm -r .{%_mandir/man1/qemu-img.1,%_mandir/man8/qemu-nbd.8} mv .%_bindir/{qemu*,qemu-kvm} mv .%_mandir/man1/{qemu.1,qemu-kvm.1} chmod 644 .%_mandir/man1/* install -D -m 644 %{SOURCE1} %{buildroot}/etc/udev/rules.d/60-kvm.rules # there is no --allow-unsupported-modules before openSUSE 11.1 %if %suse_version <= 1100 sed -i 's|--allow-unsupported-modules||g' %{buildroot}/etc/udev/rules.d/60-kvm.rules %endif install -D -m 644 %{SOURCE2} %{buildroot}/usr/share/qemu-kvm/NETKVM-20081229.iso install -D -m 755 %{SOURCE3} %{buildroot}/usr/share/qemu-kvm/qemu-ifup %pre /usr/sbin/groupadd -r kvm 2>/dev/null || : %files %defattr(-,root,root) %doc qemu-kvm.html %attr(755,root,kvm) %{_bindir}/qemu-kvm %attr(755,root,kvm) %{_bindir}/kvm_stat %{_datadir}/qemu-kvm %config /etc/udev/rules.d/60-kvm.rules %_mandir/man1/qemu-kvm.1.gz %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor