diff --git a/python-xnat.spec b/python-xnat.spec index ff301d4..191cdc6 100644 --- a/python-xnat.spec +++ b/python-xnat.spec @@ -33,6 +33,7 @@ BuildRequires: python3-progressbar2 BuildRequires: python3-sphinx_rtd_theme BuildRequires: python3-six +%{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} %{desc} @@ -48,7 +49,9 @@ rm -rf %{pypi_name}.egg-info %py3_install %check +%if %{with tests} %{__python3} setup.py test +%endif %files -n python3-%{pypi_name} %license LICENSE