1
0

Accepting request 961802 from home:marxin:branches:devel:languages:python:numeric

- Add gcc12-fixes.patch in order to fix GCC 12 building issues.

OBS-URL: https://build.opensuse.org/request/show/961802
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-pythran?expand=0&rev=4
This commit is contained in:
2022-03-15 15:51:14 +00:00
committed by Git OBS Bridge
parent ab0570a88a
commit 8d2b055f70
3 changed files with 160 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
#
# spec file for package python-pythran
# spec file
#
# Copyright (c) 2022 SUSE LLC
#
@@ -22,21 +22,21 @@
%define skip_python39 1
%define skip_python310 1
%bcond_without test
ExclusiveArch: x86_64
ExclusiveArch: x86_64
%endif
%if "%{flavor}" == "test-py39"
%define psuffix -test-py39
%define skip_python38 1
%define skip_python310 1
%bcond_without test
ExclusiveArch: x86_64
ExclusiveArch: x86_64
%endif
%if "%{flavor}" == "test-py310"
%define psuffix -test-py310
%define skip_python38 1
%define skip_python39 1
%bcond_without test
ExclusiveArch: x86_64
ExclusiveArch: x86_64
%endif
%if "%{flavor}" == ""
%define psuffix %{nil}
@@ -53,6 +53,7 @@ URL: https://github.com/serge-sans-paille/pythran
# Tests are only availble in github archive
Source0: https://github.com/serge-sans-paille/pythran/archive/refs/tags/%{version}.tar.gz#/pythran-%{version}-gh.tar.gz
Source99: python-pythran-rpmlintrc
Patch0: gcc12-fixes.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -76,8 +77,8 @@ BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pythran = %{version}}
BuildRequires: %{python_module wheel}
BuildRequires: unzip
BuildRequires: gcc-c++
BuildRequires: unzip
%endif
BuildArch: noarch
%python_subpackages
@@ -87,6 +88,7 @@ Ahead of Time compiler for numeric kernels
%prep
%setup -q -n pythran-%{version}
%patch0 -p1
find -name '*.hpp' -exec chmod -x {} +
sed -i '1{/env python/d}' pythran/run.py