]> git.pld-linux.org Git - packages/gnuplot.git/blob - gnuplot.spec
- release 2
[packages/gnuplot.git] / gnuplot.spec
1 #
2 # Conditional build:
3 %bcond_without  pdf     # don't use pdflib
4 #
5 Summary:        A program for plotting mathematical expressions and data
6 Summary(de.UTF-8):      GNU-Plotter-Paket
7 Summary(es.UTF-8):      Paquete para trazar gráficos
8 Summary(fr.UTF-8):      Le programme de traçage de courbe de GNU
9 Summary(pl.UTF-8):      Program GNU do robienia wykresów
10 Summary(pt_BR.UTF-8):   Pacote para traçar gráficos
11 Summary(ru.UTF-8):      Программа для построения графиков математических выражений и данных
12 Summary(tr.UTF-8):      Matematiksel görselleştirme paketi
13 Summary(uk.UTF-8):      Програма для побудови графіків математичних виразів та даних
14 Name:           gnuplot
15 Version:        4.2.3
16 Release:        2
17 License:        distributable (with modifications properly marked if any)
18 Group:          Applications/Math
19 Source0:        http://dl.sourceforge.net/gnuplot/%{name}-%{version}.tar.gz
20 # Source0-md5:  6b6d22662df5101b308c465a722c43ce
21 Source1:        %{name}.desktop
22 Source2:        %{name}.png
23 Patch0:         %{name}-info.patch
24 Patch1:         %{name}-info_install.patch
25 URL:            http://gnuplot.sourceforge.net/
26 BuildRequires:  autoconf >= 2.59-9
27 BuildRequires:  automake
28 BuildRequires:  gd-devel
29 BuildRequires:  libpng-devel >= 1.0.8
30 BuildRequires:  libtool
31 BuildRequires:  ncurses-devel
32 %{?with_pdf:BuildRequires:      pdflib-devel}
33 BuildRequires:  readline-devel
34 BuildRequires:  texinfo
35 #BuildRequires: xemacs-lisp-programming
36 BuildRequires:  xorg-lib-libX11-devel
37 BuildRequires:  zlib-devel
38 #or --without-lisp-files
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41 %define         _datadir        %{_prefix}/share/misc
42
43 %description
44 Gnuplot is a command-line driven, interactive function plotting
45 program especially suited for scientific data representation. Gnuplot
46 can be used to plot functions and data points in both two and three
47 dimensions and in many different formats.
48
49 %description -l de.UTF-8
50 Das GNU-Plotting-Paket. Dient zur grafischen Ausgabe von Daten in
51 einem X-Fenster oder in eine Datei.
52
53 %description -l es.UTF-8
54 Este es el paquete GNU de ploteado. Se puede usar para crear gráficos
55 en X Window o para archivo.
56
57 %description -l fr.UTF-8
58 Paquetage de tracé de GNU. Il peut être utilisé pour faire des graphes
59 de données dans une fenêtre X ou vers un fichier.
60
61 %description -l pl.UTF-8
62 GNU plot rysuje wykresy, które można drukować, zapisywać w pliku albo
63 oglądać w okienku X.
64
65 %description -l pt_BR.UTF-8
66 Este é o pacote GNU de plotagem. Pode ser usado para gerar gráficos em
67 X Window ou para arquivo.
68
69 %description -l ru.UTF-8
70 Gnuplot - это интерактивная программа построения графиков, управляемая
71 с командной строки. Gnuplot особенно хорошо подходит для презентации
72 научных данных и может применяться для отображения функций и данных в
73 2-х и 3-х измерениях и во многих различных форматах.
74
75 %description -l tr.UTF-8
76 Gnuplot, bir fonksiyonun ya da bir veri kümesinin grafiğinin elde
77 edilmesinde kullanılan, çok yetenekli bir görselleştirme aracıdır.
78
79 %description -l uk.UTF-8
80 Gnuplot - це інтерактивна програма побудови графіків, яка керується з
81 командного рядка. Gnuplot особливо гарно підходить для презентації
82 наукових даних та може застосовуватись для відображення функцій та
83 даних в 2-х та 3-х вимірах та в багатьох різних форматах.
84
85 %prep
86 %setup -q
87 %patch0 -p1
88 %patch1 -p1
89
90 %build
91 %{__libtoolize}
92 %{__aclocal} -I m4
93 %{__autoheader}
94 %{__autoconf}
95 %{__automake}
96
97 %configure \
98         --with-readline=gnu \
99         --enable-history-file \
100         --with-png \
101         --with-gd \
102         --with-x \
103         --without-lisp-files \
104         --without-linux-vga \
105         %{!?with_pdf:--without-pdf} \
106         --without-tutorial
107
108 # The source tarball incorrectly includes a file that should not be there.
109 rm -f src/getcolor_x11.*
110
111 %{__make}
112 cd docs
113 makeinfo gnuplot.texi
114 cd ..
115
116 %install
117 rm -rf $RPM_BUILD_ROOT
118 install -d $RPM_BUILD_ROOT{%{_infodir},%{_desktopdir},%{_pixmapsdir}}
119
120 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
121 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
122
123 %{__make} install \
124         DESTDIR=$RPM_BUILD_ROOT
125
126 %clean
127 rm -rf $RPM_BUILD_ROOT
128
129 %post   -p /sbin/postshell
130 -/usr/sbin/fix-info-dir -c %{_infodir}
131
132 %postun -p /sbin/postshell
133 -/usr/sbin/fix-info-dir -c %{_infodir}
134
135 %files
136 %defattr(644,root,root,755)
137 %doc docs/psdoc/ps_guide.ps
138 %attr(755,root,root) %{_bindir}/gnuplot
139 %attr(755,root,root) %{_libdir}/%{name}
140 %{_mandir}/man1/gnuplot.1*
141 %{_datadir}/%{name}
142 %{_infodir}/gnuplot.info*
143 %{_desktopdir}/gnuplot.desktop
144 %{_pixmapsdir}/gnuplot.png
This page took 0.05928 seconds and 4 git commands to generate.