Accepting request 206776 from devel:languages:python

Update to 1.8.0

OBS-URL: https://build.opensuse.org/request/show/206776
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numpy?expand=0&rev=36
This commit is contained in:
Stephan Kulow
2013-11-14 07:43:27 +00:00
committed by Git OBS Bridge
parent 457ab0c6f8
commit e047e2d5f6
7 changed files with 71 additions and 79 deletions

View File

@@ -16,29 +16,30 @@
#
%define with_atlas 0
%define modname numpy
Name: python-%{modname}
Version: 1.7.1
Version: 1.8.0
Release: 0
Url: http://sourceforge.net/projects/numpy
Summary: NumPy array processing for numbers, strings, records and objects
License: BSD-3-Clause
Group: Development/Libraries/Python
Source: http://sourceforge.net/projects/numpy/files/NumPy/%{version}/%{modname}-%{version}.tar.gz
Patch1: numpy-buildfix.patch
Patch0: numpy-buildfix.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: blas-devel
BuildRequires: lapack-devel
BuildRequires: python-devel
BuildRequires: python-devel >= 2.6
Requires: python >= %{py_ver}
Provides: numpy = %{version}
%if %{with_atlas} == 1
BuildRequires: libatlas3-devel
%endif
%if 0%{?suse_version}
BuildRequires: fdupes
BuildRequires: gcc-fortran
# FIXME: atlas is horribly broken
# %if 0%{?suse_version} <= 1210
# BuildRequires: libatlas3-devel
# %endif
%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
@@ -70,21 +71,25 @@ Group: Development/Libraries/Python
Requires: %{name} = %{version}
Requires: blas-devel
Requires: lapack-devel
Requires: python-devel
Requires: python-devel >= %{py_ver}
%if 0%{?suse_version}
Requires: gcc-fortran
%py_requires -d
%else
Requires: gcc-gfortran
%endif
%if %{with_atlas} == 1
Requires: libatlas3-devel
%endif
%description devel
This package contains files for developing applications using %{modname}.
%prep
%setup -q -n %{modname}-%{version}
%patch1 -p0
sed -i "1d" %{modname}/{compat/setup{,scons},distutils/{conv_template,cpuinfo,exec_command,from_template,setup,setupscons,system_info},f2py/{auxfuncs,capi_maps,cb_rules,cfuncs,common_rules,crackfortran,diagnose,docs/usersguide/setup_example,f2py2e,f90mod_rules,func2subr,__init__,rules,setup,setupscons,use_rules},ma/setup{,scons},matrixlib/setup{,scons},setup,setupscons,testing/print_coercion_tables,testing/setup{,scons}}.py # Fix non-executable scripts
%patch0 -p1
# Fix non-executable scripts
sed -i "1d" numpy/{compat/setup,distutils/{conv_template,cpuinfo,exec_command,from_template,setup,system_info},f2py/{auxfuncs,capi_maps,cb_rules,cfuncs,common_rules,crackfortran,diagnose,docs/usersguide/setup_example,f2py2e,f90mod_rules,func2subr,__init__,rules,setup,use_rules},ma/setup,matrixlib/setup,setup,testing/{print_coercion_tables,setup}}.py
%build
CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build