Accepting request 745249 from home:bnavigator:branches:devel:languages:python:numeric
- fix segfault: run only those tests that require xvfb with xvfb-run - fix i586 build fail: add upstream PR#317 to replace float128 OBS-URL: https://build.opensuse.org/request/show/745249 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-control?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
f8bbeee8db
commit
bc9074d515
@@ -22,14 +22,13 @@ Version: 0.8.2
|
||||
Release: 0
|
||||
Summary: Python control systems library
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: http://python-control.sourceforge.net
|
||||
Source: https://files.pythonhosted.org/packages/source/c/control/control-%{version}.tar.gz
|
||||
Patch0: python-control-fixtestaugw.patch
|
||||
Patch1: python-control-pr317.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-matplotlib
|
||||
Requires: python-numpy
|
||||
Requires: python-scipy
|
||||
Recommends: python-slycot
|
||||
@@ -37,6 +36,7 @@ BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module matplotlib-qt5}
|
||||
BuildRequires: %{python_module matplotlib}
|
||||
BuildRequires: %{python_module nose-exclude}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module numpy}
|
||||
BuildRequires: %{python_module scipy}
|
||||
@@ -53,6 +53,7 @@ operations for analysis and design of feedback control systems.
|
||||
%prep
|
||||
%setup -q -n control-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -63,12 +64,21 @@ operations for analysis and design of feedback control systems.
|
||||
|
||||
%check
|
||||
# The default Agg backend does not define the toolbar attribute in the Figure
|
||||
# Manager used by some tests, so we run the Qt5 backend in a virtual X server
|
||||
# environment
|
||||
export MPLBACKEND="Qt5Agg"
|
||||
# Manager used by some tests, so we run those tests with the Qt5 backend in a
|
||||
# virtual X server environment
|
||||
%if %{_arch} == i386
|
||||
export LD_PRELOAD="%{_libdir}/libtcmalloc_minimal.so.4"
|
||||
%endif
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||
export MPLBACKEND="Agg"
|
||||
nosetests-%$python_bin_suffix \
|
||||
--exclude-test control.tests.sisotool_test \
|
||||
--exclude-test control.tests.rlocus_test
|
||||
export MPLBACKEND="Qt5Agg"
|
||||
export LD_PRELOAD="%{_libdir}/libtcmalloc_minimal.so.4"
|
||||
xvfb-run -a $python setup.py test
|
||||
xvfb-run -a nosetests-%$python_bin_suffix \
|
||||
control.tests.sisotool_test \
|
||||
control.tests.rlocus_test
|
||||
}
|
||||
|
||||
%files %{python_files}
|
||||
|
||||
Reference in New Issue
Block a user