2018-03-29 09:54:37 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-oct2py
|
|
|
|
|
#
|
2021-02-14 14:09:29 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2018-03-29 09:54:37 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2019-06-02 13:18:05 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-03-29 09:54:37 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%bcond_with test
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2019-06-02 13:18:05 +00:00
|
|
|
%define skip_python2 1
|
2021-02-14 14:09:29 +00:00
|
|
|
%define skip_python36 1
|
2018-03-29 09:54:37 +00:00
|
|
|
Name: python-oct2py
|
2019-07-23 20:29:44 +00:00
|
|
|
Version: 5.0.4
|
2018-03-29 09:54:37 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Python to GNU Octave bridge
|
|
|
|
|
License: MIT
|
|
|
|
|
Group: Development/Languages/Python
|
2021-02-14 14:09:29 +00:00
|
|
|
URL: http://github.com/blink1073/oct2py
|
2018-03-29 09:54:37 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/o/oct2py/oct2py-%{version}.tar.gz
|
2019-07-23 20:29:44 +00:00
|
|
|
BuildRequires: %{python_module numpy >= 1.12}
|
2019-06-02 13:18:05 +00:00
|
|
|
BuildRequires: %{python_module octave-kernel >= 0.30}
|
2019-07-23 20:29:44 +00:00
|
|
|
BuildRequires: %{python_module scipy >= 0.17}
|
2018-03-29 09:54:37 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: fdupes
|
2021-02-14 14:09:29 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-07-23 20:29:44 +00:00
|
|
|
Requires: python-numpy >= 1.12
|
2019-06-02 13:18:05 +00:00
|
|
|
Requires: python-octave-kernel >= 0.30
|
2019-07-23 20:29:44 +00:00
|
|
|
Requires: python-scipy >= 0.17
|
2018-03-29 09:54:37 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Oct2Py allows you to seamlessly call M-files and Octave functions from Python.
|
|
|
|
|
It manages the Octave session for you, sharing data behind the scenes using
|
|
|
|
|
MAT files.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n oct2py-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
2019-06-02 13:18:05 +00:00
|
|
|
# Tests need gui
|
|
|
|
|
# %%check
|
|
|
|
|
# %%python_exec setup.py test
|
|
|
|
|
# %%endif
|
2018-03-29 09:54:37 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%license LICENSE.txt licenses licenses/mlabwrap.txt licenses/octavemagic.txt licenses/ompc.txt
|
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|