From 8e92f1a91b29c8308ca71b82dfb845dab1dcbf30e503643d8fcd4294ed07ef85 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 19 Feb 2023 12:38:16 +0000 Subject: [PATCH] - build with cythonize to have working code for python 3.11 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cchardet?expand=0&rev=10 --- python-cchardet.changes | 5 +++++ python-cchardet.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/python-cchardet.changes b/python-cchardet.changes index cd16e41..0bff8a6 100644 --- a/python-cchardet.changes +++ b/python-cchardet.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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 diff --git a/python-cchardet.spec b/python-cchardet.spec index 19e2722..91a2522 100644 --- a/python-cchardet.spec +++ b/python-cchardet.spec @@ -1,7 +1,7 @@ # # spec file for package python-cchardet # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -22,9 +22,10 @@ Name: python-cchardet Version: 2.1.7 Release: 0 Summary: CChardet is high speed universal character encoding detector -License: MPL-1.1 OR LGPL-2.1-or-later OR GPL-2.0-or-later +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} BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -33,7 +34,7 @@ BuildRequires: pkgconfig BuildRequires: python-rpm-macros BuildRequires: pkgconfig(uchardet) Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives %python_subpackages %description