73 lines
1.8 KiB
RPMSpec
73 lines
1.8 KiB
RPMSpec
%global test 1
|
|
|
|
Name: python-charset-normalizer
|
|
Version: 3.2.0
|
|
Release: 1
|
|
Summary: The Real First Universal Charset Detector
|
|
|
|
License: MIT
|
|
URL: https://github.com/ousret/charset_normalizer
|
|
Source0: %{url}/archive/refs/tags/charset-normalizer-3.2.0.tar.gz
|
|
|
|
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
|
|
%autosetup -n charset-normalizer-%{version}
|
|
|
|
%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
|
|
* Wed Jul 12 2023 sunhui <sunhui@kylinos.cn> - 3.2.0-1
|
|
- Update package to version 3.2.0
|
|
|
|
* Thu Dec 15 2022 <lijian> <lijian2@kylinos.cn> - 3.0.1-1
|
|
- update to upstream version 3.0.1
|
|
|
|
* Mon Sep 26 2022 dillon chen <dillon.chen@gmail.com> - 2.1.1-1
|
|
- update to 2.1.1
|
|
|
|
* Fri Sep 23 2022 dillon chen <dillon.chen@gmail.com> - 2.0.12-1
|
|
- update to 2.0.12
|
|
|
|
* Thu Jan 20 2022 wangkerong <wangkerong@huawei.com> - 2.0.8-2
|
|
- enable test case
|
|
|
|
* Sat Dec 18 2021 wangkerong <wangkerong@huawei.com> - 2.0.8-1
|
|
- Package init
|