]> 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 f2430a4a55a10df3ad2d3a79c8ba343d86a72742..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(tr):   Matematiksel görselleþtirme paketi
+Summary(uk):   ðÒÏÇÒÁÍÁ ÄÌÑ ÐÏÂÕÄÏ×É ÇÒÁƦ˦נÍÁÔÅÍÁÔÉÞÎÉÈ ×ÉÒÁڦנÔÁ ÄÁÎÉÈ
 Name:          gnuplot
-Version:       3.7.1
-Release:       15
-License:       GPL
+Version:       4.0.0
+Release:       5
+License:       distributable (with modifications properly marked if any)
 Group:         Applications/Math
-Group(de):     Applikationen/Mathematik
-Group(pl):     Aplikacje/Matematyczne
-Source0:       http://prdownloads.sourceforge.net/gnuplot/%{name}-%{version}.tar.gz
-Patch0:                %{name}-DESTDIR.patch
-Patch1:                %{name}-info.patch
-Patch2:                %{name}-acfix.patch
+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: readline-devel
-BuildRequires: libpng >= 1.0.8
-BuildRequires: XFree86-devel
-BuildRequires: zlib-devel
-BuildRequires: ncurses-devel
-BuildRequires: autoconf
+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)
 
@@ -56,10 +67,22 @@ ogl
 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
@@ -67,29 +90,39 @@ edilmesinde kullan
 %patch2 -p1
 
 %build
-aclocal -I m4
-autoconf
-autoheader
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoheader}
+%{__autoconf}
+%{__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)
+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
@@ -103,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.082249 seconds and 4 git commands to generate.