python-charset-normalizer/python-charset-normalizer.spec
2024-02-18 11:18:48 +08:00

76 lines
1.9 KiB
RPMSpec

%global test 1
Name: python-charset-normalizer
Version: 3.3.2
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-%{version}.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
* Sun Feb 18 2024 zhangpan <zhangpan103@h-partners.com> - 3.3.2-1
- Update package to version 3.3.2
* 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