15
0
forked from pool/python-asv

Accepting request 1286132 from devel:languages:python

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1286132
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-asv?expand=0&rev=12
This commit is contained in:
2025-06-17 16:21:44 +00:00
committed by Git OBS Bridge
2 changed files with 13 additions and 10 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 16 14:21:00 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Tue Oct 15 12:55:21 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-asv
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,7 @@
#
%bcond_without libalternatives
%{?sle15_python_module_pythons}
Name: python-asv
Version: 0.6.4
@@ -30,22 +31,22 @@ BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: python-rpm-macros
Requires: alts
Requires: python-PyYAML
Requires: python-Pympler
Requires: python-asv-runner >= 0.2.1
Requires: python-build
Requires: python-json5
Requires: python-tabulate
Requires: python-virtualenv
Suggests: python-python-hglib >= 1.5
%if %{python_version_nodots} < 311
Requires: python-tomli
%endif
Requires: python-virtualenv
Requires(post): update-alternatives
Requires(postun): update-alternatives
Suggests: python-python-hglib >= 1.5
# SECTION test requirements
BuildRequires: %{python_module json5}
BuildRequires: %{python_module pip}
@@ -82,11 +83,8 @@ export CFLAGS="%{optflags}"
exit 0
# % pytest
%post
%python_install_alternative asv
%postun
%python_uninstall_alternative asv
%pre
%python_libalternatives_reset_alternative asv
%files %{python_files}
%doc CHANGES.rst README.rst