From 1098038e899d3e30e7a0e54d15c77e63fd62690e21714a579e5e6ce9572e4772 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:39 +0000 Subject: [PATCH] Accepting request 807144 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/807144 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tap.py?expand=0&rev=7 --- python-tap.py.changes | 5 +++++ python-tap.py.spec | 16 ++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/python-tap.py.changes b/python-tap.py.changes index 606f64a..9d7cec5 100644 --- a/python-tap.py.changes +++ b/python-tap.py.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 19 08:03:11 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Wed Mar 11 12:59:42 UTC 2020 - pgajdos@suse.com diff --git a/python-tap.py.spec b/python-tap.py.spec index 2bdfdb3..8a5fae9 100644 --- a/python-tap.py.spec +++ b/python-tap.py.spec @@ -31,6 +31,8 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-setuptools +Requires(post): update-alternatives +Requires(postun): update-alternatives Recommends: python-PyYAML Recommends: python-more-itertools BuildArch: noarch @@ -55,17 +57,27 @@ export LANG=en_US.UTF-8 %install export LANG=en_US.UTF-8 %python_install +%python_clone -a %{buildroot}%{_bindir}/tap +%python_clone -a %{buildroot}%{_bindir}/tappy %python_expand %fdupes %{buildroot}%{$python_sitelib} %check export LANG=en_US.UTF-8 %pytest +%post +%python_install_alternative tap +%python_install_alternative tappy + +%postun +%python_uninstall_alternative tap +%python_uninstall_alternative tappy + %files %{python_files} %doc AUTHORS README.md %license LICENSE -%python3_only %{_bindir}/tappy -%python3_only %{_bindir}/tap +%python_alternative %{_bindir}/tappy +%python_alternative %{_bindir}/tap %{python_sitelib}/* %changelog