golang-github-nxadm-tail/golang-github-nxadm-tail.spec

78 lines
1.5 KiB
RPMSpec
Raw Permalink Normal View History

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
# https://github.com/nxadm/tail
%global goipath github.com/nxadm/tail
2023-11-08 19:27:05 +00:00
Version: 1.4.11
2024-07-30 11:15:07 +00:00
%gometa -L -f
2023-11-08 19:27:05 +00:00
%global common_description %{expand:
2023-11-08 19:27:05 +00:00
Go package for reading from continuously updated files (tail -f).}
%global golicenses LICENSE
2024-07-30 11:15:07 +00:00
%global godocs CHANGES.md CONTRIBUTING.md README.md
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
License: MIT
URL: %{gourl}
2023-11-08 19:27:05 +00:00
Source: %{gosource}
2023-11-08 19:27:05 +00:00
%description %{common_description}
%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
2024-07-30 11:15:07 +00:00
%if %{without bootstrap}
%build
for cmd in cmd/* ; do
%gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
2024-07-30 11:15:07 +00:00
%endif
%install
%gopkginstall
2024-07-30 11:15:07 +00:00
%if %{without bootstrap}
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
2024-07-30 11:15:07 +00:00
%endif
2024-07-30 11:15:07 +00:00
%if %{without bootstrap}
%if %{with check}
%check
%gocheck
%endif
2024-07-30 11:15:07 +00:00
%endif
2024-07-30 11:15:07 +00:00
%if %{without bootstrap}
%files
%license LICENSE
2024-07-30 11:15:07 +00:00
%doc CHANGES.md CONTRIBUTING.md README.md
%{_bindir}/gotail
%endif
%gopkgfiles
%changelog
2022-02-25 01:45:04 +00:00
%autochangelog