15
0
forked from pool/python-pifpaf

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pifpaf?expand=0&rev=30
This commit is contained in:
2025-06-09 14:45:23 +00:00
committed by Git OBS Bridge
parent 2bb27f261a
commit 02e0b46d7b
2 changed files with 10 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 9 14:45:01 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Tue Jun 3 11:22:03 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -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