Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 36740810
en ru br
Репозитории ALT
S:0.2007-alt2
5.1: 0.2003-alt5
4.1: 0.2003-alt3
4.0: 0.2003-alt2
3.0: 0.1998-alt0.5
+backports:0.2003-alt0.M30.1
www.altlinux.org/Changes

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

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

%def_enable recommends_geomview
Name: dstool_tk
Version: 0.2007
Release: alt2
Summary: DSTool - a dynamical systems toolkit
License: GPL-like
Group: Sciences/Mathematics
Url: http://www.geom.uiuc.edu/software/dstool

#Source: http://www.cam.cornell.edu/~gucken/dstool/Version_tk/%name.tar.gz

#Source: http://www.enm.bris.ac.uk/staff/hinke/dss/ode/dstool_tk-redhat8.0.tar.gz
Source: http://pi.math.cornell.edu/~gucken/dstool_tk.tgz
Source1: %{name}_16.xpm
Source2: %{name}_32.xpm
Source3: %{name}_48.xpm
Patch0: dstooltk_2.0-4-debian-dir.patch
Patch1: dstooltk_2.0-4-debian-misc.patch
Patch2: dstool_tk-redhat8.0-remove-hack-systimes.diff
Patch3: dstool_tk-debian-systimes.patch
# alt; x86_64 crush
Patch10: dstool_tk-alt-x86_64.patch
Patch11: dstool_tk-remove-deprecated-matherr-hack.patch
Patch12: dstool_tk-0.2007-geomview.patch
Patch13: dstool_tk-alt-DUSE_INTERP_RESULT.patch

Requires: tcl tk
# it is very useful, but it is in orphaned
%if_enabled recommends_geomview
Requires: geomview
%endif

## A utomatically added by buildreq on Tue Mar 29 2005

#BuildRequires: xorg-x11-devel xorg-x11-utils tcl-devel tk-devel
# Automatically added by buildreq on Thu Mar 13 2008 (-bi)
BuildRequires: imake tk-devel

%description
DsTool - A Dynamical Systems Toolkit.
This software is very useful in the visual study of nonlinear systems and Chaos, as well as finding numerical solutions to differential equations. It has the ability to plot flows and maps in both 2D & 3D phase space (for 3D install Geomview  at  http://www.geomview.com). One can also define Poincare surfaces & plot bifurcation diagrams. A number of prebuilt models are included for study - e.g. Lorenz System.


%prep
#setup -q -c -n %name
%setup -q -n %name
%patch0 -p1
# patch don't work; it seems that patch3 is useless too
#%patch2 -p1
%patch3 -p1

%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1

# target is reserved word in gmake >= 4

sed -i s,target,targetto,g config/Makefile.rules config/Makefile.defs

# native executables

rm -f my_dstool/bin/*/my_dstool

find . -name .kdbgrc.dstool_tk -delete
rmdir bin/solaris my_dstool/bin/solaris

%build
# made into patch13: support for old tcl code
#add_optflags -DUSE_INTERP_RESULT
DSTOOL=$PWD
ARCH=linux
export ARCH DSTOOL
#make clean
#make World
#make depend
make all

%install
mkdir -p $RPM_BUILD_ROOT%_libdir/%name/src
cp -r oogl help site_specific tcl bin my_dstool $RPM_BUILD_ROOT%_libdir/%name/

### see README for details; it claims to require them

cp -r src/models $RPM_BUILD_ROOT%_libdir/%name/src

mkdir -p $RPM_BUILD_ROOT%_bindir
install -m 755 bin/dstool_tk $RPM_BUILD_ROOT%_bindir/
sed -e 's!/u/pkg/dstool_tk}!%_libdir/%name} ${ARCH=linux} ${GEOMVIEW=/usr/bin/geomview}!' bin/dstool_tk > $RPM_BUILD_ROOT%_bindir/dstool_tk
install -m644 -D %SOURCE1 $RPM_BUILD_ROOT%_miconsdir/%{name}.xpm
install -m644 -D %SOURCE2 $RPM_BUILD_ROOT%_niconsdir/%{name}.xpm
install -m644 -D %SOURCE3 $RPM_BUILD_ROOT%_liconsdir/%{name}.xpm
install -m755 -d $RPM_BUILD_ROOT%_desktopdir/

install -m644 -D debian/dstooltk.1 $RPM_BUILD_ROOT%_man1dir/%{name}.1

cat > $RPM_BUILD_ROOT%_desktopdir/%{name}.desktop <<EOF
[Desktop Entry]
Version=1.0
Type=Application
Name=DS tool Tk
GenericName=DS tool (Tk version)
Comment=DS tool Tk - a dynamical system toolkit
Icon=%{name}
Exec=%{name}
Terminal=false
Categories=Science;Math;
EOF

%files
%doc README INSTALL VERSION
%_bindir/dstool_tk
%_libdir/%name
%_miconsdir/%{name}.xpm
%_niconsdir/%{name}.xpm
%_liconsdir/%{name}.xpm
%_desktopdir/%{name}.desktop
%_man1dir/dstool*

%changelog

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

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