]> git.pld-linux.org Git - packages/gnuplot.git/blobdiff - gnuplot.spec
- BR: ac 2.59-9 for AC_PATH_XTRA not requiring libXt
[packages/gnuplot.git] / gnuplot.spec
index 7dad1d1d6e857f111eda9f6cf8f5a4a5532f034f..88918de7e71875bd03c656ddac9a0e2f12bc2a13 100644 (file)
@@ -1,41 +1,59 @@
+#
+# Conditional build:
+%bcond_without pdf     # don't use pdflib
+#
 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(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:       3.7.1
-Release:       1
-Copyright:     GPL
+Version:       4.0.0
+Release:       5
+License:       distributable (with modifications properly marked if any)
 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-info.patch
-URL:           http://www.geocities.com/SiliconValley/Foothills/6647/
-BuildRequires: readline-devel
-BuildRequires: libpng-devel
-BuildRequires: XFree86-devel
-BuildRequires: svgalib-devel
-BuildRequires: zlib-devel
+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
-Prereq:                /usr/sbin/fix-info-dir
+%{?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:     /tmp/%{name}-%{version}-root
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _prefix         /usr
 %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.
+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. 
+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
@@ -45,55 +63,82 @@ de donn
 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.
+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
-aclocal -I m4
-autoconf
-autoheader
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoheader}
+%{__autoconf}
+%{__automake}
 
-LDFLAGS="-s"; export LDFLAGS
 %configure \
-       --with-gnu-readline \
+       --with-readline=gnu \
+       --enable-history-file \
        --with-png \
-       --without-gd \
+       --with-gd \
        --with-x \
        --without-lisp-files \
        --without-linux-vga \
+       %{!?with_pdf:--without-pdf} \
        --without-tutorial
 
-make
-(cd docs; makeinfo gnuplot.texi)
+# 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}
-
-make install DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_infodir},%{_desktopdir},%{_pixmapsdir}}
 
-install docs/gnuplot.info* $RPM_BUILD_ROOT%{_infodir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
 
-gzip -9fn $RPM_BUILD_ROOT{%{_mandir}/man1/*,%{_infodir}/*}
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %postun
-/usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+[ ! -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}/gnuplot.gih
+%{_datadir}/%{name}
 %{_infodir}/gnuplot*
+%{_desktopdir}/*.desktop
+%{_pixmapsdir}/*
This page took 0.07384 seconds and 4 git commands to generate.