forked from pool/python-cchardet
Compare commits
9 Commits
Author | SHA256 | Date | |
---|---|---|---|
9111c79b08 | |||
8f4c912082 | |||
107e60a378 | |||
bab67adcfe | |||
75b3af7be2 | |||
38b70f0aeb | |||
|
f0a644e8f6 | ||
3d7b976fbc | |||
07903b2425 |
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Mon Oct 2 07:16:32 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-cchardet
|
# spec file for package python-cchardet
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
%define modname faust-cchardet
|
%define modname faust-cchardet
|
||||||
|
%bcond_without libalternatives
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-cchardet
|
Name: python-cchardet
|
||||||
Version: 2.1.19
|
Version: 2.1.19
|
||||||
@@ -25,19 +26,19 @@ Release: 0
|
|||||||
Summary: CChardet is high speed universal character encoding detector
|
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
|
License: GPL-2.0-or-later OR LGPL-2.1-or-later OR MPL-1.1
|
||||||
URL: https://github.com/faust-streaming/cChardet
|
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 Cython}
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: pkgconfig(uchardet)
|
BuildRequires: pkgconfig(uchardet)
|
||||||
Requires(post): update-alternatives
|
Requires: alts
|
||||||
Requires(postun):update-alternatives
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -57,11 +58,8 @@ cChardet is high speed universal character encoding detector. - binding to `ucha
|
|||||||
%check
|
%check
|
||||||
%pytest_arch src/tests
|
%pytest_arch src/tests
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative cchardetect
|
%python_libalternatives_reset_alternative cchardetect
|
||||||
|
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative cchardetect
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
|
Reference in New Issue
Block a user