Blame golang-github-deepmap-oapi-codegen.spec

5292483
# Generated by go2rpm 1
5292483
%bcond_without check
5292483
5292483
# https://github.com/deepmap/oapi-codegen
5292483
%global goipath         github.com/deepmap/oapi-codegen
5292483
Version:                1.3.12
5292483
5292483
%gometa
5292483
5292483
%global common_description %{expand:
5292483
Generate Go client and server boilerplate from OpenAPI 3 specifications.}
5292483
5292483
%global golicenses      LICENSE
5292483
%global godocs          README.md
5292483
5292483
Name:           %{goname}
5292483
Release:        1%{?dist}
5292483
Summary:        Generate Go client and server boilerplate from OpenAPI 3 specifications
5292483
5292483
# Upstream license specification: Apache-2.0
5292483
License:        ASL 2.0
5292483
URL:            %{gourl}
5292483
Source0:        %{gosource}
5292483
5292483
# One test requires internet connection, this patch removes it.
5292483
Patch0:         test-fix.patch
5292483
5292483
BuildRequires:  golang(github.com/getkin/kin-openapi/openapi3)
5292483
BuildRequires:  golang(github.com/getkin/kin-openapi/openapi3filter)
5292483
BuildRequires:  golang(github.com/go-chi/chi)
5292483
BuildRequires:  golang(github.com/labstack/echo/v4)
5292483
BuildRequires:  golang(github.com/labstack/echo/v4/middleware)
5292483
BuildRequires:  golang(github.com/pkg/errors)
5292483
BuildRequires:  golang(gopkg.in/yaml.v2)
5292483
5292483
%if %{with check}
5292483
# Tests
5292483
BuildRequires:  golang(github.com/golangci/lint-1)
5292483
BuildRequires:  golang(github.com/stretchr/testify/assert)
5292483
BuildRequires:  golang(github.com/stretchr/testify/require)
5292483
%endif
5292483
5292483
%description
5292483
%{common_description}
5292483
5292483
%gopkg
5292483
5292483
%prep
5292483
%goprep
5292483
%patch0 -p1
5292483
5292483
%build
5292483
for cmd in cmd/* ; do
5292483
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
5292483
done
5292483
5292483
%install
5292483
%gopkginstall
5292483
install -m 0755 -vd                     %{buildroot}%{_bindir}
5292483
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
5292483
5292483
%if %{with check}
5292483
%check
5292483
5292483
%gocheck
5292483
%endif
5292483
5292483
%files
5292483
%license LICENSE
5292483
%doc README.md
5292483
%{_bindir}/*
5292483
5292483
%gopkgfiles
5292483
5292483
%changelog
5292483
* Wed Aug 26 2020 Ondřej Budai <obudai@redhat.com> - 1.3.12-1
5292483
- Initial package
5292483