From eb4fda50cc4e4c1366bd16a1d8953218109f74204bfaa0d5067fe4f6263e39d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 9 Jun 2025 15:09:50 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py-vapid?expand=0&rev=10 --- python-py-vapid.changes | 5 +++++ python-py-vapid.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/python-py-vapid.changes b/python-py-vapid.changes index 1384b77..c727714 100644 --- a/python-py-vapid.changes +++ b/python-py-vapid.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 9 15:09:38 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Tue Jun 3 12:53:20 UTC 2025 - Markéta Machová diff --git a/python-py-vapid.spec b/python-py-vapid.spec index 9fd0448..47f931a 100644 --- a/python-py-vapid.spec +++ b/python-py-vapid.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-py-vapid Version: 1.9.0 Release: 0 @@ -26,11 +27,11 @@ Source: https://files.pythonhosted.org/packages/source/p/py-vapid/py-vap BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-cryptography >= 2.5 -Requires(post): alts -Requires(postun): alts BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module cryptography >= 2.5} @@ -56,11 +57,8 @@ sed -i 's/from mock import/from unittest.mock import/' py_vapid/tests/test_vapid %check %pytest -%post -%python_install_alternative vapid - -%postun -%python_uninstall_alternative vapid +%pre +%python_libalternatives_reset_alternative vapid %files %{python_files} %doc README.md README.rst