# Generated by go2rpm 1.3 %bcond_without check # https://github.com/jackmordaunt/icns %global goipath github.com/jackmordaunt/icns Version: 2.0.3 %gometa %global common_description %{expand: Easily convert .jpg and .png to .icns with the command line tool icnsify, or use the library to convert from any image.Image to .icns.} %global golicenses LICENSE %global godocs readme.md Name: %{goname} Release: 1%{?dist} Summary: Easily create .icns files (Mac Icons) License: MIT URL: %{gourl} Source0: %{gosource} # Fix TestSizesFromMax Patch0: https://github.com/JackMordaunt/icns/commit/bf406b99a811729d26745bd4f92b1531c4bfc796.patch#/0001-Add-supported-OS-type-to-test.patch BuildRequires: golang(github.com/nfnt/resize) BuildRequires: golang(github.com/pkg/errors) BuildRequires: golang(github.com/spf13/afero) BuildRequires: golang(github.com/spf13/pflag) %description %{common_description} %gopkg %prep %goprep %patch0 -p1 %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 * Sat Jan 30 23:04:00 CET 2021 Robert-André Mauchin - 2.0.3-1 - Initial package