From 53eebbda2c515e4d940404b1a649c823003a4394c76d642a7bfb514179d20175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 28 May 2020 07:33:16 +0000 Subject: [PATCH] Accepting request 809558 from home:pgajdos:python submit OBS-URL: https://build.opensuse.org/request/show/809558 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-asv?expand=0&rev=6 --- python-asv.changes | 5 +++++ python-asv.spec | 24 ++++++++++++++++-------- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/python-asv.changes b/python-asv.changes index 33c056c..aafc967 100644 --- a/python-asv.changes +++ b/python-asv.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 27 09:36:06 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + ------------------------------------------------------------------- Mon Aug 26 05:24:29 UTC 2019 - Jan Engelhardt diff --git a/python-asv.spec b/python-asv.spec index 098b258..6e217b2 100644 --- a/python-asv.spec +++ b/python-asv.spec @@ -1,7 +1,7 @@ # # spec file for package python-asv # -# 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 @@ -24,21 +24,22 @@ Summary: Airspeed Velocity: A Python history benchmarking tool License: BSD-3-Clause AND MIT Group: Development/Languages/Python URL: https://github.com/airspeed-velocity/asv -Source: https://files.pythonhosted.org/packages/6e/94/4521cc0183a5656de9470452ddd2b6170a2d04ba9b18b84c597db09b8b0d/asv-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/a/asv/asv-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: gcc-c++ BuildRequires: python-rpm-macros +Requires: python-six >= 1.4 +Requires(post): update-alternatives +Requires(postun): update-alternatives +Suggests: python-python-hglib >= 1.5 # SECTION test requirements BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module six >= 1.4} BuildRequires: git # /SECTION -BuildRequires: fdupes -BuildRequires: gcc-c++ -Requires: python-six >= 1.4 -Suggests: python-python-hglib >= 1.5 - %python_subpackages %description @@ -59,6 +60,7 @@ export CFLAGS="%{optflags}" %install %python_install +%python_clone -a %{buildroot}%{_bindir}/asv %python_expand %fdupes %{buildroot}%{$python_sitearch} %check @@ -66,10 +68,16 @@ export CFLAGS="%{optflags}" exit 0 # % python_exec setup.py test +%post +%python_install_alternative asv + +%postun +%python_uninstall_alternative asv + %files %{python_files} %doc CHANGES.rst README.rst %license LICENSE.rst -%python3_only %{_bindir}/asv +%python_alternative %{_bindir}/asv %{python_sitearch}/* %changelog