From 69871fc54920a110512a335f3db09064e9d89a81c25cc3d81fb1e2586ba6abcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Thu, 27 Jun 2019 08:46:46 +0000 Subject: [PATCH] Accepting request 712139 from home:bnavigator A python wrapper for the SLICOT numerical library for control systems Recommended by python-control. Without, python-control has a reduced feature set (e.g. on MIMO systems) OBS-URL: https://build.opensuse.org/request/show/712139 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-slycot?expand=0&rev=1 --- .gitattributes | 24 +++++++++++++++ .gitignore | 4 +++ python-slycot.changes | 34 ++++++++++++++++++++ python-slycot.spec | 72 +++++++++++++++++++++++++++++++++++++++++++ slycot-0.3.5.0.tar.gz | 3 ++ 5 files changed, 137 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-slycot.changes create mode 100644 python-slycot.spec create mode 100644 slycot-0.3.5.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..37a8eaa --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +*.changes merge=merge-changes +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8b731c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild diff --git a/python-slycot.changes b/python-slycot.changes new file mode 100644 index 0000000..478bafa --- /dev/null +++ b/python-slycot.changes @@ -0,0 +1,34 @@ +------------------------------------------------------------------- +Wed Jun 26 13:35:33 UTC 2019 - Benjamin Greiner + +- clean up spec file +- force installation in %python_sitearch + +------------------------------------------------------------------- +Mon Jun 24 09:06:38 UTC 2019 - Benjamin Greiner + +- release 0.3.5 + +------------------------------------------------------------------- +Fri Jun 21 20:11:56 UTC 2019 - Benjamin Greiner + +- prerelease of v0.3.5 + +------------------------------------------------------------------- +Fri Jun 21 19:44:55 UTC 2019 - Benjamin Greiner + +- fix destination directory issue by specifying packages keyword + +------------------------------------------------------------------- +Fri Jun 21 17:51:37 UTC 2019 - Benjamin Greiner + +- change the patch according to + https://github.com/python-control/Slycot/pull/69 + and + https://github.com/python-control/Slycot/pull/67 + +------------------------------------------------------------------- +Fri Jun 21 16:14:11 UTC 2019 - Benjamin Greiner + +- v0.3.4.0: PyPI package does not include runtests.py. (Issue reported upstream) +- patch the CMake source file to look into sitearch instead of sitelib diff --git a/python-slycot.spec b/python-slycot.spec new file mode 100644 index 0000000..5fcf1b4 --- /dev/null +++ b/python-slycot.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-slycot +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-slycot +Version: 0.3.5.0 +Release: 0 +Summary: Slycot: a wrapper for the SLICOT control and systems library +License: GPL-2.0-only +Group: Development/Languages/Python +URL: https://github.com/python-control/Slycot +Source: https://files.pythonhosted.org/packages/source/s/slycot/slycot-%{version}.tar.gz +BuildRequires: %{python_module coverage} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module numpy-devel} +BuildRequires: %{python_module scikit-build} +BuildRequires: %{python_module setuptools} +BuildRequires: blas-devel +BuildRequires: cmake +BuildRequires: fdupes +BuildRequires: gcc +BuildRequires: gcc-fortran +BuildRequires: lapack-devel +BuildRequires: python-rpm-macros +BuildRequires: python2-configparser +Requires: blas +Requires: lapack +Requires: python-numpy +%python_subpackages + +%description +Slycot: a wrapper for the SLICOT control and systems library, + +%prep +%setup -q -n slycot-%{version} + +%build +export CFLAGS="%{optflags}" +%python_build + +%install +%python_expand %{$python_install} --install-lib %{$python_sitearch} +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch} +$python runtests.py --coverage --no-build +} + +%files %{python_files} +%doc README.rst CREDITS +%license COPYING +%{python_sitearch}/slycot +%{python_sitearch}/slycot-*-py*.egg-info + +%changelog diff --git a/slycot-0.3.5.0.tar.gz b/slycot-0.3.5.0.tar.gz new file mode 100644 index 0000000..480c5d1 --- /dev/null +++ b/slycot-0.3.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cad98d5ea4f0a034cf398c39189f587620a0b03f1d4b71e77cd622a327f13adf +size 1537343