From 7f1e89bafd4d80201fe1d7267af4a9975b36bf4ea2476f12a7ab430bfe5fc78d 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:32:58 +0000 Subject: [PATCH] Accepting request 807640 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/807640 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyVows?expand=0&rev=7 --- python-pyVows.changes | 5 +++++ python-pyVows.spec | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/python-pyVows.changes b/python-pyVows.changes index 50c8473..cd55765 100644 --- a/python-pyVows.changes +++ b/python-pyVows.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 20 07:26:56 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Wed Mar 11 05:04:44 UTC 2020 - Steve Kowalik diff --git a/python-pyVows.spec b/python-pyVows.spec index 610ef33..ee87134 100644 --- a/python-pyVows.spec +++ b/python-pyVows.spec @@ -35,6 +35,8 @@ BuildRequires: python-rpm-macros Requires: python-Unidecode Requires: python-gevent >= 1.2.2 Requires: python-preggy >= 1.3.0 +Requires(post): update-alternatives +Requires(postun): update-alternatives Recommends: python-colorama >= 0.3.7 BuildArch: noarch %python_subpackages @@ -53,6 +55,7 @@ export LANG="en_US.UTF-8" %install export LANG="en_US.UTF-8" %python_install +%python_clone -a %{buildroot}%{_bindir}/pyvows %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -61,8 +64,14 @@ export PYTHONPATH=. export PATH=%{buildroot}%{_bindir}:$PATH %python_exec pyvows/cli.py -x tests/ +%post +%python_install_alternative pyvows + +%postun +%python_uninstall_alternative pyvows + %files %{python_files} -%python3_only %{_bindir}/pyvows +%python_alternative %{_bindir}/pyvows %{python_sitelib}/* %changelog