14
0

Accepting request 708757 from home:okurz:branches:devel:languages:python

- Disable tests on big endian arch due to https://github.com/azaghal/pydenticon/issues/10

OBS-URL: https://build.opensuse.org/request/show/708757
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydenticon?expand=0&rev=8
This commit is contained in:
2019-06-08 13:51:33 +00:00
committed by Git OBS Bridge
parent d21c9f978a
commit ee33bdb1d6
2 changed files with 15 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Jun 8 11:28:18 UTC 2019 - Oliver Kurz <okurz@suse.com>
- 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 Mon May 20 15:32:34 UTC 2019 - pgajdos@suse.com

View File

@@ -17,6 +17,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!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 %define modname pydenticon
Name: python-%{modname} Name: python-%{modname}
Version: 0.3.1 Version: 0.3.1
@@ -31,6 +38,7 @@ BuildRequires: %{python_module base}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module mock} BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest}
# /SECTION # /SECTION
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@@ -66,7 +74,9 @@ original Sigil implementation, like:
%python_expand %fdupes %{buildroot}%{$python_sitelib}/%{modname} %python_expand %fdupes %{buildroot}%{$python_sitelib}/%{modname}
%check %check
%if %{with test}
%python_exec setup.py test %python_exec setup.py test
%endif
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %defattr(-,root,root,-)