mirror of
https://src.fedoraproject.org/rpms/sagemath.git
synced 2025-04-22 11:45:56 -04:00
Update to sagemath 6.4.1
This commit is contained in:
parent
3e866bf86e
commit
738094a8d8
27 changed files with 276 additions and 12243 deletions
130
sagemath.spec
130
sagemath.spec
|
@ -24,7 +24,7 @@
|
|||
%global pexpect_pkg pexpect-2.0
|
||||
%global polytopes_db_pkg polytopes_db-20120220
|
||||
%global rubiks_pkg rubiks-20070912
|
||||
%global sagenb_pkg sagenb-0.10.8.2
|
||||
%global sagenb_pkg sagenb-0.11.1
|
||||
%global sagetex_pkg sagetex-2.3.4
|
||||
|
||||
%global SAGE_ROOT %{_libdir}/sagemath
|
||||
|
@ -38,8 +38,8 @@
|
|||
Name: sagemath
|
||||
Group: Applications/Engineering
|
||||
Summary: A free open-source mathematics software system
|
||||
Version: 6.3
|
||||
Release: 4%{?dist}
|
||||
Version: 6.4.1
|
||||
Release: 1%{?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
|
||||
|
@ -48,9 +48,6 @@ URL: http://www.sagemath.org
|
|||
Source0: http://boxen.math.washington.edu/home/%{name}/sage-mirror/src/sage-%{version}.tar.gz
|
||||
Source1: gprc.expect
|
||||
Source2: makecmds.sty
|
||||
# not installed by jmol package, use one in sagemath jmol spkg
|
||||
Source3: Jmol.js
|
||||
Source4: JmolHelp.html
|
||||
|
||||
# 1. scons ignores most environment variables
|
||||
# 2. scons 2.2* does not have soname support (expected for scons 2.3*)
|
||||
|
@ -67,13 +64,10 @@ Patch1: %{name}-gmp.patch
|
|||
# Set of patches to work with system wide packages
|
||||
Patch2: %{name}-scripts.patch
|
||||
|
||||
# Adapt to ntl 6.0.0.
|
||||
Patch3: %{name}-ntl6.patch
|
||||
|
||||
# remove call to not implemented sagemath "is_package_installed" interfaces
|
||||
# need to package coin-or solver in fedora
|
||||
# remove check for non free solvers
|
||||
Patch4: %{name}-extensions.patch
|
||||
Patch3: %{name}-extensions.patch
|
||||
|
||||
# helper to:
|
||||
# o respect a DESTDIR environment variable
|
||||
|
@ -81,81 +75,69 @@ Patch4: %{name}-extensions.patch
|
|||
# o minor change to help in incremental builds by avoiding rebuilding
|
||||
# files
|
||||
# o do not assume there is an installed sagemath
|
||||
Patch5: %{name}-rpmbuild.patch
|
||||
Patch4: %{name}-rpmbuild.patch
|
||||
|
||||
# build documentation in buildroot environment
|
||||
Patch6: %{name}-sagedoc.patch
|
||||
Patch5: %{name}-sagedoc.patch
|
||||
|
||||
# sage notebook rpm and system environment adjustments
|
||||
Patch7: %{name}-sagenb.patch
|
||||
Patch6: %{name}-sagenb.patch
|
||||
|
||||
# do not attempt to create state files in system directories
|
||||
Patch8: %{name}-readonly.patch
|
||||
|
||||
# force coercion of ecl t_string to ecl t_base_string
|
||||
# this is hackish and only required if ecl is built with unicode support
|
||||
Patch9: %{name}-ecl-unicode.patch
|
||||
Patch7: %{name}-readonly.patch
|
||||
|
||||
# do not link explicitly to png12
|
||||
Patch10: %{name}-png.patch
|
||||
Patch8: %{name}-png.patch
|
||||
|
||||
# work with all maxima-runtime lisp backend packages
|
||||
Patch11: %{name}-maxima.patch
|
||||
Patch9: %{name}-maxima.patch
|
||||
|
||||
# execute 4ti2 programs in $PATH not in $SAGE_ROOT/local/bin
|
||||
Patch12: %{name}-4ti2.patch
|
||||
Patch10: %{name}-4ti2.patch
|
||||
|
||||
# http://trac.sagemath.org/sage_trac/ticket/12992
|
||||
# http://pari.math.u-bordeaux.fr/cgi-bin/bugreport.cgi?bug=1317
|
||||
Patch13: %{name}-pari.patch
|
||||
Patch11: %{name}-pari.patch
|
||||
|
||||
# use jmol itself to export preview images
|
||||
# FIXME besides not using X and told so, fails if DISPLAY is not set
|
||||
Patch14: %{name}-jmol.patch
|
||||
Patch12: %{name}-jmol.patch
|
||||
|
||||
# only cremona mini database built and installed
|
||||
# FIXME add a package with the full cremona database
|
||||
# FIXME actually it should be already available in pari-elldata
|
||||
Patch15: %{name}-cremona.patch
|
||||
Patch13: %{name}-cremona.patch
|
||||
|
||||
# lrslib is a requires
|
||||
Patch16: %{name}-lrslib.patch
|
||||
Patch14: %{name}-lrslib.patch
|
||||
|
||||
# nauty cannot be packaged due to license restrictions
|
||||
# http://cs.anu.edu.au/~bdm/nauty/
|
||||
# http://pallini.di.uniroma1.it/
|
||||
Patch17: %{name}-nauty.patch
|
||||
Patch15: %{name}-nauty.patch
|
||||
|
||||
# gap hap package not (yet) available
|
||||
# http://www-gap.mcs.st-and.ac.uk/Packages/hap.html
|
||||
Patch18: %{name}-gap-hap.patch
|
||||
Patch16: %{name}-gap-hap.patch
|
||||
|
||||
# enable lrcalc
|
||||
Patch19: %{name}-lrcalc.patch
|
||||
Patch17: %{name}-lrcalc.patch
|
||||
|
||||
# enable cbc
|
||||
Patch20: %{name}-cbc.patch
|
||||
Patch18: %{name}-cbc.patch
|
||||
|
||||
# Use system gap directories
|
||||
Patch21: %{name}-libgap.patch
|
||||
Patch19: %{name}-libgap.patch
|
||||
|
||||
# enable fes
|
||||
Patch22: %{name}-fes.patch
|
||||
Patch20: %{name}-fes.patch
|
||||
|
||||
# enable cryptominisat
|
||||
Patch23: %{name}-cryptominisat.patch
|
||||
Patch21: %{name}-cryptominisat.patch
|
||||
|
||||
# Side effect of using distro packages
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=974769
|
||||
Patch24: %{name}-sympy.patch
|
||||
|
||||
# Correct some warnings of newer sphinx that are treatead as errors
|
||||
# by default as of sagemath 6.2; other problems were fixed using
|
||||
# -k (keep-going)
|
||||
Patch25: %{name}-sphinx.patch
|
||||
|
||||
# Rediffed latest version from http://trac.sagemath.org/ticket/15767
|
||||
Patch26: %{name}-pari2.7.patch
|
||||
Patch22: %{name}-sympy.patch
|
||||
|
||||
BuildRequires: 4ti2
|
||||
BuildRequires: atlas-devel
|
||||
|
@ -163,7 +145,7 @@ BuildRequires: cddlib-tools
|
|||
BuildRequires: cliquer-devel
|
||||
BuildRequires: coin-or-Cbc-devel
|
||||
BuildRequires: cryptominisat-devel
|
||||
BuildRequires: Cython
|
||||
BuildRequires: Cython >= 0.21.1
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: dvipng
|
||||
|
@ -611,18 +593,13 @@ popd
|
|||
%patch17
|
||||
%patch18
|
||||
%patch19
|
||||
%patch20
|
||||
%patch21
|
||||
|
||||
%if %{have_fes}
|
||||
%patch22
|
||||
%patch20
|
||||
%endif
|
||||
|
||||
%patch23
|
||||
%patch24
|
||||
%patch25
|
||||
|
||||
%patch26
|
||||
%patch21
|
||||
%patch22
|
||||
|
||||
sed -e 's|@@SAGE_ROOT@@|%{SAGE_ROOT}|' \
|
||||
-e 's|@@SAGE_DOC@@|%{SAGE_DOC}|' \
|
||||
|
@ -687,7 +664,9 @@ pushd src/c_lib
|
|||
-e 's|@@optflags@@|%{optflags}|g' \
|
||||
-e "s|@@__global_ldflags@@|$ldflags|g" \
|
||||
-i SConstruct
|
||||
CXX=g++ UNAME=Linux SAGE64=auto scons
|
||||
# force building ntl_wrap.cpp with gcc otherwise other
|
||||
# modules will not find mangled symbols.
|
||||
CXX=gcc UNAME=Linux SAGE64=auto scons
|
||||
ln -s libcsage.so.0 libcsage.so
|
||||
popd
|
||||
pushd src/sage/libs/mpmath
|
||||
|
@ -757,19 +736,22 @@ popd
|
|||
pushd build/pkgs/sagenb/src/%{sagenb_pkg}
|
||||
rm -f %{buildroot}%{python_sitearch}/sagenb/data/sage3d/sage3d
|
||||
python setup.py install --root=%{buildroot} --install-purelib=%{python_sitearch}
|
||||
|
||||
# jmol
|
||||
rm -fr %{buildroot}%{python_sitearch}/sagenb/data/jmol
|
||||
mkdir -p %{buildroot}%{python_sitearch}/sagenb/data/jmol/appletweb
|
||||
pushd %{buildroot}%{python_sitearch}/sagenb/data/jmol
|
||||
cp -fa %{SOURCE3} %{SOURCE4} appletweb
|
||||
popd
|
||||
### FIXME waiting on https://bugzilla.redhat.com/show_bug.cgi?id=1108060
|
||||
# To get it to work you need to get the sagemath jmol spkg or an
|
||||
# upstream sagemath install, example:
|
||||
# cp -fr ~/sage-6.4.1-x86_64-Linux/local/share/jmol /usr/share/sagemath
|
||||
# cp -fr ~/sage-6.4.1-x86_64-Linux/local/share/jsmol /usr/share/sagemath
|
||||
|
||||
mkdir -p $SAGE_SHARE/jmol
|
||||
mkdir -p $SAGE_SHARE/jsmol/
|
||||
|
||||
# sage3d
|
||||
rm -f %{buildroot}%{_bindir}/sage3d
|
||||
%if %{with_sage3d}
|
||||
ln -sf %{SAGE_LOCAL}/bin/sage3d %{buildroot}%{python_sitearch}/sagenb/data/sage3d/sage3d
|
||||
%endif
|
||||
# flask stuff not installed
|
||||
cp -ar flask_version %{buildroot}%{python_sitearch}/sagenb
|
||||
ln -sf %{python_sitearch}/sagenb %{buildroot}%{SAGE_SRC}/sagenb
|
||||
popd
|
||||
|
||||
|
@ -1081,9 +1063,6 @@ rm %{buildroot}%{python_sitearch}/sagenb/translations/*/LC_MESSAGES/*.po
|
|||
rm -r %{buildroot}%{python_sitearch}/sagenb/data/sage3d
|
||||
%endif
|
||||
|
||||
# remove cache files
|
||||
rm -r %{buildroot}%{python_sitearch}/sagenb/data/.webassets-cache
|
||||
|
||||
# remove sage_setup
|
||||
rm -r %{buildroot}%{python_sitearch}/sage_setup
|
||||
|
||||
|
@ -1099,23 +1078,6 @@ exit 0
|
|||
/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}/Jmol.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
|
||||
rm -f %{python_sitearch}/sagenb/data/jmol/JmolApplet.jar
|
||||
rm -f %{python_sitearch}/sagenb/data/jmol/vecmath.jar
|
||||
rmdir %{python_sitearch}/sagenb/data/jmol &&
|
||||
rmdir %{python_sitearch}/sagenb/data &&
|
||||
rmdir %{python_sitearch}/sagenb
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%post sagetex
|
||||
%{_bindir}/mktexlsr
|
||||
exit 0
|
||||
|
@ -1188,7 +1150,6 @@ exit 0
|
|||
%{SAGE_ETC}/maxima
|
||||
%{SAGE_ETC}/mwrank
|
||||
%{SAGE_ETC}/pari
|
||||
%{SAGE_ETC}/singular
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
%files data-graphs
|
||||
|
@ -1270,7 +1231,8 @@ exit 0
|
|||
# ASL 2.0
|
||||
%{python_sitearch}/sagenb/data/highlight
|
||||
# LGPLv2+
|
||||
%{python_sitearch}/sagenb/data/jmol
|
||||
%{SAGE_SHARE}/jmol/
|
||||
%{SAGE_SHARE}/jsmol/
|
||||
# (MIT or GPLv2) and (MIT and BSD and GPL)
|
||||
%{python_sitearch}/sagenb/data/jquery
|
||||
# (MIT or GPLv2) and (MIT and BSD and GPL)
|
||||
|
@ -1291,8 +1253,6 @@ exit 0
|
|||
%endif
|
||||
# LGPLv2+
|
||||
%{python_sitearch}/sagenb/data/tiny_mce
|
||||
# Auto generated files
|
||||
%{python_sitearch}/sagenb/data/webassets_generated
|
||||
# LGPLv2+
|
||||
%{python_sitearch}/sagenb/data/zorn
|
||||
# GPLv2+
|
||||
|
@ -1317,6 +1277,9 @@ exit 0
|
|||
%dir %{python_sitearch}/sagenb/translations
|
||||
%lang(cs_CZ) %{python_sitearch}/sagenb/translations/cs_CZ
|
||||
%lang(de_AT) %{python_sitearch}/sagenb/translations/de_AT
|
||||
%lang(de_AT) %{python_sitearch}/sagenb/translations/en_US
|
||||
%lang(de_AT) %{python_sitearch}/sagenb/translations/es_ES
|
||||
%lang(de_AT) %{python_sitearch}/sagenb/translations/fr_FR
|
||||
%lang(pt_BR) %{python_sitearch}/sagenb/translations/pt_BR
|
||||
%lang(ru_RU) %{python_sitearch}/sagenb/translations/ru_RU
|
||||
|
||||
|
@ -1341,6 +1304,9 @@ exit 0
|
|||
|
||||
########################################################################
|
||||
%changelog
|
||||
* Wed Nov 26 2014 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 6.4.1-1
|
||||
- Update to sagemath 6.4.1 (#1095282)
|
||||
|
||||
* Sat Nov 1 2014 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 6.3-4
|
||||
- Install 128x128 icon (#1157575)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue