%global __provides_exclude_from .*/site-packages/.*\\.so # This package installs python files in nonstandard places %global _python_bytecompile_extra 0 %bcond_with bundled_pexpect %bcond_without bundled_ipython %bcond_without bundled_ipywidgets %bcond_without bundled_thebe %bcond_without bundled_threejs %bcond_without bundled_widgetsnbextension %bcond_without install_hack # jmol has been retired from Fedora; set this if it ever comes back %bcond_with jmol # for faster full rpm test builds %ifarch %{ix86} x86_64 %bcond_without docs %else %bcond_with docs %endif # use a workaround to match upstream sagemath patched sphinx %bcond_without sphinx_hack # use workaround to match upstream sagemath patched cython %bcond_with cython_hack %ifarch %{ix86} x86_64 %bcond_without fes %else %bcond_with fes %endif # switch to run make -testall %bcond_with check %global SAGE_TIMEOUT 60 %global SAGE_TIMEOUT_LONG 180 %global combinatorial_designs_pkg combinatorial_designs-20140630 %global conway_polynomials_pkg conway_polynomials-0.5 %global cremona_ver 2019-10-29 %global elliptic_curves_pkg elliptic_curves-0.8.1 %global flintqs_pkg flintqs-1.0 %global graphs_pkg graphs-20161026 %if %{with bundled_ipython} %global ipython_ver 5.8.0 %global ipython_pkg ipython-%{ipython_ver} %global prompt_toolkit_ver 1.0.15 %global prompt_tookit_pkg prompt_toolkit-%{prompt_toolkit_ver} %endif %if %{with bundled_ipywidgets} %global ipywidgets_ver 7.4.2 %global ipywidgets_pkg ipywidgets-%{ipywidgets_ver} %endif %if %{with bundled_pexpect} %global pexpect_pkg pexpect-4.6.0 %endif %global polytopes_db_pkg polytopes_db-20170220 %global rubiks_pkg rubiks-20070912 %global sagetex_pkg sagetex-3.4 %global Sphinx_pkg Sphinx-1.8.5 %global singular_pkg singular-4.1.1p2 %if %{with bundled_thebe} %global thebe_ver 9624e0a0 %global thebe_pkg thebe-%{thebe_ver} %endif %if %{with bundled_threejs} %global threejs_ver r110 %global threejs_pkg threejs-%{threejs_ver} %endif %if %{with bundled_widgetsnbextension} %global widgetsnbextension_ver 3.4.2 %global widgetsnbextension_pkg widgetsnbextension-%{widgetsnbextension_ver} %endif # Spkg equivalents of required rpms; we pretend they are installed as spkgs. %global SAGE_REQUIRED_PKGS 4ti2-1.6.9 bliss-0.73 cbc-2.10.4 CoCoALib-0.99650 coxeter3-3.1 cryptominisat-5.6.8 database_cremona_ellcurve-%{cremona_ver} gap_packages-4.10.2 gmp-6.1.2 libsirocco-2.0.2 lrslib-070 mcqd-1.0 meataxe-1.0 primecount-5.3 qepcad-B.1.72 saclib-2.2.7 surf-1.0.6-gcc6 tdlib-0.9.0 %ifarch %{ix86} x86_64 %global SAGE_REQUIRED_PKGS %{SAGE_REQUIRED_PKGS} fes-0.2 %endif %global SAGE_ROOT %{_libdir}/sagemath %global SAGE_LOCAL %{SAGE_ROOT}/local %global SAGE_SRC %{SAGE_ROOT}/src %global SAGE_DOC %{_docdir}/%{name} %global SAGE_SHARE %{_datadir}/sagemath %global SAGE_ETC %{SAGE_SHARE}/etc %global SAGE_PYTHONPATH %{SAGE_ROOT}/site-packages %global SAGE_SPKG_INST %{SAGE_LOCAL}/var/lib/sage/installed Name: sagemath Summary: A free open-source mathematics software system Version: 9.0 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 License: ASL 2.0 and BSD and GPL+ and GPLv2+ and LGPLv2+ and MIT and Public Domain URL: http://www.sagemath.org Source0: http://files.sagemath.org/src/sage-%{version}.tar.gz Source1: https://github.com/JohnCremona/ecdata/archive/%{cremona_ver}/cremona-%{cremona_ver}.tar.gz Source2: gprc.expect # Follow maxima's ExclusiveArch, except exclude 32-bit ARM. The source RPM is # now about 2GB in size. The 32-bit ARM builders run out of memory trying to # create the SRPM and also trying to unpack the SRPM before starting a build. ExclusiveArch: aarch64 %{ix86} x86_64 ppc sparcv9 # Fix stray escapes in python strings Patch0: %{name}-escape.patch # Fix a "random" bit chooser that always chooses 0 Patch1: %{name}-random.patch # Set of patches to work with system wide packages Patch2: %{name}-scripts.patch # remove call to not implemented sagemath "is_package_installed" interfaces # remove check for non free solvers Patch3: %{name}-extensions.patch # helper to: # o respect a DESTDIR environment variable # o avoid double '//' in pathnames, which can confuse debugedit & co # o minor change to help in incremental builds by avoiding rebuilding # files # o do not assume there is an installed sagemath Patch4: %{name}-rpmbuild.patch # build documentation in buildroot environment Patch5: %{name}-sagedoc.patch # do not attempt to create state files in system directories Patch6: %{name}-readonly.patch # work with all maxima-runtime lisp backend packages Patch7: %{name}-maxima.patch # execute 4ti2 programs in $PATH not in $SAGE_ROOT/local/bin Patch8: %{name}-4ti2.patch # use jmol itself to export preview images # FIXME besides not using X and told so, fails if DISPLAY is not set Patch9: %{name}-jmol.patch # tell the user how to install the large Cremona database # add a missing commit() that causes large database construction to fail Patch10: %{name}-cremona.patch # adapt to python 3 and cython running in python 3 mode Patch11: %{name}-python3.patch # correct path to the nauty geng program Patch12: %{name}-nauty.patch # remove the buildroot path from Cython output Patch13: %{name}-buildroot.patch # update c++ standard to fix FTBFS Patch14: %{name}-lcalc.patch # avoid assertion in coin backend Patch15: %{name}-cbc.patch # Use system gap directories and modernize libgap interface Patch16: %{name}-libgap.patch # Build fes Patch17: %{name}-fes-build.patch # Disable fes Patch18: %{name}-fes.patch # Side effect of using distro packages # https://bugzilla.redhat.com/show_bug.cgi?id=974769 Patch19: %{name}-sympy.patch # Correct unable to start QEPCAD within sage # https://bugzilla.redhat.com/show_bug.cgi?id=1243590 Patch20: %{name}-qepcad.patch # Correct path to arb headers Patch21: %{name}-arb.patch # Add missing include paths Patch22: %{name}-includes.patch # Use openblas Patch23: %{name}-openblas.patch # Fix paths to latte-integrale binaries Patch24: %{name}-latte.patch # Upstream fixes for random SIGFPEs due to ecl messing with the fp state Patch25: %{name}-sigfpe.patch # Add some missing #includes and types in the rubiks code Patch26: %{name}-rubiks.patch # Fix an indentation error in sagetex Patch27: %{name}-sagetex.patch # Fix some path settings in the sage environment Patch28: %{name}-env.patch # Adapt to recent tdlib 0.9 Patch29: %{name}-tdlib.patch # Use local objects.inv for intersphinx since no network on koji builders Patch30: %{name}-intersphinx.patch # Remove an unused call to a primecount function that no longer exists Patch31: %{name}-primecount.patch BuildRequires: 4ti2 BuildRequires: arb-devel BuildRequires: bliss-devel BuildRequires: boost-devel BuildRequires: brial-devel BuildRequires: cddlib-tools BuildRequires: cliquer-devel BuildRequires: coin-or-Cbc-devel BuildRequires: coxeter-devel BuildRequires: desktop-file-utils BuildRequires: dvipng BuildRequires: ecl BuildRequires: eclib-devel BuildRequires: factory-devel %if %{with fes} BuildRequires: fes-devel %endif BuildRequires: flint-devel BuildRequires: gap BuildRequires: gap-pkg-cohomolo BuildRequires: gap-pkg-corelg BuildRequires: gap-pkg-crime BuildRequires: gap-pkg-design BuildRequires: gap-pkg-edim BuildRequires: gap-pkg-forms BuildRequires: gap-pkg-guava BuildRequires: gap-pkg-hapcryst BuildRequires: gap-pkg-hecke BuildRequires: gap-pkg-jupyterkernel BuildRequires: gap-pkg-liealgdb BuildRequires: gap-pkg-liepring BuildRequires: gap-pkg-loops BuildRequires: gap-pkg-lpres BuildRequires: gap-pkg-mapclass BuildRequires: gap-pkg-nautytracesinterface BuildRequires: gap-pkg-qpa BuildRequires: gap-pkg-radiroot BuildRequires: gap-pkg-repsn BuildRequires: gap-pkg-semigroups BuildRequires: gap-pkg-singular BuildRequires: gap-pkg-toric BuildRequires: gap-pkg-utils BuildRequires: gc-devel BuildRequires: gcc-c++ BuildRequires: gcc-gfortran BuildRequires: gcc-objc BuildRequires: gcc-objc++ BuildRequires: gd-devel BuildRequires: gdb BuildRequires: gfan BuildRequires: giac-devel BuildRequires: glpk-devel BuildRequires: gmp-ecm BuildRequires: gmp-ecm-devel BuildRequires: gsl-devel BuildRequires: ImageMagick BuildRequires: iml-devel %if %{with jmol} BuildRequires: jmol # To have a proper link BuildRequires: jsmol %endif BuildRequires: jsmath-fonts BuildRequires: L-function-devel BuildRequires: lapack-devel BuildRequires: latte-integrale BuildRequires: libbraiding-devel BuildRequires: libfplll-devel BuildRequires: libgap-devel BuildRequires: libhomfly-devel BuildRequires: libmpc-devel BuildRequires: libpng-devel BuildRequires: linbox-devel BuildRequires: lrcalc-devel BuildRequires: lrslib-utils BuildRequires: m4ri-devel BuildRequires: m4rie-devel BuildRequires: mathjax BuildRequires: maxima-runtime-ecl BuildRequires: mcqd-devel BuildRequires: mpfi-devel BuildRequires: nauty BuildRequires: ntl-devel BuildRequires: openblas-devel BuildRequires: openssl BuildRequires: palp BuildRequires: pari-devel BuildRequires: pari-galdata BuildRequires: pari-gp BuildRequires: pari-seadata BuildRequires: perl-generators BuildRequires: planarity-devel BuildRequires: ppl-devel BuildRequires: primecount-devel BuildRequires: pynac-devel BuildRequires: python3-devel BuildRequires: python3-docs BuildRequires: python3-cypari2-devel BuildRequires: python3-cysignals-devel BuildRequires: python3-pillow-devel BuildRequires: python3-pplpy-devel BuildRequires: python3-tdlib-devel BuildRequires: python3dist(brial) BuildRequires: python3dist(cvxopt) BuildRequires: python3dist(cython) BuildRequires: python3dist(docutils) BuildRequires: python3dist(fpylll) BuildRequires: python3dist(future) BuildRequires: python3dist(gmpy2) %if %{with sphinx_hack} BuildRequires: python3dist(html5lib) BuildRequires: python3dist(imagesize) %endif BuildRequires: python3dist(ipykernel) %if %{without bundled_ipython} BuildRequires: python3dist(ipython) %endif BuildRequires: python3dist(kiwisolver) BuildRequires: python3dist(matplotlib) BuildRequires: python3dist(networkx) BuildRequires: python3dist(notebook) %if %{with bundled_ipython} BuildRequires: python3dist(path.py) %endif %if %{without bundled_pexpect} BuildRequires: python3dist(pexpect) %endif %if %{with bundled_ipython} BuildRequires: python3dist(pickleshare) %endif BuildRequires: python3dist(pip) BuildRequires: python3dist(pkgconfig) BuildRequires: python3dist(psutil) BuildRequires: python3dist(ptyprocess) BuildRequires: python3dist(pycryptosat) %if %{with bundled_ipython} BuildRequires: python3dist(pyzmq) %endif BuildRequires: python3dist(rpy2) BuildRequires: python3dist(scipy) BuildRequires: python3dist(scons) BuildRequires: python3dist(setuptools) %if %{with bundled_ipython} BuildRequires: python3dist(simplegeneric) %endif BuildRequires: python3dist(six) BuildRequires: python3dist(speaklater) BuildRequires: python3dist(sphinx) BuildRequires: python3dist(sympy) BuildRequires: python3dist(zodb3) BuildRequires: qepcad-B BuildRequires: R BuildRequires: ratpoints-devel BuildRequires: readline-devel BuildRequires: rw-devel BuildRequires: sharedmeataxe-devel BuildRequires: Singular-devel BuildRequires: sirocco-devel BuildRequires: stix-fonts BuildRequires: suitesparse-devel BuildRequires: symmetrica-devel BuildRequires: sympow BuildRequires: tachyon BuildRequires: texlive BuildRequires: tex(anyfontsize.sty) BuildRequires: tex(makecmds.sty) # For _jsdir macro BuildRequires: web-assets-devel BuildRequires: xorg-x11-fonts-Type1 BuildRequires: xorg-x11-server-Xvfb BuildRequires: zlib-devel BuildRequires: zn_poly-devel Requires: hicolor-icon-theme Requires: %{name}-core = %{version}-%{release} Requires: %{name}-data = %{version}-%{release} %if %{with docs} Requires: %{name}-doc-en = %{version}-%{release} %endif Requires: %{name}-jupyter = %{version}-%{release} Requires: %{name}-rubiks = %{version}-%{release} Requires: %{name}-sagetex = %{version}-%{release} %if %{with bundled_thebe} Provides: bundled(thebe) = %{thebe_ver} %endif %if %{with bundled_threejs} Provides: bundled(threejs) = %{threejs_ver} %endif # This can be removed when Fedora 30 reaches EOL Obsoletes: %{name}-notebook-export < 8.8-5 Provides: %{name}-notebook-export = %{version}-%{release} %description Sage is a free open-source mathematics software system licensed under the GPL. It combines the power of many existing open-source packages into a common Python-based interface. #------------------------------------------------------------------------ %package core Summary: Open Source Mathematics Software Requires: %{name}%{?_isa} = %{version}-%{release} Requires: 4ti2 Requires: cddlib-tools Requires: gap Requires: gap-pkg-cohomolo Requires: gap-pkg-corelg Requires: gap-pkg-crime Requires: gap-pkg-design Requires: gap-pkg-edim Requires: gap-pkg-forms Requires: gap-pkg-guava Requires: gap-pkg-hapcryst Requires: gap-pkg-hecke Requires: gap-pkg-jupyterkernel Requires: gap-pkg-liealgdb Requires: gap-pkg-liepring Requires: gap-pkg-loops Requires: gap-pkg-lpres Requires: gap-pkg-mapclass Requires: gap-pkg-nautytracesinterface Requires: gap-pkg-qpa Requires: gap-pkg-radiroot Requires: gap-pkg-repsn Requires: gap-pkg-semigroups Requires: gap-pkg-singular Requires: gap-pkg-toric Requires: gap-pkg-utils Requires: gfan Requires: gmp-ecm %if %{with jmol} Requires: jmol Requires: jsmol %endif Requires: jsmath-fonts Requires: latte-integrale Requires: libgap-devel Requires: lrslib-utils Requires: mathjax Requires: maxima-runtime-ecl Requires: nauty Requires: palp Requires: pari-galdata Requires: pari-gp Requires: pari-seadata Requires: python3-tdlib Requires: python3dist(brial) Requires: python3dist(cypari2) Requires: python3dist(cysignals) Requires: python3dist(cvxopt) Requires: python3dist(cython) Requires: python3dist(docutils) Requires: python3dist(fpylll) Requires: python3dist(future) Requires: python3dist(gmpy2) %if %{with sphinx_hack} Requires: python3dist(html5lib) Requires: python3dist(imagesize) %endif Requires: python3dist(ipykernel) %if %{without bundled_ipython} Requires: python3dist(ipython) %endif Requires: python3dist(matplotlib) Requires: python3dist(networkx) %if %{with bundled_ipython} Requires: python3dist(path.py) %endif %if %{without bundled_pexpect} Requires: python3dist(pexpect) %endif %if %{with bundled_ipython} Requires: python3dist(pickleshare) %endif Requires: python3dist(pplpy) Requires: python3dist(psutil) Requires: python3dist(ptyprocess) Requires: python3dist(pycryptosat) %if %{with bundled_ipython} Requires: python3dist(pyzmq) %endif Requires: python3dist(rpy2) Requires: python3dist(scipy) %if %{with bundled_ipython} Requires: python3dist(simplegeneric) %endif Requires: python3dist(six) Requires: python3dist(sphinx) Requires: python3dist(sympy) Requires: python3dist(zodb3) Requires: qepcad-B Requires: Singular # Required by thebe; remove when it is unbundled Requires: stix-fonts Requires: sympow Requires: tachyon Requires: texlive %if %{with bundled_ipython} Provides: bundled(ipython) = %{ipython_ver} Provides: bundled(prompt_toolkit) = %{prompt_toolkit_ver} %endif %if %{with bundled_ipywidgets} Provides: bundled(ipywidgets) = %{ipywidgets_ver} %endif %if %{with bundled_widgetsnbextension} Provides: bundled(widgetsnbextension) = %{widgetsnbextension_ver} %endif %description core This package contains the core sagemath python modules. #------------------------------------------------------------------------ %package data Summary: Databases and scripts for %{name} Requires: %{name} = %{version}-%{release} Requires: %{name}-data-combinatorial_designs = %{version}-%{release} Requires: %{name}-data-conway_polynomials = %{version}-%{release} Requires: %{name}-data-elliptic_curves = %{version}-%{release} Requires: %{name}-data-etc = %{version}-%{release} Requires: %{name}-data-graphs = %{version}-%{release} Requires: %{name}-data-polytopes_db = %{version}-%{release} BuildArch: noarch %description data Collection of databases and interface customization scripts for sagemath. #------------------------------------------------------------------------ %package data-combinatorial_designs Summary: Table of MOLS from the Handbook of Combinatorial Designs Requires: %{name}-data = %{version}-%{release} BuildArch: noarch %description data-combinatorial_designs The table of MOLS (10000 integers) from the Handbook of Combinatorial Designs, 2nd edition. #------------------------------------------------------------------------ %package data-conway_polynomials Summary: Conway Polynomials Database Requires: %{name}-data = %{version}-%{release} BuildArch: noarch %description data-conway_polynomials Small database of Conway polynomials for sagemath. #------------------------------------------------------------------------ %package data-elliptic_curves Summary: Databases of elliptic curves Requires: %{name}-data = %{version}-%{release} BuildArch: noarch %description data-elliptic_curves Includes two databases: * A small subset of the data in John Cremona's database of elliptic curves up to conductor 10000. See http://johncremona.github.io/ecdata/. * William Stein's database of interesting curves #------------------------------------------------------------------------ %package data-elliptic_curves_large Summary: Large database of elliptic curves Requires: %{name}-data = %{version}-%{release} BuildArch: noarch %description data-elliptic_curves_large John Cremona's full database of elliptic curves, and also data related to the BSD conjecture and modular degrees for all of these curves, and generators for the Mordell-Weil groups. See http://johncremona.github.io/ecdata/. #------------------------------------------------------------------------ %package data-etc Summary: Extcode for Sagemath Requires: %{name}-data = %{version}-%{release} BuildArch: noarch %description data-etc Collection of scripts and interfaces to sagemath. #------------------------------------------------------------------------ %package data-graphs Summary: Sagemath database of graphs Requires: %{name}-data = %{version}-%{release} BuildArch: noarch %description data-graphs A database of graphs. Created by Emily Kirkman based on the work of Jason Grout. Since April 2012 it also contains the ISGCI graph database. #------------------------------------------------------------------------ %package data-polytopes_db Summary: Lists of 2- and 3-dimensional reflexive polytopes Requires: %{name}-data = %{version}-%{release} BuildArch: noarch %description data-polytopes_db The list of polygons is quite easy to get and it has been known for a while. The list of 3-polytopes was originally obtained by Maximilian Kreuzer and Harald Skarke using their software PALP, which is included into the standard distribution of Sage. To work with lattice and reflexive polytopes from Sage you can use sage.geometry.lattice_polytope module, which relies on PALP for some of its functionality. To get access to the databases of this package, use ReflexivePolytope and ReflexivePolytopes commands. %if %{with docs} #------------------------------------------------------------------------ %package doc Summary: Documentation infrastructure files for %{name} %description doc This package contains the documentation infrastructure for %{name}. #------------------------------------------------------------------------ %package doc-ca Summary: Catalan documentation files for %{name} Requires: %{name}-doc = %{version}-%{release} %description doc-ca This package contains the Catalan %{name} documentation. #------------------------------------------------------------------------ %package doc-de Summary: German documentation files for %{name} Requires: %{name}-doc = %{version}-%{release} %description doc-de This package contains the German %{name} documentation. #------------------------------------------------------------------------ %package doc-en Summary: English documentation files for %{name} Requires: %{name}-doc = %{version}-%{release} %description doc-en This package contains the English %{name} documentation. #------------------------------------------------------------------------ %package doc-fr Summary: French documentation files for %{name} Requires: %{name}-doc = %{version}-%{release} %description doc-fr This package contains the French %{name} documentation. #------------------------------------------------------------------------ %package doc-hu Summary: Hungarian documentation files for %{name} Requires: %{name}-doc = %{version}-%{release} %description doc-hu This package contains the Hungarian %{name} documentation. #------------------------------------------------------------------------ %package doc-it Summary: Italian documentation files for %{name} Requires: %{name}-doc = %{version}-%{release} %description doc-it This package contains the Italian %{name} documentation. #------------------------------------------------------------------------ %package doc-pt Summary: Portuguese documentation files for %{name} Requires: %{name}-doc = %{version}-%{release} %description doc-pt This package contains the Portuguese %{name} documentation. #------------------------------------------------------------------------ %package doc-ru Summary: Russian documentation files for %{name} Requires: %{name}-doc = %{version}-%{release} %description doc-ru This package contains the Russian %{name} documentation. #------------------------------------------------------------------------ %package doc-tr Summary: Turkish documentation files for %{name} Requires: %{name}-doc = %{version}-%{release} %description doc-tr This package contains the Turkish %{name} documentation. # with docs %endif #------------------------------------------------------------------------ %package jupyter Summary: Jupyter integration for sagemath Requires: %{name}%{?_isa} = %{version}-%{release} Requires: python-jupyter-filesystem # This can be removed when Fedora 31 reaches EOL Obsoletes: sagemath-notebook < 9.0-1 Provides: sagemath-notebook = %{version}-%{release} %description jupyter This package contains a Jupyter integration for sagemath, replacing the defunct notebook functionality. #------------------------------------------------------------------------ %package rubiks Summary: Several programs for working with Rubik's cubes Requires: %{name}%{?_isa} = %{version}-%{release} %description rubiks Several programs for working with Rubik's cubes, by three different people. In summary the three contributors are: Michael Reid (GPL) http://www.math.ucf.edu/~reid/Rubik/optimal_solver.html optimal - uses many pre-computed tables to find an optimal solution to the 3x3x3 Rubik's cube Dik T. Winter (MIT License) cube - uses Kociemba's algorithm to iteratively find a short solution to the 3x3x3 Rubik's cube size222 - solves a 2x2x2 Rubik's cube Eric Dietz (GPL) http://www.wrongway.org/?rubiksource cu2 - A fast, non-optimal 2x2x2 solver cubex - A fast, non-optimal 3x3x3 solver mcube - A fast, non-optimal 4x4x4 solver #------------------------------------------------------------------------ %package sagetex Summary: Sagemath into LaTeX documents Requires: %{name}%{?_isa} = %{version}-%{release} Requires: python3dist(pillow) Requires: tex(color.sty) Requires: tex(fancyvrb.sty) Requires: tex(graphicx.sty) Requires: tex(hyperref.sty) Requires: tex(ifpdf.sty) Requires: tex(ifthen.sty) Requires: tex(ifxetex.sty) Requires: tex(listings.sty) Requires: tex(makecmds.sty) Requires: tex(tikz.sty) Requires: tex(verbatim.sty) Requires: tex(xspace.sty) %description sagetex This is the SageTeX package. It allows you to embed code, results of computations, and plots from the Sage mathematics software suite (http://sagemath.org) into LaTeX documents. ######################################################################## %prep %setup -q -n sage-%{version} %setup -q -n sage-%{version} -T -D -a 1 pushd build/pkgs/combinatorial_designs tar jxf ../../../upstream/%{combinatorial_designs_pkg}.tar.bz2 mv %{combinatorial_designs_pkg} src popd pushd build/pkgs/conway_polynomials tar jxf ../../../upstream/%{conway_polynomials_pkg}.tar.bz2 mv %{conway_polynomials_pkg} src popd pushd build/pkgs/elliptic_curves tar jxf ../../../upstream/%{elliptic_curves_pkg}.tar.bz2 mv %{elliptic_curves_pkg} src popd pushd build/pkgs/flintqs tar zxf ../../../upstream/%{flintqs_pkg}.tar.bz2 mv %{flintqs_pkg} src popd pushd build/pkgs/graphs tar jxf ../../../upstream/%{graphs_pkg}.tar.bz2 mv %{graphs_pkg} src popd %if %{with bundled_ipython} pushd build/pkgs/ipython tar zxf ../../../upstream/%{ipython_pkg}.tar.gz mv %{ipython_pkg} src popd pushd build/pkgs/prompt_toolkit tar zxf ../../../upstream/%{prompt_tookit_pkg}.tar.gz mv %{prompt_tookit_pkg} src popd %endif %if %{with bundled_ipywidgets} pushd build/pkgs/ipywidgets tar zxf ../../../upstream/%{ipywidgets_pkg}.tar.gz mv %{ipywidgets_pkg} src popd %endif %if %{with bundled_pexpect} pushd build/pkgs/pexpect tar zxf ../../../upstream/%{pexpect_pkg}.tar.gz mv %{pexpect_pkg} src pushd src for diff in ../patches/*.patch; do patch -p1 < $diff done popd popd %endif pushd build/pkgs/polytopes_db tar jxf ../../../upstream/%{polytopes_db_pkg}.tar.bz2 mv %{polytopes_db_pkg} src popd pushd build/pkgs/rubiks tar jxf ../../../upstream/%{rubiks_pkg}.tar.bz2 mv %{rubiks_pkg} src pushd src for diff in ../patches/*.patch; do patch -p1 < $diff done popd popd pushd build/pkgs/sagetex tar zxf ../../../upstream/%{sagetex_pkg}.tar.gz mv %{sagetex_pkg} src # Fix the style file install path texmfdir=$(cut -d/ -f3- <<< "%{_texmf}") sed -i "s,share/texmf,$texmfdir," src/setup.py popd %if %{with docs} %if %{with sphinx_hack} pushd build/pkgs/sphinx tar zxf ../../../upstream/%{Sphinx_pkg}.tar.gz mv %{Sphinx_pkg} src pushd src for diff in ../patches/*.patch; do patch -p1 < $diff done popd popd %endif %endif %if %{with bundled_thebe} pushd build/pkgs/thebe unzip ../../../upstream/%{thebe_pkg}.zip mv %{thebe_pkg}* src popd %endif %if %{with bundled_threejs} pushd build/pkgs/threejs mkdir src cd src tar zxf ../../../../upstream/%{threejs_pkg}.tar.gz popd %endif %if %{with bundled_widgetsnbextension} pushd build/pkgs/widgetsnbextension tar zxf ../../../upstream/%{widgetsnbextension_pkg}.tar.gz mv %{widgetsnbextension_pkg} src popd %endif %patch0 %patch1 %patch2 %patch3 %patch4 %patch5 %patch6 %patch7 %patch8 %patch9 %patch10 %patch11 %patch12 %patch13 %patch14 %patch15 %patch16 %if %{with fes} %patch17 %else %patch18 %endif %patch19 %patch20 %patch21 %patch22 %patch23 %patch24 %patch25 %patch26 %patch27 %patch28 %patch29 %patch30 %patch31 sed -e 's|@@SAGE_ROOT@@|%{SAGE_ROOT}|' \ -e 's|@@SAGE_DOC@@|%{SAGE_DOC}|' \ -e 's|@@SAGE_LOCAL@@|%{SAGE_LOCAL}|' \ -i src/sage/env.py sed -e 's|@@CYSIGNALS@@|%{python3_sitearch}/cysignals|' \ -e 's|@@BUILDROOT@@|%{buildroot}|' \ -i src/setup.py #------------------------------------------------------------------------ # some .c files are not (re)generated find src/sage \( -name \*.pyx -o -name \*.pxd \) -exec touch {} \+ # fix Singular paths singver=$(sed 's/.*-\([.[:digit:]]*\).*/\1/' <<< %{singular_pkg}) sed -e "s,SINGULARPATH=\",&%{_datadir}/singular/LIB:," \ -e "s,\(SINGULAR_EXECUTABLE=\"\).*\",\1%{_libdir}/Singular/Singular\"," \ -i src/bin/sage-env sed -e "s,\(SINGULAR_SO = \)SAGE.*,\1'%{_libdir}/libSingular-$singver.so'," \ -i src/sage/env.py # fix shebangs; some paths contains spaces, so use the null byte facility grep -FrlZ '#!%{_bindir}/env python3' | \ xargs -0 sed -i 's,#!%{_bindir}/env python3,#!%{__python3},g' grep -FrlZ '#!%{_bindir}/env python' | \ xargs -0 sed -i 's,#!%{_bindir}/env python,#!%{__python3},g' grep -FrlZ '#!%{_bindir}/env sage-system-python' | \ xargs -0 sed -i 's,#!%{_bindir}/env sage-system-python,#!%{__python3},g' grep -FrlZ '#!%{_bindir}/env sage-python' | \ xargs -0 sed -i 's,#!%{_bindir}/env sage-python,#!%{__python3},g' grep -FrlZ 'sage-python23' | xargs -0 sed -i 's,sage-python23,python3,g' grep -FrlZ '#!%{_bindir}/env' | \ xargs -0 sed -i 's,#!%{_bindir}/env ,#!%{_bindir}/,' grep -rlZ '#!%{_bindir}/python$' | xargs -0 sed -i 's,#!%{_bindir}/python$,&3,' sed -i 's,%{_bindir}/env python,%{__python3},' \ %if %{with bundled_pexpect} build/pkgs/pexpect/src/examples/python.py \ %endif build/pkgs/sagetex/src/sagetex.ins sed -i 's,%{_bindir}/python,&3,' src/sage/misc/dev_tools.py sed -e 's,local/bin/python,bin/python,' \ -e 's,#!%{_bindir}/python,&3,' \ -i src/sage/repl/preparse.py %if %{with bundled_ipython} sed -e "s|'%{_bindir}/env', 'which'|'%{_bindir}/which'|" \ -i build/pkgs/ipython/src/IPython/utils/_process_posix.py %endif # GAP does not have enough memory to load the entire workspace sed -i 's/64m/256m/' src/sage/interfaces/gap.py ######################################################################## %build export CC=%{__cc} export CFLAGS="%{optflags}" export CXXFLAGS="%{optflags}" export SAGE_PYTHON_VERSION=3 export SAGE_PYTHON3=yes export SAGE_ROOT=%{buildroot}%{SAGE_ROOT} export SAGE_LOCAL=%{buildroot}%{SAGE_LOCAL} # Avoid buildroot in gcc command line (use _builddir instead) export SAGE_SRC="$PWD/src" export SAGE_INC=%{_includedir} export SAGE_FORTRAN=%{_bindir}/gfortran export SAGE_FORTRAN_LIB=`gfortran --print-file-name=libgfortran.so` export DESTDIR=%{buildroot} export SAGE_DEBUG=no # Use file in /tmp because there are issues with long pathnames export DOT_SAGE=/tmp/sage$$ mkdir -p $DOT_SAGE/tmp # Avoid surprises due to change to src/build/temp.*$ARCH.*/... export SAGE_CYTHONIZED=$SAGE_SRC/build/cythonized # match system packages as sagemath packages mkdir -p $SAGE_ROOT $SAGE_LOCAL ln -sf %{_libdir} $SAGE_LOCAL/lib ln -sf %{_includedir} $SAGE_LOCAL/include ln -sf %{_datadir} $SAGE_LOCAL/share export PATH=%{buildroot}%{_bindir}:$PATH export PYTHON=%{_bindir}/python3 export PYTHONPATH=%{buildroot}%{python3_sitearch}:$PYTHONPATH #------------------------------------------------------------------------ # Generate sage-env-config sed -e 's,@prefix@,%{SAGE_LOCAL},' \ -e 's,@CC@,gcc,' \ -e 's,@CXX@,g++,' \ -e 's,@FC@,gfortran,' \ -e 's,@OBJC@,gcc,' \ -e 's,@OBJCXX@,g++,' \ -e 's,@SAGE_PYTHON_VERSION@,3,' \ -e 's,@SAGE_GMP_PREFIX@,,' \ -e 's,@SAGE_GMP_INCLUDE@,%{_includedir},' \ -e 's,@SAGE_MPFR_PREFIX@,,' \ -e 's,@SAGE_MPC_PREFIX@,,' \ -e 's,@SAGE_NTL_PREFIX@,,' \ src/bin/sage-env-config.in > src/bin/sage-env-config #------------------------------------------------------------------------ # Save and update environment to generate bundled interfaces save_PATH=$PATH save_LOCAL=$SAGE_LOCAL export PATH=%{_builddir}/bin:$PATH export SAGE_LOCAL=%{_builddir} %if %{with bundled_ipython} pushd build/pkgs/ipython/src %__python3 setup.py build %__python3 setup.py install --root %{_builddir} popd pushd build/pkgs/prompt_toolkit/src %__python3 setup.py build %__python3 setup.py install --root %{_builddir} popd %endif %if %{with bundled_ipywidgets} pushd build/pkgs/ipywidgets/src %__python3 setup.py build %__python3 setup.py install --root %{_builddir} popd %endif %if %{with bundled_widgetsnbextension} pushd build/pkgs/widgetsnbextension/src %__python3 setup.py build %__python3 setup.py install --root %{_builddir} popd %endif %if %{with cython_hack} cp -far %{python3_sitearch}/Cython %{_builddir}%{python3_sitearch} BASE=$PWD/build/pkgs/cython/patches/ pushd %{_builddir}%{python3_sitearch} for PATCH in pxi_sys_path.patch do patch -p1 < $BASE/$PATCH done popd %endif # Restore environment used to generate bundled interfaces export PATH=$save_PATH export SAGE_LOCAL=$save_LOCAL mkdir -p %{buildroot}%{SAGE_SPKG_INST} mkdir -p %{buildroot}%{_libdir}/sagemath/build/pkgs pushd src %__python3 -u ./setup.py build popd #------------------------------------------------------------------------ pushd build/pkgs/sagetex/src %__python3 ./setup.py build popd #------------------------------------------------------------------------ pushd build/pkgs/flintqs/src %configure make %{?_smp_mflags} CPP="g++ %{optflags} -fPIC" popd pushd build/pkgs/rubiks/src make %{?_smp_mflags} CC="gcc -fPIC" CXX="g++ -fPIC" CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" popd # last build command rm -fr $DOT_SAGE ######################################################################## %install export LC_ALL=C.UTF-8 export CC=%{__cc} export SAGE_ROOT=%{buildroot}%{SAGE_ROOT} export SAGE_LOCAL=%{buildroot}%{SAGE_LOCAL} # Avoid buildroot in gcc command line (use _builddir instead) export SAGE_SRC="$PWD/src" export SAGE_INC=%{_includedir} #export SAGE_SRC=#%#{buildroot}#%#{SAGE_SRC} export SAGE_SHARE=%{buildroot}%{SAGE_SHARE} export SAGE_ETC=%{buildroot}%{SAGE_ETC} export SAGE_EXTCODE=%{buildroot}%{SAGE_ETC} export SAGE_DOC=%{buildroot}%{SAGE_DOC} export SAGE_PYTHON3=yes export SAGE_PYTHONPATH=%{buildroot}%{SAGE_PYTHONPATH} export DESTDIR=%{buildroot} export SAGE_DEBUG=no export DOT_SAGE=/tmp/sage$$ mkdir -p $DOT_SAGE/tmp export PATH=%{buildroot}%{_bindir}:$PATH export PYTHON=%{_bindir}/python3 export PYTHONPATH=%{buildroot}%{python3_sitearch}:$PYTHONPATH export PYTHONPATH=%{_builddir}%{python3_sitearch}:$PYTHONPATH #------------------------------------------------------------------------ mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_libdir} mkdir -p $SAGE_PYTHONPATH rm -fr $SAGE_LOCAL/{include,lib,share,notebook} mkdir -p $SAGE_SHARE $SAGE_DOC $SAGE_LOCAL/bin %{buildroot}%{SAGE_SRC} ln -sf $PWD/src/sage %{buildroot}%{SAGE_SRC}/sage ln -sf %{_libdir} $SAGE_LOCAL/lib ln -sf %{_includedir} $SAGE_LOCAL/include ln -sf %{_datadir} $SAGE_LOCAL/share #------------------------------------------------------------------------ cp -a src/ext $SAGE_ETC rm -fr $SAGE_ETC/doctest cp -p %{SOURCE2} $SAGE_ETC #------------------------------------------------------------------------ pushd src %if %{without install_hack} %py3_install %else mkdir -p %{buildroot}%{python3_sitearch} cp -far build/lib.linux-*/sage %{buildroot}%{python3_sitearch} %endif %if %{with docs} # install documentation sources rm -fr $SAGE_DOC/{common,en,fr} cp -far doc/{common,ca,de,en,fr,hu,it,pt,ru,tr} $SAGE_DOC %endif popd #------------------------------------------------------------------------ %if %{with bundled_pexpect} pushd build/pkgs/pexpect/src cp -fa pexpect $SAGE_PYTHONPATH popd %endif #------------------------------------------------------------------------ cp -fa COPYING.txt $SAGE_ROOT pushd src/bin mkdir -p $SAGE_LOCAL/bin cp -fa sage-* $SAGE_LOCAL/bin pushd $SAGE_LOCAL/bin %if %{with jmol} ln -sf %{_bindir}/jmol jmol %endif ln -sf %{_bindir}/python3 sage.bin ln -sf %{_bindir}/python3 python ln -sf %{_bindir}/gp sage_pari ln -sf %{_bindir}/gap gap ln -sf %{_bindir}/gmp-ecm ecm rm -f sage-env-config.in popd popd install -p -m755 src/bin/sage $SAGE_LOCAL/bin #------------------------------------------------------------------------ pushd build/pkgs/flintqs/src cp -fa src/QuadraticSieve $SAGE_LOCAL/bin popd pushd build/pkgs/rubiks/src cp -fa \ reid/optimal \ dietz/solver/cubex \ dietz/mcube/mcube \ dietz/cu2/cu2 \ dik/dikcube \ dik/size222 \ $SAGE_LOCAL/bin popd #------------------------------------------------------------------------ pushd $SAGE_LOCAL/bin/ rm -f \ sage-arch-env \ sage-bdist \ sage-build \ sage-clone \ sage-clone-source \ sage-combinat \ sage-crap \ sage-dev \ sage-download-file \ sage-download-upstream \ sage-env \ sage-fix-pkg-checksums \ sage-list-experimental \ sage-list-optional \ sage-list-packages \ sage-list-standard \ sage-location \ sage-omega \ sage-open \ sage-pkg \ sage-pull \ sage-push \ sage-pypkg-location \ sage-README-osx.txt \ sage-rebaseall.bat \ sage-rebaseall.sh \ sage-rebase.bat \ sage-rebase.sh \ sage-rebase \ sage-rsyncdist \ sage-sdist \ sage-spkg \ sage-starts \ sage-sync-build.py \ sage-test-import \ sage-update-src \ sage-update-version \ sage-upgrade \ spkg-install popd #------------------------------------------------------------------------ ( source build/bin/sage-dist-helpers #------------------------------------------------------------------------ pushd build/pkgs/combinatorial_designs chmod a+x spkg-install bash -c '. ../../../src/bin/sage-dist-helpers; ./spkg-install' popd #------------------------------------------------------------------------ pushd build/pkgs/conway_polynomials %__python3 ./spkg-install.py popd #------------------------------------------------------------------------ pushd build/pkgs/elliptic_curves # --short-circuit -bi debug build helper if [ ! -e src/ellcurves ]; then rm -fr src tar jxf ../../../upstream/%{elliptic_curves_pkg}.tar.bz2 mv %{elliptic_curves_pkg} src fi %__python3 ./spkg-install.py popd #------------------------------------------------------------------------ pushd build/pkgs/graphs mkdir -p $SAGE_SHARE/graphs cp -fa src/* $SAGE_SHARE/graphs popd #------------------------------------------------------------------------ pushd build/pkgs/polytopes_db mkdir -p $SAGE_SHARE/reflexive_polytopes cp -fa src/* $SAGE_SHARE/reflexive_polytopes popd #------------------------------------------------------------------------ pushd build/pkgs/sagetex/src %py3_install "--install-purelib=%{python3_sitearch}" mv %{buildroot}%{_texmf}/tex/latex/sagetex/CONTRIBUTORS \ %{buildroot}%{_docdir}/sagetex for file in PKG-INFO; do install -p -m 0644 $file %{buildroot}%{_docdir}/sagetex/$file done popd #------------------------------------------------------------------------ %if %{with bundled_ipython} mv %{_builddir}%{python3_sitelib}/IPython %{buildroot}%{SAGE_PYTHONPATH} mv %{_builddir}%{python3_sitelib}/prompt_toolkit %{buildroot}%{SAGE_PYTHONPATH} mv %{_builddir}%{_bindir}/ip* %{buildroot}%{SAGE_LOCAL}/bin %endif #------------------------------------------------------------------------ %if %{with bundled_ipywidgets} mv %{_builddir}%{python3_sitelib}/ipywidgets %{buildroot}%{SAGE_PYTHONPATH} %endif #------------------------------------------------------------------------ %if %{with bundled_thebe} pushd build/pkgs/thebe mkdir -p $SAGE_SHARE/thebe cp -p src/static/main-built.js $SAGE_SHARE/thebe/thebe.js popd %endif #------------------------------------------------------------------------ %if %{with bundled_threejs} pushd build/pkgs/threejs cp -a src $SAGE_SHARE/threejs popd %endif #------------------------------------------------------------------------ %if %{with bundled_widgetsnbextension} pushd build/pkgs/widgetsnbextension/src %py3_install "--install-purelib=%{python3_sitelib}" mv %{buildroot}%{_prefix}%{_sysconfdir} %{buildroot}%{_sysconfdir} popd %endif #------------------------------------------------------------------------ ) # source build/bin/sage-dist-helpers #------------------------------------------------------------------------ cat > %{buildroot}%{SAGE_LOCAL}/bin/sage-env << EOF export CUR=\$PWD ##export DOT_SAGE="\$HOME/.sage" mkdir -p \$DOT_SAGE/{maxima,sympow,tmp} export SAGE_TESTDIR=\$DOT_SAGE/tmp export SAGE_ROOT="$SAGE_ROOT" export SAGE_LOCAL="$SAGE_LOCAL" export SAGE_SHARE="$SAGE_SHARE" export SAGE_EXTCODE="$SAGE_ETC" export SAGE_ETC="$SAGE_ETC" export SAGE_SRC="%{buildroot}%{SAGE_SRC}" export SAGE_PYTHON3=yes ##export SAGE_DOC="$SAGE_DOC" ##export SAGE_DOC_SRC="\$SAGE_DOC" ##export SAGE_PKGS="\$SAGE_LOCAL/var/lib/sage/installed" module load 4ti2-%{_arch} module load lrcalc-%{_arch} module load surf-geometry-%{_arch} export PATH=$SAGE_LOCAL/bin:\$PATH export SINGULAR_DATA_DIR=%{_datadir} export SINGULAR_BIN_DIR=%{_libdir}/Singular export SINGULAR_SO=%{_libdir}/libSingular-4.1.1.so ##export PYTHONPATH="$SAGE_PYTHONPATH:\$SAGE_LOCAL/bin" export SAGE_FORTRAN=%{_bindir}/gfortran export SAGE_FORTRAN_LIB=\`gfortran --print-file-name=libgfortran.so\` export SYMPOW_DIR="\$DOT_SAGE/sympow" # Required for sage -gdb : \${SAGE_DEBUG:=no} export SAGE_DEBUG EOF cat > %{buildroot}%{_bindir}/sage << EOF #!/bin/bash -i source $SAGE_LOCAL/bin/sage-env exec $SAGE_LOCAL/bin/sage "\$@" EOF #------------------------------------------------------------------------ chmod +x %{buildroot}%{_bindir}/sage #------------------------------------------------------------------------ # adjust cython interface: # o install csage headers # o install .pxi and .pxd files pushd src for f in `find sage \( -name \*.pxi -o -name \*.pxd -o -name \*.pyx \)`; do install -p -D -m 0644 $f %{buildroot}%{python3_sitearch}/$f done # need this or will not "find" the files in the directory, and # fail to link with gmp touch %{buildroot}%{python3_sitearch}/sage/libs/gmp/__init__.py popd %if %{with docs} #------------------------------------------------------------------------ %if %{with bundled_pexpect} cp -fa $SAGE_PYTHONPATH/pexpect %{buildroot}%{python3_sitearch} %endif # Build documentation, using %#{buildroot} environment export SAGE_SETUP=$PWD/src/sage_setup pushd src/doc export SAGE_DOC=$PWD export PATH=%{buildroot}%{_bindir}:$SAGE_LOCAL/bin:$PATH export SINGULARPATH=%{_datadir}/singular/LIB export SINGULAR_BIN_DIR=%{_libdir}/Singular export PYTHONPATH=$SAGE_SETUP:%{buildroot}%{python3_sitearch}:$SAGE_PYTHONPATH:$SAGE_DOC %if %{with sphinx_hack} pushd ../../build/pkgs/sphinx/src %py3_build %py3_install "--install-purelib=%{python3_sitearch}" rm -f %{buildroot}%{_bindir}/sphinx* popd %endif # there we go ln -sf %{buildroot}%{SAGE_DOC} %{buildroot}%{SAGE_SRC}/doc export SAGE_DOC=%{buildroot}%{SAGE_DOC} export SAGE_DOC_SRC=$SAGE_DOC # python -m sage_setup.docbuild # Build with an X server running, required by some doc builders SAGE_NUM_THREADS=2 \ xvfb-run -a -n 1 %__python3 -m docbuild --no-pdf-links -k all html -j rm -f %{buildroot}%{SAGE_SRC}/doc ln -sf %{SAGE_DOC} %{buildroot}%{SAGE_SRC}/doc # should not be required and encodes buildroot rm -fr $SAGE_DOC/output/doctrees popd %if %{with check} export SAGE_TIMEOUT=%{SAGE_TIMEOUT} export SAGE_TIMEOUT_LONG=%{SAGE_TIMEOUT_LONG} sage -testall --verbose || : install -p -m644 $DOT_SAGE/tmp/test.log $SAGE_DOC/test.log # remove buildroot references from test.log sed -i 's|%{buildroot}||g' $SAGE_DOC/test.log %endif %if %{with bundled_pexpect} rm -f %{buildroot}%{python3_sitearch}/pexpect %endif %if %{with sphinx_hack} rm -fr %{buildroot}%{python3_sitearch}/sphinx \ %{buildroot}%{python3_sitearch}/Sphinx* %endif # More wrong buildroot references perl -pi -e 's|%{buildroot}||g;' \ -e "s|$PWD/src/doc|%{SAGE_DOC}|g;" \ %{buildroot}%{SAGE_DOC}/html/en/reference/combinat/sage/combinat/posets/poset_examples.html \ %{buildroot}%{SAGE_DOC}/html/en/reference/graphs/sage/graphs/graph_generators.html # with docs %endif #------------------------------------------------------------------------ # Fix links export SAGE_SRC=%{buildroot}%{SAGE_SRC} rm -fr $SAGE_SRC/sage $SAGE_ETC/sage $SAGE_ROOT/doc $SAGE_SRC/doc rm -fr $SAGE_ROOT/share $SAGE_ROOT/devel ln -sf %{python3_sitearch}/sage $SAGE_SRC/sage ln -sf %{python3_sitearch} $SAGE_ETC/sage ln -sf %{SAGE_DOC} $SAGE_ROOT/doc %if %{with docs} ln -sf %{SAGE_DOC} $SAGE_SRC/doc %endif ln -sf %{SAGE_SHARE} $SAGE_ROOT/share # compat devel symlink ln -sf src $SAGE_ROOT/devel # Install menu and icons install -p -m644 -D src/ext/notebook-ipython/logo.svg \ %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/sagemath.svg mkdir -p %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF [Desktop Entry] Name=Sagemath Comment=A free open-source mathematics software system Exec=sage Icon=%{name} Terminal=true Type=Application Categories=Education;Science;Math; EOF desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop # Fix permissions find %{buildroot} -name '*.so' -exec chmod 755 {} \+ pushd %{buildroot}%{SAGE_LOCAL}/bin chmod 755 QuadraticSieve chmod 755 mcube dikcube cu2 size222 cubex optimal popd for file in `find %{buildroot} -name \*.py`; do if head -1 $file | grep -q '^#!'; then chmod +x $file fi done %if %{with docs} chmod -x %{buildroot}%{SAGE_DOC}/en/prep/media/Rplot001.png # Documentation is not rebuilt (also corrects rpmlint warning of hidden file) find %{buildroot}%{SAGE_DOC} -name .buildinfo -delete rm -fr %{buildroot}%{SAGE_DOC}/output/inventory find %{buildroot}%{SAGE_DOC} -type d -name _sources -exec rm -fr {} \+ %endif # remove build directory in buildroot [ -d %{buildroot}%{SAGE_SRC}/build ] && rm -r %{buildroot}%{SAGE_SRC}/build %if %{without install_hack} # remove sage_setup rm -r %{buildroot}%{python3_sitearch}/sage_setup %endif # pretend sagemath spkgs are installed to reduce number of errors # in doctests mkdir -p %{buildroot}%{SAGE_SPKG_INST} pushd upstream for file in *.tar.*; do mkdir %{buildroot}%{SAGE_SPKG_INST}/${file%.tar.*} done for file in *.zip; do mkdir %{buildroot}%{SAGE_SPKG_INST}/${file%.zip} done popd pushd %{buildroot}%{SAGE_SPKG_INST} for pkg in %{SAGE_REQUIRED_PKGS}; do mkdir $pkg done popd #------------------------------------------------------------------------ cat > %{buildroot}%{SAGE_LOCAL}/bin/sage-list-packages << EOF #!/bin/sh NOVERSION=false INSTALLED=no while [ \$# -gt 0 ]; do if [ x\$1 = x--no-version ]; then NOVERSION=true elif [ x\$1 = xinstalled ]; then INSTALLED=yes fi shift done if [ \$INSTALLED = no ]; then exit 0 fi LIST=\$(ls -1 %{SAGE_SPKG_INST}) if [ \$NOVERSION = false ]; then for pkg in \$LIST; do echo \$pkg | sed -e 's/-/ /' done else for pkg in \$LIST; do echo \$pkg | sed -e 's/-.*//' done fi EOF chmod +x %{buildroot}%{SAGE_LOCAL}/bin/sage-list-packages #------------------------------------------------------------------------ %if %{with docs} rm -fr %{buildroot}%{SAGE_DOC}/doctrees rm -fr %{buildroot}%{SAGE_DOC}/inventory %endif #------------------------------------------------------------------------ # Byte compile python files in nonstandard places %py_byte_compile %{__python3} %{buildroot}%{_texmf}/tex/latex/sagetex #------------------------------------------------------------------------ # Jupyter integration pushd src %{__python3} << EOF from sage.repl.ipython_kernel.install import SageKernelSpec SageKernelSpec.update(prefix='%{buildroot}%{_prefix}') EOF popd # Remove buildroot from the json and symbolic links pushd %{buildroot}%{_datadir}/jupyter sed -i 's,%{buildroot},,g' kernels/sagemath/kernel.json for link in $(find . -type l); do target=$(readlink $link) if [[ "$target" =~ "%{buildroot}" ]]; then rm $link ln -s ${target#%{buildroot}} $link fi done popd #------------------------------------------------------------------------ # Build the large Cremona database export PATH=%{buildroot}%{SAGE_LOCAL}/bin:$PATH export PYTHONPATH=%{buildroot}%{SAGE_PYTHONPATH}:%{buildroot}%{python3_sitearch} cat > cremona.sage << EOF import sage.databases.cremona db_path = '%{buildroot}%{SAGE_SHARE}/cremona/cremona' c = sage.databases.cremona.LargeCremonaDatabase(db_path, False, True) c._init_from_ftpdata('ecdata-%{cremona_ver}') EOF %{buildroot}%{SAGE_LOCAL}/bin/sage cremona.sage #------------------------------------------------------------------------ # Script was used to build documentation and possibly other operations perl -pi -e 's|%{buildroot}||g;s|^##||g;' \ %{buildroot}%{_bindir}/sage \ %{buildroot}%{SAGE_LOCAL}/bin/sage-env # last install command rm -fr $DOT_SAGE ######################################################################## # Update sagemath's view of installed packages as RPM packages are added # and removed. %triggerin -- %{name}-data-elliptic_curves_large mkdir -p %{SAGE_LOCAL}/var/lib/sage/installed/database_cremona_ellcurve-%{cremona_ver} 2>&1 || : %triggerun -- %{name}-data-elliptic_curves_large rm -fr %{SAGE_LOCAL}/var/lib/sage/installed/database_cremona_ellcurve-%{cremona_ver} ######################################################################## %files # GPLv2+ %dir %{SAGE_ROOT} %doc %{SAGE_ROOT}/COPYING.txt %dir %{SAGE_LOCAL} %dir %{SAGE_LOCAL}/bin %dir %{SAGE_SHARE} %{SAGE_LOCAL}/bin/QuadraticSieve %{SAGE_LOCAL}/bin/ecm %{SAGE_LOCAL}/bin/gap %if %{with jmol} %{SAGE_LOCAL}/bin/jmol %endif %if %{with bundled_ipython} %{SAGE_LOCAL}/bin/ip* %endif %{SAGE_LOCAL}/bin/python %{SAGE_LOCAL}/bin/sage* %{SAGE_LOCAL}/include %{SAGE_LOCAL}/lib %{SAGE_LOCAL}/share %{SAGE_LOCAL}/var %ghost %{SAGE_LOCAL}/var/lib/sage/installed/database_cremona_ellcurve-%{cremona_ver} %{SAGE_ROOT}/doc %{SAGE_ROOT}/devel %{SAGE_ROOT}/share %dir %{SAGE_SRC} %if %{with docs} %{SAGE_SRC}/doc %endif %{SAGE_SRC}/sage %dir %{SAGE_PYTHONPATH} # GPLv2+ %{_bindir}/sage %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{_datadir}/applications/%{name}.desktop %if %{with bundled_thebe} # MIT %{SAGE_SHARE}/thebe %endif %if %{with bundled_threejs} # MIT %{SAGE_SHARE}/threejs %endif #------------------------------------------------------------------------ %files core # GPLv2+ %{python3_sitearch}/sage %if %{without install_hack} %{python3_sitearch}/sage-*.egg-info %endif %if %{with bundled_ipython} %{SAGE_PYTHONPATH}/IPython %{SAGE_PYTHONPATH}/prompt_toolkit %endif %if %{with bundled_ipywidgets} %{SAGE_PYTHONPATH}/ipywidgets %endif #------------------------------------------------------------------------ %files data %dir %{SAGE_SHARE} %dir %{SAGE_ETC} %{SAGE_ETC}/sage %{SAGE_ETC}/gprc.expect #------------------------------------------------------------------------ %files data-combinatorial_designs # Public Domain %{SAGE_SHARE}/combinatorial_designs #------------------------------------------------------------------------ %files data-conway_polynomials # GPLv2+ %{SAGE_SHARE}/conway_polynomials #------------------------------------------------------------------------ %files data-elliptic_curves # GPLv2+ %dir %{SAGE_SHARE}/cremona/ %{SAGE_SHARE}/cremona/cremona_mini.db %{SAGE_SHARE}/ellcurves #------------------------------------------------------------------------ %files data-elliptic_curves_large # GPLv2+ %dir %{SAGE_SHARE}/cremona/ %{SAGE_SHARE}/cremona/cremona.db #------------------------------------------------------------------------ %files data-etc # GPLv2+ %{SAGE_ETC}/gap %{SAGE_ETC}/images %{SAGE_ETC}/kenzo %{SAGE_ETC}/magma %{SAGE_ETC}/mwrank %{SAGE_ETC}/nbconvert %{SAGE_ETC}/pari %{SAGE_ETC}/singular %{SAGE_ETC}/threejs %{SAGE_ETC}/valgrind #------------------------------------------------------------------------ %files data-graphs # GPLv2+ %{SAGE_ETC}/graphs %{SAGE_SHARE}/graphs #------------------------------------------------------------------------ %files data-polytopes_db # GPL+ %{SAGE_SHARE}/reflexive_polytopes %if %{with docs} #------------------------------------------------------------------------ %files doc # GPLv2+ %dir %{SAGE_DOC} %{SAGE_DOC}/common %dir %{SAGE_DOC}/html #------------------------------------------------------------------------ %files doc-ca # GPLv2+ %{SAGE_DOC}/ca %{SAGE_DOC}/html/ca #------------------------------------------------------------------------ %files doc-de # GPLv2+ %{SAGE_DOC}/de %{SAGE_DOC}/html/de #------------------------------------------------------------------------ %files doc-en # GPLv2+ %{SAGE_DOC}/en %{SAGE_DOC}/html/en #------------------------------------------------------------------------ %files doc-fr # GPLv2+ %{SAGE_DOC}/fr %{SAGE_DOC}/html/fr #------------------------------------------------------------------------ %files doc-hu # GPLv2+ %{SAGE_DOC}/hu %{SAGE_DOC}/html/hu #------------------------------------------------------------------------ %files doc-it # GPLv2+ %{SAGE_DOC}/it %{SAGE_DOC}/html/it #------------------------------------------------------------------------ %files doc-pt # GPLv2+ %{SAGE_DOC}/pt %{SAGE_DOC}/html/pt #------------------------------------------------------------------------ %files doc-ru # GPLv2+ %{SAGE_DOC}/ru %{SAGE_DOC}/html/ru #------------------------------------------------------------------------ %files doc-tr # GPLv2+ %{SAGE_DOC}/tr %{SAGE_DOC}/html/tr # with docs %endif #------------------------------------------------------------------------ %files jupyter %{SAGE_ETC}/notebook-ipython # LGPLv2+ %if %{with bundled_widgetsnbextension} %config(noreplace) %{_sysconfdir}/jupyter/nbconfig/notebook.d/*.json %{_datadir}/jupyter/nbextensions/* %{python3_sitelib}/widgetsnbextension* %endif %{_datadir}/jupyter/kernels/sagemath/ #------------------------------------------------------------------------ %files rubiks # GPL+ %{SAGE_LOCAL}/bin/optimal # MIT %{SAGE_LOCAL}/bin/dikcube %{SAGE_LOCAL}/bin/size222 # GPL+ %{SAGE_LOCAL}/bin/cu2 %{SAGE_LOCAL}/bin/cubex %{SAGE_LOCAL}/bin/mcube #------------------------------------------------------------------------ %files sagetex # GPLv2+ %{python3_sitearch}/sagetex* %{python3_sitearch}/__pycache__/sagetex* %{_texmf}/tex/latex/sagetex %doc %{_docdir}/sagetex ######################################################################## %changelog * Wed May 27 2020 Miro Hrončok - 9.0-8 - Rebuilt for Python 3.9 * Wed May 13 2020 Jerry James - 9.0-7 - Require libgap-devel so libgap.so can be found * Mon May 11 2020 Jerry James - 9.0-6 - Install threejs_template.html (bz 1832673) * Fri May 8 2020 Jerry James - 9.0-5 - Attempt 2 at fixing bundled ipython (bz 1832673) * Thu May 7 2020 Jerry James - 9.0-4 - Fix bundled ipython incompatibility with python 3.8 (bz 1832673) * Mon Apr 27 2020 Jerry James - 9.0-3 - Build without jmol/jsmol support due to retirement of jmol from Fedora * Fri Mar 13 2020 Jerry James - 9.0-2 - Rebuild for gap 4.11.0 - Update libgap interface for gap 4.11.0 - Adjust list of gap packages to match build/pkgs/gap_packages - Point sharedmeataxe to a writable directory for its multiplication tables * Fri Feb 28 2020 Jerry James - 9.0-1 - Version 9.0 (bz 1756780, 1770880) - Drop upstreamed -ecm and -primecount patches - Add -escape patch - The old notebook (sagenb) is no longer shipped, so drop the -sagenb and -sagenb-python3 patches, the -notebook subpackage, and some BRs - New -jupyter subpackage - Add suitesparse BR - Drop pathlib2 BR (bz 1797116) - Do not build for 32-bit ARM, which is unable to unpack the source RPM without running out of memory * Thu Jan 30 2020 Fedora Release Engineering - 8.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jan 9 2020 Jerry James - 8.9-2 - Build with sharedmeataxe and tdlib support - Use local objects.inv when building documentation * Thu Nov 7 2019 pcpa - 8.9-1 - Update to latest upstream release - Drop no longer need patches and rediff current ones * Fri Oct 11 2019 Jerry James - 8.8-7 - Rebuild for mpfr 4 - Drop -mpfr patch * Thu Sep 26 2019 Jerry James - 8.8-6 - Rebuild for ntl 11.4.0 - Add primecount support, including the -primecount patch - Add still more gap packages, nearly finishing the set shipped by upstream * Thu Sep 12 2019 Jerry James - 8.8-5 - Improve the -ecm patch - Add -formatargspec patch to silence doc-building warnings - Add -data-elliptic_curves_large subpackage - Build with bliss, coxeter3, and mcqd support - Fix typo that made the singular.hlp file inaccessible - Add more gap packages to get closer to the set shipped by upstream - Refactor Requires so they apply to the correct subpackages - More python 3 patching due to changes in python 3.8 - Use upstream's method of installing jupyter support - Obsolete the sagemath-notebook-export subpackage * Tue Aug 20 2019 Susi Lehtola - 8.8-4 - Rebuilt for GSL 2.6. * Mon Aug 19 2019 Miro Hrončok - 8.8-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 8.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Jul 1 2019 Jerry James - 8.8-1 - Update to sagemath 8.8 (bz 1724394) - Remove configparser dependencies (bz 1706597) - Fix broken sed conversion (bz 1706234) - Fix python2 versus python3 snafu (bz 1706337, 1707166) - Build and install sagetex (bz 1706322) * Sat Apr 27 2019 Jerry James - 8.7-1 - Update to sagemath 8.7 - Drop upstreamed -giac patch - Add -sagetex patch to fix a python indentation error - Add -rubiks patch to fix compilation of the rubiks library - Add -random patch to fix a non-random random bit generator - Drop pip3 workaround; the binary is now named just pip again * Mon Feb 18 2019 Jerry James - 8.6-1 - Update to sagemath 8.6 - Install an SVG icon instead of a fixed size (128x128) icon - Require hicolor-icon-theme since we install an icon - Drop obsolete Obsoletes * Sun Feb 17 2019 Igor Gnatenko - 8.5-4 - Rebuild for readline 8.0 * Sat Feb 02 2019 Fedora Release Engineering - 8.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jan 19 2019 Jerry James - 8.5-2 - Add Education category to the desktop file (bz 1624545) - Improve jupyter integration (bz 1663165) - Move existing jupyter integration into the notebook subpackage - Require python-jupyter-filesystem instead of owning its directories - Drop one more remnant of the F24 to F25 upgrade fixup * Thu Jan 17 2019 Jerry James - 8.5-1 - Update to sagemath 8.5 - Bundle ipython again; Fedora version is too far ahead. Also have to bundle prompt_toolkit since Fedora version is too far ahead of bundled ipython. - Drop LANGUAGES variable setting, now ignored by the sagemath build system - Drop unused SAGE_CBLAS variable from /usr/bin/sage - Do not force the C locale when launching sagemath - Allow the user to override SAGE_DEBUG in /usr/bin/sage - Add -ecm, -giac, and -latte patches to fix interactions with external tools - Add -sigfpe patch from upstream * Thu Oct 25 2018 Jerry James - 8.4-1 - Update to sagemath 8.4 - Build for python 3 instead of python 2 due to upcoming python 2 removal - Add -python3 and -escape patches to fix problems with python 3 - Drop -nofstring patch, only needed for python 2 - Drop upstreamed -eclib patch - Switch from atlas to openblas and rename -atlas patch to -openblas - Add -buildroot patch and only build cython interfaces once * Sat Sep 22 2018 Jerry James - 8.3-1 - Update to sagemath 8.3 (bz 1612867) - Drop -lrslib, -gap-hap, and -flask patches - Drop obsolete scriplets to fix F24 to F25 upgrade (bz 1594429 and 1618934) - Drop obsolete mktexlsr invocations - Fix more Singular paths - Fix still more uses of /usr/bin/env - Drop disallow/dissallow fixup for cython; now fixed in cython itself * Fri Aug 10 2018 Jerry James - 8.2-4 - Rebuild for arb 2.14.0, eclib 20180710, ntl 11.2.1, and pari 2.11.0 - Drop unneeded genus2reduction dependency; pari is used instead now * Sat Jul 14 2018 Fedora Release Engineering - 8.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jul 3 2018 Jerry James - 8.2-2 - Rebuild for ntl 11.1.0 - Optionally bundle thebe, threejs, and widgetsnbextension - Add provides for the optionally bundled packages - Add -flask patch - Apply new guidelines for python files in nonstandard places * Fri May 18 2018 Jerry James - 8.2-1 - Update to sagemath 8.2 - Create the sagemath-data-combinatorial_designs subpackage - Create the sagemath-notebook-export subpackage - Unbundle the LaTeX makecmds style - Install LaTeX style files in a more canonical place * Fri Feb 09 2018 Fedora Release Engineering - 8.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Nov 25 2017 Jerry James - 8.0-2 - Do not interpret GAP library informational messages as a libgap failure - Build with cryptominisat5 - Sagemath now invokes gap instead of gap_stamp * Thu Nov 23 2017 Jerry James - 8.0-1 - Build with bundled ipywidgets for now - Drop unneeded -givaro patch - Lots of new BRs for building documentation - R python-backports-shutil_get_terminal_size and python-traitlets (bz 1464520) - Fix Singular LIB path - Make sure install operates in a UTF-8 environment - Build documention with an X server running - Build HTML documentation with mathjax * Fri Nov 10 2017 pcpa - 8.0-1 - Update to sagemath 8.0 - Remove cryptominisat build requires - Remove no longer needed -singular patch (upstream updated) - Remove no longer -flask patch (upstream updated) - Remove no longer -pari patch (used now by cypari2) - Disable option to use bundled cysignals - Disable option to use bundled pari - Use system ipython * Sat Sep 30 2017 Jerry James - 7.6-6 - Rebuild for arb 2.11.1, eclib 20170815, and libfplll 5.1.0 * Thu Aug 03 2017 Fedora Release Engineering - 7.6-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 pcpa - 7.6-4 - Add missing python-psutil dependency - Add extra environment variable to avoid Singular-devel dependency * Tue May 23 2017 pcpa - 7.6-3 - Correct singular data dir path - Correct sage -testall initialization - Switch to empty directory to pass check for sage packages - Correct SAGE_SRC symbolic link - Remove explicit firefox dependency (#1446508) * Mon May 15 2017 Fedora Release Engineering - 7.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Tue Apr 11 2017 pcpa - 7.6-1 - Update to sagemath 7.6 - Switch back to system pari * Thu Apr 6 2017 pcpa - 7.5.1-1 - Update to sagemath 7.5.1 * Fri Mar 3 2017 Jerry James - 7.4-4 - Rebuild for ppl 1.2 * Sat Feb 11 2017 Fedora Release Engineering - 7.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Jan 12 2017 Igor Gnatenko - 7.4-2 - Rebuild for readline 7.x * Fri Dec 30 2016 pcpa - 7.4-1 - Update to sagemath 7.4 * Tue Dec 20 2016 pcpa - 7.3.7 - Correct f24 to f25 upgrade, sagemath 6.8 to 7.3 (#1396848) * Thu Oct 20 2016 Jerry James - 7.3-6 - Rebuild for ntl 10.1.0 * Sun Oct 09 2016 Dominik Mierzejewski - 7.3-5 - rebuild for aarch64 (#1380191 fixed) * Mon Sep 26 2016 Dominik Mierzejewski - 7.3-4 - rebuilt for matplotlib-2.0.0 - sync supported arches with maxima * Mon Sep 5 2016 Jerry James - 7.3-3 - Rebuild for ntl 9.11.0 - Add gap-pkg-guava requirement * Wed Aug 24 2016 pcpa - 7.3-2 - Make notebook functional with python-flask-0.11.1 * Sat Aug 20 2016 pcpa - 7.3-1 - Update to sagemath 7.3 - Switch from polybori to brial - Default to use system pexpect - Use system mathjax * Fri Aug 12 2016 Jerry James - 6.8-14 - Rebuild for fflas-ffpack 2.2.2, givaro 4.0.2, and linbox 1.4.2 - GAP packages atlasrep, design, and hap are now available * Sat Jul 23 2016 Jerry James - 6.8-13 - Rebuild for ntl 9.10.0 * Tue Jul 19 2016 Fedora Release Engineering - 6.8-12 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Jun 2 2016 Jerry James - 6.8-11 - Rebuild for ntl 9.9.1 * Fri Apr 29 2016 Jerry James - 6.8-10 - Rebuild for ntl 9.8.0 - Nauty is now available under a free license * Wed Apr 13 2016 Jerry James - 6.8-9 - Rebuild for linbox 1.4.1 * Thu Apr 7 2016 Jerry James - 6.8-8 - Rebuild for libgap 4.8.3 * Sat Mar 19 2016 Jerry James - 6.8-7 - Rebuild for glpk 4.59, ntl 9.7.0 and gmp-ecm 7.0 * Mon Mar 7 2016 Jerry James - 6.8-6 - Doc packages cannot be noarch since they are not built for all arches * Sat Feb 27 2016 Jerry James - 6.8-6 - Rebuild for givaro 4.0.1, fflas-ffpack 2.2.0, and linbox 1.4.0 - Add -givaro patch to adapt to header file changes in those releases * Mon Feb 22 2016 Orion Poplawski - 6.8-5 - Rebuild for gsl 2.1 * Sat Feb 20 2016 Jerry James - 6.8-4 - Rebuild for ntl 9.6.4 * Thu Feb 04 2016 Fedora Release Engineering - 6.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Dec 29 2015 Jerry James - 6.8-2 - Rebuild for arb 2.8.0 * Tue Dec 22 2015 pcpa - 6.8-1 - Update to sagemath 6.8 - Remove scons, lrcalc, cryptominisat, parallel and ipython3 patches - Add lcalc, fes-build and arb patches * Fri Dec 4 2015 Jerry James - 6.5-14 - Rebuild for ntl 9.6.2 * Fri Oct 16 2015 Jerry James - 6.5-13 - Rebuild for m4rie 20150908 and ntl 9.4.0 * Sat Oct 3 2015 Jerry James - 6.5-12 - Rebuild for ecl 16.0.0 * Sat Sep 19 2015 Jerry James - 6.5-11 - Rebuild for eclib 20150827, flint 2.5.2, and ntl 9.3.0 * Fri Sep 4 2015 Jerry James - 6.5-10 - Rebuild for cryptominisat 2.9.10 * Sat Aug 29 2015 pcpa - 6.5-9 - Apply conditionally not required for f22 ipython3 patch (#1258006) - Add missing sphinx requires (#1229283) * Mon Aug 3 2015 pcpa - 6.5-8 - Bump release for f23 rebuild * Sun Jul 19 2015 pcpa - 6.5-7 - Correct unable to start QEPCAD within sage (#1243590) - Use interactive bash on wrappers to work with other login shells (#1238341) - Properly generate localized translations * Fri Jun 19 2015 Fedora Release Engineering - 6.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon May 18 2015 Jerry James - 6.5-5 - Rebuild for ntl 9.1.1 and cddlib 094h * Sat May 9 2015 Jerry James - 6.5-4 - Rebuild for ntl 9.1.0 * Tue May 5 2015 Peter Robinson 6.5-3 - Drop old F-18 comparisions - Build on ARMv7, all deps now met * Sun Apr 26 2015 pcpa - 6.5-2 - Add patch to work with ipython 3 * Fri Apr 3 2015 pcpa - 6.5-1 - Update to sagemath 6.5 - Add new Catalan and Hungarian doc subpackages - Add customizations to not need a patched pari - Add "with docs" test build option - Convert build conditionals to use bcond - Correct deprecated warning when loading sagenb * Sat Feb 7 2015 pcpa - 6.4.1-4 - Rebuild with a functional jsmol interface (#1190356) * Mon Feb 2 2015 Jerry James - 6.4.1-3 - Rebuild for ntl 8.1.2 * Thu Jan 15 2015 Jerry James - 6.4.1-2 - Rebuild for ntl 8.1.0 - Future-proof the gap package names * Wed Nov 26 2014 pcpa - 6.4.1-1 - Update to sagemath 6.4.1 (#1095282) * Sat Nov 1 2014 pcpa - 6.3-4 - Install 128x128 icon (#1157575) * Mon Oct 27 2014 Jerry James - Rebuild for m4ri 20140914 and ntl 6.2.1 * Mon Aug 18 2014 Fedora Release Engineering - 6.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Wed Aug 13 2014 pcpa - 6.3-1 - Update to sagemath 6.3 (#1095282) - Add new doc-it Italian documentation subpackage * Sun Jun 08 2014 Fedora Release Engineering - 6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Mon May 26 2014 pcpa - 6.2-1 - Update to sagemath 6.2 (#1095282) - Rebuild with Singular 3.1.6 (#1074597) - Add missing python-docutils requires (#1056374) - Correct uninstall of sagemath-notebook (#1097428) - Enable coin-or-Cbc interface - Make coin-or-Cbc not optional - Make lrcalc not optional - Use upstream patch to support pari 2.7 - Rediff ntl6 patch * Wed Apr 2 2014 Jerry James - 6.1.1-5 - Rebuild for ntl 6.1.0 - Fix ld ignoring __global_ldflags due to embedded trailing space - Fix Singular paths in the build environment * Wed Mar 19 2014 Jerry James - 6.1.1-4 - Rebuild for libgap 4.7.4 and cryptominisat 2.9.9 * Mon Mar 10 2014 Rex Dieter 6.1.1-3 - rebuild (Singular) * Wed Feb 12 2014 pcpa - 6.1.1-2 - Enable optional fes dependency - Correct jmol applet interface - Add missing python-twisted-mail requires (#1063061) - Correct problems when starting sage for the first time as a new user - Correct atlas library path for f21 or newer * Fri Feb 7 2014 pcpa - 6.1.1-1 - Update to sagemath 6.1.1 * Tue Jan 28 2014 pcpa - 5.13-1 - Update to sagemath 5.13 * Fri Jan 17 2014 Jerry James - 5.12-3 - Also adapt Requires to the new gap subpackage structure * Wed Jan 15 2014 Jerry James - 5.12-2 - Rebuild for libgap 4.7.2 - Adapt gap BRs to new gap subpackage structure * Wed Oct 16 2013 pcpa - 5.12-1 - Update to sagemath 5.12. * Sat Sep 14 2013 pcpa - 5.10-4 - Do not hardcode SAGE_BROWSER (#967251) - Remove pre(trans) scriptlet used to upgrade from prototype packages * Tue Sep 10 2013 Rex Dieter 5.10-3 - pretrans scriplet uses shell commands (#1006230) * Mon Aug 12 2013 pcpa - 5.10-2 - Correct side effect of using system mpmath (#974769) * Mon Aug 5 2013 pcpa - 5.10-1 - Update to sagemath 5.10. * Sun Aug 04 2013 Fedora Release Engineering - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 3 2013 Jerry James - 5.9-8 - Rebuild for maxima 5.30.0 * Wed Jun 12 2013 Remi Collet - 5.9-7 - rebuild for new GD 2.1.0 * Tue Jun 4 2013 Jerry James - 5.9-6 - Rebuild for ecl 2013.5.1 * Sun May 12 2013 pcpa - 5.9-5 - Need one extra directory derefence in symlink SAGE_SRC symlink. * Sun May 12 2013 pcpa - 5.9-4 - Correct wrong symlink to /builddir if not using pretrans (first install). * Sat May 11 2013 pcpa - 5.9-3 - Add pretrans for clean upgrade after rename of SAGE_DEVEL to SAGE_SRC. * Sat May 11 2013 pcpa - 5.9-2 - Build in f18 and f18 with workaround to cython wrong defines (#961372) * Mon May 6 2013 pcpa - 5.9-1 - Update to sagemath 5.9. - Match upstream rename of SAGE_DEVEL to SAGE_SRC. - Merged -buildroot in -rpmbuild patch. - Drop cython 0.19 patch already applied to sagemath 5.9. - Add macro conditionals to use same spec and patches in f18, f19 and f20. * Mon May 6 2013 Jerry James - 5.8-9 - Rebuild for libfplll 4.0.3, m4ri and m4rie 20130416, and ntl 6.0.0 - Drop sagemath-unpatched_ntl.patch now that Fedora's NTL is patched - Add sagemath-ntl6.patch to adapt to NTL 6 - Add sagemath-m4rie.patch to adapt to m4rie 20130416 * Sat Apr 27 2013 pcpa - 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 - 5.8-7 - Correct problem of package requiring a -devel file to work. * Tue Apr 23 2013 pcpa - 5.8-6 - Correct a remaining arch specific file (symlink) in noarch package. * Mon Apr 22 2013 pcpa - 5.8-5 - Do not build requires optional rpy in f18 due to it being broken in f18 - Correct koji sanity check finding arch specific file in noarch package - Add patch to build with just upgraded cython in rawhide * Mon Apr 22 2013 pcpa - 5.8-4 - Remove noop icon cache regeneration scriplets (#877651#72) - First Fedora 18 and Fedora 19 approved package * Sun Apr 14 2013 pcpa - 5.8-3 - Use proper license tag for non versioned GPL attribution (#877651#63) - Remove no longer required workarounds for clean upgrades (#877651#63) * Fri Apr 12 2013 pcpa - 5.8-2 - Properly describe the license breakdown in the spec (#877651#60) - Correct lrslib requires to lrslib-utils (#877651#60) - Remove zero length files (#877651#60) - Correct png file with executable permission (#877651#60) - Avoid rpmlint warning in rubiks subpackage description (#877651#60) * Tue Mar 19 2013 pcpa - 5.8-1 - Update to sagemath 5.8. - Do full cleanup of notebook package on uninstall. - Remove with_sage_cython build conditional. - Remove with_sage_networkx build conditional. - Add nopari2.6 patch to not rely on not yet available interfaces. - Add cryptominisat patch to build package in f18. * Sat Mar 16 2013 pcpa - 5.7-3 - Create jmol symbolic links in post and remove in postun. - Disable libgap by default as it does not work with rawhide gap. - Also add python-ipython to build requires to regenerate documentation. * Wed Mar 6 2013 pcpa - 5.7-2 - Add missing python-ipython requires (#877651#52) - Enable libgap build in packager debug build (#877651#52) * Fri Feb 22 2013 pcpa - 5.7-1 - Update to sagemath 5.7. - Add conditional patch for libgap. - Add conditional patch for fes. - Remove with_sage_ipython conditional. - Add patch to create a libcsage with a soname. * Mon Feb 18 2013 pcpa - 5.6-6 - Rebuild with latest rawhide and f18 updates - Make sagemath-notebook owner of its base data directory - Explicitly mark notebook translations as %%lang (#877651#c46) - Remove sage3d as it is not functional in the rpm package (#877651#c46) - Remove reference to buildroot in libcsage.so debuginfo * Fri Feb 15 2013 pcpa - 5.6-5 - Export CFLAGS and CXXFLAGS (#877651#c45) - Make sagemath-data owner of SAGE_SHARE (#877651#c45) - Relocate SAGE_DOC and make sagemath-doc packages noarch (#877651#c45) - Relocate SAGE_SHARE and make sagemath-data packages noarch (#877651#c45) - Remove sagenb binary egg bundled in tarball (#877651#c45) - Update license tag due to unlisted Apache v2 license (#877651#c45) - Break down licenses in files listing (#877651#c45) - Add post scriplets to handle the installed icon (#877651#c45) - Do not install empty directories in SAGE_EXTCODE (#877651#c45) - Do not install bundled mathjax fonts (#877651#c45) - Add a descriptive comment to patches without one (#877651#c45) - Correct mispelled donwload_tarball macro name (#877651#c45) - Remove reference to buildroot in prep (#877651#c45) - Simplify coin-or-Cbc build requires as it has proper dependencies * Sun Feb 10 2013 pcpa - 5.6-4 - Correct "canonicalization unexpectedly shrank by one character" error. - Add packager_debug macro for conditional package debug mode build. - Add donwload_tarball macro to avoid fedora-review donwloading it every run. * Sat Feb 9 2013 pcpa - 5.6-3 - Add cryptominisat-devel to build requires. - Add conditional build for lrcalc (fedora review rhbz #909510) - Add conditional build for coin-or-CoinUtils (fedora review rhbz #894585) - Add conditional build for coin-or-Osi (fedora review rhbz #894586) - Add conditional build for coin-or-Clp (fedora review rhbz #894587) - Add conditional build for coin-or-Cgl (fedora review rhbz #894588) - Add conditional build for coin-or-Cbc (fedora review rhbz #894597) - Rebuild with latest rawhide and f18 dependency updates. * Mon Jan 28 2013 pcpa - 5.6-2 - Rebuild with latest rawhide and f18 updates. * Fri Jan 25 2013 pcpa - 5.6-1 - Update to sagemath 5.6. - Remove no longer required patch to build with system cython. * Sat Jan 19 2013 pcpa - 5.5-3 - Rediff rpmbuild patch to address some underlinked modules. - Make gap-sonata a mandatory requires. - Add cremona patch to adjust logic as only cremona mini is built. - Add lrslib patch to know lrslib is available. - Add nauty patch and comment about reason it cannot be made available. - Add gap-hap patch for better description of missing gap hap package. * Fri Jan 04 2013 pcpa - 5.5-2 - Add cython to build requires (#877651#c28). * Sat Dec 29 2012 pcpa - 5.5-1 - Update to sagemath 5.5. - Add maxima.system patch to work with maxima 5.29.1 package. * Fri Dec 14 2012 pcpa - 5.4.1-5 - Build with system cython by default on fedora 18 or newer (#877651). * Fri Dec 14 2012 pcpa - 5.4.1-4 - The fplll patch is also required to build in f18. - Add factory include to plural.pyx build. * Wed Dec 05 2012 pcpa - 5.4.1-3 - Revert requires python-matplotlib-tk as it was a python-matplotlib bug. - Add stix-fonts requires. * Sat Dec 01 2012 pcpa - 5.4.1-2 - Change back to install .c and .h files in bundled cython. - Make symlink of gmp-ecm to $SAGE_LOCAL/bin/ecm. - Add SAGE_LOCAL/bin to python path so that "sage -gdb" works. - Require python-matplotlib-tk to avoid possible import error in doctests. * Fri Nov 30 2012 pcpa - 5.4.1-1 - Update to sagemath 5.4.1. * Tue Nov 20 2012 pcpa - 5.4-2 - Do not install alternate cygdb in %%_bindir - Create the sagemath-core subpackage - Create the sagemath-doc subpackage - Create the sagemath-doc-en subpackage - Create the sagemath-doc-de subpackage - Create the sagemath-doc-fr subpackage - Create the sagemath-doc-pt subpackage - Create the sagemath-doc-ru subpackage - Create the sagemath-doc-tr subpackage - Create the sagemath-data metapackage - Create the sagemath-data-conway_polynomials subpackage - Create the sagemath-data-elliptic_curves subpackage - Create the sagemath-data-extcode subpackage - Do not install pickle_jar extcode contents - Do not install notebook extcode contents - Create the sagemath-data-graphs subpackage - Create the sagemath-data-polytopes_db subpackage - Create the sagemath-notebook subpackage - Create the sagemath-rubiks subpackage - Create the sagemath-sagetex subpackage * Mon Nov 12 2012 pcpa - 5.4-1 - Update to sagemath 5.4. - Build with system networkx. - Install only one fallback icon. - Prevent rpm from providing private shared object. - Change base directory to %%{_libdir} to avoid rpmlint errors. - Correct permissions of installed shared objects. - Rename most patches to use %%{name} prefix as "suggested" by fedora-review. - Remove bundled jar files before %%build. - Make cube solvers build optional and disabled by default. - Add option to run "sage -testall" during package build. * Sat Nov 10 2012 pcpa - 5.4.beta1-4 - Add patch to make jmol export image functional - Update pari patch to use proper path to gprc.expect - Force usage of firefox in notebook (known to work are firefox and chromium) * Fri Oct 26 2012 pcpa - 5.4.beta1-3 - Add support for releases with libmpc 0.9. * Wed Oct 24 2012 pcpa - 5.4.beta1-2 - Add Portuguese translations of Tutorial and A Tour of Sage * Sat Oct 20 2012 pcpa - 5.4.beta1-1 - Update to sagemath 5.4.beta1 - Removed already applied upstream linbox upgrade patch - Removed already applied upstream givaro upgrade patch - Removed already applied upstream singular upgrade patch - Install rubiks spkg binaries * Wed Sep 12 2012 pcpa - 5.3-1 - Update to sagemath 5.3. - Remove version from patches name. - Drop m4ri patch already applied to upstream. * Fri Sep 7 2012 pcpa - 5.2-2 - Add sphinx workaround to have editable tutorial forms (#839321) - Make interactive 3d plots using jmol applet functional (#837166) - Use system genus2reduction - Add workaround to mp_set_memory_functions call from pari library * Sat Aug 4 2012 pcpa - 5.2-1 - Update to sagemath 5.2. * Sun Jul 1 2012 pcpa - 5.0.1-1 - Initial sagemath spec.