58 lines
1.4 KiB
RPMSpec
58 lines
1.4 KiB
RPMSpec
|
|
%global test 0
|
||
|
|
|
||
|
|
Name: python-charset-normalizer
|
||
|
|
Version: 2.0.8
|
||
|
|
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
|
||
|
|
* Sat Dec 18 2021 wangkerong <wangkerong@huawei.com> - 2.0.8-1
|
||
|
|
- Package init
|