mirror of
https://src.fedoraproject.org/rpms/sagemath.git
synced 2025-04-22 11:45:56 -04:00
Update to sagemath 5.10.
This commit is contained in:
parent
1d2f6c46fe
commit
4c97a63e19
36 changed files with 318 additions and 365 deletions
|
@ -55,7 +55,7 @@
|
|||
%global flintqs_pkg flintqs-20070817.p8
|
||||
%global graphs_pkg graphs-20120404.p4
|
||||
%global pexpect_pkg pexpect-2.0.p5
|
||||
%global polytopes_db_pkg polytopes_db-20100210.p2
|
||||
%global polytopes_db_pkg polytopes_db-20120220
|
||||
%global rubiks_pkg rubiks-20070912.p18
|
||||
%global sagenb_pkg sagenb-0.10.4
|
||||
%global sagetex_pkg sagetex-2.3.4
|
||||
|
@ -65,7 +65,7 @@
|
|||
%global SAGE_ROOT %{_libdir}/sagemath
|
||||
%global SAGE_LOCAL %{SAGE_ROOT}/local
|
||||
%global SAGE_SRC %{SAGE_ROOT}/src
|
||||
%global SAGE_DOC %{_docdir}/%{name}-%{version}
|
||||
%global SAGE_DOC %{_docdir}/%{name}
|
||||
%global SAGE_SHARE %{_datadir}/sagemath
|
||||
%global SAGE_EXTCODE %{SAGE_SHARE}/ext
|
||||
%global SAGE_PYTHONPATH %{SAGE_ROOT}/site-packages
|
||||
|
@ -73,8 +73,8 @@
|
|||
Name: sagemath
|
||||
Group: Applications/Engineering
|
||||
Summary: A free open-source mathematics software system
|
||||
Version: 5.9
|
||||
Release: 9%{?dist}
|
||||
Version: 5.10
|
||||
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
|
||||
|
@ -219,6 +219,10 @@ Patch33: %{name}-m4rie.patch
|
|||
# https://bugzilla.redhat.com/show_bug.cgi?id=961372
|
||||
Patch34: %{name}-rh_bz_961372.patch
|
||||
|
||||
# Required if running python-flask-0.10.1
|
||||
# sagemath expects python-flask-0.9
|
||||
Patch35: %{name}-flask.patch
|
||||
|
||||
BuildRequires: 4ti2
|
||||
BuildRequires: atlas-devel
|
||||
BuildRequires: cddlib-tools
|
||||
|
@ -237,7 +241,7 @@ BuildRequires: factory-devel
|
|||
%if %{have_fes}
|
||||
BuildRequires: fes-devel
|
||||
%endif
|
||||
BuildRequires: flint-devel
|
||||
BuildRequires: flint-devel >= 2.3
|
||||
BuildRequires: gmp-ecm-devel
|
||||
BuildRequires: gap
|
||||
BuildRequires: GAPDoc
|
||||
|
@ -362,6 +366,9 @@ Requires: tachyon
|
|||
Requires: texlive
|
||||
Requires: vecmath
|
||||
|
||||
# Missing build requires on armv7hl
|
||||
ExclusiveArch: %{ix86} x86_64
|
||||
|
||||
%description
|
||||
Sage is a free open-source mathematics software system licensed
|
||||
under the GPL. It combines the power of many existing open-source
|
||||
|
@ -702,6 +709,9 @@ popd
|
|||
|
||||
%if 0%{?fedora} >= 19
|
||||
%patch32 -p1
|
||||
%endif
|
||||
|
||||
%if 0%{?fedora} == 19
|
||||
%patch33 -p1
|
||||
%endif
|
||||
|
||||
|
@ -709,6 +719,10 @@ popd
|
|||
%patch34 -p1
|
||||
%endif
|
||||
|
||||
%if 0%{?fedora} >= 20
|
||||
%patch35 -p1
|
||||
%endif
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
# ensure proper/preferred libatlas is in linker path
|
||||
pushd spkg/build/sage-%{version}
|
||||
|
@ -718,8 +732,7 @@ pushd spkg/build/sage-%{version}
|
|||
popd
|
||||
|
||||
# remove bundled jar files before build
|
||||
rm spkg/build/extcode-%{version}/notebook/java/3d/lib/sage3d.jar \
|
||||
spkg/build/%{sagenb_pkg}/src/sagenb/sagenb/data/sage3d/lib/sage3d.jar
|
||||
rm spkg/build/%{sagenb_pkg}/src/sagenb/sagenb/data/sage3d/lib/sage3d.jar
|
||||
|
||||
# remove binary egg
|
||||
rm -r spkg/build/%{sagenb_pkg}/src/sagenb/sagenb.egg-info
|
||||
|
@ -1129,8 +1142,8 @@ ln -sf %{SAGE_SHARE} $SAGE_ROOT/share
|
|||
ln -sf src $SAGE_ROOT/devel
|
||||
|
||||
# Install menu and icons
|
||||
pushd spkg/build/extcode-%{version}
|
||||
install -p -m644 -D notebook/images/icon32x32.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
||||
pushd spkg/build/%{sagenb_pkg}/src/sagenb/sagenb/data
|
||||
install -p -m644 -D sage/images/icon32x32.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
||||
popd
|
||||
mkdir -p %{buildroot}%{_datadir}/applications
|
||||
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
|
||||
|
@ -1268,6 +1281,7 @@ exit 0
|
|||
#------------------------------------------------------------------------
|
||||
%files data
|
||||
%dir %{SAGE_SHARE}
|
||||
%dir %{SAGE_EXTCODE}
|
||||
%{SAGE_EXTCODE}/sage
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
|
@ -1284,7 +1298,6 @@ exit 0
|
|||
#------------------------------------------------------------------------
|
||||
%files data-extcode
|
||||
# GPLv2+
|
||||
%dir %{SAGE_EXTCODE}
|
||||
%{SAGE_EXTCODE}/gap
|
||||
%{SAGE_EXTCODE}/images
|
||||
%{SAGE_EXTCODE}/magma
|
||||
|
@ -1435,7 +1448,10 @@ exit 0
|
|||
|
||||
########################################################################
|
||||
%changelog
|
||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.9-9
|
||||
* Mon Aug 5 2013 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 5.10-1
|
||||
- Update to sagemath 5.10.
|
||||
|
||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Wed Jul 3 2013 Jerry James <loganjerry@gmail.com> - 5.9-8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue