RHEL: Import from Fedora

This commit is contained in:
Tomáš Hrnčiar 2025-09-05 15:21:42 +02:00 committed by Lumir Balhar
parent ed9aaa07cf
commit 213d965726
7 changed files with 139 additions and 0 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

20
.gitignore vendored
View File

@ -0,0 +1,20 @@
/2.0.3.tar.gz
/2.0.4.tar.gz
/2.0.6.tar.gz
/2.0.7.tar.gz
/2.0.8.tar.gz
/2.0.9.tar.gz
/2.0.10.tar.gz
/2.0.11.tar.gz
/2.0.12.tar.gz
/2.1.0.tar.gz
/3.0.1.tar.gz
/3.1.0.tar.gz
/3.2.0.tar.gz
/3.3.0.tar.gz
/3.3.1.tar.gz
/3.3.2.tar.gz
/3.4.0.tar.gz
/3.4.1.tar.gz
/3.4.2.tar.gz
/3.4.3.tar.gz

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# python-charset-normalizer
The python-charset-normalizer package

50
changelog Normal file
View File

@ -0,0 +1,50 @@
* Thu Jan 19 2023 Lumír Balhar <lbalhar@redhat.com> - 3.0.1-1
- Update to 3.0.1 (rhbz#2118769)
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 20 2022 Lumír Balhar <lbalhar@redhat.com> - 2.1.0-1
- Update to 2.1.0
Resolves: rhbz#2098481
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2.0.12-2
- Rebuilt for Python 3.11
* Mon Feb 14 2022 Lumír Balhar <lbalhar@redhat.com> - 2.0.12-1
- Update to 2.0.12
Resolves: rhbz#2053838
* Mon Jan 31 2022 Lumír Balhar <lbalhar@redhat.com> - 2.0.11-1
- Update to 2.0.11
Resolves: rhbz#2048279
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Jan 05 2022 Lumír Balhar <lbalhar@redhat.com> - 2.0.10-1
- Update to 2.0.10
Resolves: rhbz#2037079
* Fri Dec 17 2021 Lumír Balhar <lbalhar@redhat.com> - 2.0.9-1
- Update to 2.0.9
Resolves: rhbz#2028947
* Mon Nov 29 2021 Lumír Balhar <lbalhar@redhat.com> - 2.0.8-1
- Update to 2.0.8
Resolves: rhbz#2026482
* Thu Oct 14 2021 Lumír Balhar <lbalhar@redhat.com> - 2.0.7-1
- Update to 2.0.7
Resolves: rhbz#2013031
* Mon Sep 20 2021 Lumír Balhar <lbalhar@redhat.com> - 2.0.6-1
- Update to 2.0.6
Resolves: rhbz#2004262
* Mon Aug 02 2021 Lumír Balhar <lbalhar@redhat.com> - 2.0.4-1
- Update to 2.0.4
Resolves: rhbz#1988575
* Wed Jul 21 2021 Lumír Balhar <lbalhar@redhat.com> - 2.0.3-1
- Initial package

9
plan.fmf Normal file
View File

@ -0,0 +1,9 @@
discover:
how: shell
tests:
- name: import test
test: python3 -c 'import charset_normalizer'
require:
- python3-charset-normalizer
execute:
how: tmt

View File

@ -0,0 +1,55 @@
Name: python-charset-normalizer
Version: 3.4.3
Release: %autorelease
Summary: The Real First Universal Charset Detector
# SPDX
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}
# Drop mypy from build dependencies
sed -i 's/"mypy.*"//' pyproject.toml
%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
%autochangelog

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (3.4.3.tar.gz) = c64f27e1cbfc08f8c14bed390270c3296a3b1bc99a37bded1d6320fac0819e652f654c42eaade9f2b8f854b8711976cb35567a116ef9365916eaed5606e21fa8