# Generated by go2rpm %bcond_without check # https://github.com/linuxkit/virtsock %global goipath github.com/linuxkit/virtsock %global commit 8e79449dea0735c1c056d814934dd035734cc97c %gometa %global common_description %{expand: This package contains Go bindings and sample code for Hyper-V sockets and virtio sockets(VSOCK).} %global golicenses LICENSE %global godocs AUTHORS README.md Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: Go bindings for virtio and Hyper-V sockets # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/pkg/errors) BuildRequires: golang(golang.org/x/sys/unix) %description %{common_description} %gopkg %prep %goprep %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc AUTHORS README.md c/README.md cmd/sock_stress/README.md %{_bindir}/* %gopkgfiles %changelog * Sun May 05 18:00:48 CEST 2019 Robert-André Mauchin - 0-0.1.20190505git8e79449 - Initial package