From c0fa5c155b2cb77943e9a8a660fa30ed0dbf9dc9 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 16 May 2023 06:20:00 +0000 Subject: [PATCH] import python3.11-charset-normalizer-2.1.0-1.el8 --- .gitignore | 1 + .python3.11-charset-normalizer.metadata | 1 + SPECS/python3.11-charset-normalizer.spec | 54 ++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 .gitignore create mode 100644 .python3.11-charset-normalizer.metadata create mode 100644 SPECS/python3.11-charset-normalizer.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..68abc3f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/2.1.0.tar.gz diff --git a/.python3.11-charset-normalizer.metadata b/.python3.11-charset-normalizer.metadata new file mode 100644 index 0000000..8b7900b --- /dev/null +++ b/.python3.11-charset-normalizer.metadata @@ -0,0 +1 @@ +78e3481245b087bfbb084c807d6a36211dc85cf4 SOURCES/2.1.0.tar.gz diff --git a/SPECS/python3.11-charset-normalizer.spec b/SPECS/python3.11-charset-normalizer.spec new file mode 100644 index 0000000..468e154 --- /dev/null +++ b/SPECS/python3.11-charset-normalizer.spec @@ -0,0 +1,54 @@ +%global __python3 /usr/bin/python3.11 +%global python3_pkgversion 3.11 + +Name: python%{python3_pkgversion}-charset-normalizer +Version: 2.1.0 +Release: 1%{?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: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-rpm-macros +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-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. + + +%prep +%autosetup -n charset_normalizer-%{version} +# Remove pytest-cov settings from setup.cfg +sed -i "/addopts = --cov/d" setup.cfg + +%build +%py3_build + +%install +%py3_install +mv %{buildroot}%{_bindir}/normalizer{,-%{python3_version}} + +%check +%pytest + +%files -n python%{python3_pkgversion}-charset-normalizer +%license LICENSE +%doc README.md +%{_bindir}/normalizer-%{python3_pkgversion} +%{python3_sitelib}/charset_normalizer/ +%{python3_sitelib}/charset_normalizer-%{version}-py%{python3_pkgversion}.egg-info/ + +%changelog +* Mon Oct 24 2022 Charalampos Stratakis - 2.1.0-1 +- Initial package +- Fedora contributions by: + Gwyn Ciesla + Lumir Balhar