forked from pool/python-pythran
		
	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:
		@@ -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"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user