# Generated by go2rpm %bcond_without check # https://github.com/go-errgo/errgo %global goipath gopkg.in/errgo.v2 %global forgeurl https://github.com/go-errgo/errgo Version: 2.1.0 %gometa %global common_description %{expand: The Errgo package provides a way to create and diagnose errors. It is compatible with the usual Go error idioms but adds a way to wrap errors so that they record source location information while retaining a consistent way for code to inspect errors to find out particular problems.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: %autorelease Summary: Dependable Go errors with tracebacks # Upstream license specification: BSD-3-Clause License: BSD URL: %{gourl} Source0: %{gosource} # Remove in F43 Provides: golang-gopkg-errgo-2 = %{version}-%{release} Obsoletes: golang-gopkg-errgo-2 < 2.1.0-12 %global godevelheader %{expand: Provides: golang-gopkg-errgo-2-devel = %{version}-%{release} Obsoletes: golang-gopkg-errgo-2-devel < 2.1.0-12} BuildRequires: golang(github.com/go-check/check) %description %{common_description} %gopkg %prep %goprep %install %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog %autochangelog