From d94fbdd7a09a0e67badad12d1da0a1fb6afa4974 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jan 2022 12:40:24 +0000 Subject: [PATCH 01/24] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-html2text.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-html2text.spec b/python-html2text.spec index 082e6d4..72513ac 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -7,7 +7,7 @@ also happens to be valid Markdown (a text-to-HTML format). Name: python-%{upname} Version: 2020.1.16 -Release: 4%{?dist} +Release: 5%{?dist} Summary: %{common_sum} License: GPLv3 @@ -79,6 +79,9 @@ popd %changelog +* Fri Jan 21 2022 Fedora Release Engineering - 2020.1.16-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Fri Jul 23 2021 Fedora Release Engineering - 2020.1.16-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From 037c72dcb2885c88b5ad311103889fea26f0cfa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0pl=C3=ADchal?= Date: Mon, 14 Mar 2022 10:42:18 +0100 Subject: [PATCH 02/24] Enable basic test coverage in the CI Run a simple smoke test and the upstream test suite. Use `tmt run` to safely execute tests from your laptop. See also: https://tmt.readthedocs.io/en/latest/guide.html --- .fmf/version | 1 + plans/basic.fmf | 11 +++++++++++ tests/smoke.fmf | 2 ++ tests/smoke.py | 24 ++++++++++++++++++++++++ tests/unit.fmf | 3 +++ 5 files changed, 41 insertions(+) create mode 100644 .fmf/version create mode 100644 plans/basic.fmf create mode 100644 tests/smoke.fmf create mode 100755 tests/smoke.py create mode 100644 tests/unit.fmf diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/plans/basic.fmf b/plans/basic.fmf new file mode 100644 index 0000000..0ec1948 --- /dev/null +++ b/plans/basic.fmf @@ -0,0 +1,11 @@ +summary: + Check basic functionality +discover: + how: fmf + dist-git-source: true + dist-git-init: false +prepare: + how: install + package: python3-html2text +execute: + how: tmt diff --git a/tests/smoke.fmf b/tests/smoke.fmf new file mode 100644 index 0000000..efee66a --- /dev/null +++ b/tests/smoke.fmf @@ -0,0 +1,2 @@ +summary: A simple smoke test +test: ./smoke.py diff --git a/tests/smoke.py b/tests/smoke.py new file mode 100755 index 0000000..7c65c2e --- /dev/null +++ b/tests/smoke.py @@ -0,0 +1,24 @@ +#!/usr/bin/python3 + +import html2text + +html = """ + + +

heading

+
  • item
