From 02e0b46d7b4ca8104a1a30c845b7cbe33f4d4fc5bea24a8113e8c16588488ca7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 9 Jun 2025 14:45:23 +0000 Subject: [PATCH] - Convert to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pifpaf?expand=0&rev=30 --- python-pifpaf.changes | 5 +++++ python-pifpaf.spec | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/python-pifpaf.changes b/python-pifpaf.changes index 1aac3e3..1baf009 100644 --- a/python-pifpaf.changes +++ b/python-pifpaf.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 9 14:45:01 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Tue Jun 3 11:22:03 UTC 2025 - Markéta Machová diff --git a/python-pifpaf.spec b/python-pifpaf.spec index 4d418f4..e9b4cf3 100644 --- a/python-pifpaf.spec +++ b/python-pifpaf.spec @@ -16,6 +16,7 @@ # +%bcond_without libalternatives Name: python-pifpaf Version: 3.1.5 Release: 0 @@ -26,8 +27,10 @@ Source: https://files.pythonhosted.org/packages/source/p/pifpaf/pifpaf-% BuildRequires: %{python_module pbr} BuildRequires: %{python_module pip} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: alts Requires: python-Jinja2 Requires: python-click Requires: python-daiquiri @@ -37,8 +40,6 @@ Requires: python-requests Requires: python-testrepository Requires: python-testtools Requires: python-xattr -Requires(post): alts -Requires(postun): alts BuildArch: noarch %python_subpackages @@ -61,11 +62,8 @@ export LC_ALL=en_US.utf8 %python_clone -a %{buildroot}%{_bindir}/pifpaf %python_expand %fdupes %{buildroot}%{$python_sitelib} -%post -%python_install_alternative pifpaf - -%postun -%python_uninstall_alternative pifpaf +%pre +%python_libalternatives_reset_alternative pifpaf %check # rather integration tests