Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37039419
en ru br
Репозитории ALT
S:16.0.5-alt5
5.1: 14.5.6-alt1
www.altlinux.org/Changes

Группа :: Науки/Математика
Пакет: mathomatic

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   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

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin