2018-05-08 18:51:56 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-jsondiff
|
|
|
|
#
|
2025-07-10 14:30:16 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2018-05-08 18:51:56 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-05-14 22:23:58 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-08 18:51:56 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2025-08-21 09:15:32 +00:00
|
|
|
%if 0%{?suse_version} > 1500
|
2025-07-10 14:30:16 +00:00
|
|
|
%bcond_without libalternatives
|
2025-08-21 09:15:32 +00:00
|
|
|
%else
|
|
|
|
%bcond_with libalternatives
|
|
|
|
%endif
|
2023-06-14 06:24:56 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-05-08 18:51:56 +00:00
|
|
|
Name: python-jsondiff
|
2024-10-10 14:44:32 +00:00
|
|
|
Version: 2.2.1
|
2018-05-08 18:51:56 +00:00
|
|
|
Release: 0
|
2019-06-03 08:04:48 +00:00
|
|
|
Summary: Module to diff JSON and JSON-like structures in Python
|
2018-05-08 18:51:56 +00:00
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/ZoomerAnalytics/jsondiff
|
2024-08-13 03:19:22 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/j/jsondiff/jsondiff-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module PyYAML}
|
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
|
|
|
BuildRequires: %{python_module hypothesis}
|
2024-03-26 12:15:05 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2020-09-13 17:40:01 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2024-08-13 03:19:22 +00:00
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
2024-03-26 12:15:05 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-05-08 18:51:56 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2024-08-13 03:19:22 +00:00
|
|
|
Requires: python-PyYAML
|
2018-05-08 18:51:56 +00:00
|
|
|
BuildArch: noarch
|
2025-08-21 09:15:32 +00:00
|
|
|
%if %{with libalternatives}
|
|
|
|
BuildRequires: alts
|
|
|
|
Requires: alts
|
|
|
|
%else
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
|
|
|
%endif
|
2018-05-08 18:51:56 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Package to show differences between JSON and JSON-like structures in Python
|
|
|
|
|
|
|
|
%prep
|
2020-09-13 17:40:01 +00:00
|
|
|
%autosetup -p1 -n jsondiff-%{version}
|
2018-05-08 18:51:56 +00:00
|
|
|
|
|
|
|
%build
|
2024-03-26 12:15:05 +00:00
|
|
|
%pyproject_wheel
|
2018-05-08 18:51:56 +00:00
|
|
|
|
|
|
|
%install
|
2024-03-26 12:15:05 +00:00
|
|
|
%pyproject_install
|
2020-05-25 13:31:32 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/jdiff
|
2018-05-08 18:51:56 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2024-08-13 03:19:22 +00:00
|
|
|
%pytest
|
2018-05-08 18:51:56 +00:00
|
|
|
|
2025-08-21 09:15:32 +00:00
|
|
|
%post
|
|
|
|
%python_install_alternative jdiff
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%python_uninstall_alternative jdiff
|
|
|
|
|
2025-07-10 14:30:16 +00:00
|
|
|
%pre
|
|
|
|
%python_libalternatives_reset_alternative jdiff
|
2020-05-25 13:31:32 +00:00
|
|
|
|
2018-05-08 18:51:56 +00:00
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE
|
2024-08-13 03:19:22 +00:00
|
|
|
%doc README.md
|
2024-03-26 12:15:05 +00:00
|
|
|
%{python_sitelib}/jsondiff
|
2024-08-13 03:19:22 +00:00
|
|
|
%{python_sitelib}/jsondiff-%{version}.dist-info
|
2020-05-25 13:31:32 +00:00
|
|
|
%python_alternative %{_bindir}/jdiff
|
2018-05-08 18:51:56 +00:00
|
|
|
|
|
|
|
%changelog
|