63 lines
1.2 KiB
RPMSpec
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: %autorelease
|
|
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
|
|
%autochangelog
|