[packages/python-jmespath] - move jp.py symlink to python3; release 9
qboosh
qboosh at pld-linux.org
Mon Jul 14 20:23:52 CEST 2025
commit 9e15e0a1885c06cb67cfbcfc4ba2b766f0f7b780
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jul 14 20:25:30 2025 +0200
- move jp.py symlink to python3; release 9
python-jmespath.spec | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
---
diff --git a/python-jmespath.spec b/python-jmespath.spec
index 6469b59..27d967d 100644
--- a/python-jmespath.spec
+++ b/python-jmespath.spec
@@ -10,7 +10,7 @@ Summary(pl.UTF-8): JSON Matching Expressions - wyrażenia dopasowujące JSON
Name: python-%{pypi_name}
# keep 0.x here for python2 support
Version: 0.10.0
-Release: 8
+Release: 9
License: MIT
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/jmespath/
@@ -51,6 +51,7 @@ 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
+Conflicts: python-jmespath < 0.10.0-9
%description -n python3-%{pypi_name}
JMESPath allows you to declaratively specify how to extract elements
@@ -85,17 +86,17 @@ 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-3
-%endif
-
%if %{with python2}
%py_install
%{__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
+
+%if %{with python3}
+%py3_install
+
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/jp.py $RPM_BUILD_ROOT%{_bindir}/jp.py-3
+ln -sf jp.py-3 $RPM_BUILD_ROOT%{_bindir}/jp.py
%endif
%clean
@@ -105,7 +106,6 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc LICENSE.txt README.rst
-%attr(755,root,root) %{_bindir}/jp.py
%attr(755,root,root) %{_bindir}/jp.py-2
%{py_sitescriptdir}/jmespath
%{py_sitescriptdir}/jmespath-%{version}-py%{py_ver}.egg-info
@@ -115,6 +115,7 @@ rm -rf $RPM_BUILD_ROOT
%files -n python3-%{pypi_name}
%defattr(644,root,root,755)
%doc LICENSE.txt README.rst
+%attr(755,root,root) %{_bindir}/jp.py
%attr(755,root,root) %{_bindir}/jp.py-3
%{py3_sitescriptdir}/jmespath
%{py3_sitescriptdir}/jmespath-%{version}-py%{py3_ver}.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-jmespath.git/commitdiff/9e15e0a1885c06cb67cfbcfc4ba2b766f0f7b780
More information about the pld-cvs-commit
mailing list