14
0

Accepting request 1284222 from devel:languages:python

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1284222
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-patiencediff?expand=0&rev=13
This commit is contained in:
2025-06-10 07:08:11 +00:00
committed by Git OBS Bridge
2 changed files with 10 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jun 9 14:28:12 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Tue Jun 3 09:13:27 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -16,6 +16,7 @@
#
%bcond_without libalternatives
Name: python-patiencediff
Version: 0.2.15
Release: 0
@@ -29,10 +30,10 @@ BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): alts
Requires(preun): alts
Requires: alts
%python_subpackages
%description
@@ -50,11 +51,8 @@ export CFLAGS="%{optflags}"
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%python_clone -a %{buildroot}%{_bindir}/patiencediff
%post
%python_install_alternative patiencediff
%postun
%python_uninstall_alternative patiencediff
%pre
%python_libalternatives_reset_alternative patiencediff
%check
%pytest