From cdd845f23ff7e2f9b26837f7ac8c4265b8ec96274b1730df7f3314891fb57b78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 7 Jul 2025 09:26:57 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coverage?expand=0&rev=141 --- python-coverage.spec | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/python-coverage.spec b/python-coverage.spec index 1adc00c..4311c27 100644 --- a/python-coverage.spec +++ b/python-coverage.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives %{?sle15_python_module_pythons} Name: python-coverage Version: 7.7.1 @@ -25,16 +26,16 @@ License: Apache-2.0 URL: https://github.com/nedbat/coveragepy Source: https://files.pythonhosted.org/packages/source/c/coverage/coverage-%{version}.tar.gz # PATCH-FIX-UPSTREAM https://github.com/nedbat/coveragepy/commit/ba685fb8d06a2052c4916749539ef501b8080804 build: setuptools 77 doesn't like license classifiers. -Patch: setuptools77.patch +Patch0: setuptools77.patch BuildRequires: %{python_module devel >= 3.9} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python -Requires(post): update-alternatives -Requires(postun): update-alternatives # coverage[toml] Recommends: python-tomli # SECTION test requirements @@ -107,11 +108,8 @@ donttest+=" or test_report_wildcard or test_run_omit_vs_report_omit" %pytest_arch -n auto --no-flaky-report -k "$donttest" -rp ||: %pytest_arch -n auto --no-flaky-report -k "not ($donttest)" -%post -%python_install_alternative coverage - -%postun -%python_uninstall_alternative coverage +%pre +%python_libalternatives_reset_alternative coverage %files %{python_files} %license LICENSE.txt