forked from pool/python-jsondiff
Accepting request 978966 from home:glaubitz:branches:devel:languages:python
- Update to version 2.0.0 * Removed deprecated function * Remove deprecated jsondiff entry point - from version 1.3.1 * Optionally allow different escape_str than '$' * Clarified the readme, closes #23 * Fixed readme - Remove jsondiff command from %install, %post, %postun and %files sections OBS-URL: https://build.opensuse.org/request/show/978966 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsondiff?expand=0&rev=18
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-jsondiff
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-jsondiff
|
||||
Version: 1.3.0
|
||||
Version: 2.0.0
|
||||
Release: 0
|
||||
Summary: Module to diff JSON and JSON-like structures in Python
|
||||
License: MIT
|
||||
@@ -48,7 +48,6 @@ Package to show differences between JSON and JSON-like structures in Python
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/jsondiff
|
||||
%python_clone -a %{buildroot}%{_bindir}/jdiff
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
@@ -56,11 +55,9 @@ Package to show differences between JSON and JSON-like structures in Python
|
||||
%pytest tests/__init__.py
|
||||
|
||||
%post
|
||||
%python_install_alternative jsondiff
|
||||
%python_install_alternative jdiff
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative jsondiff
|
||||
%python_uninstall_alternative jdiff
|
||||
|
||||
%files %{python_files}
|
||||
@@ -68,6 +65,5 @@ Package to show differences between JSON and JSON-like structures in Python
|
||||
%doc README.rst
|
||||
%{python_sitelib}/*
|
||||
%python_alternative %{_bindir}/jdiff
|
||||
%python_alternative %{_bindir}/jsondiff
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user