Accepting request 158631 from devel:languages:python

update to 1.7.0, version update details added.
patches numpy-python33.patch, numpy-fd15162.patch and numpy-aarch64.diff now merged in upstream (forwarded request 158616 from HighwayStar)

OBS-URL: https://build.opensuse.org/request/show/158631
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numpy?expand=0&rev=30
This commit is contained in:
Stephan Kulow
2013-03-12 10:15:05 +00:00
committed by Git OBS Bridge
parent d384f45c08
commit abe446e797
11 changed files with 91 additions and 143 deletions

View File

@@ -18,7 +18,7 @@
%define modname numpy
Name: python3-%{modname}
Version: 1.6.2
Version: 1.7.0
Release: 0
Url: http://sourceforge.net/projects/numpy
Summary: NumPy array processing for numbers, strings, records and objects
@@ -26,8 +26,6 @@ License: BSD-3-Clause
Group: Development/Libraries/Python
Source: %{modname}-%{version}.tar.gz
Patch1: numpy-buildfix.patch
Patch2: numpy-python33.patch
Patch3: numpy-fd15162.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: blas-devel
BuildRequires: lapack-devel
@@ -86,25 +84,8 @@ This package contains files for developing applications using %{modname}.
%prep
%setup -q -n %{modname}-%{version}
%patch1
%patch2 -p1
%patch3 -p1
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
# Fix from Fedora:
# Regenerate Cython c sources
# This is needed with numpy-1.6.2.tar.gz with python 3.3 to avoid an exception
# with an import call in the generated .c file in the tarball that uses the
# old default of -1:
# File "mtrand.pyx", line 126, in init mtrand (numpy/random/mtrand/mtrand.c:20679)
# ValueError: level must be >= 0
# due to the changes in import in 3.3
# Regenerating with a newer Cython fixes it:
%if 0%{?suse_version} && 0%{?suse_version} >= 1230
pushd numpy/random/mtrand/
rm -v mtrand.c
cython-%{py3_ver} mtrand.pyx
popd
%endif
%build
CFLAGS="%{optflags} -fno-strict-aliasing" python3 setup.py build