# Generated by go2rpm 1 %bcond_without check # https://github.com/deepmap/oapi-codegen %global goipath github.com/deepmap/oapi-codegen Version: 1.5.0 %gometa %global common_description %{expand: Generate Go client and server boilerplate from OpenAPI 3 specifications.} %global golicenses LICENSE %global godocs 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} # One test requires internet connection, this patch removes it. Patch0: test-fix.patch 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/v4) BuildRequires: golang(github.com/labstack/echo/v4/middleware) BuildRequires: golang(github.com/pkg/errors) BuildRequires: golang(golang.org/x/tools/imports) 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 %patch0 -p1 %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 %gocheck %endif %files %license LICENSE %doc README.md %{_bindir}/* %gopkgfiles %changelog * Mon Feb 01 2021 Ondřej Budai - 1.5.0-1 - Update to 1.5.0 - Close: rhbz#1922543 * Tue Jan 26 2021 Fedora Release Engineering - 1.4.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Jan 7 17:22:25 CET 2021 Robert-André Mauchin - 1.4.2-1 - Update to 1.4.2 - Close: rhbz#1913708 * Sat Jan 2 18:24:07 CET 2021 Robert-André Mauchin - 1.4.1-1 - Update to 1.4.1 - Close: rhbz#1907336 * Wed Aug 26 2020 Ondřej Budai - 1.3.12-1 - Initial package