Blob Blame History Raw
# Generated by go2rpm 1.5.0
%bcond_without check

# https://github.com/openshift-online/ocm-sdk-go
%global goipath         github.com/openshift-online/ocm-sdk-go
Version:                0.1.266

%gometa

%global common_description %{expand:
SDK for the Red Hat OpenShift Cluster Manager.}

%global golicenses      LICENSE.txt
%global godocs          examples README.adoc

Name:           %{goname}
Release:        %autorelease
Summary:        SDK for the Red Hat OpenShift Cluster Manager

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

BuildRequires:  golang(github.com/cenkalti/backoff/v4)
BuildRequires:  golang(github.com/evanphx/json-patch/v5)
BuildRequires:  golang(github.com/golang-jwt/jwt/v4)
BuildRequires:  golang(github.com/golang/glog)
BuildRequires:  golang(github.com/google/uuid)
BuildRequires:  golang(github.com/itchyny/gojq)
BuildRequires:  golang(github.com/jackc/pgx/v4/stdlib)
BuildRequires:  golang(github.com/json-iterator/go)
BuildRequires:  golang(github.com/microcosm-cc/bluemonday)
BuildRequires:  golang(github.com/onsi/ginkgo/v2/dsl/core)
BuildRequires:  golang(github.com/onsi/gomega)
BuildRequires:  golang(github.com/onsi/gomega/ghttp)
BuildRequires:  golang(github.com/onsi/gomega/types)
BuildRequires:  golang(github.com/prometheus/client_golang/prometheus)
BuildRequires:  golang(github.com/prometheus/client_golang/prometheus/promhttp)
BuildRequires:  golang(golang.org/x/net/http2)
BuildRequires:  golang(golang.org/x/net/http2/h2c)
BuildRequires:  golang(gopkg.in/yaml.v3)
BuildRequires:  golang(k8s.io/api/core/v1)
BuildRequires:  golang(k8s.io/apimachinery/pkg/apis/meta/v1)

%if %{with check}
# Tests
BuildRequires:  golang(github.com/jackc/pgconn)
BuildRequires:  golang(github.com/lib/pq)
BuildRequires:  golang(github.com/onsi/ginkgo/v2/dsl/table)
BuildRequires:  golang(github.com/onsi/gomega/gbytes)
%endif

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
# Exclude leadership package because that starts a database container
# Exclude retry because it's very timing-dependent, and too slow on certain platforms
%gocheck -d leadership -d retry
%endif

%gopkgfiles

%changelog
%autochangelog