14
0

6 Commits

Author SHA256 Message Date
6b1105a4a7 Accepting request 1312076 from devel:languages:python
- Provide python-faust-cchardet to avoid duplicities

OBS-URL: https://build.opensuse.org/request/show/1312076
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cchardet?expand=0&rev=11
2025-10-18 12:35:51 +00:00
3473c9c039 - Provide python-faust-cchardet to avoid duplicities
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cchardet?expand=0&rev=25
2025-10-17 15:28:38 +00:00
04901449fa Accepting request 1300245 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1300245
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cchardet?expand=0&rev=10
2025-08-20 11:25:14 +00:00
773a982a24 - Make the libalternatives transition conditional
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cchardet?expand=0&rev=23
2025-08-12 08:10:37 +00:00
9111c79b08 Accepting request 1288521 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1288521
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cchardet?expand=0&rev=9
2025-06-26 09:34:32 +00:00
8f4c912082 - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cchardet?expand=0&rev=21
2025-06-25 11:45:23 +00:00
2 changed files with 33 additions and 3 deletions

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Fri Oct 17 15:27:10 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Provide python-faust-cchardet to avoid duplicities
-------------------------------------------------------------------
Tue Aug 12 08:09:49 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Make the libalternatives transition conditional
-------------------------------------------------------------------
Wed Jun 25 11:45:06 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Mon Oct 2 07:16:32 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-cchardet
#
# Copyright (c) 2023 SUSE LLC
# 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
@@ -18,6 +18,11 @@
%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
@@ -25,7 +30,7 @@ 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/%{modname}/%{modname}-%{version}.tar.gz
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}
@@ -36,8 +41,15 @@ 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
Requires(postun): update-alternatives
%endif
%python_subpackages
%description
@@ -57,6 +69,9 @@ cChardet is high speed universal character encoding detector. - binding to `ucha
%check
%pytest_arch src/tests
%pre
%python_libalternatives_reset_alternative cchardetect
%post
%python_install_alternative cchardetect