+ + +""" + +text = html2text.html2text(html) + +print(text) + +if "### heading" not in text: + print("Heading not converted.") + raise SystemExit(1) + +if "* item" not in text: + print("List item not converted.") + raise SystemExit(1) diff --git a/tests/unit.fmf b/tests/unit.fmf new file mode 100644 index 0000000..fe58d22 --- /dev/null +++ b/tests/unit.fmf @@ -0,0 +1,3 @@ +summary: Run the upstream test suite +test: cd ../html2text-*/ && python3 -m pytest +require: python3-pytest From 545980ba9c7204422f7103be24cb602cb84fccea Mon Sep 17 00:00:00 2001 From: Python Maint Date: Mon, 13 Jun 2022 17:11:21 +0200 Subject: [PATCH 03/24] Rebuilt for Python 3.11 --- python-html2text.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-html2text.spec b/python-html2text.spec index 72513ac..794b345 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -7,7 +7,7 @@ also happens to be valid Markdown (a text-to-HTML format). Name: python-%{upname} Version: 2020.1.16 -Release: 5%{?dist} +Release: 6%{?dist} Summary: %{common_sum} License: GPLv3 @@ -79,6 +79,9 @@ popd %changelog +* Mon Jun 13 2022 Python Maint - 2020.1.16-6 +- Rebuilt for Python 3.11 + * Fri Jan 21 2022 Fedora Release Engineering - 2020.1.16-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From 0b08ee5af51a9f198602eeee87de3d9c8a92c4df Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 22 Jul 2022 19:09:56 +0000 Subject: [PATCH 04/24] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-html2text.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-html2text.spec b/python-html2text.spec index 794b345..5fd949f 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -7,7 +7,7 @@ also happens to be valid Markdown (a text-to-HTML format). Name: python-%{upname} Version: 2020.1.16 -Release: 6%{?dist} +Release: 7%{?dist} Summary: %{common_sum} License: GPLv3 @@ -79,6 +79,9 @@ popd %changelog +* Fri Jul 22 2022 Fedora Release Engineering - 2020.1.16-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Mon Jun 13 2022 Python Maint - 2020.1.16-6 - Rebuilt for Python 3.11 From d08288dfeeee359eaeaf4a2fcb1b259f1659182c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 20 Jan 2023 13:49:50 +0000 Subject: [PATCH 05/24] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-html2text.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-html2text.spec b/python-html2text.spec index 5fd949f..2cb9682 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -7,7 +7,7 @@ also happens to be valid Markdown (a text-to-HTML format). Name: python-%{upname} Version: 2020.1.16 -Release: 7%{?dist} +Release: 8%{?dist} Summary: %{common_sum} License: GPLv3 @@ -79,6 +79,9 @@ popd %changelog +* Fri Jan 20 2023 Fedora Release Engineering - 2020.1.16-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Fri Jul 22 2022 Fedora Release Engineering - 2020.1.16-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From fdfaa0429c0e1ef15febd919bfd7fe9a82674f6a Mon Sep 17 00:00:00 2001 From: Python Maint Date: Tue, 13 Jun 2023 22:50:58 +0200 Subject: [PATCH 06/24] Rebuilt for Python 3.12 --- python-html2text.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-html2text.spec b/python-html2text.spec index 2cb9682..6af6dd5 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -7,7 +7,7 @@ also happens to be valid Markdown (a text-to-HTML format). Name: python-%{upname} Version: 2020.1.16 -Release: 8%{?dist} +Release: 9%{?dist} Summary: %{common_sum} License: GPLv3 @@ -79,6 +79,9 @@ popd %changelog +* Tue Jun 13 2023 Python Maint - 2020.1.16-9 +- Rebuilt for Python 3.12 + * Fri Jan 20 2023 Fedora Release Engineering - 2020.1.16-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From daa343031e505228d30ed85c84efcf5691a9f664 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jul 2023 10:23:08 +0000 Subject: [PATCH 07/24] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- python-html2text.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-html2text.spec b/python-html2text.spec index 6af6dd5..6a4c894 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -7,7 +7,7 @@ also happens to be valid Markdown (a text-to-HTML format). Name: python-%{upname} Version: 2020.1.16 -Release: 9%{?dist} +Release: 10%{?dist} Summary: %{common_sum} License: GPLv3 @@ -79,6 +79,9 @@ popd %changelog +* Fri Jul 21 2023 Fedora Release Engineering - 2020.1.16-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Tue Jun 13 2023 Python Maint - 2020.1.16-9 - Rebuilt for Python 3.12 From b497dda37aefb7fa176e4a6a8165ab9585ef2d7e Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Sun, 22 Oct 2023 21:41:00 -0400 Subject: [PATCH 08/24] Fix flatpak build No assumptions should be made as to the location of help2man; in the case of flatpak builds, the buildroot version in /usr is used even when building into /app. --- python-html2text.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-html2text.spec b/python-html2text.spec index 6a4c894..5899514 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -50,7 +50,7 @@ Obsoletes: python2-%{upname} <= %{version}-%{release} %py3_install %{__mv} -f %{buildroot}%{_bindir}/%{upname} %{buildroot}%{_bindir}/python3-%{upname} export PYTHONPATH="%{buildroot}%{python3_sitelib}" -%{_bindir}/help2man --no-discard-stderr -s 1 -N -o %{buildroot}%{_mandir}/man1/python3-%{upname}.1 %{buildroot}%{_bindir}/python3-%{upname} +help2man --no-discard-stderr -s 1 -N -o %{buildroot}%{_mandir}/man1/python3-%{upname}.1 %{buildroot}%{_bindir}/python3-%{upname} pushd %{buildroot}%{_bindir} ln -s python3-%{upname} %{upname} ln -s python3-%{upname} %{name} From 7ed9b89423e4bd34ec95b98510435262a883aa63 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 22 Jan 2024 02:16:15 +0000 Subject: [PATCH 09/24] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- python-html2text.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-html2text.spec b/python-html2text.spec index 5899514..b4a35c3 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -7,7 +7,7 @@ also happens to be valid Markdown (a text-to-HTML format). Name: python-%{upname} Version: 2020.1.16 -Release: 10%{?dist} +Release: 11%{?dist} Summary: %{common_sum} License: GPLv3 @@ -79,6 +79,9 @@ popd %changelog +* Mon Jan 22 2024 Fedora Release Engineering - 2020.1.16-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Jul 21 2023 Fedora Release Engineering - 2020.1.16-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From bee06a11604ea9ad7766db0fe598dee2efb04663 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 26 Jan 2024 05:13:46 +0000 Subject: [PATCH 10/24] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- python-html2text.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-html2text.spec b/python-html2text.spec index b4a35c3..19f608f 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -7,7 +7,7 @@ also happens to be valid Markdown (a text-to-HTML format). Name: python-%{upname} Version: 2020.1.16 -Release: 11%{?dist} +Release: 12%{?dist} Summary: %{common_sum} License: GPLv3 @@ -79,6 +79,9 @@ popd %changelog +* Fri Jan 26 2024 Fedora Release Engineering - 2020.1.16-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Mon Jan 22 2024 Fedora Release Engineering - 2020.1.16-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 1d1e4bd2fe819aa932d9834f5316bd99841b150e Mon Sep 17 00:00:00 2001 From: David Kaufmann Date: Sun, 25 Feb 2024 18:59:48 +0100 Subject: [PATCH 11/24] update to v2024.2.25 --- .gitignore | 1 + python-html2text.spec | 7 +++++-- sources | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 9351604..5dbfdbe 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ html2text-2.38.py /html2text-2019.8.11.tar.gz /html2text-2019.9.26.tar.gz /html2text-2020.1.16.tar.gz +/html2text-2024.2.25.tar.gz diff --git a/python-html2text.spec b/python-html2text.spec index 19f608f..3de93aa 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -6,8 +6,8 @@ also happens to be valid Markdown (a text-to-HTML format). Name: python-%{upname} -Version: 2020.1.16 -Release: 12%{?dist} +Version: 2024.2.25 +Release: 1%{?dist} Summary: %{common_sum} License: GPLv3 @@ -79,6 +79,9 @@ popd %changelog +* Sun Feb 25 2024 Fedora Release Monitoring - 2024.2.25-1 +- Update to 2024.2.25 (#2265896) + * Fri Jan 26 2024 Fedora Release Engineering - 2020.1.16-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild diff --git a/sources b/sources index bb8e7f3..587b5e6 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (html2text-2020.1.16.tar.gz) = 14453c98e81d05afb3241b04a9e50caf63e4b6f857337b4bd9f53e6b8fa7146aa6a1f4f64777db9fa350316b19fe62a0033dce5748191ca9fbd17a8757002855 +SHA512 (html2text-2024.2.25.tar.gz) = 9adf1367b644a7dccef35ddd0041ade8a206943927585a4c1766ff76e2ffc9ab58479d285fe8eb2e18b80270f9eb50ec82855fb8b0df8525e905278abd8ddc22 From a3c804de7766837585707ee132fdf31b656bc6e0 Mon Sep 17 00:00:00 2001 From: David Kaufmann Date: Tue, 27 Feb 2024 21:40:49 +0100 Subject: [PATCH 12/24] bugfix update --- .gitignore | 1 + python-html2text.spec | 5 ++++- sources | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 5dbfdbe..76ccc63 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ html2text-2.38.py /html2text-2019.9.26.tar.gz /html2text-2020.1.16.tar.gz /html2text-2024.2.25.tar.gz +/html2text-2024.2.26.tar.gz diff --git a/python-html2text.spec b/python-html2text.spec index 3de93aa..2a3ea0a 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -6,7 +6,7 @@ also happens to be valid Markdown (a text-to-HTML format). Name: python-%{upname} -Version: 2024.2.25 +Version: 2024.2.26 Release: 1%{?dist} Summary: %{common_sum} @@ -79,6 +79,9 @@ popd %changelog +* Tue Feb 27 2024 Fedora Release Monitoring - 2024.2.26-1 +- Update to 2024.2.26 (#2266431) + * Sun Feb 25 2024 Fedora Release Monitoring - 2024.2.25-1 - Update to 2024.2.25 (#2265896) diff --git a/sources b/sources index 587b5e6..c2e523f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (html2text-2024.2.25.tar.gz) = 9adf1367b644a7dccef35ddd0041ade8a206943927585a4c1766ff76e2ffc9ab58479d285fe8eb2e18b80270f9eb50ec82855fb8b0df8525e905278abd8ddc22 +SHA512 (html2text-2024.2.26.tar.gz) = 8304dbc0a8d06ea1bbed4edccbbcb817423bab7acbaa9db84c6c9c3e74a8d1daec148cb591b76b7d5865224ea424b388316c867bda4b07b19ed91272b7beff88 From d77422967fc588d712c877e5468a39cc21bfc3d2 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 7 Jun 2024 10:52:23 +0200 Subject: [PATCH 13/24] Rebuilt for Python 3.13 --- python-html2text.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-html2text.spec b/python-html2text.spec index 2a3ea0a..0800088 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -7,7 +7,7 @@ also happens to be valid Markdown (a text-to-HTML format). Name: python-%{upname} Version: 2024.2.26 -Release: 1%{?dist} +Release: 2%{?dist} Summary: %{common_sum} License: GPLv3 @@ -79,6 +79,9 @@ popd %changelog +* Fri Jun 07 2024 Python Maint - 2024.2.26-2 +- Rebuilt for Python 3.13 + * Tue Feb 27 2024 Fedora Release Monitoring - 2024.2.26-1 - Update to 2024.2.26 (#2266431) From 8b1f1dee9494063b1d507722ad561ab3cbba77dd Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jul 2024 12:10:17 +0000 Subject: [PATCH 14/24] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- python-html2text.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-html2text.spec b/python-html2text.spec index 0800088..381cd9a 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -7,7 +7,7 @@ also happens to be valid Markdown (a text-to-HTML format). Name: python-%{upname} Version: 2024.2.26 -Release: 2%{?dist} +Release: 3%{?dist} Summary: %{common_sum} License: GPLv3 @@ -79,6 +79,9 @@ popd %changelog +* Fri Jul 19 2024 Fedora Release Engineering - 2024.2.26-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Fri Jun 07 2024 Python Maint - 2024.2.26-2 - Rebuilt for Python 3.13 From 0bd0c3bf282c54b2a84b546a84c75819b49e0f69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Mon, 29 Jul 2024 14:23:19 +0200 Subject: [PATCH 15/24] convert GPLv3 license to SPDX This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4 --- python-html2text.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/python-html2text.spec b/python-html2text.spec index 381cd9a..f60b47f 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -7,10 +7,11 @@ also happens to be valid Markdown (a text-to-HTML format). Name: python-%{upname} Version: 2024.2.26 -Release: 3%{?dist} +Release: 4%{?dist} Summary: %{common_sum} -License: GPLv3 +# Automatically converted from old format: GPLv3 - review is highly recommended. +License: GPL-3.0-only URL: http://alir3z4.github.io/%{upname} Source0: https://files.pythonhosted.org/packages/source/h/%{upname}/%{upname}-%{version}.tar.gz @@ -79,6 +80,9 @@ popd %changelog +* Mon Jul 29 2024 Miroslav Suchý - 2024.2.26-4 +- convert license to SPDX + * Fri Jul 19 2024 Fedora Release Engineering - 2024.2.26-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From f501b0840bd1aebfbd4211551d6a129ca6aec7fa Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 18 Jan 2025 14:59:41 +0000 Subject: [PATCH 16/24] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- python-html2text.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-html2text.spec b/python-html2text.spec index f60b47f..c6e6528 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -7,7 +7,7 @@ also happens to be valid Markdown (a text-to-HTML format). Name: python-%{upname} Version: 2024.2.26 -Release: 4%{?dist} +Release: 5%{?dist} Summary: %{common_sum} # Automatically converted from old format: GPLv3 - review is highly recommended. @@ -80,6 +80,9 @@ popd %changelog +* Sat Jan 18 2025 Fedora Release Engineering - 2024.2.26-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Mon Jul 29 2024 Miroslav Suchý - 2024.2.26-4 - convert license to SPDX From c7224efcec35b985d36e4cfcf01162514a3528f8 Mon Sep 17 00:00:00 2001 From: David Kaufmann Date: Wed, 21 May 2025 00:00:27 +0200 Subject: [PATCH 17/24] update to v2025.4.15 --- .gitignore | 1 + python-html2text.spec | 24 ++++++++++++++---------- sources | 2 +- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 76ccc63..3ea4577 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ html2text-2.38.py /html2text-2020.1.16.tar.gz /html2text-2024.2.25.tar.gz /html2text-2024.2.26.tar.gz +/html2text-2025.4.15.tar.gz diff --git a/python-html2text.spec b/python-html2text.spec index c6e6528..3e39c79 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -6,13 +6,12 @@ also happens to be valid Markdown (a text-to-HTML format). Name: python-%{upname} -Version: 2024.2.26 -Release: 5%{?dist} +Version: 2025.4.15 +Release: 1%{?dist} Summary: %{common_sum} -# Automatically converted from old format: GPLv3 - review is highly recommended. License: GPL-3.0-only -URL: http://alir3z4.github.io/%{upname} +URL: https://github.com/Alir3z4/%{upname}/ Source0: https://files.pythonhosted.org/packages/source/h/%{upname}/%{upname}-%{version}.tar.gz BuildArch: noarch @@ -38,17 +37,22 @@ Obsoletes: python2-%{upname} <= %{version}-%{release} %prep %autosetup -n %{upname}-%{version} -%{__rm} -fr *.egg-info +#%{__rm} -fr *.egg-info + +%generate_buildrequires +%pyproject_buildrequires %build -%py3_build +%pyproject_wheel %install +%pyproject_install +%pyproject_save_files html2text + %{__mkdir} -p %{buildroot}%{_mandir}/man1 -%py3_install %{__mv} -f %{buildroot}%{_bindir}/%{upname} %{buildroot}%{_bindir}/python3-%{upname} export PYTHONPATH="%{buildroot}%{python3_sitelib}" help2man --no-discard-stderr -s 1 -N -o %{buildroot}%{_mandir}/man1/python3-%{upname}.1 %{buildroot}%{_bindir}/python3-%{upname} @@ -63,10 +67,12 @@ popd %check +%pyproject_check_import %{__python3} -m pytest +%pytest %{_builddir} -%files -n python3-%{upname} +%files -n python3-%{upname} -f %{pyproject_files} %license AUTHORS.* COPYING %doc README.* ChangeLog.* PKG-INFO %{_bindir}/python3-%{upname} @@ -75,8 +81,6 @@ popd %{_mandir}/man1/python3-%{upname}.1* %{_mandir}/man1/%{upname}.1* %{_mandir}/man1/%{name}.1* -%{python3_sitelib}/%{upname} -%{python3_sitelib}/%{upname}-%{version}-py%{python3_version}.egg-info %changelog diff --git a/sources b/sources index c2e523f..03c28dc 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (html2text-2024.2.26.tar.gz) = 8304dbc0a8d06ea1bbed4edccbbcb817423bab7acbaa9db84c6c9c3e74a8d1daec148cb591b76b7d5865224ea424b388316c867bda4b07b19ed91272b7beff88 +SHA512 (html2text-2025.4.15.tar.gz) = 2f12e293bb8aa87b4d03d3ec4698e8e8bf013acc9f69b25a2c7a1aacca9a8aaf646747c56a47bc15dae0601ecdc119ba4818daca933d4be7fa52f234c672d9f3 From 4925990bc967ca8156006701018e48a90a8fb134 Mon Sep 17 00:00:00 2001 From: David Kaufmann Date: Wed, 21 May 2025 00:24:02 +0200 Subject: [PATCH 18/24] fix license --- python-html2text.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-html2text.spec b/python-html2text.spec index 3e39c79..df7b73a 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -10,7 +10,7 @@ Version: 2025.4.15 Release: 1%{?dist} Summary: %{common_sum} -License: GPL-3.0-only +License: GPL-3.0-or-later URL: https://github.com/Alir3z4/%{upname}/ Source0: https://files.pythonhosted.org/packages/source/h/%{upname}/%{upname}-%{version}.tar.gz From a87babb75b5b6b16e05b82ec780f752646430a40 Mon Sep 17 00:00:00 2001 From: David Kaufmann Date: Wed, 21 May 2025 00:33:12 +0200 Subject: [PATCH 19/24] cleanup --- python-html2text.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/python-html2text.spec b/python-html2text.spec index df7b73a..a71a6f8 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -37,7 +37,6 @@ Obsoletes: python2-%{upname} <= %{version}-%{release} %prep %autosetup -n %{upname}-%{version} -#%{__rm} -fr *.egg-info %generate_buildrequires %pyproject_buildrequires From 2d7afc8619ef9bf9bc3bf9db3d15344844169dd8 Mon Sep 17 00:00:00 2001 From: David Kaufmann Date: Wed, 21 May 2025 01:08:13 +0200 Subject: [PATCH 20/24] catch up changelog --- python-html2text.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python-html2text.spec b/python-html2text.spec index a71a6f8..9275138 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -83,6 +83,9 @@ popd %changelog +* Wed May 21 2025 David Kaufmann - 2025.4.15-1 +- Update to 2025.4.15 + * Sat Jan 18 2025 Fedora Release Engineering - 2024.2.26-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From acb38288261db47577f04abf74218e3d43e364e9 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Mon, 2 Jun 2025 22:47:44 +0200 Subject: [PATCH 21/24] Rebuilt for Python 3.14 --- python-html2text.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-html2text.spec b/python-html2text.spec index 9275138..15b597f 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -7,7 +7,7 @@ also happens to be valid Markdown (a text-to-HTML format). Name: python-%{upname} Version: 2025.4.15 -Release: 1%{?dist} +Release: 2%{?dist} Summary: %{common_sum} License: GPL-3.0-or-later @@ -83,6 +83,9 @@ popd %changelog +* Mon Jun 02 2025 Python Maint - 2025.4.15-2 +- Rebuilt for Python 3.14 + * Wed May 21 2025 David Kaufmann - 2025.4.15-1 - Update to 2025.4.15 From 8c8381846ee5cfa32e045d8a1b146e2fa9a67d87 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 08:15:28 +0000 Subject: [PATCH 22/24] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- python-html2text.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-html2text.spec b/python-html2text.spec index 15b597f..6942134 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -7,7 +7,7 @@ also happens to be valid Markdown (a text-to-HTML format). Name: python-%{upname} Version: 2025.4.15 -Release: 2%{?dist} +Release: 3%{?dist} Summary: %{common_sum} License: GPL-3.0-or-later @@ -83,6 +83,9 @@ popd %changelog +* Fri Jul 25 2025 Fedora Release Engineering - 2025.4.15-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Mon Jun 02 2025 Python Maint - 2025.4.15-2 - Rebuilt for Python 3.14 From afe6eb6fa8e97d21c48f449f759691ce2f4f7d46 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 15 Aug 2025 13:52:44 +0200 Subject: [PATCH 23/24] Rebuilt for Python 3.14.0rc2 bytecode --- python-html2text.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-html2text.spec b/python-html2text.spec index 6942134..090b388 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -7,7 +7,7 @@ also happens to be valid Markdown (a text-to-HTML format). Name: python-%{upname} Version: 2025.4.15 -Release: 3%{?dist} +Release: 4%{?dist} Summary: %{common_sum} License: GPL-3.0-or-later @@ -83,6 +83,9 @@ popd %changelog +* Fri Aug 15 2025 Python Maint - 2025.4.15-4 +- Rebuilt for Python 3.14.0rc2 bytecode + * Fri Jul 25 2025 Fedora Release Engineering - 2025.4.15-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From daa7120b41ad7712a47d96260fda0a16d60ce331 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 19 Sep 2025 13:26:07 +0200 Subject: [PATCH 24/24] Rebuilt for Python 3.14.0rc3 bytecode --- python-html2text.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python-html2text.spec b/python-html2text.spec index 090b388..45f9598 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -7,7 +7,7 @@ also happens to be valid Markdown (a text-to-HTML format). Name: python-%{upname} Version: 2025.4.15 -Release: 4%{?dist} +Release: 5%{?dist} Summary: %{common_sum} License: GPL-3.0-or-later @@ -83,6 +83,9 @@ popd %changelog +* Fri Sep 19 2025 Python Maint - 2025.4.15-5 +- Rebuilt for Python 3.14.0rc3 bytecode + * Fri Aug 15 2025 Python Maint - 2025.4.15-4 - Rebuilt for Python 3.14.0rc2 bytecode