%define debug_package %{nil} %define repo github.com/tomnomnom/gron Name: gron Version: 0.6.0 Release: 1%{?dist} Summary: Make JSON greppable Group: Applications/System License: MIT URL: https://%{repo} Source0: https://%{repo}/archive/v%{version}.tar.gz BuildRequires: tar BuildRequires: gzip BuildRequires: git BuildRequires: golang BuildRequires: golang(github.com/nwidger/jsoncolor) BuildRequires: golang(github.com/pkg/errors) BuildRequires: golang(github.com/shiena/ansicolor) BuildRequires: golang(github.com/mattn/go-colorable) %description gron transforms JSON into discrete assignments to make it easier to grep for what you want and see the absolute 'path' to it. It eases the exploration of APIs that return large blobs of JSON. %prep %setup -q -c mkdir -p $(dirname src/%{repo}) mv %{name}-%{version} src/%{repo} %build export GOPATH=$(pwd):%{gopath} cd src/%{repo} go build %install install -D src/%{repo}/%{name} \ %{buildroot}%{_bindir}/%{name} %files %license src/%{repo}/LICENSE %doc src/%{repo}/README.mkd src/%{repo}/ADVANCED.mkd %{_bindir}/%{name} %changelog * Mon Jul 30 2018 Lars Kiesow - 0.6.0-1 - Update to gron 0.6.0 * Sun Apr 22 2018 Lars Kiesow - 0.5.2-1 - Initial build