From 3473c9c039b58c026f4db66298bfc7df649d929cd6329be87363ee65f30d07a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 17 Oct 2025 15:28:38 +0000 Subject: [PATCH] - Provide python-faust-cchardet to avoid duplicities OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cchardet?expand=0&rev=25 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + faust-cchardet-2.1.19.tar.gz | 3 ++ python-cchardet.changes | 84 ++++++++++++++++++++++++++++++++++ python-cchardet.spec | 88 ++++++++++++++++++++++++++++++++++++ 5 files changed, 199 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 faust-cchardet-2.1.19.tar.gz create mode 100644 python-cchardet.changes create mode 100644 python-cchardet.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/faust-cchardet-2.1.19.tar.gz b/faust-cchardet-2.1.19.tar.gz new file mode 100644 index 0000000..684d194 --- /dev/null +++ b/faust-cchardet-2.1.19.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f89386297cde0c8e0f5e21464bc2d6d0e4a4fc1b1d77cdb238ca24d740d872e0 +size 678871 diff --git a/python-cchardet.changes b/python-cchardet.changes new file mode 100644 index 0000000..68211a1 --- /dev/null +++ b/python-cchardet.changes @@ -0,0 +1,84 @@ +------------------------------------------------------------------- +Fri Oct 17 15:27:10 UTC 2025 - Markéta Machová + +- Provide python-faust-cchardet to avoid duplicities + +------------------------------------------------------------------- +Tue Aug 12 08:09:49 UTC 2025 - Markéta Machová + +- Make the libalternatives transition conditional + +------------------------------------------------------------------- +Wed Jun 25 11:45:06 UTC 2025 - Markéta Machová + +- Convert to libalternatives + +------------------------------------------------------------------- +Mon Oct 2 07:16:32 UTC 2023 - Dirk Müller + +- update to 2.1.19: + * Update pyproject.toml to try building wheels for every Python + implementation + +------------------------------------------------------------------- +Wed Jun 21 11:13:11 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +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 + +- build with cythonize to have working code for python 3.11 + +------------------------------------------------------------------- +Fri Feb 26 06:57:19 UTC 2021 - ecsos + +- Update to 2.1.7 + - support Python 3.9 + - drop support for Python 3.5 + +------------------------------------------------------------------- +Tue Sep 15 06:29:26 UTC 2020 - Steve Kowalik + +- Update to 2.1.6: + * drop support for Python 2.7 + * support Github Actions + * update dev-dependencies + +------------------------------------------------------------------- +Wed May 27 09:36:37 UTC 2020 - Petr Gajdos + +- %python3_only -> %python_alternative + +------------------------------------------------------------------- +Wed Dec 11 13:02:14 UTC 2019 - Ondřej Súkup + +- initial commit diff --git a/python-cchardet.spec b/python-cchardet.spec new file mode 100644 index 0000000..56b6083 --- /dev/null +++ b/python-cchardet.spec @@ -0,0 +1,88 @@ +# +# spec file for package python-cchardet +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define skip_python2 1 +%define modname faust-cchardet +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif +%{?sle15_python_module_pythons} +Name: python-cchardet +Version: 2.1.19 +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/faust-streaming/cChardet +Source: https://files.pythonhosted.org/packages/source/f/faust-cchardet/%{modname}-%{version}.tar.gz +BuildRequires: %{python_module Cython} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: gcc-c++ +BuildRequires: pkgconfig +BuildRequires: python-rpm-macros +BuildRequires: pkgconfig(uchardet) +# provide the PyPI name +Provides: python-faust-cchardet = %{version} +%if %{with libalternatives} +BuildRequires: alts +Requires: alts +%else +Requires(post): update-alternatives +Requires(postun): update-alternatives +%endif +%python_subpackages + +%description +cChardet is high speed universal character encoding detector. - binding to `uchardet`_. + +%prep +%autosetup -p1 -n %{modname}-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_clone -a %{buildroot}%{_bindir}/cchardetect +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +%pytest_arch src/tests + +%pre +%python_libalternatives_reset_alternative cchardetect + +%post +%python_install_alternative cchardetect + +%postun +%python_uninstall_alternative cchardetect + +%files %{python_files} +%license COPYING +%doc README.rst +%python_alternative %{_bindir}/cchardetect +%{python_sitearch}/cchardet +%{python_sitearch}/%(echo %{modname}|tr '-' '_')-%{version}*-info + +%changelog