# Generated by go2rpm %bcond_without check # https://github.com/cactus/go-statsd-client %global goipath github.com/cactus/go-statsd-client Version: 3.1.1 %gometa %global common_description %{expand: A StatsD client for Go.} %global golicenses LICENSE.md %global godocs README.md CHANGELOG.md Name: %{goname} Release: 1%{?dist} Summary: Statsd client for Go License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/jessevdk/go-flags) %description %{common_description} %gopkg %prep %goprep %build for cmd in test-client; 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 %{golicenses} %doc %{godocs} %{_bindir}/* %gopkgfiles %changelog * Thu Apr 18 19:00:16 CEST 2019 Robert-André Mauchin - 3.1.1-1 - Initial package