]>
Commit | Line | Data |
---|---|---|
c418a34a | 1 | # |
cbce579f | 2 | # Conditional build: |
c418a34a JB |
3 | %bcond_with ggi # GGI driver |
4 | %bcond_with ggixmi # GGI XMI support for pm3d | |
5 | %bcond_with pdf # PDF terminal (based on PDFLib) | |
cbce579f | 6 | %bcond_with qt # build Qt terminal |
c418a34a JB |
7 | %bcond_with svga # Linux SVGA console driver |
8 | # | |
dddd49b2 | 9 | Summary: A program for plotting mathematical expressions and data |
edeea3b8 ER |
10 | Summary(de.UTF-8): GNU-Plotter-Paket |
11 | Summary(es.UTF-8): Paquete para trazar gráficos | |
12 | Summary(fr.UTF-8): Le programme de traçage de courbe de GNU | |
5dca2bb0 | 13 | Summary(hu.UTF-8): Matematikai függvények és adatok ábrázolása |
edeea3b8 ER |
14 | Summary(pl.UTF-8): Program GNU do robienia wykresów |
15 | Summary(pt_BR.UTF-8): Pacote para traçar gráficos | |
16 | Summary(ru.UTF-8): Программа для построения графиков математических выражений и данных | |
17 | Summary(tr.UTF-8): Matematiksel görselleştirme paketi | |
18 | Summary(uk.UTF-8): Програма для побудови графіків математичних виразів та даних | |
dddd49b2 | 19 | Name: gnuplot |
cce604d0 | 20 | Version: 4.6.4 |
31980768 | 21 | Release: 2 |
abf74b3e | 22 | License: distributable (with modifications properly marked if any) |
dddd49b2 | 23 | Group: Applications/Math |
8b449474 | 24 | Source0: http://downloads.sourceforge.net/gnuplot/%{name}-%{version}.tar.gz |
cce604d0 | 25 | # Source0-md5: 2d8d1be8c8b7ee9e89b5003cbd8696ee |
802d5df1 | 26 | Source1: %{name}.desktop |
9dfa78c8 | 27 | Source2: %{name}.png |
c268a6a0 | 28 | Patch0: %{name}-info.patch |
a2ca0919 | 29 | Patch1: %{name}-info_install.patch |
4f75b087 | 30 | Patch2: %{name}-lua.patch |
8b449474 | 31 | Patch3: %{name}-wx-config.patch |
7818be62 | 32 | URL: http://gnuplot.sourceforge.net/ |
cbce579f KK |
33 | %if %{with qt} |
34 | BuildRequires: QtCore-devel >= 4.5 | |
35 | BuildRequires: QtGui-devel >= 4.5 | |
36 | BuildRequires: QtNetwork-devel >= 4.5 | |
37 | BuildRequires: QtSvg-devel >= 4.5 | |
c418a34a JB |
38 | BuildRequires: qt4-build >= 4.5 |
39 | BuildRequires: qt4-linguist >= 4.5 | |
cbce579f | 40 | %endif |
3fc24d07 | 41 | BuildRequires: autoconf >= 2.60 |
3b1276dd | 42 | BuildRequires: automake >= 1:1.7.9 |
c418a34a JB |
43 | BuildRequires: cairo-devel >= 1.6 |
44 | BuildRequires: gd-devel >= 2.0 | |
41890360 | 45 | BuildRequires: glib2-devel |
3b1276dd | 46 | BuildRequires: gtk+2-devel >= 2:2.8.0 |
c418a34a JB |
47 | %{?with_ggi:BuildRequires: libggi-devel} |
48 | # ??? | |
49 | %{?with_ggixmi:BuildRequires: libggi-xmi-devel} | |
a84fd73d | 50 | BuildRequires: libpng-devel >= 1.0.8 |
a2ca0919 | 51 | BuildRequires: libtool |
deb58606 | 52 | BuildRequires: lua51-devel |
81f48443 | 53 | BuildRequires: ncurses-devel |
3b1276dd | 54 | BuildRequires: pango-devel > 1:1.10.2 |
c418a34a JB |
55 | # which version? it needs PDF_create_gstate,PDF_set_gstate symbols |
56 | %{?with_pdf:BuildRequires: pdflib-devel > 4.0.2} | |
41890360 | 57 | BuildRequires: pkgconfig |
81f48443 | 58 | BuildRequires: readline-devel |
c418a34a JB |
59 | # libvga, libvgagl, lib3dkit |
60 | %{?with_svga:BuildRequires: svgalib-devel} | |
c2ee1abb | 61 | BuildRequires: texinfo |
4f75b087 | 62 | BuildRequires: texlive |
4f75b087 | 63 | BuildRequires: texlive-format-pdflatex |
41890360 | 64 | BuildRequires: texlive-latex |
c418a34a | 65 | BuildRequires: wxGTK2-unicode-devel >= 2.6 |
d7926f42 | 66 | #BuildRequires: xemacs-lisp-programming |
2a98cd6a | 67 | BuildRequires: xorg-lib-libX11-devel |
68 | BuildRequires: zlib-devel | |
d7926f42 | 69 | #or --without-lisp-files |
0e6ca9f6 | 70 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a6224fbc | 71 | |
72 | %description | |
5d245235 | 73 | Gnuplot is a command-line driven, interactive function plotting |
74 | program especially suited for scientific data representation. Gnuplot | |
75 | can be used to plot functions and data points in both two and three | |
76 | dimensions and in many different formats. | |
a6224fbc | 77 | |
ca6dfdd2 | 78 | %description -l de.UTF-8 |
5d245235 | 79 | Das GNU-Plotting-Paket. Dient zur grafischen Ausgabe von Daten in |
80 | einem X-Fenster oder in eine Datei. | |
a6224fbc | 81 | |
ca6dfdd2 JR |
82 | %description -l es.UTF-8 |
83 | Este es el paquete GNU de ploteado. Se puede usar para crear gráficos | |
0ccf8fe9 | 84 | en X Window o para archivo. |
85 | ||
ca6dfdd2 JR |
86 | %description -l fr.UTF-8 |
87 | Paquetage de tracé de GNU. Il peut être utilisé pour faire des graphes | |
88 | de données dans une fenêtre X ou vers un fichier. | |
a6224fbc | 89 | |
5dca2bb0 ZU |
90 | %description -l hu.UTF-8 |
91 | Gnuplot egy parancssor-vezérelt, interaktív függvényábrázoló program, | |
92 | amely különösen alkalmas tudományos adatok megjelenítésére. A Gnuplot | |
93 | alkalmas függvények és adathalmazok ábrázolására, kettő és három | |
94 | dimenzióban, különféle formátumokban. | |
95 | ||
ca6dfdd2 JR |
96 | %description -l pl.UTF-8 |
97 | GNU plot rysuje wykresy, które można drukować, zapisywać w pliku albo | |
98 | oglądać w okienku X. | |
a6224fbc | 99 | |
ca6dfdd2 JR |
100 | %description -l pt_BR.UTF-8 |
101 | Este é o pacote GNU de plotagem. Pode ser usado para gerar gráficos em | |
0ccf8fe9 | 102 | X Window ou para arquivo. |
103 | ||
ca6dfdd2 JR |
104 | %description -l ru.UTF-8 |
105 | Gnuplot - это интерактивная программа построения графиков, управляемая | |
106 | с командной строки. Gnuplot особенно хорошо подходит для презентации | |
107 | научных данных и может применяться для отображения функций и данных в | |
108 | 2-х и 3-х измерениях и во многих различных форматах. | |
c268a6a0 | 109 | |
ca6dfdd2 JR |
110 | %description -l tr.UTF-8 |
111 | Gnuplot, bir fonksiyonun ya da bir veri kümesinin grafiğinin elde | |
112 | edilmesinde kullanılan, çok yetenekli bir görselleştirme aracıdır. | |
a6224fbc | 113 | |
ca6dfdd2 JR |
114 | %description -l uk.UTF-8 |
115 | Gnuplot - це інтерактивна програма побудови графіків, яка керується з | |
116 | командного рядка. Gnuplot особливо гарно підходить для презентації | |
117 | наукових даних та може застосовуватись для відображення функцій та | |
118 | даних в 2-х та 3-х вимірах та в багатьох різних форматах. | |
c268a6a0 | 119 | |
34937da8 | 120 | %package latex |
2588048a JB |
121 | Summary: gnuplot support for LaTeX |
122 | Summary(pl.UTF-8): Obsługa gnuplota dla LaTeXa | |
34937da8 | 123 | Group: Applications/Publishing/TeX |
2588048a JB |
124 | # which subpackages? required tex packages: tikz,xxcolor,ifpdf,ifxetex |
125 | Requires: texlive | |
34937da8 ZU |
126 | |
127 | %description latex | |
2588048a JB |
128 | gnuplot support for LaTeX. |
129 | ||
130 | %description latex -l pl.UTF-8 | |
131 | Obsługa gnuplota dla LaTeXa. | |
34937da8 | 132 | |
a6224fbc | 133 | %prep |
dddd49b2 | 134 | %setup -q |
d7926f42 | 135 | %patch0 -p1 |
136 | %patch1 -p1 | |
4f75b087 | 137 | %patch2 -p1 |
8b449474 | 138 | %patch3 -p0 |
a6224fbc | 139 | |
140 | %build | |
a2ca0919 | 141 | %{__libtoolize} |
da51e9a6 | 142 | %{__aclocal} -I m4 |
da51e9a6 | 143 | %{__autoheader} |
a2ca0919 | 144 | %{__autoconf} |
145 | %{__automake} | |
dddd49b2 | 146 | |
1d965241 | 147 | %configure \ |
c2ee1abb | 148 | --enable-history-file \ |
cbce579f | 149 | %{?with_qt:--enable-qt} \ |
c418a34a JB |
150 | %{?with_ggi:--with-ggi} \ |
151 | %{?with_svga:--with-linux-vga} \ | |
2588048a | 152 | --with-readline=gnu \ |
533ebf3b | 153 | --with-png \ |
c2ee1abb | 154 | --with-gd \ |
d7926f42 | 155 | --with-x \ |
c418a34a | 156 | %{?with_ggixmi:--with-xmi} \ |
d7926f42 | 157 | --without-lisp-files \ |
dddd49b2 | 158 | --without-linux-vga \ |
fa794e7e | 159 | %{!?with_pdf:--without-pdf} \ |
2588048a JB |
160 | --without-tutorial \ |
161 | --with-texdir=%{_datadir}/texmf-dist/tex/latex/gnuplot | |
d7926f42 | 162 | |
86b42e7d | 163 | %{__make} |
1d965241 JB |
164 | cd docs |
165 | makeinfo gnuplot.texi | |
c1f68fb1 | 166 | cd .. |
a6224fbc | 167 | |
168 | %install | |
169 | rm -rf $RPM_BUILD_ROOT | |
8af3eb36 | 170 | install -d $RPM_BUILD_ROOT{%{_infodir},%{_desktopdir},%{_pixmapsdir}} |
9dfa78c8 | 171 | |
8af3eb36 | 172 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
9dfa78c8 | 173 | install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir} |
a6224fbc | 174 | |
a2ca0919 | 175 | %{__make} install \ |
0eb25396 | 176 | DESTDIR=$RPM_BUILD_ROOT \ |
8b449474 | 177 | appdefaultdir=%{_datadir}/X11/app-defaults |
533ebf3b | 178 | |
a6224fbc | 179 | %clean |
180 | rm -rf $RPM_BUILD_ROOT | |
181 | ||
6b2875a1 | 182 | %post -p /sbin/postshell |
e376f8a3 | 183 | -/usr/sbin/fix-info-dir -c %{_infodir} |
dddd49b2 | 184 | |
6b2875a1 | 185 | %postun -p /sbin/postshell |
e376f8a3 | 186 | -/usr/sbin/fix-info-dir -c %{_infodir} |
dddd49b2 | 187 | |
a6224fbc | 188 | %files |
533ebf3b | 189 | %defattr(644,root,root,755) |
aef05935 | 190 | %doc docs/psdoc/ps_guide.ps |
6b2875a1 | 191 | %attr(755,root,root) %{_bindir}/gnuplot |
a2ca0919 | 192 | %attr(755,root,root) %{_libdir}/%{name} |
6b2875a1 | 193 | %{_mandir}/man1/gnuplot.1* |
c75bab2c | 194 | %{_datadir}/%{name} |
6b2875a1 JB |
195 | %{_infodir}/gnuplot.info* |
196 | %{_desktopdir}/gnuplot.desktop | |
197 | %{_pixmapsdir}/gnuplot.png | |
8b449474 | 198 | %{_datadir}/X11/app-defaults/Gnuplot |
34937da8 ZU |
199 | |
200 | %files latex | |
201 | %defattr(644,root,root,755) | |
202 | %{_datadir}/texmf-dist/tex/latex/gnuplot |