Bläddra i källkod

update module

Ralf S. Engelschall 8 år sedan
förälder
incheckning
0438215328
1 ändrade filer med 16 tillägg och 2 borttagningar
  1. 16 2
      python-math/python-math.spec

+ 16 - 2
python-math/python-math.spec

@@ -24,6 +24,7 @@
 #   package versions
 %define       V_python        2.7
 %define       V_numpy         1.12.0b1
+%define       V_scipy         1.0.0
 %define       V_theano        1.0.0rc1
 
 #   package information
@@ -37,11 +38,12 @@ Class:        BASE
 Group:        Language
 License:      GPL
 Version:      %{V_python}
-Release:      20171030
+Release:      20171101
 
 #   list of sources
 Source0:      https://files.pythonhosted.org/packages/source/n/numpy/numpy-%{V_numpy}.tar.gz
-Source1:      https://files.pythonhosted.org/packages/source/T/Theano/Theano-%{V_theano}.tar.gz
+Source1:      https://files.pythonhosted.org/packages/source/s/scipy/scipy-%{V_scipy}.tar.gz
+Source2:      https://files.pythonhosted.org/packages/source/T/Theano/Theano-%{V_theano}.tar.gz
 
 #   build information
 BuildPreReq:  OpenPKG, openpkg >= 20160101, python >= %{V_python}, gcc, gcc::with_fortran = yes
@@ -58,6 +60,11 @@ PreReq:       openblas
         url       = https://pypi.python.org/pypi/numpy
         regex     = numpy-(__VER__)\.tar\.gz
     }
+    prog python-math:scipy = {
+        version   = %{V_scipy}
+        url       = https://pypi.python.org/pypi/scipy
+        regex     = scipy-(__VER__)\.tar\.gz
+    }
     prog python-math:theano = {
         version   = %{V_theano}
         url       = https://pypi.python.org/pypi/Theano
@@ -67,6 +74,7 @@ PreReq:       openblas
 %prep
     %setup -q -c
     %setup -q -T -D -a 1
+    %setup -q -T -D -a 2
 
 %build
 
@@ -85,6 +93,12 @@ PreReq:       openblas
           --root=$RPM_BUILD_ROOT \
           --prefix=%{l_prefix}
     ) || exit $?
+    ( cd scipy-%{V_scipy}
+      %{l_prefix}/bin/python \
+          setup.py install \
+          --root=$RPM_BUILD_ROOT \
+          --prefix=%{l_prefix}
+    ) || exit $?
     ( cd Theano-%{V_theano}
       %{l_prefix}/bin/python \
           setup.py install \