Sisyphus
: 13 2019 | : 17515 | : 15262645
en ru br
ALT
S:1.2.14-alt1_4jpp8
5.1: 3.2009.05-alt2
4.1: 3.2007.09-alt3
4.0: 3.2007.09-alt2
3.0: 3.6-alt1
www.altlinux.org/Changes

:: /
: axiom

             Sources      Gear   Bugs and FR  Repocop 

%define NO_REGRESSION_TEST 1

%define axiom_cvs_date 20050605

Name: axiom
Version: 3.6
Release: alt1
Serial: 1

Summary: Axiom Computer Algebra System
Summary (ru_RU.UTF-8): Система аналитических вычислений Axiom
License: Modified BSD License
Group: Sciences/Mathematics
Url: http://savannah.nongnu.org/projects/axiom
Packager: Vadim V. Zhytnikov <vvzhy at altlinux.ru>

Source0: axiom-cvs-%axiom_cvs_date.tar.bz2
Source1: %name
Source2: %name-sman
Source3: %name-16.png
Source4: %name-32.png
Source5: %name-48.png
Source6: %name.menu

Patch1: %name-%version-no-test.patch
Patch2: %name-%version-gcl-locbfd.patch

BuildRequires: libreadline-devel libncurses-devel tcl-devel tk-devel
BuildRequires: libiberty-devel libbfd-devel-static xpm-devel XFree86-devel
BuildRequires: libgmp-devel tetex tetex-latex tetex-dvips texinfo
BuildRequires: lynx sed gawk coreutils diffutils
BuildRequires: xorg-x11-devel xorg-x11-devel-static xpm-devel xpm

%description
Axiom is a general purpose Computer Algebra system. It is useful for
research and development of mathematical algorithms. It defines a
strongly typed, mathematically correct type hierarchy. It has a
programming language and a built-in compiler.

Axiom has been in development since 1973 and was sold as a
commercial product. It has been released as free software.

Efforts are underway to extend this software to (a) develop a
better user interface (b) make it useful as a teaching tool
(c) develop an algebra server protocol (d) integrate additional
mathematics (e) rebuild the algebra in a literate programming style
(f) integrate logic programming (g) develop an Axiom Journal with
refereed submissions.

%description -l ru_RU.UTF-8
Axiom является универсальной системой аналитических вычислений
и может использоваться для научных исследований и развития
математических алгоритмов.  Axiom является строго типизированной
системой с математически корректной иерархией типов.  Система
имеет собственный язык программирования и встроенный компилятор.

Axiom развивается с 1973 года и ранее распространялась как
коммерческий продукт.  Сейчас система выпущена под свободной
програмной лицензией.

%package doc
Summary: Axiom Book and other Documentaion
Summary (ru_RU.UTF-8): Книга и другая документация по Axiom
Group: Sciences/Mathematics

%description doc
Axiom Book and other Documentaion.

%description doc -l ru_RU.UTF-8
Книга и другая документация по Axiom.

%prep
%setup -q -n%name

%if %NO_REGRESSION_TEST
%patch1 -p1
%endif

#cp %SOURCE2 zips/gcl-2.6.2a.tgz


%patch2 -p1
#%patch3 -p1


%build

export AXIOM=%_builddir/%name/mnt/linux
export PATH=$AXIOM/bin:$PATH

PROCESSOR_FLAGS=`echo "%optflags" | %__sed -e "s:%optflags_default::"`
export PROCESSOR_FLAGS

#make GCLOPTS='" --enable-vssize=65536*2 --enable-statsysbfd --enable-maxpage=128*1024 "'

make

cd mnt/linux/doc
dvips -o book.ps book.dvi
dvips -o Rosetta.ps Rosetta.dvi
dvips -o DeveloperNotes.ps DeveloperNotes.dvi
cd ../../..

%install

install -d %buildroot%_bindir

make INSTALL=%buildroot%_libdir/%name COMMAND=%buildroot%_bindir/%name install

# icons

install -D -m644 %SOURCE3 %buildroot%_miconsdir/%name.png
install -D -m644 %SOURCE4 %buildroot%_iconsdir/%name.png
install -D -m644 %SOURCE5 %buildroot%_liconsdir/%name.png

# menu items

install -D -m644 %SOURCE6 %buildroot%_menudir/%name

# executables

install -D -m755 %SOURCE1 %buildroot%_bindir/%name
install -D -m755 %SOURCE2 %buildroot%_bindir/%name-sman


%files
%_bindir/axiom*
%_menudir/%name
%_iconsdir/%name.png
%_miconsdir/%name.png
%_liconsdir/%name.png
%dir %_libdir/%name
%dir %_libdir/%name/mnt
%dir %_libdir/%name/mnt/linux
%_libdir/%name/mnt/linux/algebra
%_libdir/%name/mnt/linux/autoload
%_libdir/%name/mnt/linux/bin
%_libdir/%name/mnt/linux/input
%_libdir/%name/mnt/linux/lib
%_libdir/%name/mnt/linux/src
%_libdir/%name/mnt/linux/timestamp
%_libdir/%name/mnt/linux/doc/hypertex
%_libdir/%name/mnt/linux/doc/msgs
%_libdir/%name/mnt/linux/doc/viewports

%files doc
%dir %_libdir/%name
%dir %_libdir/%name/mnt
%dir %_libdir/%name/mnt/linux
%dir %_libdir/%name/mnt/linux/doc
%doc %_libdir/%name/mnt/linux/doc/*.ps


%post
%update_menus

%postun
%clean_menus


%changelog

changelog

 
: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
: Michael Shigorin