update to numpy 1.0

This commit is contained in:
Jarod Wilson 2006-10-25 21:55:43 +00:00
parent e8d5ab0179
commit 80eddd459f
4 changed files with 33 additions and 6 deletions

View File

@ -1,2 +1,3 @@
numpy-0.9.6.tar.gz
numpy-0.9.8.tar.gz
numpy-1.0.tar.gz

21
numpy-1.0-gfortran.patch Normal file
View File

@ -0,0 +1,21 @@
diff -ur numpy-1.0.orig/numpy/distutils/fcompiler/gnu.py numpy-1.0/numpy/distutils/fcompiler/gnu.py
--- numpy-1.0.orig/numpy/distutils/fcompiler/gnu.py 2006-10-09 03:46:59.000000000 -0400
+++ numpy-1.0/numpy/distutils/fcompiler/gnu.py 2006-10-25 13:51:18.000000000 -0400
@@ -30,7 +30,7 @@
'compiler_f77' : [fc_exe, "-g", "-Wall","-fno-second-underscore"],
'compiler_f90' : None, # Use --fcompiler=gnu95 for f90 codes
'compiler_fix' : None,
- 'linker_so' : [fc_exe, "-g", "-Wall"],
+ 'linker_so' : [fc_exe,"-shared", "-g", "-Wall"],
'archiver' : ["ar", "-cr"],
'ranlib' : ["ranlib"],
'linker_exe' : [fc_exe, "-g", "-Wall"]
@@ -255,7 +255,7 @@
'compiler_f77' : [fc_exe,"-Wall","-ffixed-form","-fno-second-underscore"],
'compiler_f90' : [fc_exe,"-Wall","-fno-second-underscore"],
'compiler_fix' : [fc_exe,"-Wall","-ffixed-form","-fno-second-underscore"],
- 'linker_so' : [fc_exe,"-Wall"],
+ 'linker_so' : [fc_exe,"-shared", "-Wall"],
'archiver' : ["ar", "-cr"],
'ranlib' : ["ranlib"],
'linker_exe' : [fc_exe,"-Wall"]

View File

@ -3,7 +3,7 @@
%{!?python_version: %define python_version %(%{__python} -c 'import sys; print sys.version.split(" ")[0]' || echo "2.3")}
Name: numpy
Version: 0.9.8
Version: 1.0
Release: 1%{?dist}
Summary: A fast multidimensional array facility for Python
@ -12,8 +12,7 @@ License: BSD
URL: http://numeric.scipy.org/
Source0: http://dl.sourceforge.net/numpy/%{name}-%{version}.tar.gz
Patch0: numpy-0.9.4-f2pynumpy.patch
Patch1: numpy-0.9.8-gfortran.patch
Patch2: numpy-0.9.8-check_types.patch
Patch1: numpy-1.0-gfortran.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel atlas-devel blas-devel lapack-devel python-setuptools gcc-gfortran
@ -34,7 +33,6 @@ This package also contains a version of f2py that works properly with it.
%setup -q
%patch0 -p1 -b .f2pynumpy
%patch1 -p1 -b .gfortran
%patch2 -p1 -b .check_types
%build
ATLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} \
@ -43,7 +41,11 @@ ATLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} \
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
#%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
# skip-build currently broken, this works around it for now
ATLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} \
LAPACK=%{_libdir} CFLAGS="$RPM_OPT_FLAGS" \
%{__python} setup.py install --root $RPM_BUILD_ROOT
rm -rf docs-f2py ; mv $RPM_BUILD_ROOT%{python_sitearch}/%{name}/f2py/docs docs-f2py
mv -f $RPM_BUILD_ROOT%{python_sitearch}/%{name}/f2py/f2py.1 f2py.1
rm -rf doc ; mv -f $RPM_BUILD_ROOT%{python_sitearch}/%{name}/doc .
@ -68,6 +70,9 @@ rm -rf $RPM_BUILD_ROOT
%{python_sitearch}/%{name}
%changelog
* Wed Oct 25 2006 Jarod Wilson <jwilson@redhat.com> 1.0-1
- New upstream release
* Tue Sep 06 2006 Jarod Wilson <jwilson@redhat.com> 0.9.8-1
- New upstream release

View File

@ -1 +1 @@
ca528d2b460a6567d70bb6bdf0dc1805 numpy-0.9.8.tar.gz
47dd0daa82e7b3f0fe74b969b388d7b3 numpy-1.0.tar.gz