From ea51d14f0dbc067dbfb39411e84b6bf7b8c67242 Mon Sep 17 00:00:00 2001 From: Robert-André Mauchin Date: Jun 28 2019 14:57:30 +0000 Subject: Initial import Signed-off-by: Robert-André Mauchin --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3cb4d7a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/tally-3.3.8.tar.gz diff --git a/golang-github-uber-tally.spec b/golang-github-uber-tally.spec new file mode 100644 index 0000000..5104fee --- /dev/null +++ b/golang-github-uber-tally.spec @@ -0,0 +1,67 @@ +# 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 diff --git a/sources b/sources new file mode 100644 index 0000000..9a00eb9 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (tally-3.3.8.tar.gz) = 6ecf9f8d3e7930fbf43ddae8d07fb6388efbc68ad2b2509cb975a08c21b95aee035bd4c530a74e71bc6d9a4688c96f3cdc64130a2185491c65057d963fc2d216