Package kvmtool: Specfile

Name: kvmtool
Version: 3.18.0
Release: alt2.git.fdd26ecb
Summary: Linux Native KVM Tool
License: GPLv2+
Group: Emulators
Url: https://git.kernel.org/cgit/linux/kernel/git/will/kvmtool.git/
Source: %name-%version.tar

# suse patches
Patch11: nonexec-stack.patch
Patch12: kvmtool.sysmacros.patch
Patch13: kvmtool.patch

# rkt patches
Patch21: do_synchronous_writes.patch
Patch22: p9-chown-files-and-dirs-upon-creation.patch
Patch23: quiet-booting.patch
Patch24: terminal_late_fix.patch


BuildRequires: glibc-devel-static
BuildRequires: libaio-devel
BuildRequires: pkgconfig(zlib)
BuildRequires: libfdt-devel
BuildRequires: libvncserver-devel

%description
kvmtool is a lightweight tool for hosting KVM guests. As a pure virtualization
tool it only supports guests using the same architecture, though it supports
running 32-bit guests on those 64-bit architectures that allow this.

%prep
%setup
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch21 -p1
%patch22 -p1
#patch23 -p1
%patch24 -p1

%build
%make_build V=1 prefix=%prefix

%install
%makeinstall_std prefix=%prefix

%files
%_bindir/lkvm
%doc README COPYING

%changelog
* Tue Jan 15 2019 Alexey Shabalin <shaba@altlinux.org> 3.18.0-alt2.git.fdd26ecb
- update to upstream master (fdd26ecb4bc52ac7e06455d5ea2cf5ebf7d500bc)
- add patch from suse for fix build with gcc8
- build with vncserver support

* Thu Feb 08 2018 Alexey Shabalin <shaba@altlinux.ru> 3.18.0-alt1.git.a508ea
- Initial build