Blob Blame History Raw
# Generated by go2rpm
%bcond_without check

# https://github.com/docker/go-connections
%global goipath         github.com/docker/go-connections
Version:                0.4.0

%gometa

%global common_description %{expand:
Go-connections provides common package to work with network connections.}

%global golicenses      LICENSE
%global godocs          CONTRIBUTING.md README.md

Name:           %{goname}
Release:        %autorelease
Summary:        Utility package to work with network connections

# Upstream license specification: Apache-2.0
License:        ASL 2.0
URL:            %{gourl}
Source0:        %{gosource}
# update expired Lets Encrypt CA fixture
Patch0:         https://github.com/docker/go-connections/commit/f454ee8e77fd2360bf8f49a76ab749c52eb58348.patch#/0001-update-expired-Lets-Encrypt-CA-fixture.patch

BuildRequires:  golang(github.com/pkg/errors)
BuildRequires:  golang(golang.org/x/net/proxy)

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

%description
%{common_description}

%gopkg

%prep
%goprep
%patch0 -p1

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles

%changelog
%autochangelog