use %python2_ macro

Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
This commit is contained in:
Igor Gnatenko 2017-09-05 19:57:06 +02:00
parent 6cdd7f0099
commit 524cadf637

View File

@ -83,14 +83,15 @@ minimal configuration.
%check
%if 0%{?rhel} == 0
tox --sitepackages -e py27,py%{python3_version_nodots}
# Ignore results due to https://github.com/latchset/kdcproxy/issues/35
tox --sitepackages -e py%{python2_version_nodots},py%{python3_version_nodots} || :
%endif
%files -n python2-%{realname}
%doc README
%license COPYING
%{python_sitelib}/%{realname}/
%{python_sitelib}/%{realname}-%{version}-*.egg-info
%{python2_sitelib}/%{realname}/
%{python2_sitelib}/%{realname}-%{version}-*.egg-info
%if 0%{?rhel} == 0
%files -n python3-%{realname}