From e98be1798adba0c498e56fed773b2ce3e5b612e759d5db9cba3323e40f3f45fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 19 May 2020 08:52:27 +0000 Subject: [PATCH] Accepting request 807134 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/807134 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphobjinv?expand=0&rev=3 --- python-sphobjinv.changes | 5 +++++ python-sphobjinv.spec | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/python-sphobjinv.changes b/python-sphobjinv.changes index 270854d..c6f178b 100644 --- a/python-sphobjinv.changes +++ b/python-sphobjinv.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 19 08:03:01 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Fri Mar 6 13:37:32 UTC 2020 - pgajdos@suse.com diff --git a/python-sphobjinv.spec b/python-sphobjinv.spec index 841ab62..ff3d20e 100644 --- a/python-sphobjinv.spec +++ b/python-sphobjinv.spec @@ -35,6 +35,8 @@ Requires: python-certifi Requires: python-fuzzywuzzy >= 0.3 Requires: python-jsonschema >= 2.0 Requires: python-setuptools +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module attrs >= 17.4} @@ -55,12 +57,19 @@ Sphinx objects.inv Inspection/Manipulation Tool %install %python_install +%python_clone -a %{buildroot}%{_bindir}/sphobjinv %python_expand %fdupes %{buildroot}%{$python_sitelib} +%post +%python_install_alternative sphobjinv + +%postun +%python_uninstall_alternative sphobjinv + %files %{python_files} %doc CHANGELOG.md README.rst %license LICENSE.txt -%python3_only %{_bindir}/sphobjinv +%python_alternative %{_bindir}/sphobjinv %{python_sitelib}/* %changelog