%global srcname stack-data %global srcnamenu stack_data Name: python-%{srcname} Version: 0.5.0 Release: 1%{?dist} Summary: Extract data from python stack frames and tracebacks for informative displays License: MIT URL: http://github.com/alexmojaki/stack_data Source0: %{pypi_source stack_data} BuildArch: noarch BuildRequires: python3-devel %global _description %{expand: This is a library that extracts data from stack frames and tracebacks, particularly to display more useful tracebacks than the default.} %description %_description %package -n python3-stack-data Summary: %{summary} %description -n python3-stack-data %_description %prep %autosetup -p1 -n stack_data-%{version} %generate_buildrequires %pyproject_buildrequires -r -t %build %pyproject_wheel %install %pyproject_install %pyproject_save_files stack_data #check #tox %files -n python3-stack-data -f %{pyproject_files} %doc README.md