Compare commits
No commits in common. "rawhide" and "f29" have entirely different histories.
8 changed files with 12 additions and 139 deletions
|
|
@ -1 +0,0 @@
|
||||||
1
|
|
||||||
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -6,7 +6,3 @@ html2text-2.38.py
|
||||||
/html2text-2018.1.9.tar.gz
|
/html2text-2018.1.9.tar.gz
|
||||||
/html2text-2019.8.11.tar.gz
|
/html2text-2019.8.11.tar.gz
|
||||||
/html2text-2019.9.26.tar.gz
|
/html2text-2019.9.26.tar.gz
|
||||||
/html2text-2020.1.16.tar.gz
|
|
||||||
/html2text-2024.2.25.tar.gz
|
|
||||||
/html2text-2024.2.26.tar.gz
|
|
||||||
/html2text-2025.4.15.tar.gz
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
summary:
|
|
||||||
Check basic functionality
|
|
||||||
discover:
|
|
||||||
how: fmf
|
|
||||||
dist-git-source: true
|
|
||||||
dist-git-init: false
|
|
||||||
prepare:
|
|
||||||
how: install
|
|
||||||
package: python3-html2text
|
|
||||||
execute:
|
|
||||||
how: tmt
|
|
||||||
|
|
@ -6,12 +6,12 @@ also happens to be valid Markdown (a text-to-HTML format).
|
||||||
|
|
||||||
|
|
||||||
Name: python-%{upname}
|
Name: python-%{upname}
|
||||||
Version: 2025.4.15
|
Version: 2019.9.26
|
||||||
Release: 5%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: %{common_sum}
|
Summary: %{common_sum}
|
||||||
|
|
||||||
License: GPL-3.0-or-later
|
License: GPLv3
|
||||||
URL: https://github.com/Alir3z4/%{upname}/
|
URL: http://alir3z4.github.io/%{upname}
|
||||||
Source0: https://files.pythonhosted.org/packages/source/h/%{upname}/%{upname}-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/h/%{upname}/%{upname}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
@ -37,24 +37,20 @@ Obsoletes: python2-%{upname} <= %{version}-%{release}
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{upname}-%{version}
|
%autosetup -n %{upname}-%{version}
|
||||||
|
%{__rm} -fr *.egg-info
|
||||||
%generate_buildrequires
|
|
||||||
%pyproject_buildrequires
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%py3_build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
|
||||||
%pyproject_save_files html2text
|
|
||||||
|
|
||||||
%{__mkdir} -p %{buildroot}%{_mandir}/man1
|
%{__mkdir} -p %{buildroot}%{_mandir}/man1
|
||||||
|
|
||||||
|
%py3_install
|
||||||
%{__mv} -f %{buildroot}%{_bindir}/%{upname} %{buildroot}%{_bindir}/python3-%{upname}
|
%{__mv} -f %{buildroot}%{_bindir}/%{upname} %{buildroot}%{_bindir}/python3-%{upname}
|
||||||
export PYTHONPATH="%{buildroot}%{python3_sitelib}"
|
export PYTHONPATH="%{buildroot}%{python3_sitelib}"
|
||||||
help2man --no-discard-stderr -s 1 -N -o %{buildroot}%{_mandir}/man1/python3-%{upname}.1 %{buildroot}%{_bindir}/python3-%{upname}
|
%{_bindir}/help2man --no-discard-stderr -s 1 -N -o %{buildroot}%{_mandir}/man1/python3-%{upname}.1 %{buildroot}%{_bindir}/python3-%{upname}
|
||||||
pushd %{buildroot}%{_bindir}
|
pushd %{buildroot}%{_bindir}
|
||||||
ln -s python3-%{upname} %{upname}
|
ln -s python3-%{upname} %{upname}
|
||||||
ln -s python3-%{upname} %{name}
|
ln -s python3-%{upname} %{name}
|
||||||
|
|
@ -66,12 +62,10 @@ popd
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pyproject_check_import
|
|
||||||
%{__python3} -m pytest
|
%{__python3} -m pytest
|
||||||
%pytest %{_builddir}
|
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-%{upname} -f %{pyproject_files}
|
%files -n python3-%{upname}
|
||||||
%license AUTHORS.* COPYING
|
%license AUTHORS.* COPYING
|
||||||
%doc README.* ChangeLog.* PKG-INFO
|
%doc README.* ChangeLog.* PKG-INFO
|
||||||
%{_bindir}/python3-%{upname}
|
%{_bindir}/python3-%{upname}
|
||||||
|
|
@ -80,87 +74,11 @@ popd
|
||||||
%{_mandir}/man1/python3-%{upname}.1*
|
%{_mandir}/man1/python3-%{upname}.1*
|
||||||
%{_mandir}/man1/%{upname}.1*
|
%{_mandir}/man1/%{upname}.1*
|
||||||
%{_mandir}/man1/%{name}.1*
|
%{_mandir}/man1/%{name}.1*
|
||||||
|
%{python3_sitelib}/%{upname}
|
||||||
|
%{python3_sitelib}/%{upname}-%{version}-py%{python3_version}.egg-info
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 2025.4.15-5
|
|
||||||
- Rebuilt for Python 3.14.0rc3 bytecode
|
|
||||||
|
|
||||||
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 2025.4.15-4
|
|
||||||
- Rebuilt for Python 3.14.0rc2 bytecode
|
|
||||||
|
|
||||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2025.4.15-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon Jun 02 2025 Python Maint <python-maint@redhat.com> - 2025.4.15-2
|
|
||||||
- Rebuilt for Python 3.14
|
|
||||||
|
|
||||||
* Wed May 21 2025 David Kaufmann <astra@ionic.at> - 2025.4.15-1
|
|
||||||
- Update to 2025.4.15
|
|
||||||
|
|
||||||
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2024.2.26-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon Jul 29 2024 Miroslav Suchý <msuchy@redhat.com> - 2024.2.26-4
|
|
||||||
- convert license to SPDX
|
|
||||||
|
|
||||||
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2024.2.26-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 2024.2.26-2
|
|
||||||
- Rebuilt for Python 3.13
|
|
||||||
|
|
||||||
* Tue Feb 27 2024 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 2024.2.26-1
|
|
||||||
- Update to 2024.2.26 (#2266431)
|
|
||||||
|
|
||||||
* Sun Feb 25 2024 Fedora Release Monitoring <release-monitoring@fedoraproject.org> - 2024.2.25-1
|
|
||||||
- Update to 2024.2.25 (#2265896)
|
|
||||||
|
|
||||||
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2020.1.16-12
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2020.1.16-11
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2020.1.16-10
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 2020.1.16-9
|
|
||||||
- Rebuilt for Python 3.12
|
|
||||||
|
|
||||||
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2020.1.16-8
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2020.1.16-7
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 2020.1.16-6
|
|
||||||
- Rebuilt for Python 3.11
|
|
||||||
|
|
||||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2020.1.16-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2020.1.16-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2020.1.16-3
|
|
||||||
- Rebuilt for Python 3.10
|
|
||||||
|
|
||||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2020.1.16-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
||||||
|
|
||||||
* Fri Aug 07 2020 David Kaufmann <astra@ionic.at> - 2020.1.16-1
|
|
||||||
- Update to 2020.1.16
|
|
||||||
|
|
||||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2019.9.26-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2019.9.26-4
|
|
||||||
- Rebuilt for Python 3.9
|
|
||||||
|
|
||||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2019.9.26-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Oct 29 2019 Sérgio Basto <sergio@serjux.com> - 2019.9.26-2
|
* Tue Oct 29 2019 Sérgio Basto <sergio@serjux.com> - 2019.9.26-2
|
||||||
- Python3 only this version remove support for Python <= 3.4
|
- Python3 only this version remove support for Python <= 3.4
|
||||||
|
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
SHA512 (html2text-2025.4.15.tar.gz) = 2f12e293bb8aa87b4d03d3ec4698e8e8bf013acc9f69b25a2c7a1aacca9a8aaf646747c56a47bc15dae0601ecdc119ba4818daca933d4be7fa52f234c672d9f3
|
SHA512 (html2text-2019.9.26.tar.gz) = 4c6a52e96d3997a6ebe41c2955e2f6bd5189f49aadd7d7afbe67b85a2f61a0aafd0fc09fef184cb9407b9ab26f120ef235294e4e9d8f41e3b6b8f6fc29aa386d
|
||||||
|
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
||||||
summary: A simple smoke test
|
|
||||||
test: ./smoke.py
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
#!/usr/bin/python3
|
|
||||||
|
|
||||||
import html2text
|
|
||||||
|
|
||||||
html = """
|
|
||||||
<html>
|
|
||||||
<body>
|
|
||||||
<h3>heading</h3>
|
|
||||||
<ul><li>item</li></ul>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
"""
|
|
||||||
|
|
||||||
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)
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
summary: Run the upstream test suite
|
|
||||||
test: cd ../html2text-*/ && python3 -m pytest
|
|
||||||
require: python3-pytest
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue