1 # TODO: use linux tarball when kernel 3.1 is released
3 Summary: Native Linux KVM tool
8 Group: Applications/System
9 # git://github.com/penberg/linux-kvm.git
10 Source0: %{name}-%{version}-%{snap}.tar.bz2
11 # Source0-md5: b0b94a75d915f70ae14a089ddc7d7abb
12 BuildRequires: binutils-devel
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 The goal of this tool is to provide a clean, from-scratch, lightweight
17 KVM host tool implementation that can boot Linux guest images (just a
18 hobby, won't be big and professional like QEMU) with no BIOS
19 dependencies and with only the minimal amount of legacy device
26 %{__make} -C tools/kvm \
27 CC="%{__cc} %{rpmcppflags} %{rpmcflags} %{rpmldflags}" \
31 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{_sbindir}
35 install tools/kvm/kvm $RPM_BUILD_ROOT%{_sbindir}
38 rm -rf $RPM_BUILD_ROOT
41 %defattr(644,root,root,755)
42 %doc tools/kvm/Documentation/* tools/kvm/README
43 %attr(755,root,root) %{_sbindir}/kvm