## START: Set by rpmautospec
## (rpmautospec version 0.3.0)
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
    release_number = 3;
    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.5.0
# Need zookeeper
%bcond_with check

# https://github.com/go-zookeeper/zk
%global goipath         github.com/go-zookeeper/zk
Version:                1.0.2

%gometa

%global common_description %{expand:
Native ZooKeeper client for Go.}

%global golicenses      LICENSE
%global godocs          _examples CONTRIBUTION.md README.md

Name:           %{goname}
Release:        %autorelease
Summary:        Native ZooKeeper client for Go

# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

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

%gopkgfiles

%changelog
* Mon Aug 09 2021 Robert-André Mauchin <zebob.m@gmail.com> 1.0.2-2
- Uncommitted changes

* Mon Aug 09 2021 Robert-André Mauchin <zebob.m@gmail.com> 1.0.2-1
- Initial release