Репозиторий Sisyphus
Последнее обновление: 28 января 2020 | Пакетов: 17468 | Посещений: 17172937
en ru br
Репозитории ALT
5.1: 20090504-alt2
4.1: 20090425-alt2.M41.1

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

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%ifarch %ix86
%define bits 32
%ifarch x86_64
%define bits 64
%define builddir %_arch-alt-linux-gnu-m%bits

Name: reduce
Version: 20090425
Release: alt2.M41.1
Summary: REDUCE algebra system, Open Source release
License: BSD / GPL / LGPL
Group: Sciences/Mathematics
Url: http://reduce-algebra.sourceforge.net/
Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org>

# fragment from .git/config :

#[svn-remote "svn"]
#  url = https://reduce-algebra.svn.sourceforge.net/svnroot/reduce-algebra
#  fetch = trunk:refs/remotes/trunk
#  branches = branches/*:refs/remotes/*
#  tags = tags/*:refs/remotes/tags/*
Source: reduce-source-%version.tar.bz2
Source1: reduce.desktop

PreReq: fontconfig >= 2.4.2
Requires: gnuplot /usr/bin/xbrowser
Requires: fonts-ttf-%name = %version-%release
Requires: fonts-type1-%name = %version-%release

Obsoletes: %name-doc < %version-%release

BuildRequires(pre): rpm-build-compat rpm-build-fonts /proc
BuildPreReq: /usr/bin/latex
#BuildPreReq: ImageMagick-tools
BuildPreReq: gcc-c++ gnuplot libGL-devel libGLU-devel libXcursor-devel
BuildPreReq: libXft-devel libjpeg-devel libpng-devel libtiff-devel
BuildPreReq: libXext-devel libX11-devel libncurses-devel
BuildPreReq: libtinfo-devel ghostscript-utils libfox-devel

This is the REDUCE - symbolic mathematics system. REDUCE has two modes of
operation: the algebraic mode, which deals with polynomials and mathematical
functions in a simple procedural syntax, and the symbolic mode, which allows
Lisp-like syntax and operations.

REDUCE is a system for carrying out algebraic operations accurately, no
matter how complicated the expressions become. It can manipulate polynomials
in a variety of forms, both expanding and factoring them, and extract
various parts of them as required. REDUCE can also do differentiation and
integration. It have many options that are available for varying
computational procedures, output forms, number systems used, and so on.

REDUCE is designed to be an interactive system, so that the user can input
an algebraic expression and see its value before moving on to the next
calculation.  For those systems that do not support interactive use, or
for those calculations, especially long ones, for which a standard script
can be defined, REDUCE can also be used in batch mode. In this case,
a sequence of commands can be given to REDUCE and results obtained
without any user interaction during the computation.

%package doc
Summary: Documentation for REDUCE algebra system
Group: Documentation
BuildArch: noarch

%description doc
Documentation for REDUCE algebra system.

%package -n fonts-ttf-%name
Summary: TrueType fonts for REDUCE algebra system
Group: System/Fonts/True type
BuildArch: noarch

%description -n fonts-ttf-%name
TrueType fonts for REDUCE algebra system.

%package -n fonts-type1-%name
Summary: Type1 fonts for REDUCE algebra system
Group: System/Fonts/Type1
BuildArch: noarch

%description -n fonts-type1-%name
Type1 fonts for REDUCE algebra system.


export TARGET=%_arch
export BITS=%bits
export CXXFLAGS="-I$(pwd)/csl/fox/include"
%configure \
--prefix=/ \
--enable-release \
--enable-threadsafe \
--with-csl \
--with-fox=$(pwd)/csl/fox \
sed -i "s|\(%builddir\)/lib|\1/fox/src/.libs|g" \
%make_build DESTDIR=%buildroot%_libexecdir/%name

install -d %buildroot%_bindir
install -d %buildroot%_libexecdir/%name
install -d %buildroot%_docdir/%name/buglist
install -d %buildroot%_desktopdir

pushd cslbuild/%builddir/csl
for i in bootstrapreduce csl fontdemo foxdemo fwindemo makeheaders \
objtype reduce showmathdemo termdemo addresources
install -m755 $i %buildroot%_libexecdir/%name
#convert reduce.doc/redlogo.gif reduce.doc/redlogo.png
#rm -f reduce.doc/redlogo.gif
#sed -i -e 's/redlogo\.gif/redlogo.png/g' reduce.doc/*.html
cp -fR reduce.doc %buildroot%_libexecdir/%name
install -m644 $(find ./ -name '*.img') %buildroot%_libexecdir/%name
sed -e 's/VERTAG/%version/g' < %SOURCE1 > %buildroot%_desktopdir/reduce.desktop

cat <<EOF >%buildroot%_bindir/reduce

ulimit -Ss unlimited

%_libexecdir/%name/%name "\$ at "
chmod +x %buildroot%_bindir/reduce

# packages

cp -fR packages %buildroot%_libexecdir/%name/

# fonts

pushd cslbuild/%builddir/csl/reduce.fonts
%ttf_fonts_install %name
mv reduce.files ttf-reduce.files
for i in ex mi r sy; do
ln -s pfmfiles/cm${i}10.pfm .
pf2afm cm${i}10
%type1_fonts_install %name
mv *.files ../../../../

# docs

#install -p -m644 buglist/* %buildroot%_docdir/%name/buglist

#pushd doc/help
#install -m644 redhelp.dvi %buildroot%_docdir/%name
#pushd doc/util
#install -m644 r38.dvi r38.pdf %buildroot%_docdir/%name

sed -i -e 's/^Encoding.*$//' %buildroot%_desktopdir/reduce.desktop

%_bindir/fc-cache %_ttffontsdir/%name
%_bindir/fc-cache %_type1fontsdir/%name


%doc BUGS lgpl-distribution-mechanism-opinion.txt README

%files doc

%files -n fonts-ttf-%name -f ttf-%name.files

%files -n fonts-type1-%name -f %name.files


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

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