From c61309095672a6414f8b26cdc64c2ec1911236ff0ae1a6f449cfd524deb3bc41 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:53:35 +0000 Subject: [PATCH] Accepting request 807143 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/807143 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-tabulate?expand=0&rev=16 --- python-tabulate.changes | 5 +++++ python-tabulate.spec | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/python-tabulate.changes b/python-tabulate.changes index a1501f8..801a74b 100644 --- a/python-tabulate.changes +++ b/python-tabulate.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 19 08:03:11 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Sat Apr 25 16:25:20 UTC 2020 - Arun Persaud diff --git a/python-tabulate.spec b/python-tabulate.spec index 40d5ea4..01d94b7 100644 --- a/python-tabulate.spec +++ b/python-tabulate.spec @@ -31,6 +31,8 @@ BuildRequires: %{python_module wcwidth} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-setuptools +Requires(post): update-alternatives +Requires(postun): update-alternatives Recommends: python-wcwidth Suggests: python-pandas BuildArch: noarch @@ -57,15 +59,22 @@ The main use cases of the library are: %install %python_install +%python_clone -a %{buildroot}%{_bindir}/tabulate %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %python_exec setup.py test +%post +%python_install_alternative tabulate + +%postun +%python_uninstall_alternative tabulate + %files %{python_files} %license LICENSE %doc README.md -%python3_only %{_bindir}/tabulate +%python_alternative %{_bindir}/tabulate %{python_sitelib}/tabulate.* %{python_sitelib}/tabulate-%{version}-py*.egg-info %pycache_only %{python_sitelib}/__pycache__