forked from pool/python-google-auth-oauthlib
Accepting request 809267 from home:pgajdos:python
submit OBS-URL: https://build.opensuse.org/request/show/809267 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth-oauthlib?expand=0&rev=9
This commit is contained in:
committed by
Git OBS Bridge
parent
70ecdf4037
commit
dd8c4bdb26
@@ -31,6 +31,8 @@ BuildRequires: python-rpm-macros
|
||||
Requires: python-google-auth
|
||||
Requires: python-requests-oauthlib >= 0.7.0
|
||||
Requires: python-six
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Recommends: python-click
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
@@ -62,15 +64,22 @@ rm -rf tests/*.pyc
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/google-oauthlib-tool
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%post
|
||||
%python_install_alternative google-oauthlib-tool
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative google-oauthlib-tool
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%python3_only %{_bindir}/google-oauthlib-tool
|
||||
%python_alternative %{_bindir}/google-oauthlib-tool
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user