1
0

- Clean up the SPEC file.

- Convert from python_{build,install} to
  pyproject_{wheel,install} macros.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-scikit-sparse?expand=0&rev=13
This commit is contained in:
Matej Cepl 2023-09-08 16:56:55 +00:00 committed by Git OBS Bridge
parent 38888a710c
commit 51c122573e
2 changed files with 17 additions and 10 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Sep 8 16:56:21 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Clean up the SPEC file.
- Convert from python_{build,install} to
pyproject_{wheel,install} macros.
-------------------------------------------------------------------
Thu Aug 31 12:37:47 UTC 2023 - Markéta Machová <mmachova@suse.com>

View File

@ -16,34 +16,34 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
# For license file
%define tag c94f8418b6c36c3ff9db4f87e00fc08bd51cfb4b
Name: python-scikit-sparse
Version: 0.4.12
Release: 0
# For license file
%define tag c94f8418b6c36c3ff9db4f87e00fc08bd51cfb4b
Summary: Scikits sparse matrix package
License: GPL-2.0-or-later AND LGPL-2.1-or-later
Group: Development/Languages/Python
URL: https://github.com/scikit-sparse/scikit-sparse/
Source: https://files.pythonhosted.org/packages/source/s/scikit-sparse/scikit-sparse-%{version}.tar.gz
#PATCH-FIX-UPSTREAM https://github.com/scikit-sparse/scikit-sparse/pull/102 Fix breaking changes in isspmatrix of scipy >=1.11.0
Patch: scipy111.patch
Patch0: scipy111.patch
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module numpy-devel >= 1.13.3}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module scipy >= 0.19}
BuildRequires: %{python_module setuptools >= 18.0}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: suitesparse-devel
# SECTION test requirements
BuildRequires: %{python_module pytest}
# /SECTION
Requires: python-numpy >= 1.12
Requires: python-scipy >= 0.18
ExcludeArch: %{ix86}
# SECTION test requirements
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
@ -61,10 +61,10 @@ decomposition.
%build
export CFLAGS="%{optflags}"
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check