14
0
2025-08-12 13:49:13 +00:00
committed by Git OBS Bridge
parent 860abe633a
commit 949cf4b75b
2 changed files with 21 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Aug 12 13:48:11 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- migrate to libalternatives
-------------------------------------------------------------------
Tue Aug 12 12:39:47 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-identify
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,12 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-identify
Version: 2.6.13
@@ -33,8 +39,13 @@ BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with libalternatives}
Requires: alts
BuildRequires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
Recommends: python-editdistance
BuildArch: noarch
%python_subpackages
@@ -57,6 +68,10 @@ File identification library for Python, including license file SPDX identifier.
%check
%pytest
%pre
# removing old update-alternatives entries
%python_libalternatives_reset_alternative identify-cli
%post
%python_install_alternative identify-cli