From 3a6ba38613b32bb26fe7625b80c638abf914e2f4b2d8b6058a6e68837d2d7764 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sun, 30 Jan 2022 01:20:23 +0000 Subject: [PATCH] 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 --- python-pythran.changes | 9 ++++++++- python-pythran.spec | 7 ++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/python-pythran.changes b/python-pythran.changes index 73707f9..46b9761 100644 --- a/python-pythran.changes +++ b/python-pythran.changes @@ -1,7 +1,14 @@ +------------------------------------------------------------------- +Fri Jan 28 18:47:52 UTC 2022 - Ben Greiner + +- 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 - Initial specfile for 0.11 * debundling inspired by Fedora package: https://src.fedoraproject.org/rpms/pythran/blob/rawhide/f/pythran.spec -- Required by scipy 1.7 \ No newline at end of file +- Required by scipy 1.7 diff --git a/python-pythran.spec b/python-pythran.spec index b508759..475cf64 100644 --- a/python-pythran.spec +++ b/python-pythran.spec @@ -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"