From 1b3eb3cd20fe4288e062d619f81cfa19a61affc9c20b2fa53450999af6c129b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 9 Jun 2025 13:26:58 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exrex?expand=0&rev=22 --- python-exrex.changes | 5 +++++ python-exrex.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/python-exrex.changes b/python-exrex.changes index cf189de..6be44f1 100644 --- a/python-exrex.changes +++ b/python-exrex.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 9 13:26:33 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Tue May 27 10:23:28 UTC 2025 - Markéta Machová diff --git a/python-exrex.spec b/python-exrex.spec index 576789d..dc70e77 100644 --- a/python-exrex.spec +++ b/python-exrex.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-exrex Version: 0.11.0 Release: 0 @@ -29,11 +30,11 @@ Source: https://github.com/asciimoo/exrex/archive/v%{version}.tar.gz#/ex BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-setuptools -Requires(post): alts -Requires(postun): alts BuildArch: noarch %python_subpackages @@ -57,11 +58,8 @@ rm %{buildroot}%{_bindir}/exrex.py %{python_expand # comment LANG=C.UTF-8 PYTHONPATH=%{buildroot}%{$python_sitelib} $python ./tests.py} -%post -%python_install_alternative exrex - -%postun -%python_uninstall_alternative exrex +%pre +%python_libalternatives_reset_alternative exrex %files %{python_files} %{python_sitelib}/exrex*