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>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
%define skip_python2 1
|
||||
%define modname faust-cchardet
|
||||
%bcond_without libalternatives
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-cchardet
|
||||
Version: 2.1.19
|
||||
@@ -25,19 +26,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/%{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}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: pkgconfig(uchardet)
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Requires: alts
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -57,11 +58,8 @@ cChardet is high speed universal character encoding detector. - binding to `ucha
|
||||
%check
|
||||
%pytest_arch src/tests
|
||||
|
||||
%post
|
||||
%python_install_alternative cchardetect
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative cchardetect
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative cchardetect
|
||||
|
||||
%files %{python_files}
|
||||
%license COPYING
|
||||
|
Reference in New Issue
Block a user