diff --git a/python-CairoSVG.spec b/python-CairoSVG.spec index 312e8ad..5f66ffb 100644 --- a/python-CairoSVG.spec +++ b/python-CairoSVG.spec @@ -1,6 +1,6 @@ Name: python-CairoSVG Version: 2.7.0 -Release: 1mamba +Release: 2mamba Summary: A Simple SVG Converter for Cairo Group: System/Libraries Vendor: openmamba @@ -43,12 +43,23 @@ 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}/cairosvg; do + mv %{buildroot}${f}{,-%{?pyappend}} + sed -i "s|${f}|${f}-%{?pyappend}|" %{name}.filelist +done +%endif + %files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) %dir %{python_sitearch}/CairoSVG-%{version}-py*.egg-info %{python_sitearch}/CairoSVG-%{version}-py*.egg-info/* %changelog +* Wed Mar 22 2023 Silvan Calarco 2.7.0-2mamba +- rebuilt with python 3.10 + * Tue Mar 21 2023 Automatic Build System 2.7.0-1mamba - automatic version update by autodist