# Generated by go2rpm
%bcond_without check
# https://github.com/xeipuuv/gojsonschema
%global goipath github.com/xeipuuv/gojsonschema
Version: 1.2.0
%gometa
%global common_description %{expand:
An implementation of JSON Schema for the Go programming language. Supports
draft-04, draft-06 and draft-07.}
%global golicenses LICENSE-APACHE-2.0.txt
%global godocs README.md
Name: %{goname}
Release: %autorelease
Summary: Implementation of JSON Schema, draft v4 v6 & v7
# Upstream license specification: Apache-2.0
License: ASL 2.0
URL: %{gourl}
Source0: %{gosource}
# For go 1.17+
Patch0: 0001-Reject-comma-in-time-format.patch
BuildRequires: golang(github.com/xeipuuv/gojsonreference)
%if %{with check}
# Tests
BuildRequires: golang(github.com/stretchr/testify/assert)
BuildRequires: golang(github.com/stretchr/testify/require)
%endif
%description
%{common_description}
%gopkg
%prep
%goprep
%patch -P0 -p1
%install
%gopkginstall
%if %{with check}
%check
%gocheck
%endif
%gopkgfiles
%changelog
%autochangelog