# Generated by go2rpm %bcond_without check # https://github.com/Microsoft/opengcs %global goipath github.com/Microsoft/opengcs Version: 0.3.9 %gometa %global common_description %{expand: Guest Compute Service for Linux Hyper-V Container.} %global golicenses LICENSE %global godocs docs README.md Name: %{goname} Release: 1%{?dist} Summary: Guest Compute Service for Linux Hyper-V Container License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/containerd/containerd/sys) BuildRequires: golang(github.com/docker/docker/pkg/archive) BuildRequires: golang(github.com/docker/docker/pkg/symlink) BuildRequires: golang(github.com/linuxkit/virtsock/pkg/vsock) BuildRequires: golang(github.com/mattn/go-shellwords) BuildRequires: golang(github.com/opencontainers/runtime-spec/specs-go) BuildRequires: golang(github.com/pkg/errors) BuildRequires: golang(github.com/sirupsen/logrus) BuildRequires: golang(github.com/vishvananda/netlink) BuildRequires: golang(github.com/vishvananda/netns) BuildRequires: golang(golang.org/x/sys/unix) %if %{with check} # Tests BuildRequires: golang(github.com/onsi/ginkgo) BuildRequires: golang(github.com/onsi/gomega) %endif %description %{common_description} %gopkg %prep %goprep find . -name "*.go" -exec sed -i "s|github.com/docker/containerd|github.com/containerd/containerd|" "{}" +; %install %gopkginstall %if %{with check} %check # https://github.com/microsoft/opengcs/issues/309 %gocheck -d service/gcs/bridge -d service/gcs/core/gcs -d service/gcs/runtime/runc %endif %gopkgfiles %changelog * Sun May 05 18:42:19 CEST 2019 Robert-André Mauchin - 0.3.9-1 - Initial package