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
Url: http://www.mathomatic.org/
Source: %name-%version.tar.bz2
Patch: %name-16.0.1-m4.patch
BuildRequires: libncurses-devel libreadline-devel
BuildRequires: python-tools-2to3
%description
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.
%prep
%setup
%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' \))
%build
%make_build READLINE=1 mathdocdir=%_defaultdocdir/%name-%version
%make_build -C primes READLINE=1 mathdocdir=%_defaultdocdir/%name-%version
%install
%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
%check
make test
%files
%doc *.txt doc tests m4
%_man1dir/*
%_bindir/*
%_datadir/pixmaps/mathomatic.*
%_datadir/%name
%_niconsdir/%name.png
%_desktopdir/%name.desktop
%changelog
…
Full changelog you can see here
Version: 16.0.5
Release: alt3
Summary: Small, portable symbolic math program
License: LGPL
Group: Sciences/Mathematics
Url: http://www.mathomatic.org/
Source: %name-%version.tar.bz2
Patch: %name-16.0.1-m4.patch
BuildRequires: libncurses-devel libreadline-devel
BuildRequires: python-tools-2to3
%description
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.
%prep
%setup
%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' \))
%build
%make_build READLINE=1 mathdocdir=%_defaultdocdir/%name-%version
%make_build -C primes READLINE=1 mathdocdir=%_defaultdocdir/%name-%version
%install
%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
%check
make test
%files
%doc *.txt doc tests m4
%_man1dir/*
%_bindir/*
%_datadir/pixmaps/mathomatic.*
%_datadir/%name
%_niconsdir/%name.png
%_desktopdir/%name.desktop
%changelog
…
Full changelog you can see here