diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b2a7ffb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/spec-0.19.0.tar.gz diff --git a/golang-github-openapi-spec.spec b/golang-github-openapi-spec.spec new file mode 100644 index 0000000..ca0ca10 --- /dev/null +++ b/golang-github-openapi-spec.spec @@ -0,0 +1,58 @@ +# 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 - 0.19.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..b979bdc --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (spec-0.19.0.tar.gz) = 63bf509ebb29e72eb2d0c08f04f4fb130e43adf9245e0656bf78d60cfc0c13e28243404847ac508eb1789f59f559a38a3890dcc7ebfe6eaec478e626ff71bfff