# Generated by go2rpm %bcond_without check # https://github.com/dave/jennifer %global goipath github.com/dave/jennifer Version: 1.3.0 %gometa %global common_description %{expand: Jennifer is a code generator for Go.} %global golicenses LICENSE %global godocs README.md README.md.tpl README-gennames.md Name: %{goname} Release: 1%{?dist} Summary: Code generator for Go License: MIT URL: %{gourl} Source0: %{gosource} %description %{common_description} %gopkg %prep %goprep mv gennames/README.md README-gennames.md %build for cmd in gennames genjen; 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 * Wed Apr 24 23:40:06 CEST 2019 Robert-André Mauchin - 1.3.0-1 - Initial package