%define ver 1.0.2 %define rel 1 %define prefix /usr Summary: simple program for plotting 2-dimensional mathematical functions Name: geg Version: %ver Release: %rel Copyright: GPL Group: Utilities Source: ftp://metalab.unc.edu/pub/Linux/science/visualization/plotting/geg-%{ver}.tar.gz BuildRoot: /tmp/geg-root Packager: David Bryant URL: http://www.infolaunch.com/~daveb Docdir: %{prefix}/doc %description geg, a GTK+ Equation Grapher. geg is a handy little program for plotting 2-dimensional mathematical functions, eg f(x) = sin(x) + 2, and more complicated functions. %changelog %prep %setup %build CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix if [ "$SMP" != "" ]; then (make "MAKE=make -k -j $SMP"; exit 0) make else make fi %install rm -rf $RPM_BUILD_ROOT make prefix=$RPM_BUILD_ROOT%{prefix} install %clean rm -rf $RPM_BUILD_ROOT %post %postun %files %defattr(-, root, root) %{prefix}/bin/* %{prefix}/man/man1/* %doc AUTHORS COPYING ChangeLog NEWS README