Blob Blame History Raw
# Generated by go2rpm 1.6.0
%bcond_without check

# https://github.com/spf13/cast
%global goipath         github.com/spf13/cast
Version:                1.4.1

%gometa

%global common_description %{expand:
Cast is a library to convert between different go types in a consistent and easy
way.

Cast provides simple functions to easily convert a number to a string, an
interface into a bool, etc. Cast does this intelligently when an obvious
conversion is possible. It doesn’t make any attempts to guess what you meant,
for example you can only convert a string to an int when it is a string
representation of an int such as “8”. Cast was developed for use in Hugo, a
website engine which uses YAML, TOML or JSON for meta data.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Release:        %autorelease
Summary:        Safe and easy casting from one type to another in Go

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

%if %{with check}
# Tests
BuildRequires:  golang(github.com/stretchr/testify/assert)
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