mirror of
https://src.fedoraproject.org/rpms/sagemath.git
synced 2025-04-22 11:45:56 -04:00
Add workaround to rpm scriptlets error, and surf-geometry to path.
This commit is contained in:
parent
2c641cab13
commit
6729de07e3
1 changed files with 20 additions and 5 deletions
|
@ -74,7 +74,7 @@ Name: sagemath
|
|||
Group: Applications/Engineering
|
||||
Summary: A free open-source mathematics software system
|
||||
Version: 5.8
|
||||
Release: 7%{?dist}
|
||||
Release: 8%{?dist}
|
||||
# The file ${SAGE_ROOT}/COPYING.txt is the upstream license breakdown file
|
||||
# Additionally, every $files section has a comment with the license name
|
||||
# before files with that license
|
||||
|
@ -977,6 +977,7 @@ module load 4ti2-%{_arch}
|
|||
%if %{have_lrcalc}
|
||||
module load lrcalc-%{_arch}
|
||||
%endif
|
||||
module load surf-geometry-%{_arch}
|
||||
export PATH=$SAGE_LOCAL/bin:\$PATH
|
||||
export SINGULARPATH=%{_libdir}/Singular/LIB
|
||||
export SINGULAR_BIN_DIR=%{_libdir}/Singular
|
||||
|
@ -1147,14 +1148,19 @@ rm -r %{buildroot}%{python_sitearch}/sagenb/data/sage3d
|
|||
rm -fr $DOT_SAGE
|
||||
|
||||
########################################################################
|
||||
%post core -p /sbin/ldconfig
|
||||
%post core
|
||||
/sbin/ldconfig
|
||||
exit 0
|
||||
|
||||
%postun core -p /sbin/ldconfig
|
||||
%postun core
|
||||
/sbin/ldconfig
|
||||
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}/vecmath.jar %{python_sitearch}/sagenb/data/jmol/
|
||||
exit 0
|
||||
|
||||
%postun notebook
|
||||
if [ $1 -eq 0 ] ; then
|
||||
|
@ -1164,10 +1170,15 @@ if [ $1 -eq 0 ] ; then
|
|||
rmdir %{python_sitearch}/sagenb/data &&
|
||||
rmdir %{python_sitearch}/sagenb
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%post sagetex -p %{_bindir}/mktexlsr
|
||||
%post sagetex
|
||||
%{_bindir}/mktexlsr
|
||||
exit 0
|
||||
|
||||
%postun sagetex -p %{_bindir}/mktexlsr
|
||||
%postun sagetex
|
||||
%{_bindir}/mktexlsr
|
||||
exit 0
|
||||
|
||||
########################################################################
|
||||
%files
|
||||
|
@ -1377,6 +1388,10 @@ fi
|
|||
|
||||
########################################################################
|
||||
%changelog
|
||||
* Sat Apr 27 2013 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 5.8-8
|
||||
- Add surf-geometry to path for proper Singular plotting
|
||||
- Add workaround to an rpm scriptlet problem (#877651#89)
|
||||
|
||||
* Tue Apr 23 2013 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 5.8-7
|
||||
- Correct problem of package requiring a -devel file to work.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue