Blob Blame History Raw
# Generated by go2rpm 1.9.0
%bcond_without check
%global debug_package %{nil}

# https://github.com/cenkalti/backoff
%global goipath         github.com/cenkalti/backoff
Version:                4.2.0

%gometa

%global goaltipaths     github.com/cenkalti/backoff/v4

%global common_description %{expand:
This is a Go port of the exponential backoff algorithm from Google's HTTP
Client Library for Java.

Exponential backoff is an algorithm that uses feedback to multiplicatively
decrease the rate of some process, in order to gradually find an acceptable
rate. The retries exponentially increase and stop increasing when a certain
threshold is met.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Release:        %autorelease
Summary:        Exponential backoff algorithm in Go

License:        MIT
URL:            %{gourl}
Source:         %{gosource}

%description %{common_description}

%gopkg

%prep
%goprep
%autopatch -p1

%generate_buildrequires
%go_generate_buildrequires

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles

%changelog
%autochangelog