From aa72d9c7bff9120f4fb9ba91b97726a3517061c3 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 11:08:52 +0100 Subject: [PATCH] rebuilt with python 3.10 [release 2.1.18-2mamba;Tue Aug 01 2023] --- python-faust-cchardet.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/python-faust-cchardet.spec b/python-faust-cchardet.spec index da7fc9c..b92b569 100644 --- a/python-faust-cchardet.spec +++ b/python-faust-cchardet.spec @@ -1,7 +1,7 @@ %define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-faust-cchardet Version: 2.1.18 -Release: 1mamba +Release: 2mamba Summary: A high speed universal character encoding detector Group: System/Libraries Vendor: openmamba @@ -46,13 +46,25 @@ 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}/cchardetect; do + mv %{buildroot}${f}{,-%{?pyappend}} +done +sed -i "\,%{_bindir}/cchardetect,d" %{name}.filelist +%endif + %files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) +%{_bindir}/cchardetect* %dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/* %doc COPYING %changelog +* Tue Aug 01 2023 Silvan Calarco 2.1.18-2mamba +- rebuilt with python 3.10 + * Thu Mar 09 2023 Silvan Calarco 2.1.18-1mamba - update to 2.1.18