de21f56
%global goipath github.com/benbjohnson/clock
de21f56
%global commit  7dc76406b6d3c05b5f71a86293cbcf3c4ea03b19
de21f56
Version:        0
de21f56
de21f56
%gometa
de21f56
de21f56
Name:           %{goname}
de21f56
Release:        0.1%{?dist}
de21f56
Summary:        Go library for mocking time
de21f56
License:        MIT
de21f56
URL:            %{gourl}
de21f56
Source0:        %{gosource}
de21f56
de21f56
# Tests are patched to fix a number of problems ranging from compile
de21f56
# failures with current go, to raciness observed on s390x.
de21f56
# Patch is not sent upstream because the github project is archived.
de21f56
Patch0:         clock_test.patch
de21f56
de21f56
%description
de21f56
%{summary}.
de21f56
de21f56
de21f56
%package devel
de21f56
Summary:       %{summary}
de21f56
BuildArch:     noarch
de21f56
de21f56
%description devel
de21f56
%{summary}.
de21f56
de21f56
This package contains library source intended for building other packages which
de21f56
use import path with %{goipath} prefix.
de21f56
de21f56
de21f56
%prep
de21f56
%forgeautosetup -p1
de21f56
de21f56
de21f56
%install
de21f56
%goinstall
de21f56
de21f56
de21f56
%check
de21f56
%gochecks
de21f56
de21f56
de21f56
%files devel -f devel.file-list
de21f56
%doc README.md
de21f56
%license LICENSE
de21f56
de21f56
de21f56
%changelog
de21f56
* Mon Mar 25 2019 Nathan Scott <nathans@redhat.com> - 0-0.1.20190325git7dc7640
de21f56
- First package for Fedora