%global python3_pkgversion 3.11 %global __python3 /usr/bin/python3.11 %{?python_disable_dependency_generator} # Created by pyp2rpm-3.3.8 %global pypi_name html5lib Name: python-%{pypi_name} Version: 1.1 Release: 5%{?dist} Summary: HTML parser based on the WHATWG HTML specification License: MIT License URL: https://github.com/html5lib/html5lib-python Source0: https://files.pythonhosted.org/packages/source/h/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools %description %{summary} %package -n python%{python3_pkgversion}-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} Requires: python%{python3_pkgversion}-six >= 1.9 Requires: python%{python3_pkgversion}-webencodings %description -n python%{python3_pkgversion}-%{pypi_name} %{summary} %prep set -ex %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build set -ex %py3_build %install set -ex %py3_install %files -n python%{python3_pkgversion}-%{pypi_name} %license LICENSE html5lib/tests/testdata/LICENSE %doc README.rst html5lib/tests/testdata/tokenizer/README.md html5lib/tests/testdata/tree-construction/README.md %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog * Tue Jan 16 2024 Odilon Sousa - 1.1-5 - Remove SCL bits * Tue Dec 12 2023 Patrick Creech - 1.1-4 - Rollback overzealous obsoletes * Tue Nov 21 2023 Patrick Creech - 1.1-3 - Add python39 obsoletes to package * Sat Nov 11 2023 Odilon Sousa - 1.1-2 - Build against python 3.11 * Mon Aug 07 2023 Odilon Sousa - 1.1-1 - Initial package.