14
0

Accepting request 1291722 from devel:languages:python

- Convert to libalternatives

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

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jul 10 14:29:55 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Oct 10 14:30:38 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com> Thu Oct 10 14:30:38 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-jsondiff # spec file for package python-jsondiff
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,6 +16,7 @@
# #
%bcond_without libalternatives
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-jsondiff Name: python-jsondiff
Version: 2.2.1 Version: 2.2.1
@@ -31,11 +32,11 @@ BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: alts
Requires: python-PyYAML Requires: python-PyYAML
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -56,11 +57,8 @@ Package to show differences between JSON and JSON-like structures in Python
%check %check
%pytest %pytest
%post %pre
%python_install_alternative jdiff %python_libalternatives_reset_alternative jdiff
%postun
%python_uninstall_alternative jdiff
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE