[packages/python3-jmespath] - python-jmespath.spec updated to 1.0.1 for python 3.7+
qboosh
qboosh at pld-linux.org
Mon Jul 14 21:00:19 CEST 2025
commit bf7b517f0495b162176f30f2ea6d2b613e01f2fa
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jul 14 21:01:53 2025 +0200
- python-jmespath.spec updated to 1.0.1 for python 3.7+
python-jmespath.spec | 122 --------------------------------------------------
python3-jmespath.spec | 66 +++++++++++++++++++++++++++
2 files changed, 66 insertions(+), 122 deletions(-)
---
diff --git a/python-jmespath.spec b/python-jmespath.spec
deleted file mode 100644
index 27d967d..0000000
--- a/python-jmespath.spec
+++ /dev/null
@@ -1,122 +0,0 @@
-#
-# Conditional build:
-%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}
-# keep 0.x here for python2 support
-Version: 0.10.0
-Release: 9
-License: MIT
-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
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.6
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-mock
-BuildRequires: python-nose
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.3
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python3-nose
-%endif
-%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)
-
-%description
-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
-Conflicts: python-jmespath < 0.10.0-9
-
-%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
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-nosetests-%{py_ver}
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-nosetests-%{py3_ver}
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%{__mv} $RPM_BUILD_ROOT%{_bindir}/jp.py $RPM_BUILD_ROOT%{_bindir}/jp.py-2
-%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
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc LICENSE.txt README.rst
-%attr(755,root,root) %{_bindir}/jp.py-2
-%{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 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
-%endif
diff --git a/python3-jmespath.spec b/python3-jmespath.spec
new file mode 100644
index 0000000..3456e32
--- /dev/null
+++ b/python3-jmespath.spec
@@ -0,0 +1,66 @@
+#
+# Conditional build:
+%bcond_with tests # unit tests (not included in sdist)
+
+%define module jmespath
+Summary: JSON Matching Expressions
+Summary(pl.UTF-8): JSON Matching Expressions - wyrażenia dopasowujące JSON
+Name: python3-%{module}
+Version: 1.0.1
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/jmespath/
+Source0: https://files.pythonhosted.org/packages/source/j/jmespath/%{module}-%{version}.tar.gz
+# Source0-md5: 2dd28beb22d698f58fe2281bfe5fe3a3
+URL: https://github.com/jmespath/jmespath.py
+BuildRequires: python3-modules >= 1:3.7
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-pynose
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python3-modules >= 1:3.7
+Conflicts: python-jmespath < 0.10.0-9
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+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.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%{__rm} -r %{module}.egg-info
+
+%build
+%py3_build
+
+%if %{with tests}
+nosetests-%{py3_ver}
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%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
+
+%clean
+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-3
+%{py3_sitescriptdir}/jmespath
+%{py3_sitescriptdir}/jmespath-%{version}-py%{py3_ver}.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-jmespath.git/commitdiff/bf7b517f0495b162176f30f2ea6d2b613e01f2fa
More information about the pld-cvs-commit
mailing list