From 9a7480e1f9be9671829a5f4ff99e972c21524b43946b94ed12a80493c0100f55 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Thu, 7 May 2015 12:02:12 +0000 Subject: [PATCH] Accepting request 305632 from home:benoit_monin:branches:devel:languages:python - update to version 1.4.0 - shorten the summary to fix an rpmlint error - add python-ply and python-six as BuildRequires to ensure their availability - remove python-decorator from Requires: unneeded - remove unwanted shebang in jsonpath.py - add jsonpath.py to the package files OBS-URL: https://build.opensuse.org/request/show/305632 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpath-rw?expand=0&rev=3 --- jsonpath-rw-1.2.3.tar.gz | 3 --- jsonpath-rw-1.4.0.tar.gz | 3 +++ python-jsonpath-rw.changes | 12 ++++++++++++ python-jsonpath-rw.spec | 12 ++++++++---- 4 files changed, 23 insertions(+), 7 deletions(-) delete mode 100644 jsonpath-rw-1.2.3.tar.gz create mode 100644 jsonpath-rw-1.4.0.tar.gz diff --git a/jsonpath-rw-1.2.3.tar.gz b/jsonpath-rw-1.2.3.tar.gz deleted file mode 100644 index 6e17140..0000000 --- a/jsonpath-rw-1.2.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:070f316dd172cdbb733f8da1b981ebcd3c8f90b75aca9f978c9ac145c1a25e86 -size 12685 diff --git a/jsonpath-rw-1.4.0.tar.gz b/jsonpath-rw-1.4.0.tar.gz new file mode 100644 index 0000000..1ac4cc3 --- /dev/null +++ b/jsonpath-rw-1.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05c471281c45ae113f6103d1268ec7a4831a2e96aa80de45edc89b11fac4fbec +size 13814 diff --git a/python-jsonpath-rw.changes b/python-jsonpath-rw.changes index a88d065..c26e8d0 100644 --- a/python-jsonpath-rw.changes +++ b/python-jsonpath-rw.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Wed May 6 17:54:26 UTC 2015 - benoit.monin@gmx.fr + +- update to version 1.4.0: + * no changelog available +- shorten the summary to fix an rpmlint error +- add python-ply and python-six as BuildRequires to ensure their + availability +- remove python-decorator from Requires: unneeded +- remove unwanted shebang in jsonpath.py +- add jsonpath.py to the package files + ------------------------------------------------------------------- Tue Jan 7 15:14:09 UTC 2014 - speilicke@suse.com diff --git a/python-jsonpath-rw.spec b/python-jsonpath-rw.spec index d5a89e2..f3051e4 100644 --- a/python-jsonpath-rw.spec +++ b/python-jsonpath-rw.spec @@ -1,7 +1,7 @@ # # spec file for package python-jsonpath-rw # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 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,20 +17,21 @@ Name: python-jsonpath-rw -Version: 1.2.3 +Version: 1.4.0 Release: 0 -Summary: A robust and significantly extended implementation of JSONPath for Python, with a clear AST for metaprogramming +Summary: An extended implementation of JSONPath for Python License: Apache-2.0 Group: Development/Languages/Python Url: https://github.com/kennknowles/python-jsonpath-rw Source: https://pypi.python.org/packages/source/j/jsonpath-rw/jsonpath-rw-%{version}.tar.gz BuildRequires: python-devel +BuildRequires: python-ply BuildRequires: python-setuptools +BuildRequires: python-six Requires: python-ply Requires: python-six BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 -Requires: python-decorator %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else BuildArch: noarch @@ -47,6 +48,8 @@ extend. (You can also execute them :-) %prep %setup -q -n jsonpath-rw-%{version} +# remove unwanted shebang +sed -i '/^#!/ d' jsonpath_rw/bin/jsonpath.py %build python setup.py build @@ -57,6 +60,7 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot} %files %defattr(-,root,root,-) %doc README.rst +%{_bindir}/jsonpath.py %{python_sitelib}/* %changelog