# Generated by go2rpm 1.6.0
%bcond_without check

# https://github.com/go-task/task
%global goipath         github.com/go-task/task
Version:                3.14.0

%gometa

%global common_description %{expand:
A task runner / simpler Make alternative written in Go.}

%global golicenses      LICENSE
%global godocs          docs CHANGELOG.md README.md

Name:           %{goname}
Release:        3%{?dist}
Summary:        A task runner / simpler Make alternative written in Go

License:        MIT
URL:            %{gourl}
Source0:        %{gosource}

%description
%{common_description}

%gopkg
%package -n go-task 
Summary: Provides the go-task task-runner binary 
%description -n go-task %{common_description}


%package doc
Summary: Extended documentation for %{name}
%description doc
%{common_description}
 .
 This package contains extended documentation for go-task.


%prep
%goprep

%generate_buildrequires
%go_generate_buildrequires

%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/task %{buildroot}%{_bindir}/go-task

%if %{with check}
%check
%gocheck
%endif

%files doc
%license LICENSE
%doc docs

%files -n go-task
%license LICENSE
%doc CHANGELOG.md README.md
%{_bindir}/*

%gopkgfiles

%changelog
* Tue Jul 19 2022 Maxwell G <gotmax@e.email> - 3.14.0-3
- Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in
  golang

* Sat Jul 09 2022 Maxwell G <gotmax@e.email> - 3.14.0-2
- Rebuild for CVE-2022-{24675,28327,29526 in golang}

* Sat Jul 09 2022 Mark E. Fuller <mark.e.fuller@gmx.de> - 3.14.0-1
- Update to v3.14.0 (close rhbz#2105612)
- Reenable tests on recommendation of upstream

* Wed Jun 15 2022 Mark E. Fuller <mark.e.fuller@gmx.de> - 3.13.0-1
- Update to v3.13.0
- Disable tests on recommendation of upstream

* Fri Jun 03 2022 Mark E. Fuller <mark.e.fuller@gmx.de> - 3.12.1-1
- Initial package