-Summary: GNU plotting package
-Summary(de): GNU-Plotter-Paket
-Summary(fr): Le programme de traçage de courbe de GNU.
-Summary(pl): GNU program do robienia wykresów
-Summary(tr): Matematiksel görselleþtirme paketi
-Name: gnuplot
-Version: 3.7.0.8
-Release: 1
-Copyright: GPL
-Group: Applications/Math
-Group(pl): Aplikacje/Matematyczne
-Source: ftp://ftp.gnuplot.vt.edu/pub/gnuplot/beta/%{name}-%{version}.tar.gz
+Summary: A program for plotting mathematical expressions and data
+Summary(de): GNU-Plotter-Paket
+Summary(fr): Le programme de traçage de courbe de GNU.
+Summary(pl): GNU program do robienia wykresów
+Summary(tr): Matematiksel görselleþtirme paketi
+Name: gnuplot
+Version: 3.7.1
+Release: 1
+Copyright: GPL
+Group: Applications/Math
+Group(pl): Aplikacje/Matematyczne
+Source: ftp://ftp.gnuplot.vt.edu/pub/gnuplot/%{name}-%{version}.tar.gz
Patch0: gnuplot-DESTDIR.patch
-Patch1: gnuplot-png.patch
-URL: http://www.geocities.com/SiliconValley/Foothills/6647/
+Patch1: gnuplot-info.patch
+URL: http://www.geocities.com/SiliconValley/Foothills/6647/
BuildRequires: readline-devel
BuildRequires: libpng-devel
BuildRequires: XFree86-devel
-BuildRequires: gd-devel
BuildRequires: svgalib-devel
BuildRequires: zlib-devel
BuildRequires: ncurses-devel
+Prereq: /usr/sbin/fix-info-dir
#BuildRequires: xemacs-lisp-programming
#or --without-lisp-files
BuildRoot: /tmp/%{name}-%{version}-root
-%define _prefix /usr/X11R6
-%define _mandir %{_prefix}/man
+%define _prefix /usr
%define _datadir %{_prefix}/share/misc
%description
-This is the GNU plotting package. It can be used to graph
-data in an X window or to a file.
+Gnuplot is a command-line driven, interactive function plotting program
+especially suited for scientific data representation. Gnuplot can be used
+to plot functions and data points in both two and three dimensions and in
+many different formats.
%description -l de
Das GNU-Plotting-Paket. Dient zur grafischen Ausgabe von Daten in
kullanýlan, çok yetenekli bir görselleþtirme aracýdýr.
%prep
-%setup -q
+%setup -q
%patch0 -p1
%patch1 -p1
%build
-automake
+aclocal -I m4
+autoconf
+autoheader
+
LDFLAGS="-s"; export LDFLAGS
%configure \
--with-gnu-readline \
--with-png \
- --with-gd \
+ --without-gd \
--with-x \
--without-lisp-files \
+ --without-linux-vga \
--without-tutorial
make
+(cd docs; makeinfo gnuplot.texi)
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_infodir}
make install DESTDIR=$RPM_BUILD_ROOT
-gzip -9fn $RPM_BUILD_ROOT%{_mandir}/man1/*
+install docs/gnuplot.info* $RPM_BUILD_ROOT%{_infodir}
+
+gzip -9fn $RPM_BUILD_ROOT{%{_mandir}/man1/*,%{_infodir}/*}
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%postun
+/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/gnuplot.gih
+%{_infodir}/gnuplot*