forked from pool/python-scikit-umfpack
- drop numpy125.patch - Update to 0.4.1 * BLD: fix building with Clang, avoid using GCC-specific -print-sysroot * BLD: try to locate OpenBLAS with pkg-config first * BLD: add support for using a native file to set library/include dirs * DOC: update and extend the install instructions * MAINT: include particular headers only for version < 6 - 0.4.0 * Allow reuse of symbolic factorization * do not use deprecated pkg_resources * fix deprecation warning * do not use NumPy decorators * do not use nose-compat NumPy functions * BLD: fix the build, remove `stdint.h` and suppress warnings * TST: fix issues in test suite * BLD: fix building in conda envs OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-umfpack?expand=0&rev=15
85 lines
2.7 KiB
RPMSpec
85 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package python-scikit-umfpack
|
|
#
|
|
# Copyright (c) 2024 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 oldpython python
|
|
Name: python-scikit-umfpack
|
|
Version: 0.4.1
|
|
Release: 0
|
|
Summary: Python interface to UMFPACK sparse direct solver
|
|
License: BSD-3-Clause
|
|
URL: https://github.com/scikit-umfpack/scikit-umfpack
|
|
Source0: https://files.pythonhosted.org/packages/source/s/scikit-umfpack/scikit_umfpack-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module meson-python}
|
|
BuildRequires: %{python_module numpy-devel >= 1.14.3}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module scipy >= 1.0.0rc1}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: c++_compiler
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-fortran
|
|
BuildRequires: openblas-devel
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: suitesparse-devel
|
|
BuildRequires: swig
|
|
Requires: python-numpy >= 1.14.3
|
|
Requires: python-scipy >= 1.0.0rc1
|
|
ExclusiveArch: x86_64
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module pytest}
|
|
# /SECTION
|
|
%ifpython2
|
|
Provides: %{oldpython}-scikits-umfpack = %{version}
|
|
Obsoletes: %{oldpython}-scikits-umfpack < %{version}
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
The scikit-umfpack package provides wrapper of UMFPACK sparse direct solver to SciPy.
|
|
|
|
%prep
|
|
%setup -q -n scikit_umfpack-%{version}
|
|
%autopatch -p1
|
|
sed -i -e '/^#!\//, 1d' scikits/umfpack/tests/try_umfpack.py
|
|
|
|
%build
|
|
export LANG=en_US.UTF-8
|
|
export CFLAGS="%{optflags}"
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
export LANG=en_US.UTF-8
|
|
%pyproject_install
|
|
%python_expand rm %{buildroot}%{$python_sitearch}/scikits/__init__.py*
|
|
%python_expand rm -rf %{buildroot}%{$python_sitearch}/scikits/__pycache__
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%check
|
|
export LANG=en_US.UTF-8
|
|
export CFLAGS="%{optflags}"
|
|
%pytest_arch --pyargs scikits.umfpack
|
|
|
|
%files %{python_files}
|
|
%doc README.rst
|
|
%license LICENSE
|
|
%dir %{python_sitearch}/scikits/
|
|
%{python_sitearch}/scikits/umfpack/
|
|
%{python_sitearch}/scikit_umfpack-%{version}*-info
|
|
|
|
%changelog
|