%define name plotutils %define version 2.4.1 %define release 1 Summary: GNU Plotting Utilities Name: %{name} Version: %{version} Release: %{release} License: GPL Group: Graphics Source: %{name}-%{version}.tar.gz URL: http://www.gnu.org/software/plotutils/plotutils.html Requires: ghostscript-fonts >= 4 texinfo >= 3.9 Prereq: /sbin/install-info Buildroot: %{_tmppath}/%{name}-root Prefix: %{_prefix} %define DEFCC cc %description The GNU plotting utilities, sometimes called 'plotutils', include: (1) GNU libplot, a shared library for exporting 2-D vector graphics files and for performing vector graphics animation under the X Window System. Its output file formats include the new WebCGM format, pseudo-GIF, PNM, Adobe Illustrator, Postscript (editable with the free 'idraw' drawing editor), Fig (editable with the free 'xfig' drawing editor), PCL 5, HP-GL and HP-GL/2, Tektronix, and GNU metafile format. Many Postscript, PCL, and Hershey fonts are supported. A separate class library, 'libplotter', provides a C++ binding to libplot's functionality. (2) Sample command-line applications 'graph', 'plot', 'tek2plot', 'pic2plot', and 'plotfont', which are built on top of GNU libplot. 'graph' is a powerful utility for XY plotting, 'plot' translates GNU metafiles to other formats, 'tek2plot' translates legacy Tektronix data, 'pic2plot' translates box-and-arrow diagrams in the pic language, and 'plotfont' plots character maps. (3) Command-line applications 'spline', 'double', and 'ode', which are useful in scientific plotting. 'spline' does spline interpolation of input data of arbitrary dimensionality. It uses cubic splines, splines under tension, or cubic Bessel interpolation. 'ode' is an interactive program that can integrate a user-specified system of ordinary differential equations. %prep %setup -q %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi if test "X$CC" != "Xgcc" then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` export CFLAGS="$RPM_OPT_FLAGS" fi libtoolize --force aclocal autoconf configure --prefix=/opt/freeware make %install export PATH=/usr/bin/X11:/usr/X11/bin:$PATH make DESTDIR=$RPM_BUILD_ROOT install mkdir -p $RPM_BUILD_ROOT%{_libdir}/X11/fonts/misc cp -p fonts/pcf/*.pcf $RPM_BUILD_ROOT%{_libdir}/X11/fonts/misc strip $RPM_BUILD_ROOT%{prefix}/bin/* || : ( cd $RPM_BUILD_ROOT for dir in bin include do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{prefix}/$dir/* . cd - done ) %post /sbin/install-info %{_infodir}/plotutils.info %{_infodir}/dir %preun if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/plotutils.info %{_infodir}/dir fi %files %defattr (-,root,root) %doc AUTHORS INSTALL.fonts KNOWN_BUGS NEWS ONEWS PROBLEMS README THANKS %doc COPYING COMPAT ChangeLog INSTALL TODO %{_bindir}/* %{_includedir}/* %{_infodir}/plotutils.info %{_libdir}/X11/fonts/misc/* %{_libdir}/libplot.* %{_mandir}/man1/* %{_datadir}/libplot/* %{_datadir}/ode/* %{_datadir}/tek2plot/* /usr/bin/* /usr/include/* %changelog * Wed Feb 06 2002 David Clissold - Add prereq for /sbin/install-info; %doc was missing "COPYING"!!! * Mon Oct 22 2001 David Clissold - No functional change. Modify SPEC for compat w/ newer libtool. * Thu Apr 19 2001 David Clissold - first build for AIX Toolbox * Wed Mar 28 2001 Lenny Cartier 2.4.1-3mdk - fix desc. * Tue Mar 20 2001 Lenny Cartier 2.4.1-2mdk - rebuild * Wed Jan 24 2001 Lenny Cartier 2.4.1-1mdk - updated to 2.4.1 * Fri Aug 25 2000 Lenny Cartier 2.3-1mdk - first spec - BM - fix install * Tue Feb 08 2000 Massimo Santini - Added a patch coming directly from Robert S. Maier to solve a freezing problem while using double buffering.