Sophie

Sophie

distrib > Mageia > 9 > x86_64 > by-pkgid > d078921ba6dc7e9ed8dd024619922179 > files > 1

golang-github-labstack-gommon-0.3.0-2.mga9.src.rpm

# 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:        %mkrel 2
Summary:        Common packages for Go
Group:          Development/Other

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
BuildArch:      noarch

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 Mar 23 2022 umeabot <umeabot> 0.3.0-2.mga9
+ Revision: 1821598
- Mageia 9 Mass Rebuild

* Sun Nov 21 2021 guillomovitch <guillomovitch> 0.3.0-1.mga9
+ Revision: 1758308
- imported package golang-github-labstack-gommon