# Generated by go2rpm 1.3 %bcond_without check # https://github.com/mattbaird/elastigo %global goipath github.com/mattbaird/elastigo Version: 1.0 %global commit 2fe47fd29e4b70353f852ede77a196830d2924ec %gometa %global common_description %{expand: A Go (golang) based Elasticsearch client library.} %global golicenses LICENSE %global godocs HACKING.md README.md Name: %{goname} Release: 1%{?dist} Summary: Golang based Elasticsearch client library # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/araddon/gou) BuildRequires: golang(github.com/bitly/go-hostpool) %if %{with check} # Tests BuildRequires: golang(github.com/bmizerany/assert) BuildRequires: golang(github.com/smartystreets/goconvey/convey) %endif %description %{common_description} %gopkg %prep %goprep %build %gobuild -o %{gobuilddir}/bin/elastigo %{goipath} %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 HACKING.md README.md %{_bindir}/* %gopkgfiles %changelog * Wed Dec 23 2020 Fabian Affolter - 1.0-1.20201223git2fe47fd - Initial package for Fedora