# Generated by go2rpm %bcond_without check # https://github.com/cheekybits/genny %global goipath github.com/cheekybits/genny Version: 1.0.0 %gometa %global common_description %{expand: Genny is a code-generation generics solution. It allows you write normal buildable and testable Go code which, when processed by the genny gen tool, will replace the generics with specific types.} %global golicenses LICENSE %global godocs examples README.md Name: %{goname} Release: 1%{?dist} Summary: Elegant generics for Go License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(golang.org/x/tools/imports) %if %{with check} # Tests BuildRequires: golang(github.com/stretchr/testify/assert) %endif %description %{common_description} %gopkg %prep %goprep %build %gobuild -o %{gobuilddir}/bin/genny %{goipath} %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 examples README.md %{_bindir}/* %gopkgfiles %changelog * Sat May 18 19:07:10 CEST 2019 Robert-André Mauchin - 1.0.0-1 - Initial package