Blob Blame History Raw
# Generated by go2rpm
%bcond_without check

# https://github.com/json-iterator/go
%global goipath         github.com/json-iterator/go
Version:                1.1.6

%gometa

%global common_description %{expand:
A high-performance 100% compatible drop-in replacement of "encoding/json".}

%global golicenses      LICENSE
%global godocs          README.md fuzzy_mode_convert_table.md

Name:           %{goname}
Release:        1%{?dist}
Summary:        High-performance 100% compatible drop-in replacement of "encoding/json"

License:        MIT
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(github.com/modern-go/concurrent)
BuildRequires:  golang(github.com/modern-go/reflect2)

%if %{with check}
# Tests
BuildRequires:  golang(github.com/stretchr/testify/require)
%endif

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles

%changelog
* Sat Apr 27 15:15:43 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 1.1.6-1
- Initial package