]> 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 aed3316e85e713eee36e6f1044429236b41256d0..88918de7e71875bd03c656ddac9a0e2f12bc2a13 100644 (file)
@@ -1,30 +1,41 @@
+#
+# 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(ru):   ðÒÏÇÒÁÍÍÁ ÄÌÑ ÐÏÓÔÒÏÅÎÉÑ ÇÒÁÆÉËÏ× ÍÁÔÅÍÁÔÉÞÅÓËÉÈ ×ÙÒÁÖÅÎÉÊ É ÄÁÎÎÙÈ
 Summary(tr):   Matematiksel görselleþtirme paketi
-Summary(uk): ðÒÏÇÒÁÍÁ ÄÌÑ ÐÏÂÕÄÏ×É ÇÒÁƦ˦נÍÁÔÅÍÁÔÉÞÎÉÈ ×ÉÒÁڦנÔÁ ÄÁÎÉÈ
+Summary(uk):   ðÒÏÇÒÁÍÁ ÄÌÑ ÐÏÂÕÄÏ×É ÇÒÁƦ˦נÍÁÔÅÍÁÔÉÞÎÉÈ ×ÉÒÁڦנÔÁ ÄÁÎÉÈ
 Name:          gnuplot
-Version:       3.7.2
-Release:       2
-License:       GPL
+Version:       4.0.0
+Release:       5
+License:       distributable (with modifications properly marked if any)
 Group:         Applications/Math
-Source0:       ftp://ftp.sourceforge.net/pub/sourceforge/gnuplot/%{name}-%{version}.tar.gz
+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}-acfix.patch
-Patch2:                %{name}-round.patch
+Patch1:                %{name}-info_install.patch
+Patch2:                %{name}-no_lisp.patch
 URL:           http://gnuplot.sourceforge.net/
-BuildRequires: XFree86-devel
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.59-9
 BuildRequires: automake
-BuildRequires: libpng >= 1.0.8
+BuildRequires: gd-devel
+BuildRequires: libpng-devel >= 1.0.8
+BuildRequires: libtool
 BuildRequires: ncurses-devel
+%{?with_pdf:BuildRequires:     pdflib-devel}
 BuildRequires: readline-devel
-BuildRequires: zlib-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)
 
@@ -59,16 +70,16 @@ X Window ou para arquivo.
 %description -l ru
 Gnuplot - ÜÔÏ ÉÎÔÅÒÁËÔÉ×ÎÁÑ ÐÒÏÇÒÁÍÍÁ ÐÏÓÔÒÏÅÎÉÑ ÇÒÁÆÉËÏ×, ÕÐÒÁ×ÌÑÅÍÁÑ
 Ó ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÉ. Gnuplot ÏÓÏÂÅÎÎÏ ÈÏÒÏÛÏ ÐÏÄÈÏÄÉÔ ÄÌÑ ÐÒÅÚÅÎÔÁÃÉÉ
-ÎÁÕÞÎÙÈ ÄÁÎÎÙÈ É ÍÏÖÅÔ ÐÒÉÍÅÎÑÔØÓÑ ÄÌÑ ÏÔÏÂÒÁÖÅÎÉÑ ÆÕÎËÃÉÊ É ÄÁÎÎÙÈ
-× 2-È É 3-È ÉÚÍÅÒÅÎÉÑÈ É ×Ï ÍÎÏÇÉÈ ÒÁÚÌÉÞÎÙÈ ÆÏÒÍÁÔÁÈ.
+ÎÁÕÞÎÙÈ ÄÁÎÎÙÈ É ÍÏÖÅÔ ÐÒÉÍÅÎÑÔØÓÑ ÄÌÑ ÏÔÏÂÒÁÖÅÎÉÑ ÆÕÎËÃÉÊ É ÄÁÎÎÙÈ ×
+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 ÏÓÏÂÌÉ×Ï ÇÁÒÎϠЦÄÈÏÄÉÔØ ÄÌÑ ÐÒÅÚÅÎÔÁæ§
+Gnuplot - ÃÅ ¦ÎÔÅÒÁËÔÉ×ÎÁ ÐÒÏÇÒÁÍÁ ÐÏÂÕÄÏ×É ÇÒÁƦ˦×, ÑËÁ ËÅÒÕ¤ÔØÓÑ Ú
+ËÏÍÁÎÄÎÏÇÏ ÒÑÄËÁ. Gnuplot ÏÓÏÂÌÉ×Ï ÇÁÒÎϠЦÄÈÏÄÉÔØ ÄÌÑ ÐÒÅÚÅÎÔÁæ§
 ÎÁÕËÏ×ÉÈ ÄÁÎÉÈ ÔÁ ÍÏÖÅ ÚÁÓÔÏÓÏ×Õ×ÁÔÉÓØ ÄÌѠצÄÏÂÒÁÖÅÎÎÑ ÆÕÎËæʠÔÁ
 ÄÁÎÉÈ × 2-È ÔÁ 3-È ×ÉͦÒÁÈ ÔÁ × ÂÁÇÁÔØÏÈ Ò¦ÚÎÉÈ ÆÏÒÍÁÔÁÈ.
 
@@ -79,30 +90,39 @@ Gnuplot - 
 %patch2 -p1
 
 %build
-aclocal -I m4
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoheader}
 %{__autoconf}
-autoheader
+%{__automake}
 
 %configure \
        --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
 
+# 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}
+install -d $RPM_BUILD_ROOT{%{_infodir},%{_desktopdir},%{_pixmapsdir}}
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
 
-install docs/gnuplot.info* $RPM_BUILD_ROOT%{_infodir}
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -116,6 +136,9 @@ rm -rf $RPM_BUILD_ROOT
 %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.066896 seconds and 4 git commands to generate.