diff --git a/python-nbformat.spec b/python-nbformat.spec index 9ba8c47..5fbf6ee 100644 --- a/python-nbformat.spec +++ b/python-nbformat.spec @@ -1,7 +1,7 @@ %define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-nbformat Version: 5.4.0 -Release: 1mamba +Release: 2mamba Summary: The Jupyter Notebook format Group: System/Libraries Vendor: openmamba @@ -43,12 +43,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}/jupyter-trust; do + mv %{buildroot}${f}{,-%{?pyappend}} +done +sed -i "\,%{_bindir},d" %{name}.filelist +%endif + %files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) +%{_bindir}/jupyter-trust* %dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/* %changelog +* Fri Apr 07 2023 Sdk Build System 5.4.0-2mamba +- rebuilt with python 3.10 + * Thu May 05 2022 Automatic Build System 5.4.0-1mamba - automatic version update by autodist