1 |
# Run tests in check section |
2 |
# disable for bootstrapping |
3 |
%bcond_with check |
4 |
|
5 |
%global goipath github.com/anmitsu/go-shlex |
6 |
%global commit 648efa622239a2f6ff949fed78ee37b48d499ba4 |
7 |
|
8 |
%global common_description %{expand: |
9 |
go-shlex is a library to make a lexical analyzer like Unix shell for Go.} |
10 |
|
11 |
%gometa |
12 |
|
13 |
Name: %{goname} |
14 |
Version: 0 |
15 |
Release: 0.2%{?dist} |
16 |
Summary: Library to make a lexical analyzer like Unix shell for golang |
17 |
Group: Development/Other |
18 |
License: MIT |
19 |
URL: %{gourl} |
20 |
Source0: %{gosource} |
21 |
BuildArch: noarch |
22 |
|
23 |
%description |
24 |
%{common_description} |
25 |
|
26 |
%global golicenses LICENSE |
27 |
%global godocs README.md |
28 |
|
29 |
%gopkg |
30 |
|
31 |
%prep |
32 |
%goprep |
33 |
|
34 |
|
35 |
%install |
36 |
%gopkginstall |
37 |
|
38 |
%if %{with check} |
39 |
%check |
40 |
%gocheck |
41 |
%endif |
42 |
|
43 |
%gopkgfiles |
44 |
|