%global pypi_name sgmllib3k Name: python-%{pypi_name} Version: 1.0.0 Release: 1%{?dist} Summary: Py3k port of sgmllib License: BSD License URL: https://pypi.org/project/sgmllib3k Source0: %pypi_source BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description sgmllib3k -- Py3k port of the old stdlib module sgmllib was dropped in Python 3. For those depending on it, that's somewhat infortunate. This is a quick and dirty port of this old module. I just ran 2to3 on it and published it. I don't indend to maintain it, so it might be a good idea to eventually think about finding another module to use. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} sgmllib3k -- Py3k port of the old stdlib module sgmllib was dropped in Python 3. For those depending on it, that's somewhat infortunate. This is a quick and dirty port of this old module. I just ran 2to3 on it and published it. I don't indend to maintain it, so it might be a good idea to eventually think about finding another module to use. %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %{python3_sitelib}/__pycache__/* %{python3_sitelib}/sgmllib.py %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Wed May 13 2020 Luis Bazan - 1.0.0-1 - Initial package.