%global pypi_name fastapi Name: python-%{pypi_name} Version: 0.61.1 Release: 1%{?dist} Summary: FastAPI framework, high performance, easy to learn, fast to code, ready for production License: None URL: https://github.com/tiangolo/fastapi Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description FastAPI framework, high performance, easy to learn, fast to code, ready for production %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} FastAPI framework, high performance, easy to learn, fast to code, ready for production %prep %autosetup -n %{pypi_name}-%{version} %build %py3_build %install %py3_install %check #disable tests for now (missing deps) ##%{__python3} setup.py test %files -n python3-%{pypi_name} %license LICENSE %doc README.md %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info %changelog * Wed Sep 30 2020 Itamar Reis Peixoto - 0.61.1-1 - Initial package.