python-charset-normalizer/python-charset-normalizer.spec

64 lines
1.5 KiB
RPMSpec
Raw Normal View History

%global test 1
2021-12-18 10:00:45 +08:00
Name: python-charset-normalizer
2022-09-23 15:45:50 +08:00
Version: 2.0.12
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
Source0: %{url}/archive/refs/tags/%{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
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
* 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