From 85fd6be22ca6e9d6a44c298d6d435290871e42b5 Mon Sep 17 00:00:00 2001 From: Pete Walter Date: Jun 18 2019 17:49:31 +0000 Subject: Move comment to where the workaround is applied ... and also fix the link to the bug report. --- 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