1 |
# Generated by go2rpm |
2 |
%bcond_without check |
3 |
|
4 |
# https://github.com/Azure/go-autorest |
5 |
%global goipath github.com/Azure/go-autorest |
6 |
Version: 14.2.0 |
7 |
%global tag autorest/v0.11.15 |
8 |
%global distprefix %{nil} |
9 |
|
10 |
%gometa |
11 |
|
12 |
%global common_description %{expand: |
13 |
This package implements an HTTP request pipeline suitable for use across |
14 |
multiple go-routines and provides the shared routines relied on by AutoRest |
15 |
generated Go code.} |
16 |
|
17 |
%global golicenses LICENSE |
18 |
%global godocs README.md CHANGELOG.md example |
19 |
|
20 |
Name: %{goname} |
21 |
Release: %mkrel 1 |
22 |
Summary: HTTP request client for use with Autorest-generated API client packages |
23 |
Group: Development/Other |
24 |
|
25 |
# Upstream license specification: Apache-2.0 |
26 |
License: ASL 2.0 |
27 |
URL: %{gourl} |
28 |
Source0: %{gosource} |
29 |
|
30 |
BuildRequires: golang(contrib.go.opencensus.io/exporter/ocagent) |
31 |
BuildRequires: golang(github.com/dimchansky/utfbom) |
32 |
BuildRequires: golang(github.com/form3tech-oss/jwt-go) |
33 |
BuildRequires: golang(github.com/mitchellh/go-homedir) |
34 |
BuildRequires: golang(go.opencensus.io/plugin/ochttp) |
35 |
BuildRequires: golang(go.opencensus.io/plugin/ochttp/propagation/tracecontext) |
36 |
BuildRequires: golang(go.opencensus.io/stats/view) |
37 |
BuildRequires: golang(go.opencensus.io/trace) |
38 |
BuildRequires: golang(golang.org/x/crypto/pkcs12) |
39 |
|
40 |
%if %{with check} |
41 |
# Tests |
42 |
BuildRequires: golang(github.com/stretchr/testify/require) |
43 |
%endif |
44 |
|
45 |
%description |
46 |
%{common_description} |
47 |
|
48 |
%gopkg |
49 |
|
50 |
%prep |
51 |
%goprep |
52 |
|
53 |
%install |
54 |
%gopkginstall |
55 |
|
56 |
%if %{with check} |
57 |
%check |
58 |
%gocheck -d tracing |
59 |
%endif |
60 |
|
61 |
%gopkgfiles |