2024-07-30 11:15:07 +00:00
|
|
|
# Generated by go2rpm 1.14.0
|
|
|
|
%bcond check 1
|
|
|
|
%bcond bootstrap 0
|
|
|
|
|
|
|
|
%if %{with bootstrap}
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with bootstrap}
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$
|
|
|
|
%endif
|
2020-09-17 15:48:34 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
2024-07-30 11:15:07 +00:00
|
|
|
%gometa -L -f
|
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
|
2024-07-30 11:15:07 +00:00
|
|
|
%global godocs CHANGES.md CONTRIBUTING.md README.md
|
2020-09-17 15:48:34 +00:00
|
|
|
|
2024-07-30 11:15:07 +00:00
|
|
|
Name: golang-github-nxadm-tail
|
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
|
2024-07-30 11:15:07 +00:00
|
|
|
%goprep -A
|
2023-11-08 19:27:05 +00:00
|
|
|
%autopatch -p1
|
|
|
|
|
2024-07-30 11:15:07 +00:00
|
|
|
%if %{without bootstrap}
|
2023-11-08 19:27:05 +00:00
|
|
|
%generate_buildrequires
|
|
|
|
%go_generate_buildrequires
|
2024-07-30 11:15:07 +00:00
|
|
|
%endif
|
2020-09-17 15:48:34 +00:00
|
|
|
|
2024-07-30 11:15:07 +00:00
|
|
|
%if %{without bootstrap}
|
2020-09-17 15:48:34 +00:00
|
|
|
%build
|
|
|
|
for cmd in cmd/* ; do
|
|
|
|
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
|
|
|
|
done
|
2024-07-30 11:15:07 +00:00
|
|
|
%endif
|
2020-09-17 15:48:34 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%gopkginstall
|
2024-07-30 11:15:07 +00:00
|
|
|
%if %{without bootstrap}
|
2020-09-17 15:48:34 +00:00
|
|
|
install -m 0755 -vd %{buildroot}%{_bindir}
|
|
|
|
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
|
2024-07-30 11:15:07 +00:00
|
|
|
%endif
|
2020-09-17 15:48:34 +00:00
|
|
|
|
2024-07-30 11:15:07 +00:00
|
|
|
%if %{without bootstrap}
|
2020-09-17 15:48:34 +00:00
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%gocheck
|
|
|
|
%endif
|
2024-07-30 11:15:07 +00:00
|
|
|
%endif
|
2020-09-17 15:48:34 +00:00
|
|
|
|
2024-07-30 11:15:07 +00:00
|
|
|
%if %{without bootstrap}
|
2020-09-17 15:48:34 +00:00
|
|
|
%files
|
|
|
|
%license LICENSE
|
2024-07-30 11:15:07 +00:00
|
|
|
%doc CHANGES.md CONTRIBUTING.md README.md
|
|
|
|
%{_bindir}/gotail
|
|
|
|
%endif
|
2020-09-17 15:48:34 +00:00
|
|
|
|
|
|
|
%gopkgfiles
|
|
|
|
|
|
|
|
%changelog
|
2022-02-25 01:45:04 +00:00
|
|
|
%autochangelog
|