# Generated by go2rpm 1.6.0
%if 0%{?__isa_bits} != 32
%bcond_without check
%endif
# https://github.com/BurntSushi/toml
%global goipath github.com/BurntSushi/toml
Version: 1.0.0
%gometa
%global common_description %{expand:
TOML stands for Tom's Obvious, Minimal Language. This Go package provides a
reflection interface similar to Go's standard library json and xml packages.
This package also supports the encoding.TextUnmarshaler and
encoding.TextMarshaler interfaces so that you can define custom data
representations.}
%global golicenses COPYING
%global godocs README.md
Name: %{goname}
Release: %autorelease
Summary: Toml parser with reflection for Golang
License: MIT
URL: %{gourl}
Source0: %{gosource}
%description
%{common_description}
%gopkg
%prep
%goprep
%build
for cmd in cmd/* ; do
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
%install
%gopkginstall
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%if %{with check}
%check
%gocheck
%endif
%files
%license COPYING
%doc README.md
%{_bindir}/*
%gopkgfiles
%changelog
%autochangelog