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

# spec file for package python-google-api-python-client
# Copyright (c) 2018 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

# Test scripts not included in source archive
%bcond_with test

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-google-api-python-client
Version:        1.6.7
Release:        0
Summary:        Google APIs Python Client
License:        Apache-2.0
Group:          Development/Languages/Python
Patch0:         hidePythonDeps.patch
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module httplib2 >= 0.9.2}
BuildRequires:  %{python_module oauth2client >= 1.5.0}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module six >= 1.6.1}
BuildRequires:  %{python_module uritemplate  >= 3.0.0}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
%if %{with test}
# Test requirements
BuildRequires:  %{python_module nose}
# Python 2 test requirements
BuildRequires:  python-mock
BuildRequires:  python-unittest2
Requires:       python-httplib2 >= 0.9.2
Requires:       python-oauth2client >= 1.5.0
Requires:       python-six >= 1.6.1
Requires:       python-uritemplate  >= 3.0.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
# Package renamed in SLE 12, do not remove Provides, Obsolete directives
# until after SLE 12 EOL
Provides:       google-api-python-client = %{version}
Obsoletes:      google-api-python-client < %{version}

Google APIs Client Library for Python

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


%python_expand %fdupes %{buildroot}%{$python_sitelib}

%if %{with test}
%python_expand nosetests-%{$python_bin_suffix}

%files %{python_files}
%license LICENSE