%global srcname rstcheck Name: python-%{srcname} Version: 3.3.1 Release: %autorelease Summary: Checks syntax of reStructuredText and code blocks nested within it License: MIT URL: https://github.com/myint/rstcheck Source0: https://files.pythonhosted.org/packages/source/r/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch %description Checks syntax of reStructuredText and code blocks nested within it. %package -n python3-%{srcname} BuildRequires: python3-devel BuildRequires: python3-docutils BuildRequires: python3-setuptools Requires: python3-docutils Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} Checks syntax of reStructuredText and code blocks nested within it. %prep %autosetup -n %{srcname}-%{version} rm -frv %{srcname}.egg-info %build %py3_build %install %py3_install %check %{__python3} setup.py test %files -n python3-%{srcname} %license LICENSE %doc README.rst AUTHORS.rst %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/ %{python3_sitelib}/%{srcname}.py %{python3_sitelib}/__pycache__/%{srcname}.* %{_bindir}/%{srcname} %changelog %autochangelog