diff --git a/python-pydenticon.changes b/python-pydenticon.changes index c8c8f6c..9fc03b6 100644 --- a/python-pydenticon.changes +++ b/python-pydenticon.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Jun 8 11:28:18 UTC 2019 - Oliver Kurz + +- Disable tests on big endian arch due to https://github.com/azaghal/pydenticon/issues/10 + ------------------------------------------------------------------- Mon May 20 15:32:34 UTC 2019 - pgajdos@suse.com diff --git a/python-pydenticon.spec b/python-pydenticon.spec index 3af8707..034a854 100644 --- a/python-pydenticon.spec +++ b/python-pydenticon.spec @@ -17,6 +17,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +# tests on big endian systems fail due to https://github.com/azaghal/pydenticon/issues/10 , disabled until fixed" +# can not use "ifarch" when BuildArch is set to noarch +%if %_arch == s390x || %_arch == s390x || %_arch == ppc || %_arch == ppc64 +%bcond_with test +%else +%bcond_without test +%endif %define modname pydenticon Name: python-%{modname} Version: 0.3.1 @@ -31,6 +38,7 @@ BuildRequires: %{python_module base} BuildRequires: %{python_module setuptools} # SECTION test requirements BuildRequires: %{python_module mock} +BuildRequires: %{python_module pytest} # /SECTION BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -66,7 +74,9 @@ original Sigil implementation, like: %python_expand %fdupes %{buildroot}%{$python_sitelib}/%{modname} %check +%if %{with test} %python_exec setup.py test +%endif %files %{python_files} %defattr(-,root,root,-)