1 |
%define prerelease c5b73d348500e127fc50788ee93ef5a6f740cc96 |
2 |
%define gopath %{_libdir}/golang |
3 |
%define gosrc %{gopath}/src/github.com/ActiveState/tail |
4 |
Summary: Go package striving to emulate the features of the tail program |
5 |
Name: golang-ActiveState-tail |
6 |
Version: 0.20131114 |
7 |
Release: %mkrel 1 |
8 |
License: BSD |
9 |
Group: Development/Other |
10 |
Url: https://github.com/mitchellh/osext |
11 |
Source0: https://github.com/mitchellh/osext/archive/%{prerelease}.tar.gz |
12 |
|
13 |
%description |
14 |
A Go package striving to emulate the features of the BSD tail program |
15 |
|
16 |
Tail comes with full support for truncation/move detection as it is designed to |
17 |
work with log rotation tools. |
18 |
|
19 |
%prep |
20 |
%setup -q -n tail-%{prerelease} |
21 |
|
22 |
%build |
23 |
|
24 |
%install |
25 |
mkdir -p %{buildroot}%{gosrc} |
26 |
cp -av * %{buildroot}%{gosrc}/ |
27 |
rm -f %{buildroot}%{gosrc}/LICENSE.txt |
28 |
rm -f %{buildroot}%{gosrc}/README.md |
29 |
rm -f %{buildroot}%{gosrc}/CHANGES.md |
30 |
|
31 |
%files |
32 |
%doc LICENSE.txt |
33 |
%doc README.md |
34 |
%doc CHANGES.md |
35 |
%{gosrc}/* |