diff --git a/jsonpatch-1.16.tar.gz b/jsonpatch-1.16.tar.gz deleted file mode 100644 index b2e01fb..0000000 --- a/jsonpatch-1.16.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f025c28a08ce747429ee746bb21796c3b6417ec82288f8fe6514db7398f2af8a -size 16213 diff --git a/jsonpatch-1.23.tar.gz b/jsonpatch-1.23.tar.gz new file mode 100644 index 0000000..8cf5ed7 --- /dev/null +++ b/jsonpatch-1.23.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49f29cab70e9068db3b1dc6b656cbe2ee4edf7dfe9bf5a0055f17a4b6804a4b9 +size 18162 diff --git a/python-jsonpatch.changes b/python-jsonpatch.changes index 2323ce4..a3ffb64 100644 --- a/python-jsonpatch.changes +++ b/python-jsonpatch.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon May 14 11:22:40 UTC 2018 - tchvatal@suse.com + +- Version update to 1.23: + * dropped support for python 2.6 + * More testcases for various bugs + * Various code cleanups +- Run tests +- Conflict with python-jsondiff as it provides jsondiff binary too + ------------------------------------------------------------------- Tue Aug 8 06:27:14 UTC 2017 - tbechtold@suse.com diff --git a/python-jsonpatch.spec b/python-jsonpatch.spec index 6e3301f..c03dd86 100644 --- a/python-jsonpatch.spec +++ b/python-jsonpatch.spec @@ -1,7 +1,7 @@ # # spec file for package python-jsonpatch # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,27 +17,24 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without test Name: python-jsonpatch -Version: 1.16 +Version: 1.23 Release: 0 Summary: Python - JSON-Patches License: BSD-3-Clause Group: Development/Languages/Python -Url: https://github.com/stefankoegl/python-json-patch -Source: https://pypi.io/packages/source/j/jsonpatch/jsonpatch-%{version}.tar.gz +URL: https://github.com/stefankoegl/python-json-patch +Source: https://files.pythonhosted.org/packages/source/j/jsonpatch/jsonpatch-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module jsonpointer >= 1.9} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros -%if %{with test} -BuildRequires: %{python_module jsonpointer >= 1.9} -%endif Requires: python-jsonpointer >= 1.9 Requires(post): update-alternatives Requires(preun): update-alternatives -BuildRoot: %{_tmppath}/%{name}-%{version}-build +# provides jsondiff binary too +Conflicts: python-jsondiff BuildArch: noarch - %python_subpackages %description @@ -57,6 +54,9 @@ for p in jsonpatch jsondiff ; do %python_clone -a %{buildroot}%{_bindir}/$p done +%check +%python_exec tests.py + %post %python_install_alternative jsonpatch jsondiff @@ -64,8 +64,8 @@ done %python_uninstall_alternative jsonpatch jsondiff %files %{python_files} -%defattr(-,root,root,-) -%doc AUTHORS COPYING README.md +%license COPYING +%doc AUTHORS README.md %python_alternative %{_bindir}/jsonpatch %python_alternative %{_bindir}/jsondiff %{python_sitelib}/*