Accepting request 503339 from devel:languages:python
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/503339 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numpy?expand=0&rev=54
This commit is contained in:
@@ -53,8 +53,14 @@ Patch0: numpy-buildfix.patch
|
||||
# PATCH-FIX-OPENSUSE numpy-1.9.0-remove-__declspec.patch -- fix for spurious compiler warnings that cause build failure
|
||||
Patch1: numpy-1.9.0-remove-__declspec.patch
|
||||
BuildRequires: blas-devel
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: fdupes
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: gcc-fortran
|
||||
%else
|
||||
BuildRequires: gcc-gfortran
|
||||
%endif
|
||||
BuildRequires: lapack-devel
|
||||
BuildRequires: unzip
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -86,7 +92,11 @@ Summary: Development files for numpy applications
|
||||
Group: Development/Libraries/Python
|
||||
Requires: %{name} = %{version}
|
||||
Requires: blas-devel
|
||||
Requires: gcc-fortran
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: gcc-fortran
|
||||
%else
|
||||
BuildRequires: gcc-gfortran
|
||||
%endif
|
||||
Requires: lapack-devel
|
||||
Requires: python-devel
|
||||
%if %{with openblas}
|
||||
@@ -113,7 +123,9 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||
%install
|
||||
%python_exec setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_expand rm -rf %{buildroot}%{$python_sitearch}/numpy/{,core,distutils,f2py,fft,lib,linalg,ma,matrixlib,oldnumeric,polynomial,random,testing}/tests # Don't package testsuite
|
||||
%if 0%{?suse_version}
|
||||
%fdupes %{buildroot}%{prefix}
|
||||
%endif
|
||||
|
||||
|
||||
%files %{python_files}
|
||||
|
||||
Reference in New Issue
Block a user