File golang-google-golangorg-cloud.spec of Package golang-google-golangorg-cloud

#
# spec file for package golang-google-golangorg-cloud
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           golang-google-golangorg-cloud
Version:        0.0.0+git20150709.87a8821
Release:        0
Summary:        Go packages for Google Cloud Platform services
License:        Apache-2.0
Group:          Development/Languages/Other
Url:            https://code.googlesource.com/gocloud
Source:         gocloud-%{version}.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  golang-packaging
BuildRequires:	golang(golang.org/x/net)
BuildRequires:	golang(google.golang.org/api)
BuildRequires:	golang(github.com/golang/protobuf)
BuildRequires:	xz
Provides:	go-gocloud = %{version}
Obsoletes:	go-gocloud < %{version}
%{go_provides}

%description
Go packages for Google Cloud Platform services. Supported APIs include:

Google Cloud Datastore
Google Cloud Storage
Google Cloud Pub/Sub
Google Cloud Container Engine

%gosrc_package

%prep
%setup -q -n gocloud-%{version}
# fix for cycle dependency on golang.org/x/oauth2 and google.golang.org/grpc
rm -rf examples bigtable option.go
rm -rf internal/testutil
find . -name "*_test.go" -delete

%build
%goprep google.golang.org/cloud
%gobuild ...

%install
%goinstall
%gosrc

%files
%defattr(-,root,root,-)
%doc AUTHORS CONTRIBUTING.md CONTRIBUTORS LICENSE README.md
%{go_contribdir}/*

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

%changelog