Sisyphus repository
Last update: 1 june 2020 | SRPMs: 17568 | Visits: 18676382
en ru br
ALT Linux repos
5.0: 14.2.0-alt1

Group :: Sciences/Mathematics
RPM: mathomatic

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: mathomatic
Version: 16.0.5
Release: alt3

Summary: Small, portable symbolic math program
License: LGPL
Group: Sciences/Mathematics

Source: %name-%version.tar.bz2
Patch: %name-16.0.1-m4.patch

BuildRequires: libncurses-devel libreadline-devel
BuildRequires: python-tools-2to3

Mathomatic is a small, portable symbolic math program that can automatically
solve, simplify, differentiate, combine, and compare algebraic equations,
perform polynomial and complex arithmetic, etc. It was written by George
Gesslein II and has been under development since 1986.

%patch -p1

# Hack out 15.6.3 install -Cv

sed -i 's/-Cv//' makefile
sed -i 's/-Cv//' primes/makefile

# py2 -> py3

find -type f \( -name 'matho-mult' -o -name 'matho-sum' -o -name 'primorial' \
            -o -name 'factorial' \) -exec 2to3 -w -n '{}' +

sed -i 's|#!/usr/bin/python|#!/usr/bin/python3|' \
   $(find ./ -type f \( -name 'matho-mult' -o -name 'matho-sum' \
                     -o -name 'primorial' -o -name 'factorial' \))

%make_build READLINE=1 mathdocdir=%_defaultdocdir/%name-%version
%make_build -C primes READLINE=1 mathdocdir=%_defaultdocdir/%name-%version

%makeinstall m4install mathdocdir=%buildroot%_defaultdocdir/%name-%version
%makeinstall -C primes
install -D icons/%name.png %buildroot%_niconsdir/%name.png
# Unhack buildroot installation
sed -i 's at %buildroot at  at ' %buildroot/%_bindir/matho

make test

%doc *.txt doc tests m4


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin