Accepting request 949789 from home:bnavigator:branches:devel:languages:python:numeric

- Fix errors uncovered by staging:
  * Mention python-pythran-rpmlintrc
  * also make :test-py* noarch so that no debuginfo package fails

- Required by scipy 1.7

OBS-URL: https://build.opensuse.org/request/show/949789
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-pythran?expand=0&rev=2
This commit is contained in:
Matej Cepl 2022-01-30 01:20:23 +00:00 committed by Git OBS Bridge
parent de3ed981e5
commit 3a6ba38613
2 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Jan 28 18:47:52 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Fix errors uncovered by staging:
* Mention python-pythran-rpmlintrc
* also make :test-py* noarch so that no debuginfo package fails
-------------------------------------------------------------------
Sun Jan 23 15:10:57 UTC 2022 - Ben Greiner <code@bnavigator.de>

View File

@ -41,7 +41,6 @@ ExclusiveArch: x86_64
%if "%{flavor}" == ""
%define psuffix %{nil}
%bcond_with test
BuildArch: noarch
%endif
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
@ -52,7 +51,8 @@ Summary: Ahead of Time compiler for numeric kernels
License: BSD-3-Clause
URL: https://github.com/serge-sans-paille/pythran
# Tests are only availble in github archive
Source: https://github.com/serge-sans-paille/pythran/archive/refs/tags/%{version}.tar.gz#/pythran-%{version}-gh.tar.gz
Source0: https://github.com/serge-sans-paille/pythran/archive/refs/tags/%{version}.tar.gz#/pythran-%{version}-gh.tar.gz
Source99: python-pythran-rpmlintrc
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@ -79,6 +79,7 @@ BuildRequires: %{python_module wheel}
BuildRequires: unzip
BuildRequires: gcc-c++
%endif
BuildArch: noarch
%python_subpackages
%description
@ -114,8 +115,8 @@ sed -i -e 's/-O0/-O1/g' -e 's/-Werror/-w/g' pythran/tests/__init__.py
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
%check
export CFLAGS="%{optflags}"
# crashes the xdist workers
donttest="test_operator_intersection"