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 2 |
19 |
Summary: Library to make a lexical analyzer like Unix shell for golang |
20 |
Group: Development/Golang |
21 |
License: MIT |
22 |
URL: %{gourl} |
23 |
Source0: %{gosource} |
24 |
BuildArch: noarch |
25 |
|
26 |
%description |
27 |
%{common_description} |
28 |
|
29 |
%gopkg |
30 |
|
31 |
%prep |
32 |
%goprep |
33 |
|
34 |
%install |
35 |
%gopkginstall |
36 |
|
37 |
%if %{with check} |
38 |
%check |
39 |
%gocheck |
40 |
%endif |
41 |
|
42 |
%gopkgfiles |