golang-github-nxadm-tail/golang-github-nxadm-tail.spec
Robert-André Mauchin 35ea77065b
Update to 1.4.6
Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
2021-01-18 18:51:09 +01:00

63 lines
1.2 KiB
RPMSpec

# Generated by go2rpm 1
%bcond_without check
# https://github.com/nxadm/tail
%global goipath github.com/nxadm/tail
Version: 1.4.6
%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
* Mon Jan 18 18:50:43 CET 2021 Robert-André Mauchin <zebob.m@gmail.com> - 1.4.6-1
- Update to 1.4.6
* Thu Jul 30 15:26:10 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 1.4.4-1
- Initial package