# Generated by go2rpm 1.3 %bcond_without check # https://github.com/jedib0t/go-pretty %global goipath github.com/jedib0t/go-pretty %global goaltipaths github.com/jedib0t/go-pretty/v6 Version: 6.0.6 %gometa %global common_description %{expand: Pretty print tables and more in golang!} %global golicenses LICENSE %global godocs README.md CODE_OF_CONDUCT.md table/README.md\\\ list/README.md cmd/demo-list/README.md cmd/demo-\\\ progress/README.md cmd/demo-table/README.md\\\ progress/README.md Name: %{goname} Release: 1%{?dist} Summary: Pretty print tables and more in golang License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/mattn/go-runewidth) BuildRequires: golang(github.com/pkg/profile) %if %{with check} # Tests BuildRequires: golang(github.com/stretchr/testify/assert) %endif %description %{common_description} %gopkg %prep %goprep %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 CODE_OF_CONDUCT.md table/README.md list/README.md %doc cmd/demo-list/README.md cmd/demo-progress/README.md %doc cmd/demo-table/README.md progress/README.md %{_bindir}/* %gopkgfiles %changelog * Wed Jan 27 02:58:13 UTC 2021 Qiyu Yan - 6.0.6-1 - Initial package