# Generated by go2rpm 1
%bcond_without check
# https://github.com/labstack/gommon
%global goipath github.com/labstack/gommon
Version: 0.3.0
%gometa
%global common_description %{expand:
Common packages for Go.}
%global golicenses LICENSE
%global godocs README.md README-log.md README-color.md\\\
README-bytes.md
Name: %{goname}
Release: 1%{?dist}
Summary: Common packages for Go
License: MIT
URL: %{gourl}
Source0: %{gosource}
# Fix for tests on s390x, ppc64le and aarch64
# See https://github.com/labstack/gommon/pull/38
Patch0: test-fix.patch
BuildRequires: golang(github.com/mattn/go-colorable)
BuildRequires: golang(github.com/mattn/go-isatty)
BuildRequires: golang(github.com/valyala/fasttemplate)
%if %{with check}
# Tests
BuildRequires: golang(github.com/stretchr/testify/assert)
%endif
%description
%{common_description}
%gopkg
%prep
%goprep
%patch0 -p1
# rename READMEs so they are not in conflict when using the godocs macro
mv log/README.md README-log.md
mv color/README.md README-color.md
mv bytes/README.md README-bytes.md
%install
%gopkginstall
%if %{with check}
%check
%gocheck
%endif
%gopkgfiles
%changelog
* Wed Aug 26 2020 Ondřej Budai <obudai@redhat.com> - 0.3.0-1
- Initial package