[packages/python3-chardet] Rel 2.
arekm
arekm at pld-linux.org
Thu Nov 12 11:38:55 CET 2026
commit 7c900bd9ef0b0e2bdd7bed4f1a009c96b12d6800
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 12 09:40:41 2026 +0100
Rel 2.
Ship the test-data corpus as Source1: tests git clone it otherwise,
which fails on network-isolated builders.
python3-chardet.spec | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/python3-chardet.spec b/python3-chardet.spec
index 5954827..dfeb81f 100644
--- a/python3-chardet.spec
+++ b/python3-chardet.spec
@@ -8,12 +8,15 @@ Summary: Character encoding auto-detection in Python 3
Summary(pl.UTF-8): Automatyczne wykrywanie kodowania znaków w Pythonie 3
Name: python3-%{module}
Version: 7.7.0
-Release: 1
+Release: 2
License: 0BSD
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/chardet/
Source0: https://files.pythonhosted.org/packages/source/c/chardet/%{module}-%{version}.tar.gz
# Source0-md5: 00b60e5cf4156308dea5b742a89e31de
+# test corpus, cloned by tests from git otherwise; tag follows chardet version
+Source1: https://github.com/chardet/test-data/archive/%{version}/test-data-%{version}.tar.gz
+# Source1-md5: b0e8f14c21ae616ebab3135679df5b10
URL: https://pypi.org/project/chardet/
BuildRequires: python3 >= 1:3.10
BuildRequires: python3-build
@@ -55,7 +58,12 @@ API documentation for Python chardet module.
Dokumentacja API modułu Pythona chardet.
%prep
-%setup -q -n %{module}-%{version}
+%setup -q -n %{module}-%{version} %{?with_tests:-a1}
+
+%if %{with tests}
+# a symlinked tests/data is used as-is, without the git clone
+ln -s ../test-data-%{version} tests/data
+%endif
%build
%py3_build_pyproject
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-chardet.git/commitdiff/7c900bd9ef0b0e2bdd7bed4f1a009c96b12d6800
More information about the pld-cvs-commit
mailing list