4f6ddc5
# Generated by go2rpm 1.2
4f6ddc5
# There is a failure during the checks
4f6ddc5
%bcond_with check
4f6ddc5
4f6ddc5
# https://github.com/gookit/color
4f6ddc5
%global goipath         github.com/gookit/color
4f6ddc5
Version:                1.3.1
4f6ddc5
4f6ddc5
%gometa
4f6ddc5
4f6ddc5
%global common_description %{expand:
4f6ddc5
A Terminal color rendering tool library, support 8/16 colors, 256 colors 
4f6ddc5
and RGB color rendering output.}
4f6ddc5
4f6ddc5
%global golicenses      LICENSE
4f6ddc5
%global godocs          _examples README.zh-CN.md README.md
4f6ddc5
4f6ddc5
Name:           %{goname}
4f6ddc5
Release:        1%{?dist}
4f6ddc5
Summary:        Terminal color rendering tool library
4f6ddc5
4f6ddc5
License:        MIT
4f6ddc5
URL:            %{gourl}
4f6ddc5
Source0:        %{gosource}
4f6ddc5
4f6ddc5
%if %{with check}
4f6ddc5
# Tests
4f6ddc5
BuildRequires:  golang(github.com/stretchr/testify/assert)
4f6ddc5
%endif
4f6ddc5
4f6ddc5
%description
4f6ddc5
%{common_description}
4f6ddc5
4f6ddc5
%gopkg
4f6ddc5
4f6ddc5
%prep
4f6ddc5
%goprep
4f6ddc5
4f6ddc5
%install
4f6ddc5
%gopkginstall
4f6ddc5
4f6ddc5
%if %{with check}
4f6ddc5
%check
4f6ddc5
%gocheck
4f6ddc5
%endif
4f6ddc5
4f6ddc5
%gopkgfiles
4f6ddc5
4f6ddc5
%changelog
4f6ddc5
* Wed Oct 07 2020 Fabian Affolter <mail@fabian-affolter.ch> - 1.3.1-1
4f6ddc5
- Initial package for Fedora