# 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.0.6 %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} # Remove in F43 Provides: golang-github-pelletier-toml-2 = %{version}-%{release} Obsoletes: golang-github-pelletier-toml-2 < 2.0.6-4 %global godevelheader %{expand: Provides: golang-github-pelletier-toml-2-devel = %{version}-%{release} Obsoletes: golang-github-pelletier-toml-2-devel < 2.0.6-4} %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