# Generated by go2rpm 1.9.0 %bcond_without check # https://github.com/apapsch/go-jsonmerge %global goipath github.com/apapsch/go-jsonmerge/v2 %global forgeurl https://github.com/apapsch/go-jsonmerge Version: 2.0.0 %gometa -f %global common_description %{expand: Merge JSON objects.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: %autorelease Summary: Merge JSON objects License: MIT URL: %{gourl} Source: %{gosource} # Remove in F43 Provides: golang-github-apapsch-jsonmerge-2 = %{version}-%{release} Obsoletes: golang-github-apapsch-jsonmerge-2 < 2.0.0-2 %global godevelheader %{expand: Provides: golang-github-apapsch-jsonmerge-2-devel = %{version}-%{release} Obsoletes: golang-github-apapsch-jsonmerge-2-devel < 2.0.0-2} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %build %gobuild -o %{gobuilddir}/bin/jsonmerge %{goipath}/cmd/jsonmerge %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 README.md %{_bindir}/jsonmerge %gopkgfiles %changelog %autochangelog