From d0bee0512f1186e33451b97864c113df5ff4d019072c1bf3188ac52101f6d39d 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:33:43 +0000 Subject: [PATCH] Accepting request 807635 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/807635 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-coveralls?expand=0&rev=12 --- python-python-coveralls.changes | 5 +++++ python-python-coveralls.spec | 13 +++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/python-python-coveralls.changes b/python-python-coveralls.changes index 6cbbb0d..2a618cf 100644 --- a/python-python-coveralls.changes +++ b/python-python-coveralls.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 20 07:26:50 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Tue Sep 10 11:30:14 UTC 2019 - Tomáš Chvátal diff --git a/python-python-coveralls.spec b/python-python-coveralls.spec index 19cbf66..85d0bc0 100644 --- a/python-python-coveralls.spec +++ b/python-python-coveralls.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-coveralls # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -34,6 +34,8 @@ Requires: python-PyYAML Requires: python-coverage >= 4.4 Requires: python-requests Requires: python-six +Requires(post): update-alternatives +Requires(postun): update-alternatives Conflicts: python-coveralls BuildArch: noarch # SECTION test requirements @@ -63,6 +65,7 @@ tar -xvzf %{SOURCE1} %install %python_install +%python_clone -a %{buildroot}%{_bindir}/coveralls %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -70,10 +73,16 @@ pushd python-coveralls-example %pytest example/tests.py --cov=example popd +%post +%python_install_alternative coveralls + +%postun +%python_uninstall_alternative coveralls + %files %{python_files} %doc README.rst %license LICENSE -%python3_only %{_bindir}/coveralls +%python_alternative %{_bindir}/coveralls %{python_sitelib}/* %changelog