1 |
pterjan |
1336344 |
# 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.1%{?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 |
|
|
|
27 |
|
|
%package devel |
28 |
|
|
Summary: %{summary} |
29 |
|
|
|
30 |
|
|
%description devel |
31 |
|
|
%{common_description} |
32 |
|
|
|
33 |
|
|
This package contains library source intended for |
34 |
|
|
building other packages which use import path with |
35 |
|
|
%{goipath} prefix. |
36 |
|
|
|
37 |
|
|
%prep |
38 |
|
|
%forgeautosetup |
39 |
|
|
|
40 |
|
|
|
41 |
|
|
%install |
42 |
|
|
%goinstall |
43 |
|
|
|
44 |
|
|
|
45 |
|
|
%if %{with check} |
46 |
|
|
%check |
47 |
|
|
%gochecks |
48 |
|
|
%endif |
49 |
|
|
|
50 |
|
|
|
51 |
|
|
%files devel -f devel.file-list |
52 |
|
|
%license LICENSE |
53 |
|
|
%doc README.md |
54 |
|
|
|
55 |
|
|
|