%global pypi_name stdlib-list Name: python-%{pypi_name} Version: 0.5.0 Release: 1%{?dist} Summary: A list of Python Standard Libraries (2.6-7, 3.2-6) License: MIT URL: https://github.com/jackmaney/python-stdlib-list Source0: https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %{?python_enable_dependency_generator} BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description Python Standard Library List -This package includes lists of all of the standard libraries for Python 2.6, 2.7, 3.2, 3.3, 3.4, 3.5, and 3.6, along with the code for scraping the official Python docs to get said lists.Listing the modules in the standard library? Wait, why on Earth would you care about that?! Because knowing whether or not a module is part of the standard library will come in... %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(sphinx) Requires: python3dist(sphinx_rtd_theme) %description -n python3-%{pypi_name} Python Standard Library List -This package includes lists of all of the standard libraries for Python 2.6, 2.7, 3.2, 3.3, 3.4, 3.5, and 3.6, along with the code for scraping the official Python docs to get said lists.Listing the modules in the standard library? Wait, why on Earth would you care about that?! Because knowing whether or not a module is part of the standard library will come in... %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} %license LICENSE %doc README.rst %{python3_sitelib}/stdlib_list %{python3_sitelib}/stdlib_list-%{version}-py?.?.egg-info %changelog * Thu Aug 15 2019 Luis Bazan - 0.5.0-1 - Initial package.