# Generated by go2rpm 1.13.1 %bcond_without check # https://github.com/evanphx/json-patch %global goipath gopkg.in/evanphx/json-patch.v4 %global forgeurl https://github.com/evanphx/json-patch Version: 4.12.0 %gometa -L -f %global common_description %{expand: A Go library to apply RFC6902 patches and create and apply RFC7386 patches.} %global golicenses LICENSE %global godocs README.md Name: golang-gopkg-evanphx-json-patch4 Release: %autorelease Summary: A Go library to apply RFC6902 patches and create and apply RFC7386 patches License: BSD-3-Clause URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep -A %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %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 LICENSE %doc README.md %{_bindir}/* %gopkgfiles %changelog %autochangelog