diff --git a/python-chardet.spec b/python-chardet.spec index a81504e..59f9567 100644 --- a/python-chardet.spec +++ b/python-chardet.spec @@ -1,7 +1,9 @@ %global _empty_manifest_terminate_build 0 +%bcond_with test + Name: python-chardet Version: 4.0.0 -Release: 2 +Release: 3 Summary: Universal encoding detector for Python 2 and 3 License: LGPL-2.1-only URL: https://github.com/chardet/chardet @@ -19,7 +21,10 @@ BuildRequires: python3-setuptools BuildRequires: python3-pbr BuildRequires: python3-pip BuildRequires: python3-wheel +%if %{with test} BuildRequires: python3-pytest +%endif + %description -n python3-chardet Universal encoding detector for Python 2 and 3 @@ -65,7 +70,9 @@ mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %check +%if %{with test} %{__python3} setup.py test +%endif %files -n python3-chardet -f filelist.lst @@ -75,6 +82,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Wed Dec 01 2021 shixuantong - 4.0.0-3 +- disable %check + * Fri Jul 30 2021 chenyanpanHW - 4.0.0-2 - DESC: delete -S git from %autosetup