From 0ab02aefa0f1fbc5235283d2623d9d69197a1e2e6c6b9fedce63b2f521d511d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 20 May 2020 11:28:54 +0000 Subject: [PATCH] Accepting request 807609 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/807609 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-pycha?expand=0&rev=7 --- python-pycha.changes | 5 +++++ python-pycha.spec | 15 ++++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/python-pycha.changes b/python-pycha.changes index d3bc279..fb8a16a 100644 --- a/python-pycha.changes +++ b/python-pycha.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 20 07:26:19 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Thu Jan 30 15:16:25 UTC 2020 - Todd R diff --git a/python-pycha.spec b/python-pycha.spec index 9c95fcc..7014267 100644 --- a/python-pycha.spec +++ b/python-pycha.spec @@ -23,18 +23,20 @@ Release: 0 Summary: A library for making charts with Python License: LGPL-3.0-or-later Group: Development/Languages/Python -URL: http://bitbucket.org/lgs/pycha/ +URL: https://bitbucket.org/lgs/pycha/ Source: https://files.pythonhosted.org/packages/source/p/pycha/pycha-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-cairocffi Requires: python-six +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module cairocffi} BuildRequires: %{python_module six} # /SECTION -BuildArch: noarch %python_subpackages %description @@ -52,12 +54,19 @@ web programming. Pycha was developed for the server side. %install %python_install +%python_clone -a %{buildroot}%{_bindir}/chavier %python_expand %fdupes %{buildroot}%{$python_sitelib} +%post +%python_install_alternative chavier + +%postun +%python_uninstall_alternative chavier + %files %{python_files} %doc README.txt CHANGES.txt AUTHORS %license COPYING %{python_sitelib}/* -%python3_only %{_bindir}/chavier +%python_alternative %{_bindir}/chavier %changelog