%global pypi_name cfgv Name: python-%{pypi_name} Version: 2.0.1 Release: 1%{?dist} Summary: Validate configuration and produce human readable error messages License: MIT URL: https://github.com/asottile/cfgv Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) # For tests BuildRequires: python3dist(six) %?python_enable_dependency_generator %description %{summary}. %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %check %{__python3} setup.py test %files %license LICENSE %doc README.md %{python3_sitelib}/__pycache__/* %{python3_sitelib}/%{pypi_name}.py %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Thu Oct 24 2019 Artem Polishchuk - 2.0.1-1 - Initial package