# Generated by go2rpm 1.9.0 %bcond_without check # https://github.com/sters/yaml-diff %global goipath github.com/sters/yaml-diff %global forgeurl https://github.com/sters/yaml-diff Version: 1.2.0 %gometa %global common_description %{expand: Make a diff between 2 yaml files.} %global golicenses LICENSE %global godocs example README.md Name: %{goname} Release: %autorelease Summary: Make a diff between 2 yaml files License: MIT URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %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 example README.md %{_bindir}/yaml-diff %gopkgfiles %changelog %autochangelog