From 81820bd659b57606222186a3f8634d05fb1c6b15f3a16deefcc66264fae50dca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 9 Jun 2025 14:26:56 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-patatt?expand=0&rev=20 --- python-patatt.changes | 5 +++++ python-patatt.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/python-patatt.changes b/python-patatt.changes index d099880..432fee8 100644 --- a/python-patatt.changes +++ b/python-patatt.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 9 14:26:21 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Tue Jun 3 09:03:08 UTC 2025 - Markéta Machová diff --git a/python-patatt.spec b/python-patatt.spec index e075618..d8feedf 100644 --- a/python-patatt.spec +++ b/python-patatt.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives %{?sle15_python_module_pythons} Name: python-patatt Version: 0.6.3 @@ -29,9 +30,9 @@ Source2: python-patatt.keyring BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: python-rpm-macros -Requires(post): alts -Requires(postun): alts +Requires: alts BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module PyNaCl} @@ -62,11 +63,8 @@ need this and should simply start signing your tags and commits. # try at least a simple runtime test %python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}" %{buildroot}%{_bindir}/patatt-%{$python_bin_suffix} --version | grep -q %{version} -%post -%{python_install_alternative patatt patatt.5} - -%postun -%python_uninstall_alternative patatt +%pre +%python_libalternatives_reset_alternative patatt %files %{python_files} %doc README.rst