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