From 557046a79523a9f8bab42f42058cc68b1bdc9ec9fc1b906d89d4279b7a15d0b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 9 Jun 2025 08:48:21 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-interrogate?expand=0&rev=9 --- python-interrogate.changes | 5 +++++ python-interrogate.spec | 13 ++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/python-interrogate.changes b/python-interrogate.changes index ddae5f4..3a14906 100644 --- a/python-interrogate.changes +++ b/python-interrogate.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 9 08:47:37 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Wed May 28 12:47:45 UTC 2025 - Markéta Machová diff --git a/python-interrogate.spec b/python-interrogate.spec index 6a29866..ea49619 100644 --- a/python-interrogate.spec +++ b/python-interrogate.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-interrogate Version: 1.7.0 Release: 0 @@ -27,15 +28,15 @@ Source: https://files.pythonhosted.org/packages/source/i/interrogate/int BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-attrs Requires: python-click Requires: python-colorama Requires: python-py Requires: python-tabulate -Requires(post): alts -Requires(postun): alts BuildArch: noarch %if 0%{python_version_nodots} < 311 Requires: python-tomli @@ -67,11 +68,9 @@ rm tox.ini %python_clone -a %{buildroot}%{_bindir}/interrogate %python_expand %fdupes %{buildroot}%{$python_sitelib} -%post -%python_install_alternative interrogate - -%postun -%python_uninstall_alternative interrogate +%pre +# removing old update-alternatives entries +%python_libalternatives_reset_alternative interrogate %check %pytest