# Generated by go2rpm 1 %bcond_without check # Checks need internet access %bcond_with network # https://github.com/dghubble/oauth1 %global goipath github.com/dghubble/oauth1 Version: 0.6.0 %gometa %global common_description %{expand: The package oauth1 provides a Go implementation of the OAuth 1 spec to allow end-users to authorize a client (i.e. consumer) to access protected resources on his/her behalf.} %global golicenses LICENSE %global godocs examples README.md CHANGES.md Name: %{goname} Release: 1%{?dist} Summary: Go OAuth1 library License: MIT URL: %{gourl} Source0: %{gosource} %if %{with check} # Tests BuildRequires: golang(github.com/stretchr/testify/assert) %endif %description %{common_description} %gopkg %prep %goprep %install %gopkginstall %if %{with check} && %{with network} %check %gocheck %endif %gopkgfiles %changelog * Wed Apr 08 2020 Fabian Affolter - 0.6.0-1 - Initial package