# Generated by go2rpm 1.19.0 %bcond check 1 %bcond bootstrap 0 %if %{with bootstrap} %global debug_package %{nil} %endif %if %{with bootstrap} %global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$ %endif # https://github.com/lucasb-eyer/go-colorful %global goipath github.com/lucasb-eyer/go-colorful Version: v1.4.0 %global tag v1.4.0 %gometa -L -f %global common_description %{expand: A library for playing with colors in go (golang).} %global golicenses LICENSE %global godocs doc CHANGELOG.md README.md Name: golang-github-lucasb-eyer-colorful Release: %autorelease Summary: A library for playing with colors in go (golang) License: MIT URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep -A %autopatch -p1 %if %{without bootstrap} %generate_buildrequires %go_generate_buildrequires %endif %if %{without bootstrap} %build for cmd in doc/colorblend doc/colordist doc/colorgens doc/colorsort doc/gradientgen doc/palettegens; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %endif %install %gopkginstall %if %{without bootstrap} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %endif %if %{without bootstrap} %if %{with check} %check %gocheck %endif %endif %if %{without bootstrap} %files %license LICENSE %doc doc CHANGELOG.md README.md %{_bindir}/colorblend %{_bindir}/colordist %{_bindir}/colorgens %{_bindir}/colorsort %{_bindir}/gradientgen %{_bindir}/palettegens %endif %gopkgfiles %changelog %autochangelog