From 0395b1a258ad35b9db329ed7ed2ff7dfd7ab34022e35ca900734c5cf35c3605f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 27 May 2020 10:07:47 +0000 Subject: [PATCH] Accepting request 809262 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/809262 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-girder-client?expand=0&rev=10 --- python-girder-client.changes | 5 +++++ python-girder-client.spec | 16 ++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/python-girder-client.changes b/python-girder-client.changes index 36078d5..ecb15a5 100644 --- a/python-girder-client.changes +++ b/python-girder-client.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 26 06:34:23 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Mon Feb 10 15:23:06 UTC 2020 - Todd R diff --git a/python-girder-client.spec b/python-girder-client.spec index fd20500..03c67ad 100644 --- a/python-girder-client.spec +++ b/python-girder-client.spec @@ -33,6 +33,8 @@ Requires: python-diskcache Requires: python-requests >= 2.4.2 Requires: python-requests-toolbelt Requires: python-six +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module click >= 6.7} @@ -58,12 +60,22 @@ sed -i -e '/^#!\//, 1d' girder_client/*.py %install %python_install +%python_clone -a %{buildroot}%{_bindir}/girder-client +%python_clone -a %{buildroot}%{_bindir}/girder-cli %python_expand %fdupes %{buildroot}%{$python_sitelib} +%post +%python_install_alternative girder-client +%python_install_alternative girder-cli + +%postun +%python_uninstall_alternative girder-client +%python_uninstall_alternative girder-cli + %files %{python_files} %doc README.rst -%python3_only %{_bindir}/girder-cli -%python3_only %{_bindir}/girder-client +%python_alternative %{_bindir}/girder-cli +%python_alternative %{_bindir}/girder-client %{python_sitelib}/* %changelog