From 8de47a3c60d941a0bdf1a499c9a98afbdf9c019b005ccfbe420dbf41f9b84a96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 16 Jun 2025 12:09:35 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-abimap?expand=0&rev=16 --- python-abimap.changes | 5 +++++ python-abimap.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/python-abimap.changes b/python-abimap.changes index 7e87670..dbf0764 100644 --- a/python-abimap.changes +++ b/python-abimap.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 16 12:09:03 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Wed Jan 22 00:59:09 UTC 2025 - Steve Kowalik diff --git a/python-abimap.spec b/python-abimap.spec index c50cae7..feee442 100644 --- a/python-abimap.spec +++ b/python-abimap.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-abimap Version: 0.3.2 Release: 0 @@ -27,11 +28,11 @@ BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module sphinx_rtd_theme} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-setuptools -Requires(post): update-alternatives -Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module PyYAML} @@ -81,11 +82,8 @@ install -m 0644 man/abimap.1 %{buildroot}%{_mandir}/man1/ %make_build -j1 -C tests ABIMAP_NAME_VERSION="abimap-%{version}" ABIMAP_VERSION="%{version}" %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib}:${PWD}/tests py.test-%{$python_version} -vv tests -k 'not test_main' -%post -%python_install_alternative abimap abimap.1 - -%postun -%python_uninstall_alternative abimap +%pre +%python_libalternatives_reset_alternative abimap %files %{python_files} %doc AUTHORS.rst CHANGELOG.rst README.rst