From c624f7fee41aa7fb537b469583b4210a914ccd154d4bc505f7a83e69023ee7ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 9 Jun 2025 12:38:18 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-genfire?expand=0&rev=14 --- python-genfire.changes | 5 +++++ python-genfire.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/python-genfire.changes b/python-genfire.changes index 8cd04c1..fd83365 100644 --- a/python-genfire.changes +++ b/python-genfire.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 9 12:37:51 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Tue May 27 14:01:01 UTC 2025 - Markéta Machová diff --git a/python-genfire.spec b/python-genfire.spec index 0010e8b..4aafc28 100644 --- a/python-genfire.spec +++ b/python-genfire.spec @@ -17,6 +17,7 @@ %define packagename genfire +%bcond_without libalternatives Name: python-genfire Version: 1.1.11 Release: 0 @@ -34,8 +35,10 @@ BuildRequires: %{python_module pyparsing >= 2.2.0} BuildRequires: %{python_module scipy >= 0.19.0} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-Pillow >= 4.1.1 Requires: python-PyQt5 >= 5.5.0 Requires: python-numpy >= 1.12.1 @@ -43,8 +46,6 @@ Requires: python-pyFFTW Requires: python-pyparsing >= 2.2.0 Requires: python-scipy >= 0.19.0 Requires: python-setuptools -Requires(post): alts -Requires(postun): alts BuildArch: noarch %python_subpackages @@ -67,11 +68,8 @@ oriented projection images %check # No test given -%post -%python_install_alternative genfire - -%postun -%python_uninstall_alternative genfire +%pre +%python_libalternatives_reset_alternative genfire %files %{python_files} %doc README.md