diff --git a/python-jmespath.spec b/python-jmespath.spec index 6447347..b9c5860 100644 --- a/python-jmespath.spec +++ b/python-jmespath.spec @@ -1,6 +1,6 @@ Name: python-jmespath Version: 1.0.1 -Release: 1mamba +Release: 2mamba Summary: JMESPath allows you to declaratively specify how to extract elements from a JSON document Group: System/Libraries Vendor: openmamba @@ -37,12 +37,24 @@ CFLAGS="%{optflags}" %{__python} setup.py build sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist +%if "%{?with_pyver}" != "3" +# Rename any conflicting file outside of python site packages tree +for f in %{_bindir}/jp.py; do + mv %{buildroot}${f}{,-%{?pyappend}} +done +sed -i "\,%{_bindir},d" %{name}.filelist +%endif + %files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) +%{_bindir}/jp.py* %dir %{python_sitearch}/jmespath-%{version}-py*.egg-info %{python_sitearch}/jmespath-%{version}-py*.egg-info/* %changelog +* Tue Apr 11 2023 Sdk Build System 1.0.1-2mamba +- rebuilt with python 3.10 + * Sat Jun 18 2022 Automatic Build System 1.0.1-1mamba - automatic version update by autodist