# Generated by go2rpm 1
%bcond_without check

# https://github.com/minio/minio-go
%global goipath         github.com/minio/minio-go/v6
Version:                6.0.57

%gometa

%global common_description %{expand:
MinIO Client SDK for Go.}

%global golicenses      LICENSE NOTICE
%global godocs          docs examples CONTRIBUTING.md MAINTAINERS.md\\\
                        README.md README_zh_CN.md

Name:           %{goname}
Release:        6%{?dist}
Summary:        MinIO Client SDK for Go

# Upstream license specification: Apache-2.0
License:        ASL 2.0
URL:            %{gourl}
Source0:        %{gosource}
# Go 1.15: https://github.com/golang/go/issues/32479
Patch0:         0001-Convert-int-to-string-using-strconv.Itoa.patch

BuildRequires:  golang(github.com/json-iterator/go)
BuildRequires:  golang(github.com/minio/md5-simd)
BuildRequires:  golang(github.com/minio/sha256-simd)
BuildRequires:  golang(github.com/mitchellh/go-homedir)
BuildRequires:  golang(golang.org/x/crypto/argon2)
BuildRequires:  golang(golang.org/x/net/http/httpguts)
BuildRequires:  golang(golang.org/x/net/publicsuffix)
BuildRequires:  golang(gopkg.in/ini.v1)

%description
%{common_description}

%gopkg

%prep
%goprep
%patch0 -p1
sed -i 's|parse %%%%%%%%:|parse "%%%%%%%%":|' pkg/credentials/iam_aws_test.go

%install
%gopkginstall

%if %{with check}
%check
# .: needs network
%gocheck -d .
%endif

%gopkgfiles

%changelog
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.57-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.57-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.57-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.57-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.57-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Thu Sep 10 15:17:16 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 6.0.57-1
- Initial package