# Generated by go2rpm
# Needs network
%bcond_with check
# https://github.com/google/go-github
%global goipath github.com/google/go-github
Version: 38.1.0
%gometa
%global goaltipaths github.com/google/go-github/v35
%global common_description %{expand:
Package Github provides a client for using the GitHub API.}
%global golicenses LICENSE
%global godocs AUTHORS CONTRIBUTING.md README.md
Name: golang-github-google-go-github
Release: %autorelease
Summary: Go library for accessing the GitHub API
# Upstream license specification: BSD-3-Clause
License: BSD
URL: %{gourl}
Source0: %{gosource}
BuildRequires: golang(github.com/google/go-querystring/query)
BuildRequires: golang(github.com/PuerkitoBio/goquery)
BuildRequires: golang(github.com/xlzd/gotp)
BuildRequires: golang(golang.org/x/crypto/openpgp)
BuildRequires: golang(golang.org/x/crypto/ssh/terminal)
BuildRequires: golang(golang.org/x/net/html)
BuildRequires: golang(golang.org/x/net/publicsuffix)
BuildRequires: golang(golang.org/x/oauth2)
BuildRequires: golang(google.golang.org/appengine)
BuildRequires: golang(google.golang.org/appengine/log)
%if %{with check}
# Tests
BuildRequires: golang(github.com/google/go-cmp/cmp)
BuildRequires: golang(github.com/pmezard/go-difflib/difflib)
%endif
%description
%{common_description}
%gopkg
%prep
%goprep
rm -rf example
%install
%gopkginstall
%if %{with check}
%check
%gocheck
%endif
%gopkgfiles
%changelog
%autochangelog