# Generated by go2rpm %bcond_without check # https://github.com/crossdock/crossdock-go %global goipath github.com/crossdock/crossdock-go %global commit 049aabb0122b03bc9bd30cab8f3f91fb60166361 %gometa %global common_description %{expand: A Go client for Crossdock.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: Go client for Crossdock License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/davecgh/go-spew/spew) BuildRequires: golang(github.com/pmezard/go-difflib/difflib) BuildRequires: golang(golang.org/x/net/context) BuildRequires: golang(golang.org/x/net/context/ctxhttp) %description %{common_description} %gopkg %prep %goprep %build for cmd in _codegen; 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 README.md %{_bindir}/* %gopkgfiles %changelog * Mon May 06 14:50:05 CEST 2019 Robert-André Mauchin - 0-0.1.20190506git049aabb - Initial package