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