## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 5; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Generated by go2rpm 1 %bcond_without check # https://github.com/rickb777/date %global goipath github.com/rickb777/date Version: 1.15.3 %gometa %global common_description %{expand: A Go package for working with dates.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: %autorelease Summary: A Go package for working with dates # Upstream license specification: BSD-3-Clause License: BSD URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/rickb777/plural) BuildRequires: golang(golang.org/x/text/language) BuildRequires: golang(golang.org/x/text/message) %if %{with check} # Tests BuildRequires: golang(github.com/onsi/gomega) %endif %description %{common_description} %gopkg %prep %goprep %build for cmd in datetool; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc README.md %{_bindir}/* %gopkgfiles %changelog * Thu Jan 20 2022 Fedora Release Engineering 1.15.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.15.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.15.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Thu Jan 21 21:55:35 CET 2021 Robert-André Mauchin - 1.15.3-1 - Update to 1.15.3 * Wed Oct 14 2020 Robin Lee - 1.14.2-1 - Update to 1.14.2 * Fri Oct 9 2020 Robin Lee - 1.14.1-1 - Update to 1.14.1 * Sun Sep 20 23:13:07 CST 2020 Robin Lee - 1.14.0-1 - Initial package