# Generated by go2rpm %bcond_without check # https://github.com/tinylib/msgp %global goipath github.com/tinylib/msgp Version: 1.1.0 %gometa %global common_description %{expand: This is a code generation tool and serialization library for MessagePack.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: 2%{?dist} Summary: Go code generator for MessagePack License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/philhofer/fwd) BuildRequires: golang(github.com/ttacon/chalk) BuildRequires: golang(golang.org/x/tools/imports) %description %{common_description} %package -n msgp Summary: %{summary} %description -n msgp %{common_description} This package contains the msgp binary. %gopkg %prep %goprep %build %gobuild -o %{gobuilddir}/bin/msgp %{goipath} %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check export PATH=$PATH:%{buildroot}%{_bindir} go generate ./msgp go generate ./_generated %gocheck %endif %files -n msgp %license LICENSE %doc README.md %{_bindir}/msgp %gopkgfiles %changelog * Sun Apr 28 23:17:05 CEST 2019 Robert-André Mauchin - 1.1.0-2 - Update to new macros * Sun Mar 03 2019 Robert-André Mauchin - 1.1.0-1 - First package for Fedora