2022-01-20 07:27:38 +00:00
|
|
|
%global test 1
|
2021-12-18 10:00:45 +08:00
|
|
|
|
|
|
|
|
Name: python-charset-normalizer
|
2024-02-18 11:18:48 +08:00
|
|
|
Version: 3.3.2
|
2022-09-23 15:45:50 +08:00
|
|
|
Release: 1
|
2021-12-18 10:00:45 +08:00
|
|
|
Summary: The Real First Universal Charset Detector
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/ousret/charset_normalizer
|
2024-02-18 11:18:48 +08:00
|
|
|
Source0: %{url}/archive/refs/tags/charset_normalizer-%{version}.tar.gz
|
2021-12-18 10:00:45 +08:00
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
|
|
|
|
|
%if %{test}
|
|
|
|
|
BuildRequires: python3dist(pytest)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A library that helps you read text from an unknown charset encoding.
|
|
|
|
|
Motivated by chardet, trying to resolve the issue by taking
|
|
|
|
|
a new approach. All IANA character set names for which the Python core
|
|
|
|
|
library provides codecs are supported.
|
|
|
|
|
|
|
|
|
|
%package -n python3-charset-normalizer
|
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
|
|
%description -n python3-charset-normalizer
|
|
|
|
|
A library that helps you read text from an unknown charset encoding.
|
|
|
|
|
Motivated by chardet, trying to resolve the issue by taking
|
|
|
|
|
a new approach. All IANA character set names for which the Python core
|
|
|
|
|
library provides codecs are supported.
|
|
|
|
|
|
|
|
|
|
%prep
|
2024-02-18 11:18:48 +08:00
|
|
|
%autosetup -n charset_normalizer-%{version}
|
2021-12-18 10:00:45 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
%if %{test}
|
|
|
|
|
%check
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files -n python3-charset-normalizer
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{_bindir}/normalizer
|
|
|
|
|
%{python3_sitelib}/charset_normalizer*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-02-18 11:18:48 +08:00
|
|
|
* Sun Feb 18 2024 zhangpan <zhangpan103@h-partners.com> - 3.3.2-1
|
|
|
|
|
- Update package to version 3.3.2
|
|
|
|
|
|
2023-07-12 15:38:59 +08:00
|
|
|
* Wed Jul 12 2023 sunhui <sunhui@kylinos.cn> - 3.2.0-1
|
|
|
|
|
- Update package to version 3.2.0
|
|
|
|
|
|
2022-12-15 16:01:10 +08:00
|
|
|
* Thu Dec 15 2022 <lijian> <lijian2@kylinos.cn> - 3.0.1-1
|
|
|
|
|
- update to upstream version 3.0.1
|
|
|
|
|
|
2022-09-26 15:11:31 +08:00
|
|
|
* Mon Sep 26 2022 dillon chen <dillon.chen@gmail.com> - 2.1.1-1
|
|
|
|
|
- update to 2.1.1
|
|
|
|
|
|
2022-09-23 15:45:50 +08:00
|
|
|
* Fri Sep 23 2022 dillon chen <dillon.chen@gmail.com> - 2.0.12-1
|
|
|
|
|
- update to 2.0.12
|
|
|
|
|
|
2022-01-20 07:27:38 +00:00
|
|
|
* Thu Jan 20 2022 wangkerong <wangkerong@huawei.com> - 2.0.8-2
|
|
|
|
|
- enable test case
|
|
|
|
|
|
2021-12-18 10:00:45 +08:00
|
|
|
* Sat Dec 18 2021 wangkerong <wangkerong@huawei.com> - 2.0.8-1
|
|
|
|
|
- Package init
|