Minor changes to use same patches in OpenMandriva

This commit is contained in:
pcpa 2014-02-19 12:40:51 -03:00
parent 2a721faf47
commit 7e4639192c
2 changed files with 18 additions and 1 deletions

View file

@ -664,6 +664,10 @@ sed -e 's|@@SAGE_ROOT@@|%{SAGE_ROOT}|' \
-e 's|@@SAGE_DOC@@|%{SAGE_DOC}|' \
-i src/sage/env.py
sed -e "s|, 'flask-oldsessions>=0.10'||" \
-e "s|'http://github.com/mitsuhiko/flask-oldsessions/tarball/master#egg=flask-oldsessions-0.10'||" \
-i build/pkgs/sagenb/src/%{sagenb_pkg}/setup.py
#------------------------------------------------------------------------
# ensure proper/preferred libatlas is in linker path
perl -pi -e 's|^(extra_link_args = ).*|$1\["-L%{_libdir}/atlas"\]|;' src/sage/misc/cython.py
@ -1126,6 +1130,7 @@ exit 0
# Use symlinks and a minor patch to the notebook to not bundle jmol
%post notebook
ln -sf %{_javadir}/JmolApplet.jar %{python_sitearch}/sagenb/data/jmol/
ln -sf %{_javadir}/Jmol.jar %{python_sitearch}/sagenb/data/jmol/
ln -sf %{_javadir}/vecmath.jar %{python_sitearch}/sagenb/data/jmol/
exit 0