14
0

- Add patch to not check for oauth appengine which we disable in

openSUSE:
  * oauth-no-appengine.patch

- Fix fdupes call and run tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=4
This commit is contained in:
Tomáš Chvátal
2018-05-08 10:27:28 +00:00
committed by Git OBS Bridge
parent 15a9bfa6a7
commit 66afd5b943
3 changed files with 80 additions and 6 deletions

View File

@@ -23,26 +23,40 @@ Release: 0
Summary: Google Authentication Library
License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/GoogleCloudPlatform/google-auth-library-python
Source: https://pypi.python.org/packages/83/f2/9dc87be31962a58c84e844c1f47d52a4e2811ba2e15253a036be3ae8acd8/google-auth-%{version}.tar.gz
URL: https://github.com/GoogleCloudPlatform/google-auth-library-python
Source: https://files.pythonhosted.org/packages/source/g/google-auth/google-auth-%{version}.tar.gz
Patch0: oauth-no-appengine.patch
BuildRequires: %{python_module Flask}
BuildRequires: %{python_module cachetools}
BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module oauth2client-gce}
BuildRequires: %{python_module oauth2client}
BuildRequires: %{python_module pyasn1-modules}
BuildRequires: %{python_module pyasn1}
BuildRequires: %{python_module pytest-localserver}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module rsa}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six}
BuildRequires: %{python_module urllib3}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Flask
Requires: python-cachetools
Requires: python-cryptography
Requires: python-oauth2client
Requires: python-oauth2client-gce
Requires: python-pyasn1
Requires: python-pyasn1-modules
Requires: python-requests
Requires: python-rsa
Requires: python-setuptools
Requires: python-six
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: python-urllib3
BuildArch: noarch
%python_subpackages
%description
@@ -50,16 +64,21 @@ This library simplifies using Googles various server-to-server authentication
%prep
%setup -q -n google-auth-%{version}
%patch0 -p1
%build
%python_build
%install
%python_install
%fdupes %{buildroot}%{_prefix}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand py.test-%{$python_bin_suffix}
%files %{python_files}
%defattr(-,root,root,-)
%license LICENSE
%doc README.rst
%{python_sitelib}/*
%changelog