# Generated by go2rpm %bcond_without check # https://github.com/mailru/easyjson %global goipath github.com/mailru/easyjson %global commit 1ea4449da9834f4d333f1cc461c374aea217d249 %gometa %global common_description %{expand: Package Easyjson provides a fast and easy way to marshal/unmarshal Go structs to/from JSON without the use of reflection. In performance tests, easyjson outperforms the standard encoding/json package by a factor of 4-5x, and other JSON encoding packages by a factor of 2-3x. Easyjson aims to keep generated Go code simple enough so that it can be easily optimized or fixed. Another goal is to provide users with the ability to customize the generated code by providing options not available with the standard encoding/json package, such as generating "snake_case" names or enabling omitempty behavior by default.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Version: 0 Release: 0.1%{?dist} Summary: Fast JSON serializer for Go License: MIT URL: %{gourl} Source0: %{gosource} %description %{common_description} %gopkg %prep %goprep %build for cmd in easyjson; 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 # https://github.com/mailru/easyjson/issues/227 %gocheck -d tests %endif %files %license LICENSE %doc README.md %{_bindir}/* %gopkgfiles %changelog * Thu May 09 21:13:37 CEST 2019 Robert-André Mauchin - 0-0.1.20190509git1ea4449 - Initial package