Blob Blame Raw
# Generated by go2rpm
%bcond_without check

# https://github.com/git-time-metric/gtm
%global goipath         github.com/git-time-metric/gtm
Version:                1.3.5

%gometa

%global common_description %{expand:
Simple, seamless, lightweight time tracking for Git.}

%global golicenses      LICENSE
%global godocs          AUTHORS README.md

Name:           git-time-metric
Release:        4%{?dist}
Summary:        Simple, seamless, lightweight time tracking for Git

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

BuildRequires:  git-core
BuildRequires:  golang(github.com/briandowns/spinner)
BuildRequires:  golang(github.com/hako/durafmt)
BuildRequires:  golang(github.com/hashicorp/go-version)
BuildRequires:  golang(github.com/jinzhu/now)
BuildRequires:  golang(github.com/libgit2/git2go)
BuildRequires:  golang(github.com/mattn/go-isatty)
BuildRequires:  golang(github.com/mitchellh/cli)

%description
%{common_description}


%gopkg


%prep
%goprep


%build
%gobuild -o %{gobuilddir}/bin/gtm %{goipath}


%install
%gopkginstall
install -m 0755 -vd                     %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/


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


%files
%doc README.md AUTHORS
%license LICENSE
%{_bindir}/gtm

%gopkgfiles


%changelog
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Wed Jul 10 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.3.5-3
- Update to new Go macros
- Enable 32-bit builds again

* Thu Mar 21 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.3.5-2
- Add git-core BR for testing
- Remove vendored code before build

* Wed Feb 20 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.3.5-1
- First package for Fedora