https://bugzilla.redhat.com/show_bug.cgi?id=1413474
--- Comment #2 from Filip SzymaĆski fszymanski@onet.pl --- 1) When you set a tag Name, Version, Summary, URL, etc. a macro is created %{name}, %{summary}, %{url}, ... The summary global is unnecessary.
2) Tests do not have to be part of the RPM package (or setup.py file) to be run. The build requires (pytest, genisoimage, etc.) and the %check section is all you need.
%check PYTHONPATH=$RPM_BUILD_ROOT%{python2_sitelib} py.test-%{python2_version} -v PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitelib} py.test-%{python3_version} -v
3) Ok.