# Generated by go2rpm 1.3
%bcond_with    check

# https://github.com/gadelkareem/cachita
%global goipath         github.com/gadelkareem/cachita
Version:                0.2.1

%gometa

%global common_description %{expand:
Cachita is a golang file and memory cache library.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Release:        1%{?dist}
Summary:        Cachita is a golang file and memory cache library

License:        MIT
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(github.com/mediocregopher/radix/v3)
BuildRequires:  golang(github.com/vmihailenco/msgpack)

%if %{with check}
# Tests
BuildRequires:  golang(github.com/lib/pq)
BuildRequires:  golang(github.com/stretchr/testify/assert)
%endif

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles

%changelog
* Fri Mar 19 05:10:31 UTC 2021 Aleksei Bavshin <alebastr89@gmail.com> - 0.2.1-1
- Initial package