[SciPy-dev] Patch for numpy-0.9.2 SRPM for x86_64

Neal Becker ndbecker2 at gmail.com
Fri Jan 6 07:34:11 EST 2006


The following patch is needed to numpy-0.9.2 SPEC to build on Fedora x86_64. 
It is probably also needed on other linux x86_64.

Note: on x86_64 the standard location for libraries is /usr/lib64!!!  This
is not unusual.


diff -u numpy.spec numpy.spec.new
--- numpy.spec  2006-01-05 15:06:26.000000000 -0500
+++ numpy.spec.new      2006-01-06 07:30:00.000000000 -0500
@@ -1,6 +1,6 @@
 %define name numpy
 %define version 0.9.2
-%define release 1
+%define release 2
 
 Summary: Numpy: array processing for numbers, strings, records, and
objects.
 Name: %{name}
@@ -30,7 +30,7 @@
 %setup
 
 %build
-env CFLAGS="$RPM_OPT_FLAGS" python setup.py build
+env BLAS=%{_libdir} LAPACK=%{_libdir} ATLAS=%{_libdir}
CFLAGS="$RPM_OPT_FLAGS" python setup.py build
 
 %install
 python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
@@ -39,4 +39,12 @@
 rm -rf $RPM_BUILD_ROOT
 
 %files -f INSTALLED_FILES
+#for some reason this was missed!
+%{python_sitearch}/numpy/core/_dotblas.so
 %defattr(-,root,root)
+
+%changelog
+
+* Fri Jan  6 2006 nbecker <ndbecker2 at gmail.com> - 0.9.2-2
+- Fixes to build on Fedora x86_64
+




More information about the SciPy-Dev mailing list