# Generated by go2rpm 1 %bcond_without check # https://github.com/rethinkdb/rethinkdb-go %global goipath gopkg.in/rethinkdb/rethinkdb-go.v6 %global forgeurl https://github.com/rethinkdb/rethinkdb-go Version: 6.2.1 %gometa %global common_description %{expand: Go language driver for RethinkDB.} %global golicenses LICENSE %global godocs CHANGELOG.md README.md Name: %{goname} Release: %autorelease Summary: Go language driver for RethinkDB # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} # Remove in F43 Provides: golang-gopkg-rethinkdb-6 = %{version}-%{release} Obsoletes: golang-gopkg-rethinkdb-6 < 6.2.1-8 %global godevelheader %{expand: Provides: golang-gopkg-rethinkdb-6-devel = %{version}-%{release} Obsoletes: golang-gopkg-rethinkdb-6-devel < 6.2.1-8} BuildRequires: golang(github.com/cenkalti/backoff/v4) BuildRequires: golang(github.com/golang/protobuf/proto) BuildRequires: golang(github.com/hailocab/go-hostpool) BuildRequires: golang(github.com/opentracing/opentracing-go) BuildRequires: golang(github.com/opentracing/opentracing-go/ext) BuildRequires: golang(github.com/opentracing/opentracing-go/log) BuildRequires: golang(github.com/sirupsen/logrus) BuildRequires: golang(github.com/stretchr/testify/assert) BuildRequires: golang(github.com/stretchr/testify/suite) BuildRequires: golang(golang.org/x/crypto/pbkdf2) BuildRequires: golang(golang.org/x/net/context) BuildRequires: golang(gopkg.in/check.v1) %if %{with check} # Tests BuildRequires: golang(github.com/opentracing/opentracing-go/mocktracer) BuildRequires: golang(github.com/stretchr/testify/mock) %endif %description %{common_description} %gopkg %prep %goprep sed -i 's|gopkg.in/cenkalti/backoff.v2|github.com/cenkalti/backoff/v4|' $(find . -iname "*.go" -type f) %install %gopkginstall %if %{with check} %check # internal/integration: needs network %gocheck -t internal/integration %endif %gopkgfiles %changelog %autochangelog