enable check

This commit is contained in:
weiwei_tiantian 2022-02-16 17:11:51 +08:00
parent 9327f758d4
commit 598778a8a2

View File

@ -1,9 +1,8 @@
%global _empty_manifest_terminate_build 0
%bcond_with test
Name: python-chardet
Version: 4.0.0
Release: 3
Release: 4
Summary: Universal encoding detector for Python 2 and 3
License: LGPL-2.1-only
URL: https://github.com/chardet/chardet
@ -21,9 +20,7 @@ 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
@ -70,9 +67,7 @@ mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%check
%if %{with test}
%{__python3} setup.py test
%endif
%files -n python3-chardet -f filelist.lst
@ -82,6 +77,9 @@ mv %{buildroot}/doclist.lst .
%{_docdir}/*
%changelog
* Wed Feb 16 2022 liudabo <liudabo1@huawei.com> - 4.0.0-4
- enable check
* Wed Dec 01 2021 shixuantong <shixuantong@huawei.com> - 4.0.0-3
- disable %check