File python-google-api-python-client.spec of Package python-google-api-python-client

#
# spec file for package python-google-api-python-client
#
# Copyright (c) 2016 SUSE LINUX 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:           python-google-api-python-client
Version:        1.5.0
Release:        0
Summary:        Google API Client Library for Python
License:        Apache-2.0
Group:          Development/Languages/Python
Url:            http://code.google.com/p/google-api-python-client/
Source:         http://pypi.python.org/packages/source/g/google-api-python-client/google-api-python-client-%{version}.tar.gz
# PATCH-FIX-UPSTREAM pr-201.patch -- see https://github.com/google/google-api-python-client/pull/201
Patch1:         pr-201.patch
BuildRequires:  python-devel
BuildRequires:  python-setuptools
Requires:       python-httplib2 >= 0.8
Requires:       python-oauth2client
Requires:       python-six >= 1.6.1
Requires:       python-uritemplate >= 0.6
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%else
BuildArch:      noarch
%endif

%description
The Google API Client for Python is a client library for
accessing the Plus, Moderator, and many other Google APIs.

%prep
%setup -q -n google-api-python-client-%{version}
%patch1 -p1

%build
CFLAGS="%{optflags}" python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

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

%changelog
openSUSE Build Service is sponsored by