1 |
# Generated by go2rpm 1.6.0 |
2 |
# Needs network access to Github |
3 |
%bcond_with check |
4 |
%global debug_package %{nil} |
5 |
|
6 |
# https://github.com/go-git/go-git |
7 |
%global goipath github.com/go-git/go-git/v5 |
8 |
Version: 5.4.2 |
9 |
%global commit bc1f419cebcf7505db31149fa459e9e3f8260e00 |
10 |
|
11 |
%gometa |
12 |
|
13 |
%global common_description %{expand: |
14 |
A highly extensible Git implementation in pure Go.} |
15 |
|
16 |
%global golicenses LICENSE |
17 |
%global godocs CODE_OF_CONDUCT.md COMPATIBILITY.md\\\ |
18 |
CONTRIBUTING.md README.md |
19 |
|
20 |
Name: %{goname} |
21 |
Release: %mkrel 2 |
22 |
Summary: A highly extensible Git implementation in pure Go |
23 |
Group: Development/Golang |
24 |
|
25 |
# Upstream license specification: Apache-2.0 |
26 |
License: ASL 2.0 |
27 |
URL: %{gourl} |
28 |
Source0: %{gosource} |
29 |
|
30 |
%description |
31 |
%{common_description} |
32 |
|
33 |
%package doc |
34 |
Summary: Documentation for %goipath |
35 |
BuildArch: noarch |
36 |
|
37 |
%description -n %{goname}-doc |
38 |
%{common_description} |
39 |
|
40 |
Documentation for %goipath |
41 |
|
42 |
%gopkg |
43 |
|
44 |
%prep |
45 |
%goprep |
46 |
# No testdata packed |
47 |
rm -rfv plumbing/transport/ssh/auth_method_test.go |
48 |
|
49 |
%generate_buildrequires |
50 |
%go_generate_buildrequires |
51 |
|
52 |
%install |
53 |
%gopkginstall |
54 |
|
55 |
%if %{with check} |
56 |
%check |
57 |
%gocheck |
58 |
%endif |
59 |
|
60 |
%gopkgfiles |
61 |
|
62 |
%files doc |
63 |
%license LICENSE |
64 |
%doc _examples |