# Generated by go2rpm 1.9.0
%bcond_without check
%global debug_package %{nil}
# https://github.com/yvasiyarov/go-metrics
%global goipath github.com/yvasiyarov/go-metrics
%global commit c25f46c4b94079672242ec48a545e7ca9ebe3aec
%gometa
%global common_description %{expand:
Go port of Coda Hale's Metrics library.}
%global golicenses LICENSE
%global godocs README.md memory.md
Name: %{goname}
Version: 0
Release: %autorelease -p
Summary: Go port of Coda Hale's Metrics library
License: BSD-2-Clause-Views
URL: %{gourl}
Source: %{gosource}
%description %{common_description}
%gopkg
%prep
%goprep
%autopatch -p1
# Remove unused backends by go-relic
rm -rf cmd influxdb librato stathat
%generate_buildrequires
%go_generate_buildrequires
%install
%gopkginstall
%if %{with check}
%check
for test in "TestMeterDecay" "TestEWMA1" "TestEWMA5" \
; do
awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test)
done
%gocheck
%endif
%gopkgfiles
%changelog
%autochangelog