Summary: Python numerical facilities Name: python-numpy Version: 1.11 Release: 2 Copyright: Distributable Packager: Travis Oliphant Group: Development/Languages/Python Source0: LLNLDistribution11.tgz Source1: Makefile.pre.in Source2: LLNLDoc.tgz Source3: NumTut.tgz Patch0: LLNLPython-fixdirs.patch Patch1: LLNLfixinclude.patch URL: http://www.python.org/topics/scicomp/numpy.html Icon: linux-python-numpy-icon.gif BuildRoot: /tmp/py-root Requires: python >= 1.5 %changelog * Fri Apr 2 1999 Travis Oliphant - updated to numpy 1.11 * Fri Mar 19 1999 Travis Oliphant - updated to numpy 1.10 (LLNL Distribution 10) * Tue Jan 19 1999 Travis Oliphant - updated to numpy 1.9 (LLNL Distribution 9) * Wed Jan 6 1999 Travis Oliphant - updated to numpy 1.8 (with Waldham patches) - compiled Graphics (Gist) and RNG as seperate packages * Mon Dec 21 1998 Travis Oliphant - updated to numpy 1.7 * Thu Jun 30 1998 Oliver Andrich - updated to numpy 1.3 * Thu Jun 11 1998 Oliver Andrich - updated to numpy 1.2 * Sat Jun 06 1998 Oliver Andrich - added the new numpy icon to the package %description NumPy is a collection of extension modules to provide high-performance multidimensional numeric arrays to the Python programming language. %package gist Summary: Xlib-based plotting for NumPy Group: Development/Languages/Python Requires: python-numpy >= 1.5 %description gist Gist is an extension of python that allows plotting of arbitrary NumPy arrays. Both 2-D and 3-D plotting is available. You can get started with online help from within python using >>> from gist import * >>> help("help.") >>> help("gist.") %package RNG Summary: Random Number Generator Objects for NumPy Group: Development/Languages/Python Requires: python-numpy >= 1.5 %description RNG RNG provides a random number object for Numerical Python. %prep %setup -n LLNLDistribution11 %setup -T -a 2 -D -n LLNLDistribution11 %setup -T -a 3 -D -n LLNLDistribution11 %patch0 -p1 %patch1 -p1 DIREC=LLNLDistribution11 cp $RPM_SOURCE_DIR/Makefile.pre.in $RPM_BUILD_DIR/$DIREC/Numerical cp $RPM_SOURCE_DIR/Makefile.pre.in $RPM_BUILD_DIR/$DIREC/Graphics cp $RPM_SOURCE_DIR/Makefile.pre.in $RPM_BUILD_DIR/$DIREC/RNG %build cd Numerical make -f Makefile.pre.in boot make OPT="$RPM_OPT_FLAGS" #make OPT=-g cd ../Graphics make -f Makefile.pre.in boot make OPT="$RPM_OPT_FLAGS -I../Numerical/Include" cd ../RNG cp $RPM_SOURCE_DIR/Makefile.pre.in . make -f Makefile.pre.in boot make OPT="$RPM_OPT_FLAGS" %install cd Numerical mkdir -p $RPM_BUILD_ROOT/usr/include/python1.5 cp Include/* $RPM_BUILD_ROOT/usr/include/python1.5 mkdir -p $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages/NumPy cp *.so $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages/NumPy cp Lib/* $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages/NumPy echo "NumPy" > $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages/NumPy.pth cd ../Graphics mkdir -p $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages/Graphics cp *.so $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages/Graphics cp Gist/Lib/*.py Gist/Lib/*.help $RPM_BUILD_ROOT/usr/lib/python1.5/site-p\ ackages/Graphics cp Gist/Demo/*.* Gist3D/Demo/*.* OOG/Demo/*.* $RPM_BUILD_ROOT/usr/lib/pyt\ hon1.5/site-packages/Graphics cp Gist3D/Lib/*.py $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages/Graphi\ cs cp OOG/Lib/*.py $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages/Graphics cp Arrayfcns/Lib/*.py $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages/Gra\ phics echo "Graphics" > $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages/Graphics.pth cd ../RNG mkdir -p $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages/RNG cp *.so $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages/RNG cp Lib/*.py $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages/RNG echo "RNG" > $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages/RNG.pth cd ../NumTut mkdir -p $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages/NumTut cp * $RPM_BUILD_ROOT/usr/lib/python1.5/site-packages/NumTut %clean rm -rf $RPM_BUILD_ROOT %post if ! grep "^/usr/lib/python1.5/site-packages/NumPy\$" /etc/ld.so.conf > /dev/null; then echo "/usr/lib/python1.5/site-packages/NumPy" >> /etc/ld.so.conf fi ldconfig -v %files %doc Numerical/Doc Numerical/Demo Numerical/Test %doc LLNLDoc/extending_python.ps %doc LLNLDoc/numerical_python.ps %doc LLNLDoc/numericalpython.pdf /usr/lib/python1.5/site-packages/NumPy.pth /usr/lib/python1.5/site-packages/NumPy /usr/lib/python1.5/site-packages/NumTut /usr/include/python1.5/arrayobject.h /usr/include/python1.5/f2c.h /usr/include/python1.5/fftpack.h /usr/include/python1.5/ranlib.h /usr/include/python1.5/ufuncobject.h %files gist %doc LLNLDoc/ezplot.pdf %doc LLNLDoc/oog.pdf %doc LLNLDoc/pygist.pdf %doc LLNLDoc/pyplot.pdf /usr/lib/python1.5/site-packages/Graphics.pth /usr/lib/python1.5/site-packages/Graphics %files RNG %doc RNG/Demo /usr/lib/python1.5/site-packages/RNG.pth /usr/lib/python1.5/site-packages/RNG