diff --git a/2.0.12.tar.gz b/2.0.12.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..35c81c1cc0a6a571bb6f438c14dc92d4e3922b54 Binary files /dev/null and b/2.0.12.tar.gz differ diff --git a/python-charset-normalizer.spec b/python-charset-normalizer.spec new file mode 100644 index 0000000000000000000000000000000000000000..dbee97a5b975abe3376d3f21a567c1fec120a957 --- /dev/null +++ b/python-charset-normalizer.spec @@ -0,0 +1,57 @@ +%define anolis_release 1 +Name: python-charset-normalizer +Version: 2.0.12 +Release: %{anolis_release}%{dist} +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 +BuildRequires: pyproject-rpm-macros +BuildRequires: python3dist(pytest) + + +%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} +# Remove pytest-cov settings from setup.cfg +sed -i "/addopts = --cov/d" setup.cfg + +%generate_buildrequires +%pyproject_buildrequires -r + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files charset_normalizer + +%check +%pytest + +%files -n python3-charset-normalizer -f %{pyproject_files} +%license LICENSE +%doc README.md +%{_bindir}/normalizer + +%changelog +* Mon Apr 18 2022 Zhongling He 2.0.12-1 +- Init package from upstream v2.0.12