# Generated by go2rpm %bcond_without check # https://github.com/kisom/goutils %global goipath github.com/kisom/goutils Version: 1.3.0 %gometa %global common_description %{expand: This is a collection of small utility code written in Go; the cmd/ directory has a number of command-line utilities.} %global golicenses LICENSE %global godocs CHANGELOG README.md Name: %{goname} Release: 1%{?dist} Summary: Collection of small utility code written in Go License: ISC URL: %{gourl} Source0: %{gosource} # BuildRequires: golang(github.com/cloudflare/cfssl/errors) # BuildRequires: golang(github.com/cloudflare/cfssl/helpers) # BuildRequires: golang(github.com/cloudflare/cfssl/revoke) BuildRequires: golang(github.com/kr/text) BuildRequires: golang(github.com/pkg/errors) BuildRequires: golang(github.com/pkg/sftp) BuildRequires: golang(golang.org/x/crypto/blake2b) BuildRequires: golang(golang.org/x/crypto/blake2s) BuildRequires: golang(golang.org/x/crypto/md4) BuildRequires: golang(golang.org/x/crypto/ripemd160) BuildRequires: golang(golang.org/x/crypto/sha3) BuildRequires: golang(golang.org/x/crypto/ssh) BuildRequires: golang(golang.org/x/crypto/ssh/agent) BuildRequires: golang(golang.org/x/sys/unix) BuildRequires: golang(gopkg.in/yaml.v2) %if %{with check} # Tests BuildRequires: golang(github.com/stretchr/testify/require) BuildRequires: golang(golang.org/x/crypto/nacl/box) %endif %description %{common_description} %gopkg %prep %goprep rm -rf cmd # %%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 CHANGELOG README.md README-* # %%{_bindir}/* %gopkgfiles %changelog * Tue May 07 22:20:09 CEST 2019 Robert-André Mauchin - 1.3.0-1 - Initial package