Blame golang-github-benbjohnson-clock.spec

ac7f61
# Generated by go2rpm
ac7f61
%bcond_without check
ac7f61
ac7f61
# https://github.com/benbjohnson/clock
ac7f61
%global goipath         github.com/benbjohnson/clock
ac7f61
%global commit          7dc76406b6d3c05b5f71a86293cbcf3c4ea03b19
de21f5
de21f5
%gometa
de21f5
ac7f61
%global common_description %{expand:
ac7f61
Clock is a small library for mocking time in Go. It provides an interface around
ac7f61
the standard library's time package so that the application can use the realtime
ac7f61
clock while tests can use the mock clock.}
ac7f61
ac7f61
%global golicenses      LICENSE
ac7f61
%global godocs          README.md
ac7f61
de21f5
Name:           %{goname}
ac7f61
Version:        0
61b421
Release:        0.3%{?dist}
ac7f61
Summary:        Small library for mocking time in Go
ac7f61
de21f5
License:        MIT
de21f5
URL:            %{gourl}
de21f5
Source0:        %{gosource}
de21f5
# Tests are patched to fix a number of problems ranging from compile
de21f5
# failures with current go, to raciness observed on s390x.
de21f5
# Patch is not sent upstream because the github project is archived.
de21f5
Patch0:         clock_test.patch
de21f5
de21f5
%description
ac7f61
%{common_description}
de21f5
ac7f61
%gopkg
de21f5
de21f5
%prep
ac7f61
%goprep
ac7f61
%patch0 -p1
de21f5
de21f5
%install
ac7f61
%gopkginstall
de21f5
ac7f61
%if %{with check}
de21f5
%check
ac7f61
%gocheck
ac7f61
%endif
de21f5
ac7f61
%gopkgfiles
de21f5
de21f5
%changelog
61b421
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.3
61b421
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
61b421
ac7f61
* Sun Jun 02 15:10:32 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.2.20190325git7dc7640
ac7f61
- Update to new macros
ac7f61
de21f5
* Mon Mar 25 2019 Nathan Scott <nathans@redhat.com> - 0-0.1.20190325git7dc7640
de21f5
- First package for Fedora