# Generated by go2rpm %bcond_without check # https://github.com/opencontainers/runtime-tools %global goipath github.com/opencontainers/runtime-tools Version: 0.9.0 %gometa %global common_description %{expand: Ooci-runtime-tool is a collection of tools for working with the OCI runtime specification.} %global golicenses LICENSE %global godocs docs CHANGELOG.md CONTRIBUTING.md\\\ MAINTAINERS_GUIDE.md README.md\ Name: %{goname} Release: 1%{?dist} Summary: OCI Runtime Tools # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/blang/semver) BuildRequires: golang(github.com/hashicorp/go-multierror) BuildRequires: golang(github.com/mndrix/tap-go) BuildRequires: golang(github.com/mrunalp/fileutils) BuildRequires: golang(github.com/opencontainers/runtime-spec/specs-go) BuildRequires: golang(github.com/opencontainers/selinux/go-selinux/label) BuildRequires: golang(github.com/satori/go.uuid) BuildRequires: golang(github.com/sirupsen/logrus) BuildRequires: golang(github.com/syndtr/gocapability/capability) BuildRequires: golang(github.com/urfave/cli) BuildRequires: golang(github.com/xeipuuv/gojsonschema) BuildRequires: golang(golang.org/x/sys/unix) %if %{with check} # Tests BuildRequires: golang(github.com/stretchr/testify/assert) %endif %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 -d validate %endif %files %license LICENSE %doc docs CHANGELOG.md CONTRIBUTING.md MAINTAINERS_GUIDE.md README.md %{_bindir}/* %gopkgfiles %changelog * Thu Jun 27 18:06:56 CEST 2019 Robert-André Mauchin - 0.9.0-1 - Initial package