Accepting request 689758 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/689758
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jsonpointer?expand=0&rev=14
This commit is contained in:
Dominique Leuenberger 2019-03-29 19:39:21 +00:00 committed by Git OBS Bridge
commit ce6779d3b8
4 changed files with 29 additions and 12 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c681af823545c731b7b38aedd5d4eee4c5eff87bc0f25e0ff25444a4189eac4d
size 8449

3
jsonpointer-2.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c192ba86648e05fdae4f08a17ec25180a9aef5008d973407b581798a83975362
size 8699

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
Thu Mar 28 21:17:46 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Use noun phrase in descriptions.
-------------------------------------------------------------------
Thu Mar 28 14:38:52 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 2.0:
* Fix typos in messages
* Accept pointer as argument in commandline utility
- Run tests
-------------------------------------------------------------------
Tue Dec 4 12:49:38 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-jsonpointer
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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
@ -18,24 +18,23 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-jsonpointer
Version: 1.14
Version: 2.0
Release: 0
Summary: Identify specific nodes in a JSON document
Summary: Module to identify specific nodes in a JSON document
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://github.com/stefankoegl/python-json-pointer
Source: https://pypi.io/packages/source/j/jsonpointer/jsonpointer-%{version}.tar.gz
URL: https://github.com/stefankoegl/python-json-pointer
Source: https://files.pythonhosted.org/packages/source/j/jsonpointer/jsonpointer-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(preun): update-alternatives
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
Identify specific nodes in a JSON document (according to draft 08)
A module to identify specific nodes in a JSON document (according to draft 08).
%prep
%setup -q -n jsonpointer-%{version}
@ -45,8 +44,12 @@ Identify specific nodes in a JSON document (according to draft 08)
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/jsonpointer
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python tests.py
%post
%python_install_alternative jsonpointer
@ -54,7 +57,8 @@ Identify specific nodes in a JSON document (according to draft 08)
%python_uninstall_alternative jsonpointer
%files %{python_files}
%defattr(-,root,root,-)
%doc README.md
%license LICENSE.txt
%python_alternative %{_bindir}/jsonpointer
%{python_sitelib}/*