From d9f735363a2fbe3e5c6e39d16e4340ae5a5cd7c7 Mon Sep 17 00:00:00 2001 From: Thomas Spura Date: Apr 29 2014 14:00:42 +0000 Subject: Unbundle js-highlight --- diff --git a/ipython.spec b/ipython.spec index 28d3660..e3d4c5b 100644 --- a/ipython.spec +++ b/ipython.spec @@ -258,6 +258,7 @@ Requires: python3-matplotlib ################################################# # We need to know nodejs_sitearch and lib BuildRequires: nodejs-packaging +BuildRequires: web-assets-devel BuildRequires: fontawesome-fonts-web Requires: fontawesome-fonts-web @@ -265,8 +266,8 @@ BuildRequires: nodejs-requirejs Requires: nodejs-requirejs BuildRequires: nodejs-underscore Requires: nodejs-underscore -BuildRequires: nodejs-highlight-js -Requires: nodejs-highlight-js +BuildRequires: js-highlight +Requires: js-highlight %description -n python3-ipython-notebook @@ -346,10 +347,18 @@ pushd IPython/html/static/components ls -l popd # TODO backbone bootstrap google-caja jquery jquery-ui marked - for folder in highlight.js requirejs underscore; do + #for folder in highlight.js requirejs underscore; do + for folder in requirejs underscore; do rm -r ${folder} ln -s %{nodejs_sitelib}/${folder} done +# Work around highlight packaging (ipython requires it in build/ subfolder...) +# Unbundle JS stuff WITHIN build subfolder (ipython requires it there...) + for folder in highlight.js; do + rm -r $folder + mkdir -p $folder + ln -s %{_jsdir}/$folder/ $folder/build + done ls -l ls -l * asdf @@ -587,6 +596,7 @@ popd - fix python -> python3 sed replacement - fix running testsuite - fix %%files +- Unbundle js-highlight * Thu Apr 3 2014 Thomas Spura - 2.0.0-1 - update to 2.0.0