diff --git a/python-pygit2.spec b/python-pygit2.spec index 36b294b..e1a1680 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -1,5 +1,3 @@ -# https://github.com/libgit2/pygit2/issues/811 -%global arch_test_fail ppc64 s390x %global pkgname pygit2 %{?python_enable_dependency_generator} @@ -63,7 +61,8 @@ find %{_builddir} -name '.buildinfo' -print -delete %check # This is horrible, but otherwise pytest does not use pygit2 from site-packages rm -f pygit2/__init__.py -%ifarch %{arch_test_fail} +# https://github.com/libgit2/pygit2/issues/812 +%ifarch ppc64 s390x PYTHONPATH=%{buildroot}%{python3_sitearch} py.test-%{python3_version} -v || : %else PYTHONPATH=%{buildroot}%{python3_sitearch} py.test-%{python3_version} -v