diff --git a/python-dist.spec b/python-dist.spec index 480886a..bac23a2 100644 --- a/python-dist.spec +++ b/python-dist.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # + %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-dist Version: 1.0.3 @@ -50,12 +51,12 @@ export CFLAGS="%{optflags}" %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} +%check +%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python tests/test_performance.py + %files %{python_files} %license LICENSE.txt %doc README.md %{python_sitearch}/* -%check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python tests/test_performance.py - %changelog