diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9f52a9b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/color-1.3.1.tar.gz diff --git a/golang-github-gookit-color.spec b/golang-github-gookit-color.spec new file mode 100644 index 0000000..42443e9 --- /dev/null +++ b/golang-github-gookit-color.spec @@ -0,0 +1,51 @@ +# Generated by go2rpm 1.2 +# There is a failure during the checks +%bcond_with check + +# https://github.com/gookit/color +%global goipath github.com/gookit/color +Version: 1.3.1 + +%gometa + +%global common_description %{expand: +A Terminal color rendering tool library, support 8/16 colors, 256 colors +and RGB color rendering output.} + +%global golicenses LICENSE +%global godocs _examples README.zh-CN.md README.md + +Name: %{goname} +Release: 1%{?dist} +Summary: Terminal color rendering tool library + +License: MIT +URL: %{gourl} +Source0: %{gosource} + +%if %{with check} +# Tests +BuildRequires: golang(github.com/stretchr/testify/assert) +%endif + +%description +%{common_description} + +%gopkg + +%prep +%goprep + +%install +%gopkginstall + +%if %{with check} +%check +%gocheck +%endif + +%gopkgfiles + +%changelog +* Wed Oct 07 2020 Fabian Affolter - 1.3.1-1 +- Initial package for Fedora \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..9bec6fc --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (color-1.3.1.tar.gz) = 2831692d7aa0fb9337539a53f230984a1831e359f558a866c4f8a78e7da88a96bf1de30be45c169470705ee1c6feb81fa9d66f6ce08d657451290a37b30a4775