15
0

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
This commit is contained in:
Jan Matejek
2015-05-07 12:02:12 +00:00
committed by Git OBS Bridge
parent f1255499af
commit 9a7480e1f9
4 changed files with 23 additions and 7 deletions

View File

@@ -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