# # Conditional build: %bcond_without pdf # don't use pdflib # Summary: A program for plotting mathematical expressions and data Summary(de): GNU-Plotter-Paket Summary(es): Paquete para trazar gráficos Summary(fr): Le programme de traçage de courbe de GNU Summary(pl): Program GNU do robienia wykresów Summary(pt_BR): Pacote para traçar gráficos Summary(ru): ðÒÏÇÒÁÍÍÁ ÄÌÑ ÐÏÓÔÒÏÅÎÉÑ ÇÒÁÆÉËÏ× ÍÁÔÅÍÁÔÉÞÅÓËÉÈ ×ÙÒÁÖÅÎÉÊ É ÄÁÎÎÙÈ Summary(tr): Matematiksel görselleþtirme paketi Summary(uk): ðÒÏÇÒÁÍÁ ÄÌÑ ÐÏÂÕÄÏ×É ÇÒÁÆ¦Ë¦× ÍÁÔÅÍÁÔÉÞÎÉÈ ×ÉÒÁÚ¦× ÔÁ ÄÁÎÉÈ Name: gnuplot Version: 4.0.0 Release: 5 License: distributable (with modifications properly marked if any) Group: Applications/Math Source0: http://dl.sourceforge.net/gnuplot/%{name}-%{version}.tar.gz # Source0-md5: 66258443d9f93cc4f46b147dac33e63a Source1: %{name}.desktop Source2: %{name}.png Patch0: %{name}-info.patch Patch1: %{name}-info_install.patch Patch2: %{name}-no_lisp.patch URL: http://gnuplot.sourceforge.net/ BuildRequires: autoconf >= 2.59-9 BuildRequires: automake BuildRequires: gd-devel BuildRequires: libpng-devel >= 1.0.8 BuildRequires: libtool BuildRequires: ncurses-devel %{?with_pdf:BuildRequires: pdflib-devel} BuildRequires: readline-devel BuildRequires: texinfo #BuildRequires: xemacs-lisp-programming BuildRequires: xorg-lib-libX11-devel BuildRequires: zlib-devel #or --without-lisp-files BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _datadir %{_prefix}/share/misc %description 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 einem X-Fenster oder in eine Datei. %description -l es Este es el paquete GNU de ploteado. Se puede usar para crear gráficos en X Window o para archivo. %description -l fr Paquetage de tracé de GNU. Il peut être utilisé pour faire des graphes de données dans une fenêtre X ou vers un fichier. %description -l pl GNU plot rysuje wykresy, które mo¿na drukowaæ, zapisywaæ w pliku albo ogl±daæ w okienku X. %description -l pt_BR Este é o pacote GNU de plotagem. Pode ser usado para gerar gráficos em X Window ou para arquivo. %description -l ru Gnuplot - ÜÔÏ ÉÎÔÅÒÁËÔÉ×ÎÁÑ ÐÒÏÇÒÁÍÍÁ ÐÏÓÔÒÏÅÎÉÑ ÇÒÁÆÉËÏ×, ÕÐÒÁ×ÌÑÅÍÁÑ Ó ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÉ. Gnuplot ÏÓÏÂÅÎÎÏ ÈÏÒÏÛÏ ÐÏÄÈÏÄÉÔ ÄÌÑ ÐÒÅÚÅÎÔÁÃÉÉ ÎÁÕÞÎÙÈ ÄÁÎÎÙÈ É ÍÏÖÅÔ ÐÒÉÍÅÎÑÔØÓÑ ÄÌÑ ÏÔÏÂÒÁÖÅÎÉÑ ÆÕÎËÃÉÊ É ÄÁÎÎÙÈ × 2-È É 3-È ÉÚÍÅÒÅÎÉÑÈ É ×Ï ÍÎÏÇÉÈ ÒÁÚÌÉÞÎÙÈ ÆÏÒÍÁÔÁÈ. %description -l tr Gnuplot, bir fonksiyonun ya da bir veri kümesinin grafiðinin elde edilmesinde kullanýlan, çok yetenekli bir görselleþtirme aracýdýr. %description -l uk Gnuplot - ÃÅ ¦ÎÔÅÒÁËÔÉ×ÎÁ ÐÒÏÇÒÁÍÁ ÐÏÂÕÄÏ×É ÇÒÁƦ˦×, ÑËÁ ËÅÒÕ¤ÔØÓÑ Ú ËÏÍÁÎÄÎÏÇÏ ÒÑÄËÁ. Gnuplot ÏÓÏÂÌÉ×Ï ÇÁÒÎÏ Ð¦ÄÈÏÄÉÔØ ÄÌÑ ÐÒÅÚÅÎÔÁæ§ ÎÁÕËÏ×ÉÈ ÄÁÎÉÈ ÔÁ ÍÏÖÅ ÚÁÓÔÏÓÏ×Õ×ÁÔÉÓØ ÄÌÑ ×¦ÄÏÂÒÁÖÅÎÎÑ ÆÕÎËÃ¦Ê ÔÁ ÄÁÎÉÈ × 2-È ÔÁ 3-È ×ÉͦÒÁÈ ÔÁ × ÂÁÇÁÔØÏÈ Ò¦ÚÎÉÈ ÆÏÒÍÁÔÁÈ. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %build %{__libtoolize} %{__aclocal} -I m4 %{__autoheader} %{__autoconf} %{__automake} %configure \ --with-readline=gnu \ --enable-history-file \ --with-png \ --with-gd \ --with-x \ --without-lisp-files \ --without-linux-vga \ %{!?with_pdf:--without-pdf} \ --without-tutorial # The source tarball incorrectly includes a file that should not be there. rm -f src/getcolor_x11.* %{__make} cd docs makeinfo gnuplot.texi %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_infodir},%{_desktopdir},%{_pixmapsdir}} install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %post [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 %postun [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 %files %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/* %attr(755,root,root) %{_libdir}/%{name} %{_mandir}/man1/* %{_datadir}/%{name} %{_infodir}/gnuplot* %{_desktopdir}/*.desktop %{_pixmapsdir}/*