# Generated by go2rpm 1.10.0 %bcond_without check # https://github.com/mgutz/ansi %global goipath github.com/mgutz/ansi %global commit d51e80ef957dba7f19388ca64afefbd5a096af30 %gometa -L -f %global common_description %{expand: Small, fast library to create ANSI colored strings and codes. [go, golang].} %global golicenses LICENSE %global godocs README.md Name: golang-github-mgutz-ansi Version: 0 Release: %autorelease -p Summary: Small, fast library to create ANSI colored strings and codes. [go, golang] 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 README.md %{_bindir}/* %gopkgfiles %changelog %autochangelog