Accepting request 451739 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/451739 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numpy?expand=0&rev=52
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-numpy
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -15,50 +15,63 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%if 0%{?is_opensuse} == 0
|
||||
%bcond_with openblas
|
||||
%else
|
||||
%ifarch armv6l
|
||||
%bcond_with openblas
|
||||
%ifarch s390x
|
||||
%bcond_with openblas
|
||||
%else
|
||||
%else
|
||||
%if 0%{?sle_version} == 120200
|
||||
%ifarch i586
|
||||
%bcond_with openblas
|
||||
%else
|
||||
%bcond_without openblas
|
||||
%endif
|
||||
%else
|
||||
%bcond_without openblas
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%define with_atlas 0
|
||||
%if 0%{?suse_version}
|
||||
%if 0%{?suse_version} <= 1110
|
||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||
%else
|
||||
%py_requires
|
||||
%endif
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-fortran
|
||||
%else
|
||||
%if ! 0%{?fedora_version}
|
||||
Provides: python-numeric = %{version}
|
||||
Obsoletes: python-numeric < %{version}
|
||||
%endif
|
||||
BuildRequires: gcc-gfortran
|
||||
%endif
|
||||
Name: python-numpy
|
||||
Version: 1.11.1
|
||||
Version: 1.12.0
|
||||
Release: 0
|
||||
Summary: NumPy array processing for numbers, strings, records and objects
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Libraries/Python
|
||||
Url: http://www.numpy.org/
|
||||
Source: https://pypi.io/packages/source/n/numpy/numpy-%{version}.tar.gz
|
||||
Source: https://pypi.io/packages/source/n/numpy/numpy-%{version}.zip
|
||||
# PATCH-FIX-OPENSUSE numpy-buildfix.patch -- openSUSE-specific build fixes
|
||||
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
|
||||
# PATCH-FIX-OPENSUSE numpy-1.10.4-cblas.patch -- fix for building with system cblas.
|
||||
Patch2: numpy-1.10.4-cblas.patch
|
||||
BuildRequires: blas-devel
|
||||
BuildRequires: lapack-devel
|
||||
BuildRequires: unzip
|
||||
%if %{with openblas}
|
||||
BuildRequires: openblas-devel
|
||||
%endif
|
||||
BuildRequires: python-devel >= 2.6
|
||||
BuildRequires: python-setuptools
|
||||
Requires: python >= %{py_ver}
|
||||
%if 0%{?suse_version} <= 1110
|
||||
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-fortran
|
||||
%else
|
||||
BuildRequires: gcc-gfortran
|
||||
%endif
|
||||
%if ! 0%{?fedora_version}
|
||||
Provides: python-numeric = %{version}
|
||||
Obsoletes: python-numeric < %{version}
|
||||
%endif
|
||||
Provides: numpy = %{version}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?is_opensuse} && ( 0%{?suse_version} > 1320 || 0%{?suse_version} == 1315 )
|
||||
BuildRequires: cblas-devel
|
||||
%endif
|
||||
%if %{with_atlas} == 1
|
||||
BuildRequires: libatlas3-devel
|
||||
%endif
|
||||
|
||||
%description
|
||||
NumPy is a general-purpose array-processing package designed to
|
||||
@@ -79,18 +92,14 @@ Requires: %{name} = %{version}
|
||||
Requires: blas-devel
|
||||
Requires: lapack-devel
|
||||
Requires: python-devel >= %{py_ver}
|
||||
%if %{with openblas}
|
||||
BuildRequires: openblas-devel
|
||||
%endif
|
||||
%if 0%{?suse_version}
|
||||
Requires: gcc-fortran
|
||||
%py_requires -d
|
||||
%else
|
||||
Requires: gcc-gfortran
|
||||
%endif
|
||||
%if %{with_atlas} == 1
|
||||
Requires: libatlas3-devel
|
||||
%endif
|
||||
%if 0%{?is_opensuse} && ( 0%{?suse_version} > 1320 || 0%{?suse_version} == 1315 )
|
||||
Requires: cblas-devel
|
||||
%endif
|
||||
|
||||
%description devel
|
||||
This package contains files for developing applications using numpy.
|
||||
@@ -99,9 +108,6 @@ This package contains files for developing applications using numpy.
|
||||
%setup -q -n numpy-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%if 0%{?suse_version} > 1320 || 0%{?suse_version} == 1315
|
||||
%patch2 -p1
|
||||
%endif
|
||||
# Fix non-executable scripts
|
||||
sed -i "1d" numpy/{compat/setup,distutils/{conv_template,cpuinfo,exec_command,from_template,setup,system_info},f2py/{__init__,auxfuncs,capi_maps,cb_rules,cfuncs,common_rules,crackfortran,diagnose,f2py2e,f90mod_rules,func2subr,rules,setup,use_rules},ma/setup,matrixlib/setup,setup,testing/{print_coercion_tables,setup}}.py
|
||||
|
||||
|
||||
Reference in New Issue
Block a user