Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 57313f5c6f1f380d75668ebb550b5c23 > files > 3

mathplot-0.8.4-1mdk.src.rpm

Summary: Interactive function grapher
Name: mathplot
Version: 0.8.4
Release: 1mdk
License: GPL
Group: Sciences/Mathematics
Url: http://merd.net/pixel/mathplot.html
Source: http://merd.net/pixel/mathplot-%version.src.tar.bz2
Source4: %{name}.menu
Packager: Pixel <pixel@mandrakesoft.com>
BuildRoot: %{_tmppath}/%{name}
BuildRequires: ocaml >= 3.00 ocamltk XFree86-devel ImageMagick ncurses-devel tcl tk findlib ocaml-simple_gettext

%description
mathplot is a GUI frontend  for  interactive  graphing  of
functions.   mathplot2ps  is  a  batch program to generate
PostScript output.

You can have both equations (y=f(x)  or  f(x,y)=g(x))  and
inequations.  For inequations, mathplot hatches the inter-
section. For example, with y>0, y<x and x<2 it hatches the
solution which is a triangle.
You  can name a point, anywhere or on a function.  You can
ask for the tangent of a function.
As it uses a symbolic library,  you  can  enter  functions
like "x+1/y=2".
Can  find  root (zeros), extrema (even symbolically, some-
times) and intersection of 2 functions.
mathplot exports in PostScript so that you can print  eas-
ily, and with the reference mark (O, i, j).
You  can  save  and  load files. mathplot2ps can transform
these files into PostScript.
It's written in OCaml using the Tk  toolkit  for  the  GUI
frontend

%prep
%setup -q -n %{name}

%build
CFLAGS="$RPM_OPT_FLAGS" make prefix=/usr

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std prefix=/usr

%find_lang %{name}

rm -rf $RPM_BUILD_ROOT%{_docdir}

install -d $RPM_BUILD_ROOT%{_iconsdir}/{mini,large}
convert icons/mathplot-icon.gif $RPM_BUILD_ROOT%{_iconsdir}/mathplot.png
convert icons/mathplot-icon-large.gif $RPM_BUILD_ROOT%{_iconsdir}/large/mathplot.png
convert icons/mathplot-icon-mini.gif $RPM_BUILD_ROOT%{_iconsdir}/mini/mathplot.png

install -d $RPM_BUILD_ROOT%{_menudir}
install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_menudir}/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%post 
%{update_menus}

%postun
%{clean_menus}

%files -f %{name}.lang
%defattr(-, root, root)
%doc CHANGES README docs/TODO docs/BUGS
%{_bindir}/*
%{_datadir}/%{name}*
%lang(es) %{_mandir}/es/*/*
%{_mandir}/man*/*
%{_menudir}/*
%{_iconsdir}/%{name}*
%{_iconsdir}/*/*

%changelog
* Tue Nov  9 2004 Pixel <pixel@mandrakesoft.com> 0.8.4-1mdk 
- new release
- drop versioned-tcl patch now unneeded
- requires findlib
- i18n

* Thu Oct  2 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 0.8.3-5mdk
- lib64 fixes

* Mon Sep  8 2003 Pixel <pixel@mandrakesoft.com> 0.8.3-4mdk
- remove french description 
  (which was not in utf8 and it is not the good way to have it in .spec)

* Mon Jun 16 2003 Stefan van der Eijk <stefan@eijk.nu> 0.8.3-3mdk
- BuildRequires

* Sun Apr 13 2003 Pixel <pixel@mandrakesoft.com> 0.8.3-2mdk
- rebuild with tk 8.4

* Tue Feb 11 2003 Pixel <pixel@mandrakesoft.com> 0.8.3-1mdk
- new version
  - fixes displayed message about the intersection point
  - the intersection point is now a free point instead of a fpoint
    so that one can more easily see the intersection value
    (and this point doesn't belong to one function, but to 2 functions, so...)

* Tue Jul 30 2002 Pixel <pixel@mandrakesoft.com> 0.8.2-1mdk
- new version (for new ocaml)

* Sun Mar 31 2002 Geoffrey Lee <snailtalk@mandrakesoft.com> 0.8.1-2mdk
- Rebuild with a versioned tcl and tk. 

* Thu Dec 13 2001 Pixel <pixel@mandrakesoft.com> 0.8.1-1mdk
- build version (a few adaptations for OCaml 3.0.4)

* Fri Oct 19 2001 Stefan van der Eijk <stefan@eijk.nu> 0.8.0-3mdk
- BuildRequires: ImageMagick

* Thu Jul 26 2001 Pixel <pixel@mandrakesoft.com> 0.8.0-2mdk
- rebuild

* Fri Nov 17 2000 Pixel <pixel@mandrakesoft.com> 0.8.0-1mdk
- new version for maman:
   * KP_Enter now working do define a new function
   * x² is now rewritten in x^2
   * when creating new points, it gives an usused name (A, B...)
   * FocusOut on range entries is the same as doing Return

* Tue Nov  7 2000 Pixel <pixel@mandrakesoft.com> 0.7.6-4mdk
- capitalize

* Wed Aug 23 2000 Pixel <pixel@mandrakesoft.com> 0.7.6-3mdk
- add packager field

* Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 0.7.6-2mdk
- automatically added BuildRequires

* Sun Aug  6 2000 Pixel <pixel@mandrakesoft.com> 0.7.6-1mdk
- new version (fix tcl/tk lib require)

* Sat Jul 22 2000 Pixel <pixel@mandrakesoft.com> 0.7.5-1mdk
- new version

* Wed Jul 19 2000 Pixel <pixel@mandrakesoft.com> 0.7.4-1mdk
- new version
- macroization
- BM

* Wed May  3 2000 Pixel <pixel@mandrakesoft.com> 0.7.3-1mdk
- new version using labltk
- added icons for menu

* Wed Mar 29 2000 Pixel <pixel@mandrakesoft.com> 0.7.2-5mdk
- add menu

* Sat Mar 25 2000 Pixel <pixel@mandrakesoft.com> 0.7.2-4mdk
- new group + cleanup

* Mon Dec  6 1999 Pixel <pixel@linux-mandrake.com>
- rebuild with ocaml 2.04

* Fri Nov 26 1999 Pixel <pixel@linux-mandrake.com>
- rebuild with ocaml 2.03

* Tue Nov 23 1999 Pixel <pixel@linux-mandrake.com>
- 0.7.2