%define prerelease c5b73d348500e127fc50788ee93ef5a6f740cc96 %define gopath %{_libdir}/golang %define gosrc %{gopath}/src/github.com/ActiveState/tail Summary: Go package striving to emulate the features of the tail program Name: golang-ActiveState-tail Version: 0.20131114 Release: %mkrel 1 License: BSD Group: Development/Other Url: https://github.com/mitchellh/osext Source0: https://github.com/mitchellh/osext/archive/%{prerelease}.tar.gz %description A Go package striving to emulate the features of the BSD tail program Tail comes with full support for truncation/move detection as it is designed to work with log rotation tools. %prep %setup -q -n tail-%{prerelease} %build %install mkdir -p %{buildroot}%{gosrc} cp -av * %{buildroot}%{gosrc}/ rm -f %{buildroot}%{gosrc}/LICENSE.txt rm -f %{buildroot}%{gosrc}/README.md rm -f %{buildroot}%{gosrc}/CHANGES.md %files %doc LICENSE.txt %doc README.md %doc CHANGES.md %{gosrc}/*