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

61 lines
1.4 KiB
RPMSpec
Raw Normal View History

2021-12-18 10:00:45 +08:00
%global test 0
Name: python-charset-normalizer
2022-06-28 09:53:34 +08:00
Version: 2.1.0
2021-12-18 10:00:45 +08:00
Release: 1
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-06-28 09:53:34 +08:00
* Tue Jun 28 2022 dillon chen <dillon.chen@gmail.com> - 2.1.0-1
- update to 2.1.0
2021-12-18 10:00:45 +08:00
* Sat Dec 18 2021 wangkerong <wangkerong@huawei.com> - 2.0.8-1
- Package init