%global pkgname jsonpath-rw-ext Name: python-%{pkgname} Version: 0.1.9 Release: 1%{?dist} Summary: Extended implementation of JSONPath-rw for Python License: ASL 2.0 URL: https://github.com/sileht/python-jsonpath-rw-ext Source0: https://pypi.python.org/packages/source/j/%{pkgname}/%{pkgname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python-devel, python-setuptools Requires: python-jsonpath-rw Requires: python-pbr Requires: python-babel >= 1.3 %description jsonpath-rw-ext extends json-path-rw capabilities by adding multiple extensions. 'len' that allows one to get the length of a list. 'sorted' that returns a sorted version of a list, 'arithmetic' that permits one to make math operation between elements and 'filter' to select only certain elements of a list. %package doc Summary: Documentation for %{name} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{pkgname}-%{version} %build %{__python2} setup.py build %install %{__python2} setup.py install --skip-build --root %{buildroot} %files %{python2_sitelib}/jsonpath_rw_ext %{python2_sitelib}/jsonpath_rw_ext*.egg-info %doc README.rst LICENSE %changelog * Wed Sep 30 2015 Pradeep Kilambi - 0.1.9-1 - Initial packaging for Fedora