[packages/python-jmespath] - updated to 0.10.0

qboosh qboosh at pld-linux.org
Thu Feb 11 21:41:13 CET 2021


commit f79a2f44d4568ef2bd6026311350db31372a2c8c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Feb 11 21:41:42 2021 +0100

    - updated to 0.10.0

 python-jmespath.spec | 72 +++++++++++++++++++++++++++++++---------------------
 1 file changed, 43 insertions(+), 29 deletions(-)
---
diff --git a/python-jmespath.spec b/python-jmespath.spec
index 350d9d7..e4a872e 100644
--- a/python-jmespath.spec
+++ b/python-jmespath.spec
@@ -1,37 +1,39 @@
 #
 # Conditional build:
-%bcond_without	tests	# unit tests
+%bcond_with	tests	# unit tests (not included in sdist)
 %bcond_without	python2 # CPython 2.x module
 %bcond_without	python3 # CPython 3.x module
 
 %define		pypi_name	jmespath
 Summary:	JSON Matching Expressions
+Summary(pl.UTF-8):	JSON Matching Expressions - wyrażenia dopasowujące JSON
 Name:		python-%{pypi_name}
-Version:	0.9.0
+Version:	0.10.0
 Release:	1
 License:	MIT
-Source0:	https://pypi.python.org/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
-# Source0-md5:	471b7d19bd153ac11a21d4fb7466800c
 Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/jmespath/
+Source0:	https://files.pythonhosted.org/packages/source/j/jmespath/%{pypi_name}-%{version}.tar.gz
+# Source0-md5:	65bdcb5fa5bcf1cc710ffa508e78e408
 URL:		https://github.com/jmespath/jmespath.py
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-BuildArch:	noarch
 %if %{with python2}
+BuildRequires:	python-modules >= 1:2.6
+BuildRequires:	python-setuptools
+%if %{with tests}
 BuildRequires:	python-mock
-BuildRequires:	python-modules
 BuildRequires:	python-nose
-BuildRequires:	python-setuptools
+%endif
 %endif
 %if %{with python3}
-BuildRequires:	python3-devel
-BuildRequires:	python3-mock
-BuildRequires:	python3-modules
-BuildRequires:	python3-nose
-BuildRequires:	python3-setuptools
+BuildRequires:	python3-modules >= 1:3.3
 BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-nose
 %endif
-Requires:	python-modules
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python-modules >= 1:2.6
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -39,21 +41,33 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 JMESPath allows you to declaratively specify how to extract elements
 from a JSON document.
 
+%description -l pl.UTF-8
+JMESPath pozwala deklaratywnie określać sposób wydobywania elementów z
+dokumentów JSON.
+
 %package -n python3-%{pypi_name}
 Summary:	JSON Matching Expressions
+Summary(pl.UTF-8):	JSON Matching Expressions - wyrażenia dopasowujące JSON
 Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.3
 
 %description -n python3-%{pypi_name}
 JMESPath allows you to declaratively specify how to extract elements
 from a JSON document.
 
+%description -n python3-%{pypi_name} -l pl.UTF-8
+JMESPath pozwala deklaratywnie określać sposób wydobywania elementów z
+dokumentów JSON.
+
 %prep
 %setup -q -n %{pypi_name}-%{version}
-rm -r %{pypi_name}.egg-info
+
+%{__rm} -r %{pypi_name}.egg-info
 
 %build
 %if %{with python2}
 %py_build
+
 %if %{with tests}
 nosetests-%{py_ver}
 %endif
@@ -61,6 +75,7 @@ nosetests-%{py_ver}
 
 %if %{with python3}
 %py3_build
+
 %if %{with tests}
 nosetests-%{py3_ver}
 %endif
@@ -68,17 +83,18 @@ nosetests-%{py3_ver}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 %if %{with python3}
 %py3_install
-mv $RPM_BUILD_ROOT%{_bindir}/jp.py $RPM_BUILD_ROOT%{_bindir}/jp.py-%{py3_ver}
-ln -sf %{_bindir}/jp.py-%{py3_ver} $RPM_BUILD_ROOT%{_bindir}/jp.py-3
+
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/jp.py $RPM_BUILD_ROOT%{_bindir}/jp.py-3
 %endif
 
 %if %{with python2}
 %py_install
-mv $RPM_BUILD_ROOT%{_bindir}/jp.py $RPM_BUILD_ROOT%{_bindir}/jp.py-%{py_ver}
-ln -sf %{_bindir}/jp.py-%{py_ver} $RPM_BUILD_ROOT%{_bindir}/jp.py-2
-ln -sf %{_bindir}/jp.py-%{py_ver} $RPM_BUILD_ROOT%{_bindir}/jp.py
+
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/jp.py $RPM_BUILD_ROOT%{_bindir}/jp.py-2
+ln -sf jp.py-2 $RPM_BUILD_ROOT%{_bindir}/jp.py
 %endif
 
 %clean
@@ -87,20 +103,18 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc README.rst LICENSE.txt
+%doc LICENSE.txt README.rst
 %attr(755,root,root) %{_bindir}/jp.py
 %attr(755,root,root) %{_bindir}/jp.py-2
-%attr(755,root,root) %{_bindir}/jp.py-%{py_ver}
-%{py_sitescriptdir}/%{pypi_name}
-%{py_sitescriptdir}/%{pypi_name}-%{version}-py%{py_ver}.egg-info
+%{py_sitescriptdir}/jmespath
+%{py_sitescriptdir}/jmespath-%{version}-py%{py_ver}.egg-info
 %endif
 
 %if %{with python3}
 %files -n python3-%{pypi_name}
 %defattr(644,root,root,755)
-%doc README.rst LICENSE.txt
+%doc LICENSE.txt README.rst
 %attr(755,root,root) %{_bindir}/jp.py-3
-%attr(755,root,root) %{_bindir}/jp.py-%{py3_ver}
-%{py3_sitescriptdir}/%{pypi_name}
-%{py3_sitescriptdir}/%{pypi_name}-%{version}-py%{py3_ver}.egg-info
+%{py3_sitescriptdir}/jmespath
+%{py3_sitescriptdir}/jmespath-%{version}-py%{py3_ver}.egg-info
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-jmespath.git/commitdiff/f79a2f44d4568ef2bd6026311350db31372a2c8c



More information about the pld-cvs-commit mailing list