Blob Blame History Raw
# Generated by go2rpm
%bcond_without check

# https://github.com/alecthomas/kong
%global goipath         github.com/alecthomas/kong
Version:                0.5.0

%gometa

%global common_description %{expand:
Kong is a command-line parser for Go.}

%global golicenses      COPYING
%global godocs          _examples README.md

Name:           %{goname}
Release:        %autorelease
Summary:        Command-line parser for Go

License:        MIT
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(github.com/pkg/errors)

%if %{with check}
# Tests
BuildRequires:  golang(github.com/alecthomas/repr)
BuildRequires:  golang(github.com/stretchr/testify/require)
%endif

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles

%changelog
%autochangelog