From 4c0bb683d221bcf05a3ab5e757ae4b4f51b0eaaa2f61a6447866078d1d4bcab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 9 Jun 2025 12:37:34 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ntfy?expand=0&rev=31 --- python-ntfy.changes | 5 +++++ python-ntfy.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/python-ntfy.changes b/python-ntfy.changes index 37b30d9..0e77c0c 100644 --- a/python-ntfy.changes +++ b/python-ntfy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 9 12:37:08 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Mon Jun 2 14:43:25 UTC 2025 - Markéta Machová diff --git a/python-ntfy.spec b/python-ntfy.spec index 9845b7e..c70a053 100644 --- a/python-ntfy.spec +++ b/python-ntfy.spec @@ -17,6 +17,7 @@ # +%bcond_without libalternatives %{?sle15_python_module_pythons} Name: python-ntfy Version: 2.7.0 @@ -42,13 +43,13 @@ BuildRequires: %{python_module requests} BuildRequires: %{python_module ruamel.yaml} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-appdirs Requires: python-requests Requires: python-ruamel.yaml -Requires(post): alts -Requires(postun): alts Suggests: python-dnspython3 Suggests: python-emoji >= 1.6.2 Suggests: python-instapush @@ -87,11 +88,8 @@ Quickstart %check %pytest --ignore 'tests/test_xmpp.py' -k 'not test_xmpp' -%post -%python_install_alternative ntfy - -%postun -%python_uninstall_alternative ntfy +%pre +%python_libalternatives_reset_alternative ntfy %files %{python_files} %doc README.rst