From 0dc3bb47961b8396ec9f289bab5740961fe15d12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= Date: Tue, 9 Sep 2025 11:49:35 +0200 Subject: [PATCH] Convert from Fedora for the Python 3.14 stack in RHEL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fedora contributions by: Charalampos Stratakis Gwyn Ciesla Karolina Surma Lumír Balhar --- changelog | 50 ------------------------------ plan.fmf | 4 +-- python3.14-charset-normalizer.spec | 22 +++++-------- 3 files changed, 10 insertions(+), 66 deletions(-) delete mode 100644 changelog diff --git a/changelog b/changelog deleted file mode 100644 index 72ec0cd..0000000 --- a/changelog +++ /dev/null @@ -1,50 +0,0 @@ -* Thu Jan 19 2023 Lumír Balhar - 3.0.1-1 -- Update to 3.0.1 (rhbz#2118769) - -* Fri Jul 22 2022 Fedora Release Engineering - 2.1.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Mon Jun 20 2022 Lumír Balhar - 2.1.0-1 -- Update to 2.1.0 -Resolves: rhbz#2098481 - -* Mon Jun 13 2022 Python Maint - 2.0.12-2 -- Rebuilt for Python 3.11 - -* Mon Feb 14 2022 Lumír Balhar - 2.0.12-1 -- Update to 2.0.12 -Resolves: rhbz#2053838 - -* Mon Jan 31 2022 Lumír Balhar - 2.0.11-1 -- Update to 2.0.11 -Resolves: rhbz#2048279 - -* Fri Jan 21 2022 Fedora Release Engineering - 2.0.10-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Wed Jan 05 2022 Lumír Balhar - 2.0.10-1 -- Update to 2.0.10 -Resolves: rhbz#2037079 - -* Fri Dec 17 2021 Lumír Balhar - 2.0.9-1 -- Update to 2.0.9 -Resolves: rhbz#2028947 - -* Mon Nov 29 2021 Lumír Balhar - 2.0.8-1 -- Update to 2.0.8 -Resolves: rhbz#2026482 - -* Thu Oct 14 2021 Lumír Balhar - 2.0.7-1 -- Update to 2.0.7 -Resolves: rhbz#2013031 - -* Mon Sep 20 2021 Lumír Balhar - 2.0.6-1 -- Update to 2.0.6 -Resolves: rhbz#2004262 - -* Mon Aug 02 2021 Lumír Balhar - 2.0.4-1 -- Update to 2.0.4 -Resolves: rhbz#1988575 - -* Wed Jul 21 2021 Lumír Balhar - 2.0.3-1 -- Initial package diff --git a/plan.fmf b/plan.fmf index c1dd411..22c50ce 100644 --- a/plan.fmf +++ b/plan.fmf @@ -2,8 +2,8 @@ discover: how: shell tests: - name: import test - test: python3 -c 'import charset_normalizer' + test: python3.14 -c 'import charset_normalizer' require: - - python3-charset-normalizer + - python3.14-charset-normalizer execute: how: tmt diff --git a/python3.14-charset-normalizer.spec b/python3.14-charset-normalizer.spec index cf1747b..7c44353 100644 --- a/python3.14-charset-normalizer.spec +++ b/python3.14-charset-normalizer.spec @@ -1,4 +1,6 @@ -Name: python-charset-normalizer +%global python3_pkgversion 3.14 + +Name: python%{python3_pkgversion}-charset-normalizer Version: 3.4.3 Release: %autorelease Summary: The Real First Universal Charset Detector @@ -8,9 +10,9 @@ URL: https://github.com/ousret/charset_normalizer Source0: %{url}/archive/refs/tags/%{version}.tar.gz BuildArch: noarch -BuildRequires: python3-devel +BuildRequires: python%{python3_pkgversion}-devel BuildRequires: pyproject-rpm-macros -BuildRequires: python3dist(pytest) +BuildRequires: python%{python3_pkgversion}-pytest %description @@ -19,15 +21,6 @@ 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 @@ -42,14 +35,15 @@ sed -i 's/"mypy.*"//' pyproject.toml %install %pyproject_install %pyproject_save_files charset_normalizer +mv %{buildroot}%{_bindir}/normalizer{,-%{python3_version}} %check %pytest -%files -n python3-charset-normalizer -f %{pyproject_files} +%files -n python%{python3_pkgversion}-charset-normalizer -f %{pyproject_files} %license LICENSE %doc README.md -%{_bindir}/normalizer +%{_bindir}/normalizer-%{python3_pkgversion} %changelog %autochangelog