# Generated by go2rpm 1 %bcond_without check # https://github.com/deepmap/oapi-codegen %global goipath github.com/deepmap/oapi-codegen Version: 1.3.12 %gometa %global common_description %{expand: Generate Go client and server boilerplate from OpenAPI 3 specifications.} %global golicenses LICENSE %global godocs examples README.md Name: %{goname} Release: 1%{?dist} Summary: Generate Go client and server boilerplate from OpenAPI 3 specifications # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/getkin/kin-openapi/openapi3) BuildRequires: golang(github.com/getkin/kin-openapi/openapi3filter) BuildRequires: golang(github.com/go-chi/chi) BuildRequires: golang(github.com/labstack/echo) BuildRequires: golang(github.com/labstack/echo/middleware) BuildRequires: golang(github.com/pkg/errors) BuildRequires: golang(gopkg.in/yaml.v2) %if %{with check} # Tests #BuildRequires: golang(github.com/golangci/lint-1) BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(github.com/stretchr/testify/require) %endif %description %{common_description} %gopkg %prep %goprep %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check # !!! HACK so we don't need lint-1 %gocheck -t pkg/codegen %endif %files %license LICENSE %doc examples README.md %{_bindir}/* %gopkgfiles %changelog * Wed Aug 26 12:31:53 CEST 2020 Ondřej Budai - 1.3.12-1 - Initial package