# Generated by go2rpm %bcond_without check # https://github.com/cockroachdb/circuitbreaker %global goipath github.com/cockroachdb/circuitbreaker Version: 2.2.1 %global commit a614b14ccf63dd2311d4ff646c30c61b8ed34aa8 %gometa %global common_description %{expand: Circuitbreaker provides an easy way to use the Circuit Breaker pattern in a Go program.} %global golicenses LICENSE %global godocs CHANGELOG.md README.md Name: %{goname} Release: 1%{?dist} Summary: Circuit Breakers in Go License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/cenkalti/backoff) BuildRequires: golang(github.com/facebookgo/clock) %if %{with check} # Tests BuildRequires: golang(github.com/peterbourgon/g2s) %endif %description %{common_description} %gopkg %prep %goprep find . -name "*.go" -exec sed -i "s|github.com/cenk/backoff|github.com/cenkalti/backoff|" "{}" +; %install %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog * Wed May 15 19:49:12 CEST 2019 Robert-André Mauchin - 2.2.1-1.20190515gita614b14 - Initial package