Blob Blame History Raw
# Generated by go2rpm
%bcond_without check

# https://github.com/benbjohnson/clock
%global goipath         github.com/benbjohnson/clock
%global commit          7dc76406b6d3c05b5f71a86293cbcf3c4ea03b19

%gometa

%global common_description %{expand:
Clock is a small library for mocking time in Go. It provides an interface around
the standard library's time package so that the application can use the realtime
clock while tests can use the mock clock.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Version:        0
Release:        0.3%{?dist}
Summary:        Small library for mocking time in Go

License:        MIT
URL:            %{gourl}
Source0:        %{gosource}
# Tests are patched to fix a number of problems ranging from compile
# failures with current go, to raciness observed on s390x.
# Patch is not sent upstream because the github project is archived.
Patch0:         clock_test.patch

%description
%{common_description}

%gopkg

%prep
%goprep
%patch0 -p1

%install
%gopkginstall

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

%gopkgfiles

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

* Sun Jun 02 15:10:32 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.2.20190325git7dc7640
- Update to new macros

* Mon Mar 25 2019 Nathan Scott <nathans@redhat.com> - 0-0.1.20190325git7dc7640
- First package for Fedora