# Generated by go2rpm %bcond_without check # https://github.com/mgutz/ansi %global goipath github.com/mgutz/ansi %global commit 9520e82c474b0a04dd04f8a40959027271bab992 %gometa %global common_description %{expand: Package Ansi is a small, fast library to create ANSI colored strings and codes.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Version: 0 Release: 0.5%{?dist} Summary: Small, fast library to create ANSI colored strings and codes License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/mattn/go-colorable) %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 %{golicenses} %doc %{godocs} %{_bindir}/* %gopkgfiles %changelog * Fri Apr 26 21:44:30 CEST 2019 Robert-André Mauchin - 0-0.5.20170206git9520e82 - Update to new macros * Fri Feb 01 2019 Fedora Release Engineering - 0-0.4.20170206git9520e82 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0-0.3.20170206git9520e82 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 0-0.2.20170206git9520e82 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Mar 04 2017 Ed Marshall - 0-0.1.20170206git9520e82 - First package for Fedora