diff --git a/python-google-auth-oauthlib.changes b/python-google-auth-oauthlib.changes index b236cfa..2c1c3e6 100644 --- a/python-google-auth-oauthlib.changes +++ b/python-google-auth-oauthlib.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 26 06:34:28 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Mon Apr 20 11:55:01 UTC 2020 - Tomáš Chvátal diff --git a/python-google-auth-oauthlib.spec b/python-google-auth-oauthlib.spec index 3a1b9ba..506a99d 100644 --- a/python-google-auth-oauthlib.spec +++ b/python-google-auth-oauthlib.spec @@ -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