# Generated by go2rpm %bcond_without check # https://github.com/uber-go/tally %global goipath github.com/uber-go/tally Version: 3.3.8 %gometa %global common_description %{expand: Tally provides a common interface for emitting metrics, while letting you not worry about the velocity of metrics emission. By default it buffers counters, gauges and histograms at a specified interval but does not buffer timer values. This is primarily so timer values can have all their values sampled if desired and if not they can be sampled as summaries or histograms independently by a reporter.} %global golicenses LICENSE %global godocs example README.md example Name: %{goname} Release: 1%{?dist} Summary: Go metrics interface with fast buffered metrics and third party reporters License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/apache/thrift/lib/go/thrift) BuildRequires: golang(github.com/cactus/go-statsd-client/statsd) BuildRequires: golang(github.com/m3db/prometheus_client_golang/prometheus) BuildRequires: golang(github.com/m3db/prometheus_client_golang/prometheus/promhttp) BuildRequires: golang(go.uber.org/atomic) BuildRequires: golang(gopkg.in/validator.v2) BuildRequires: golang(gopkg.in/yaml.v2) %if %{with check} # Tests BuildRequires: golang(github.com/m3db/prometheus_client_model/go) BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(github.com/stretchr/testify/require) %endif %description %{common_description} %gopkg %prep %goprep # https://github.com/uber-go/tally/issues/78 find . -name "*.go" -exec sed -i "s|github.com/m3db/prometheus_client_model/prometheus|github.com/m3db/prometheus_client_golang/prometheus|" "{}" +; %install %gopkginstall %if %{with check} %check %gocheck -t m3 -t prometheus %endif %gopkgfiles %changelog * Mon May 06 15:39:53 CEST 2019 Robert-André Mauchin - 3.3.8-1 - Initial package