From 860abe633a40a4ec1ae6f0c99b2abb521fd7c8f5c6816c23f9e63a986d7a5014 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Tue, 12 Aug 2025 13:43:38 +0000 Subject: [PATCH 1/2] Accepting request 1299061 from home:glaubitz:branches:devel:languages:python - Update to 2.6.13 * Added C++ 'ipp' and 'tpp' file extensions OBS-URL: https://build.opensuse.org/request/show/1299061 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-identify?expand=0&rev=45 --- identify-2.6.12.tar.gz | 3 --- identify-2.6.13.tar.gz | 3 +++ python-identify.changes | 6 ++++++ python-identify.spec | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) delete mode 100644 identify-2.6.12.tar.gz create mode 100644 identify-2.6.13.tar.gz diff --git a/identify-2.6.12.tar.gz b/identify-2.6.12.tar.gz deleted file mode 100644 index fb8b9e7..0000000 --- a/identify-2.6.12.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:234ad1bf7a06a3e44b60d2e9146f5f599b57788589027306baa00677af32947e -size 101966 diff --git a/identify-2.6.13.tar.gz b/identify-2.6.13.tar.gz new file mode 100644 index 0000000..af4d7f1 --- /dev/null +++ b/identify-2.6.13.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:93a51afb4721ebbcc46045af64e26b063fd691cfb966b26c21999e028eeeb12e +size 101964 diff --git a/python-identify.changes b/python-identify.changes index b67636d..24e88f0 100644 --- a/python-identify.changes +++ b/python-identify.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Aug 12 12:39:47 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 2.6.13 + * Added C++ 'ipp' and 'tpp' file extensions + ------------------------------------------------------------------- Tue Jun 3 07:34:40 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-identify.spec b/python-identify.spec index 4aba6d3..2425e9d 100644 --- a/python-identify.spec +++ b/python-identify.spec @@ -18,7 +18,7 @@ %{?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 From 949cf4b75b6cede7037f9dae0d710c0cef380a2a846093ebcb1ace25235de650 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Tue, 12 Aug 2025 13:49:13 +0000 Subject: [PATCH 2/2] - migrate to libalternatives OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-identify?expand=0&rev=46 --- python-identify.changes | 5 +++++ python-identify.spec | 17 ++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/python-identify.changes b/python-identify.changes index 24e88f0..da87b0e 100644 --- a/python-identify.changes +++ b/python-identify.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Aug 12 13:48:11 UTC 2025 - Nico Krapp + +- migrate to libalternatives + ------------------------------------------------------------------- Tue Aug 12 12:39:47 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-identify.spec b/python-identify.spec index 2425e9d..1e2eabf 100644 --- a/python-identify.spec +++ b/python-identify.spec @@ -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