golang-github-nxadm-tail/golang-github-nxadm-tail.spec

60 lines
1.1 KiB
RPMSpec
Raw Normal View History

# Generated by go2rpm 1
%bcond_without check
# https://github.com/nxadm/tail
%global goipath github.com/nxadm/tail
Version: 1.4.4
%gometa
%global common_description %{expand:
Go package for reading from continously updated files (tail -f).}
%global golicenses LICENSE
%global godocs CHANGES.md README.md
Name: %{goname}
Release: 1%{?dist}
Summary: Read from continously updated files (tail -f)
License: MIT
URL: %{gourl}
Source0: %{gosource}
BuildRequires: golang(github.com/fsnotify/fsnotify)
BuildRequires: golang(gopkg.in/tomb.v1)
%description
%{common_description}
%gopkg
%prep
%goprep
%build
for cmd in cmd/* ; do
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
%install
%gopkginstall
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
%if %{with check}
%check
%gocheck
%endif
%files
%license LICENSE
%doc CHANGES.md README.md
%{_bindir}/*
%gopkgfiles
%changelog
* Thu Jul 30 15:26:10 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 1.4.4-1
- Initial package