Blob Blame History Raw
# Generated by go2rpm
%bcond_without check

# https://github.com/oracle/oci-go-sdk
%global goipath         github.com/oracle/oci-go-sdk
Version:                54.0.0

%gometa

%global goaltipaths     github.com/oracle/oci-go-sdk/v54

%global common_description %{expand:
This is the Go SDK for Oracle Cloud Infrastructure. This project is open source
and maintained by Oracle Corp.}

%global golicenses      LICENSE.txt
%global godocs          example CHANGELOG.md CONTRIBUTING.md README.md

Name:           %{goname}
Release:        %autorelease
Summary:        Go SDK for Oracle Cloud Infrastructure

License:        UPL or ASL 2.0
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(github.com/fnproject/fdk-go)
BuildRequires:  golang(github.com/sony/gobreaker)

%if %{with check}
# Tests
BuildRequires:  golang(github.com/stretchr/testify/assert)
BuildRequires:  golang(github.com/stretchr/testify/mock)
%endif

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck -t cmd -d objectstorage/transfer
%endif

%gopkgfiles

%changelog
%autochangelog