# Generated by go2rpm
%bcond_without check
# https://github.com/patrickmn/go-cache
%global goipath github.com/patrickmn/go-cache
Version: 2.1.0
%gometa
# Remove in F33:
%global godevelheader %{expand:
Obsoletes: golang-github-patrickmn-go-cache-devel < 2.1.0-6
}
%global common_description %{expand:
Go-cache is an in-memory key:value store/cache similar to memcached that is
suitable for applications running on a single machine. Its major advantage is
that, being essentially a thread-safe map[string]interface{} with expiration
times, it doesn't need to serialize or transmit its contents over the network.
Any object can be stored, for a given duration or forever, and the cache can be
safely used by multiple goroutines.
Although Go-cache isn't meant to be used as a persistent datastore, the entire
cache can be saved to and loaded from a file (using c.Items() to retrieve the
items map to serialize, and NewFrom() to create a cache from a deserialized one)
to recover from downtime quickly. (See the docs for NewFrom() for caveats.)}
%global golicenses LICENSE
%global godocs CONTRIBUTORS README.md
Name: %{goname}
Release: 10%{?dist}
Summary: In-memory key:value store/cache library for Go
License: MIT
URL: %{gourl}
Source0: %{gosource}
%description
%{common_description}
%gopkg
%prep
%goprep
%install
%gopkginstall
%if %{with check}
%check
%gocheck
%endif
%gopkgfiles
%changelog
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Tue Jul 09 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.1.0-7
- Add Obsoletes for old name
* Wed May 01 18:42:43 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 2.1.0-6
- Update to new macros
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Oct 06 2018 Robert-André Mauchin <zebob.m@gmail.com> - 2.1.0-4
- Update to new Go packaging
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Sat Oct 07 2017 Ed Marshall <esm@logic.net> - 2.1.0-1
- Update to upstream 2.1.0 release.
* Sat Oct 07 2017 Ed Marshall <esm@logic.net> - 2.0.0-1
- First package for Fedora