# Generated by go2rpm %bcond_without check # https://github.com/go-mgo/mgo %global goipath gopkg.in/mgo.v2 %global forgeurl https://github.com/go-mgo/mgo Version: r2016.08.01 %global commit a6b53ec6cb22a3699387a57a161566f9402ee85b %gometa -f %global common_description %{expand: The MongoDB driver for Go.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: %autorelease Summary: MongoDB driver for Go # Upstream license specification: BSD-2-Clause License: BSD URL: %{gourl} Source0: %{gosource} # Remove in F43 Provides: golang-gopkg-mgo-2 = %{version}-%{release} Obsoletes: golang-gopkg-mgo-2 < r2016.08.01-14.20200805gita6b53ec %global godevelheader %{expand: Provides: golang-gopkg-mgo-2-devel = %{version}-%{release} Obsoletes: golang-gopkg-mgo-2-devel < r2016.08.01-14.20200805gita6b53ec} BuildRequires: golang(gopkg.in/tomb.v2) BuildRequires: cyrus-sasl-devel %if %{with check} # Tests BuildRequires: golang(gopkg.in/check.v1) BuildRequires: golang(gopkg.in/yaml.v2) %endif %description %{common_description} %gopkg %prep %goprep %install %gopkginstall %if %{with check} %check # .: needs network # txn: needs mongodb %gocheck -d . -d dbtest -d txn %endif %gopkgfiles %changelog %autochangelog