14
0

Accepting request 1299082 from devel:languages:python

- migrate to libalternatives
- Update to 2.6.13
  * Added C++ 'ipp' and 'tpp' file extensions

OBS-URL: https://build.opensuse.org/request/show/1299082
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-identify?expand=0&rev=22
This commit is contained in:
2025-08-13 14:29:33 +00:00
committed by Git OBS Bridge
4 changed files with 31 additions and 5 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:234ad1bf7a06a3e44b60d2e9146f5f599b57788589027306baa00677af32947e
size 101966

3
identify-2.6.13.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:93a51afb4721ebbcc46045af64e26b063fd691cfb966b26c21999e028eeeb12e
size 101964

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
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>
- Update to 2.6.13
* Added C++ 'ipp' and 'tpp' file extensions
-------------------------------------------------------------------
Tue Jun 3 07:34:40 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,9 +16,15 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-identify
Version: 2.6.12
Version: 2.6.13
Release: 0
Summary: File identification library for Python
License: MIT
@@ -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