# Generated by go2rpm 1.8.2
%bcond_without check
# https://github.com/pelletier/go-toml
%global goipath github.com/pelletier/go-toml/v2
Version: 2.2.2
%gometa
%global common_description %{expand:
Go library for the TOML file format.}
%global golicenses LICENSE
%global godocs SECURITY.md CONTRIBUTING.md README.md
Name: %{goname}
Release: %autorelease
Summary: Go library for the TOML file format
License: MIT
URL: %{gourl}
Source: %{gosource}
%description %{common_description}
%gopkg
%prep
%goprep
%generate_buildrequires
%go_generate_buildrequires
%build
for cmd in cmd/{jsontoml,tomljson,tomll} ; 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 LICENSE
%doc SECURITY.md CONTRIBUTING.md README.md
%{_bindir}/*
%gopkgfiles
%changelog
%autochangelog