LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File go-mgo.spec of Package go-mgo (Project devel:languages:go)

#
# Copyright (c), 2011, Sascha Peilicke <saschpe@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

Name:           go-mgo
Version:        0.0.0+bzr20120304
Release:        0
Summary:        Rich MongoDB driver for Go
Group:          Development/Languages/Other
License:        BSD3c
URL:            http://labix.org/mgo
Source0:        mgo-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  go-devel go-gocheck
%if 0%{?suse_version}
Suggests:       mongodb
%endif
%if 0%{?suse_version} >= 1100
Recommends:     go-mgo-doc
%endif
%{go_provides}
%{go_requires}
Provides:       go-gobson = %{version} go-gobson-devel = %{version} go-gobson-devel-static = %{version}
Obsoletes:      go-gobson <= 0.0.0+bzr20111218 go-gobson-devel <= 0.0.0+bzr20111218 go-gobson-devel-static <= 0.0.0+bzr20111218


%description
mgo (pronounced as mango) is a MongoDB driver for the Go language that
implements a rich and well tested selection of features under a very simple
API following standard Go idioms.

%package doc
Summary:        API documenation
Group:          Documentation/Other
Requires:       %{name} = %{version}

%description doc
API, examples and documentation.

%prep
%setup -q -n mgo

%build
%goprep launchpad.net/mgo
%gobuild ...

%install
%{go_disable_brp_strip_static_archive}

%goinstall
%godoc
#%%gotest launchpad.net/mgo

%files
%defattr(-,root,root,-)
%doc LICENSE
%{go_contribdir}/*

%files doc
%defattr(-,root,root,-)
%{go_contribsrcdir}/*

%changelog