!27 [sync] PR-21: 【轻量级 PR】:make the test check
From: @openeuler-sync-bot Reviewed-by: @gaoruoshu Signed-off-by: @gaoruoshu
This commit is contained in:
commit
733575721e
@ -1,6 +1,6 @@
|
||||
Name: python-chardet
|
||||
Version: 3.0.4
|
||||
Release: 9
|
||||
Release: 10
|
||||
Summary: Python 2/3 compatible character encoding detector.
|
||||
License: LGPL-2.1
|
||||
URL: https://github.com/chardet/chardet
|
||||
@ -8,6 +8,7 @@ Source0: https://github.com/chardet/chardet/archive/3.0.4.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: python2-devel, python2-setuptools
|
||||
BuildRequires: python3-devel, python3-setuptools
|
||||
BuildRequires: python2-pytest, python3-pytest
|
||||
|
||||
%description
|
||||
This is a continuation of Mark Pilgrim's excellent chardet. Previously,
|
||||
@ -49,6 +50,10 @@ mv %{buildroot}%{_bindir}/{,python3-}chardetect
|
||||
popd
|
||||
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
||||
|
||||
%check
|
||||
%{__python2} -m pytest -v
|
||||
%{__python3} -m pytest -v
|
||||
|
||||
%files -n python2-chardet
|
||||
%doc README.rst
|
||||
%{!?_licensedir:%global license %%doc}
|
||||
@ -64,6 +69,12 @@ popd
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%changelog
|
||||
* Wed Feb 08 2023 zhuofeng <zhuofeng2@huawei.com> - 3.0.4-10
|
||||
- Type:bugfix
|
||||
- CVE:NA
|
||||
- SUG:NA
|
||||
- DESC:make the test check
|
||||
|
||||
* Sat Aug 20 2022 shixuantong <shixuantong@h-partners.com> - 3.0.4-9
|
||||
- add python_provide for python3-chardet
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user