Files
python-control/python-control.spec
Benjamin Greiner 152831324b Accepting request 979680 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 0.9.2
  * Improvements in I/O systems, stochastic systems,
    optimization-based control, Nyquist plots
  * Round to nearest integer decade for default omega vector by
    @bnavigator in #688
  * Fix in documentation of ss2tf by @miroslavfikar in #695
  * Interpret str-type args to interconnect as non-sequence by
    @roryyorke in #698
  * Fixes to various optimization-based control functions by
    @murrayrm in #709
  * I/O system enhancements by @murrayrm in #710
  * Optimal control enhancements by @murrayrm in #712
  * Keyword argument checking by @murrayrm in #713
  * Stochastic systems additions by @murrayrm in #714
  * Updated system class functionality by @murrayrm in #721
  * Bug fix and improvements to Nyquist plots by @murrayrm in #722
  * Add linform to compute linear system L-infinity norm by
    @roryyorke in #729
  * Improvements to Nichols chart plotting by @roryyorke in #723
  * Add envs to gitignore by @s35t in #731
  * Fix README.rst for twine by @murrayrm in #738
- Drop 688.patch fixed upstream

OBS-URL: https://build.opensuse.org/request/show/979680
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-control?expand=0&rev=34
2022-05-29 15:14:28 +00:00

82 lines
2.5 KiB
RPMSpec

#
# spec file for package python-control
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define skip_python2 1
Name: python-control
Version: 0.9.2
Release: 0
Summary: Python control systems library
License: BSD-3-Clause
URL: https://python-control.org
Source: https://files.pythonhosted.org/packages/source/c/control/control-%{version}.tar.gz
Source1: %{name}-rpmlintrc
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-matplotlib
Requires: python-numpy
Requires: python-scipy
Recommends: python-slycot
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module matplotlib-qt5}
BuildRequires: %{python_module matplotlib}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pytest-xvfb}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module scipy}
BuildRequires: %{python_module slycot}
BuildRequires: libjemalloc2
# /SECTION
%python_subpackages
%description
The Python Control Systems Library is a Python module that implements basic
operations for analysis and design of feedback control systems.
%prep
%autosetup -p1 -n control-%{version}
#remove shebang
sed -i '1{\@^#!/usr/bin/env@ d}' control/tests/*.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# The default Agg backend does not define the toolbar attribute in the Figure
# Manager used by some tests, so we run the tests with the Qt5 backend
export MPLBACKEND="Qt5Agg"
# preload malloc library to avoid free() error on i586 architecture
if [[ $(getconf LONG_BIT) == 32 ]]; then
export LD_PRELOAD="%{_libdir}/libjemalloc.so.2"
fi
%pytest
%files %{python_files}
%doc ChangeLog README.rst
%license LICENSE
%{python_sitelib}/control
%{python_sitelib}/control-%{version}-py*.egg-info
%changelog