## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.6.0 %bcond_without check # https://github.com/spf13/cast %global goipath github.com/spf13/cast Version: 1.4.1 %gometa %global common_description %{expand: Cast is a library to convert between different go types in a consistent and easy way. Cast provides simple functions to easily convert a number to a string, an interface into a bool, etc. Cast does this intelligently when an obvious conversion is possible. It doesn’t make any attempts to guess what you meant, for example you can only convert a string to an int when it is a string representation of an int such as “8”. Cast was developed for use in Hugo, a website engine which uses YAML, TOML or JSON for meta data.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: %autorelease Summary: Safe and easy casting from one type to another in Go License: MIT URL: %{gourl} Source0: %{gosource} %if %{with check} # Tests BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(github.com/stretchr/testify/require) %endif %description %{common_description} %gopkg %prep %goprep %install %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog * Thu Jul 21 2022 Fedora Release Engineering 1.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Feb 03 2022 Robert-André Mauchin 1.4.1-1 - Update to 1.4.1 Close: rhbz#1986390 * Thu Jan 20 2022 Fedora Release Engineering - 1.3.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.3.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 1.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Feb 17 2020 Elliott Sales de Andrade - 1.3.1-1 - Update to latest version * Wed Jan 29 2020 Fedora Release Engineering - 1.3.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 1.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Apr 26 14:40:33 CEST 2019 Robert-André Mauchin - 1.3.0-3 - Update to new macros * Fri Feb 01 2019 Fedora Release Engineering - 1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jan 18 2019 Elliott Sales de Andrade - 1.3.0-1 - Update to latest tagged release * Tue Oct 23 2018 Nicolas Mailhot - 0-0.14.20160730gite31f36f - redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias - https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/ * Fri Jul 13 2018 Fedora Release Engineering - 0-0.13.20160730gite31f36f - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Feb 27 2018 Jan Chaloupka - 0-0.12.20160730gite31f36f - Autogenerate some parts using the new macros * Wed Feb 07 2018 Fedora Release Engineering - 0-0.11.gite31f36f - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Aug 02 2017 Fedora Release Engineering - 0-0.10.gite31f36f - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0-0.9.gite31f36f - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Mar 06 2017 Jan Chaloupka - 0-0.8.gite31f36f - Use the standard weather import path prefix related: #1413617 * Fri Feb 10 2017 Fedora Release Engineering - 0-0.7.gite31f36f - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Jan 16 2017 Jan Chaloupka - 0-0.6.gite31f36f - Bump to upstream e31f36ffc91a2ba9ddb72a4b6a607ff9b3d3cb63 related: #1413617 * Mon Jan 16 2017 Jan Chaloupka - 0-0.5.git4d07383 - Polish the spec file resolves: #1413617 * Thu Jul 21 2016 Fedora Release Engineering - 0-0.4.git4d07383 - https://fedoraproject.org/wiki/Changes/golang1.7 * Mon Feb 22 2016 Fedora Release Engineering - 0-0.3.git4d07383 - https://fedoraproject.org/wiki/Changes/golang1.6 * Wed Feb 03 2016 Fedora Release Engineering - 0-0.2.git4d07383 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Oct 08 2015 jchaloup - 0-0.1.git4d07383 - First package for Fedora resolves: #1270063