diff --git a/cchardet-2.1.7.tar.gz b/cchardet-2.1.7.tar.gz deleted file mode 100644 index 6093477..0000000 --- a/cchardet-2.1.7.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c428b6336545053c2589f6caf24ea32276c6664cb86db817e03a94c60afa0eaf -size 653617 diff --git a/faust-cchardet-2.1.18.tar.gz b/faust-cchardet-2.1.18.tar.gz new file mode 100644 index 0000000..44362b9 --- /dev/null +++ b/faust-cchardet-2.1.18.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d374eecad23c68383e549c83e90b16788bde6b0354fd5ece4020b046df5a7c7e +size 655620 diff --git a/python-cchardet.changes b/python-cchardet.changes index 0bff8a6..d822ba5 100644 --- a/python-cchardet.changes +++ b/python-cchardet.changes @@ -1,3 +1,31 @@ +------------------------------------------------------------------- +Sun Feb 26 19:06:23 UTC 2023 - Matej Cepl + +- Upstream became stale, switching to the fork + https://github.com/faust-streaming/cChardet +- Update to 2.1.18: + - Fix building source distribution + - Fix pep517 builds + - Time to continue off where the original project left off! + - Support Python 3.10 + 3.11 + - Add linux aarch64 wheel support +- Removed upstreamed denose.patch + +------------------------------------------------------------------- +Tue Feb 21 07:47:56 UTC 2023 - Matej Cepl + +- Add denose.patch (gh#PyYoshi/cChardet!87) and enable tests. + +------------------------------------------------------------------- +Tue Feb 21 07:27:48 UTC 2023 - Matej Cepl + +- Clean up SPEC file + +------------------------------------------------------------------- +Mon Feb 20 13:12:19 UTC 2023 - ecsos + +- To fix build error correct capitalization of python modul Cython. + ------------------------------------------------------------------- Sun Feb 19 12:37:25 UTC 2023 - Dirk Müller diff --git a/python-cchardet.spec b/python-cchardet.spec index 91a2522..74bbee6 100644 --- a/python-cchardet.spec +++ b/python-cchardet.spec @@ -16,18 +16,20 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 +%define modname faust-cchardet Name: python-cchardet -Version: 2.1.7 +Version: 2.1.18 Release: 0 Summary: CChardet is high speed universal character encoding detector License: GPL-2.0-or-later OR LGPL-2.1-or-later OR MPL-1.1 -URL: https://github.com/PyYoshi/cChardet -Source: https://files.pythonhosted.org/packages/source/c/cchardet/cchardet-%{version}.tar.gz -BuildRequires: %{python_module cython} +URL: https://github.com/faust-streaming/cChardet +Source: https://files.pythonhosted.org/packages/source/f/%{modname}/%{modname}-%{version}.tar.gz +BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: pkgconfig @@ -41,16 +43,19 @@ Requires(postun):update-alternatives cChardet is high speed universal character encoding detector. - binding to `uchardet`_. %prep -%setup -q -n cchardet-%{version} +%autosetup -p1 -n %{modname}-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/cchardetect %python_expand %fdupes %{buildroot}%{$python_sitearch} +%check +%pytest_arch src/tests + %post %python_install_alternative cchardetect @@ -61,6 +66,7 @@ cChardet is high speed universal character encoding detector. - binding to `ucha %license COPYING %doc README.rst %python_alternative %{_bindir}/cchardetect -%{python_sitearch}/* +%{python_sitearch}/cchardet +%{python_sitearch}/%(echo %{modname}|tr '-' '_')-%{version}*-info %changelog