2023-11-08 19:27:05 +00:00
|
|
|
# Generated by go2rpm 1.10.0
|
2020-09-17 15:48:34 +00:00
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
# https://github.com/nxadm/tail
|
|
|
|
%global goipath github.com/nxadm/tail
|
2023-11-08 19:27:05 +00:00
|
|
|
Version: 1.4.11
|
2020-09-17 15:48:34 +00:00
|
|
|
|
|
|
|
%gometa
|
|
|
|
|
2023-11-08 19:27:05 +00:00
|
|
|
|
2020-09-17 15:48:34 +00:00
|
|
|
%global common_description %{expand:
|
2023-11-08 19:27:05 +00:00
|
|
|
Go package for reading from continuously updated files (tail -f).}
|
2020-09-17 15:48:34 +00:00
|
|
|
|
|
|
|
%global golicenses LICENSE
|
|
|
|
%global godocs CHANGES.md README.md
|
|
|
|
|
|
|
|
Name: %{goname}
|
2022-02-25 01:45:04 +00:00
|
|
|
Release: %autorelease
|
2023-11-08 19:27:05 +00:00
|
|
|
Summary: Go package for reading from continuously updated files
|
2020-09-17 15:48:34 +00:00
|
|
|
|
|
|
|
License: MIT
|
|
|
|
URL: %{gourl}
|
2023-11-08 19:27:05 +00:00
|
|
|
Source: %{gosource}
|
2020-09-17 15:48:34 +00:00
|
|
|
|
2023-11-08 19:27:05 +00:00
|
|
|
%description %{common_description}
|
2020-09-17 15:48:34 +00:00
|
|
|
|
|
|
|
%gopkg
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%goprep
|
2023-11-08 19:27:05 +00:00
|
|
|
%autopatch -p1
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%go_generate_buildrequires
|
2020-09-17 15:48:34 +00:00
|
|
|
|
|
|
|
%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
|
2023-07-29 14:00:15 +00:00
|
|
|
for test in "TestInotify_WaitForCreateThenMove" "TestWaitsForFileToExist" "TestWaitsForFileToExistRelativePath" \
|
2021-01-27 18:56:06 +00:00
|
|
|
; do
|
|
|
|
awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test)
|
|
|
|
done
|
2020-09-17 15:48:34 +00:00
|
|
|
%gocheck
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGES.md README.md
|
|
|
|
%{_bindir}/*
|
|
|
|
|
|
|
|
%gopkgfiles
|
|
|
|
|
|
|
|
%changelog
|
2022-02-25 01:45:04 +00:00
|
|
|
%autochangelog
|