Blob Blame History Raw
# Generated by go2rpm
%bcond_without check

# https://github.com/go-openapi/spec
%global goipath         github.com/go-openapi/spec
Version:                0.19.0

%gometa

%global common_description %{expand:
The object model for OpenAPI specification documents.

Currently supports Swagger 2.0.}

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

Name:           %{goname}
Release:        1%{?dist}
Summary:        Openapi specification object model

# Upstream license specification: Apache-2.0
License:        ASL 2.0
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(github.com/go-openapi/jsonpointer)
BuildRequires:  golang(github.com/go-openapi/jsonreference)
BuildRequires:  golang(github.com/go-openapi/swag)

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

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

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

%gopkgfiles

%changelog
* Thu May 09 21:07:39 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.19.0-1
- Initial package