17
0

- 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpatch?expand=0&rev=28
This commit is contained in:
Tomáš Chvátal
2018-05-14 11:24:33 +00:00
committed by Git OBS Bridge
parent 5e70b993b0
commit 5bc0c0052c
4 changed files with 25 additions and 15 deletions

View File

@@ -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}/*