# Generated by go2rpm %bcond_without check # https://github.com/go-macaroon/macaroon %global goipath gopkg.in/macaroon.v1 %global forgeurl https://github.com/go-macaroon/macaroon Version: 1.0.0 %gometa %global common_description %{expand: The Macaroon package implements macaroons as described in the paper "Macaroons: Cookies with Contextual Caveats for Decentralized Authorization in the Cloud" (http://theory.stanford.edu/~ataly/Papers/macaroons.pdf)} %global golicenses LICENSE %global godocs README.md TODO Name: %{goname} Release: %autorelease Summary: Native Go implementation of macaroons # Upstream license specification: BSD-3-Clause License: BSD URL: %{gourl} Source0: %{gosource} # Go 1.15: https://github.com/golang/go/issues/32479 Patch0: 0001-Convert-int-to-string-using-rune.patch # Remove in F43 Provides: golang-gopkg-macaroon-1 = %{version}-%{release} Obsoletes: golang-gopkg-macaroon-1 < 1.0.0-8 %global godevelheader %{expand: Provides: golang-gopkg-macaroon-1-devel = %{version}-%{release} Obsoletes: golang-gopkg-macaroon-1-devel < 1.0.0-8} BuildRequires: golang(golang.org/x/crypto/nacl/secretbox) %if %{with check} # Tests BuildRequires: golang(gopkg.in/check.v1) %endif %description %{common_description} %gopkg %prep %goprep %patch0 -p1 %install %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog %autochangelog