# 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: 3%{?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 for test in "TestInotify_WaitForCreateThenMove" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %files %license LICENSE %doc CHANGES.md README.md %{_bindir}/* %gopkgfiles %changelog * Thu Jul 22 2021 Fedora Release Engineering - 1.4.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.4.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jan 18 18:50:43 CET 2021 Robert-André Mauchin - 1.4.6-1 - Update to 1.4.6 * Thu Jul 30 15:26:10 CEST 2020 Robert-André Mauchin - 1.4.4-1 - Initial package