...
 
Commits (4)
......@@ -32,22 +32,30 @@ mkdir -p $RPM_BUILD_ROOT/usr/share/pixmaps
mkdir -p $RPM_BUILD_ROOT/usr/bin
# Copy Pyro package and related scripts
cp -r /usr/lib/python2.7/site-packages/Pyro $RPM_BUILD_ROOT/usr/lib/python2.7/site-packages/
cp /usr/bin/pyro-* $RPM_BUILD_ROOT/usr/bin/.
pyro_path=`python -c "import Pyro ; print Pyro.__path__[0]"`
pyro_exe_dir=`dirname $(which pyro-ns)`
cp -r ${pyro_path} $RPM_BUILD_ROOT/usr/lib/python2.7/site-packages/
cp ${pyro_exe_dir}/pyro-* $RPM_BUILD_ROOT/usr/bin/.
# Copy Scientific package and related scripts
cp -r /usr/lib64/python2.7/site-packages/Scientific $RPM_BUILD_ROOT/usr/lib64/python2.7/site-packages/
cp /usr/bin/task_manager $RPM_BUILD_ROOT/usr/bin/.
scientific_path=`python -c "import Scientific ; print Scientific.__path__[0]"`
task_manager_exe_path=$(which task_manager)
cp -r ${scientific_path} $RPM_BUILD_ROOT/usr/lib64/python2.7/site-packages/
cp ${task_manager_exe_path} $RPM_BUILD_ROOT/usr/bin/.
# Copy MMTK package and related scripts
cp -r /usr/lib64/python2.7/site-packages/MMTK $RPM_BUILD_ROOT/usr/lib64/python2.7/site-packages/
cp /usr/bin/tviewer $RPM_BUILD_ROOT/usr/bin/.
mmtk_path=`python -c "import MMTK ; print MMTK.__path__[0]"`
tviewer_exe_path=$(which tviewer)
cp -r ${mmtk_path} $RPM_BUILD_ROOT/usr/lib64/python2.7/site-packages/
cp ${tviewer_exe_path} $RPM_BUILD_ROOT/usr/bin/.
# Copy MDANSE package and related scripts and resources
cp -r /usr/lib64/python2.7/site-packages/MDANSE $RPM_BUILD_ROOT/usr/lib64/python2.7/site-packages/
cp Resources/MDANSE.desktop $RPM_BUILD_ROOT/usr/share/applications/.
cp Resources/mdanse.png $RPM_BUILD_ROOT/usr/share/pixmaps/.
cp /usr/bin/mdanse_* $RPM_BUILD_ROOT/usr/bin/.
mdanse_path=`python -c "import MDANSE ; print MDANSE.__path__[0]"`
mdanse_exe_dir=`dirname $(which mdanse)`
cp -r ${mdanse_path} $RPM_BUILD_ROOT/usr/lib64/python2.7/site-packages/
cp ${mdanse_exe_dir}/mdanse_* $RPM_BUILD_ROOT/usr/bin/.
cp ${OLDPWD}/Resources/MDANSE.desktop $RPM_BUILD_ROOT/usr/share/applications/.
cp ${OLDPWD}/Resources/mdanse.png $RPM_BUILD_ROOT/usr/share/pixmaps/.
exit
......