# Generated by go2rpm 1.18.0 %bcond check 1 # https://github.com/tomnomnom/gron %global goipath github.com/tomnomnom/gron Version: 0.7.1 %global commit 88a6234ea2d0c487090988182ad9a7cdf6def924 %gometa -L -f Name: gron Release: %autorelease Summary: Make JSON greppable # Generated by go-vendor-tools License: BSD-2-Clause AND BSD-3-Clause AND MIT URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml Source3: gron.1 BuildRequires: go-vendor-tools %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 %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on %gobuild -o %{gobuilddir}/bin/gron %{goipath} %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ install -m 0755 -vd %{buildroot}%{_mandir}/man1 install -m 0644 -vp %{S:3} %{buildroot}%{_mandir}/man1 %check %go_vendor_license_check -c %{S:2} %if %{with check} %gotest ./... %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc docs CHANGELOG.mkd README.mkd %{_bindir}/gron %{_mandir}/man1/gron.1* %changelog %autochangelog