# Generated by go2rpm
%bcond_without check
%bcond_with bootstrap
# https://github.com/nats-io/nats.go
%global goipath github.com/nats-io/nats.go
Version: 1.7.2
%gometa
%global goaltipaths github.com/nats-io/go-nats
%global common_description %{expand:
A Go client for the NATS messaging system.}
%global golicenses LICENSE
%global godocs examples GOVERNANCE.md MAINTAINERS.md TODO.md\\\
README.md
Name: %{goname}
Release: 3%{?dist}
Summary: Golang client for NATS, the cloud native messaging system
# Upstream license specification: Apache-2.0
License: ASL 2.0
URL: %{gourl}
Source0: %{gosource}
BuildRequires: golang(github.com/golang/protobuf/proto)
BuildRequires: golang(github.com/nats-io/nkeys)
BuildRequires: golang(github.com/nats-io/nuid)
%if %{without bootstrap}
%if %{with check}
# Tests
BuildRequires: golang(github.com/nats-io/gnatsd/server)
BuildRequires: golang(github.com/nats-io/gnatsd/test)
%endif
%endif
%description
%{common_description}
%gopkg
%prep
%goprep
find . -type f -name "*.go" -exec sed -i "s|github.com/nats-io/go-nats|github.com/nats-io/nats.go|" "{}" +;
%install
%gopkginstall
%if %{without bootstrap}
%if %{with check}
%check
%gocheck -d test
%endif
%endif
%gopkgfiles
%changelog
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Tue May 14 00:43:10 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 1.7.2-1
- Initial package