2016-10-18 17:19:46 +00:00
|
|
|
#
|
2016-10-18 17:26:41 +00:00
|
|
|
# spec file for package python-google-api-python-client
|
2016-10-18 17:19:46 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2016-10-18 17:26:41 +00:00
|
|
|
Name: python-google-api-python-client
|
2016-10-18 17:19:46 +00:00
|
|
|
Version: 1.5.4
|
|
|
|
Release: 0
|
|
|
|
Summary: Google APIs Python Client
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
Url: https://github.com/google/google-api-python-client
|
2016-10-18 17:26:41 +00:00
|
|
|
Source0: google-api-python-client-%{version}.tar.gz
|
2016-10-18 17:19:46 +00:00
|
|
|
Patch0: hidePythonDeps.patch
|
|
|
|
Requires: python
|
|
|
|
Requires: python-httplib2 >= 0.8
|
|
|
|
Requires: python-oauth2client >= 1.5.0
|
|
|
|
Requires: python-six >= 1.6.1
|
|
|
|
Requires: python-uritemplate >= 3.0.0
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-mock
|
|
|
|
BuildRequires: python-nose
|
|
|
|
BuildRequires: python-oauth2client
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRequires: python-unittest2
|
|
|
|
BuildRequires: python-uritemplate
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
2016-10-28 17:34:09 +00:00
|
|
|
Requires: python-argparse
|
2016-10-18 17:19:46 +00:00
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%else
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
2016-10-18 17:26:41 +00:00
|
|
|
# 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}
|
|
|
|
|
2016-10-18 17:19:46 +00:00
|
|
|
%description
|
|
|
|
Google APIs Client Library for Python
|
|
|
|
|
|
|
|
%package test
|
2016-11-03 22:51:38 +00:00
|
|
|
Summary: Tests for python-google-api-python-client
|
2016-10-18 17:19:46 +00:00
|
|
|
Group: Development/Libraries/Python
|
2016-10-28 17:54:16 +00:00
|
|
|
PreReq: python-google-api-python-client = %version
|
2016-10-18 17:19:46 +00:00
|
|
|
Requires: python-nose
|
|
|
|
|
|
|
|
%description test
|
|
|
|
Package provides the unit tests for google-api-python-client
|
|
|
|
|
|
|
|
%prep
|
2016-10-18 17:26:41 +00:00
|
|
|
%setup -q -n google-api-python-client-%{version}
|
2016-10-18 17:19:46 +00:00
|
|
|
%patch0
|
|
|
|
|
|
|
|
%build
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
|
|
|
%check
|
|
|
|
nosetests --with-coverage --cover-package=googleapiclient --nocapture --cover-erase --cover-tests --cover-branches --cover-min-percentage=85
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc CHANGELOG LICENSE README.md
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|