3 %bcond_with ggi # GGI driver
4 %bcond_with ggixmi # GGI XMI support for pm3d
5 %bcond_with pdf # PDF terminal (based on PDFLib)
6 %bcond_with qt # build Qt terminal
7 %bcond_with svga # Linux SVGA console driver
9 Summary: A program for plotting mathematical expressions and data
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
13 Summary(hu.UTF-8): Matematikai függvények és adatok ábrázolása
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): Програма для побудови графіків математичних виразів та даних
22 License: distributable (with modifications properly marked if any)
23 Group: Applications/Math
24 Source0: http://downloads.sourceforge.net/gnuplot/%{name}-%{version}.tar.gz
25 # Source0-md5: 02a980b37ba181f7510816ed6440c9c1
26 Source1: %{name}.desktop
28 Patch0: %{name}-info.patch
29 Patch1: %{name}-info_install.patch
30 Patch2: %{name}-lua.patch
31 Patch3: %{name}-wx-config.patch
32 URL: http://gnuplot.sourceforge.net/
34 BuildRequires: QtCore-devel >= 4.5
35 BuildRequires: QtGui-devel >= 4.5
36 BuildRequires: QtNetwork-devel >= 4.5
37 BuildRequires: QtSvg-devel >= 4.5
38 BuildRequires: qt4-build >= 4.5
39 BuildRequires: qt4-linguist >= 4.5
41 BuildRequires: autoconf >= 2.60
42 BuildRequires: automake >= 1:1.7.9
43 BuildRequires: cairo-devel >= 1.6
44 BuildRequires: gd-devel >= 2.0
45 BuildRequires: glib2-devel
46 BuildRequires: gtk+2-devel >= 2:2.8.0
47 %{?with_ggi:BuildRequires: libggi-devel}
49 %{?with_ggixmi:BuildRequires: libggi-xmi-devel}
50 BuildRequires: libpng-devel >= 1.0.8
51 BuildRequires: libtool
52 BuildRequires: lua51-devel
53 BuildRequires: ncurses-devel
54 BuildRequires: pango-devel > 1:1.10.2
55 # which version? it needs PDF_create_gstate,PDF_set_gstate symbols
56 %{?with_pdf:BuildRequires: pdflib-devel > 4.0.2}
57 BuildRequires: pkgconfig
58 BuildRequires: readline-devel
59 # libvga, libvgagl, lib3dkit
60 %{?with_svga:BuildRequires: svgalib-devel}
61 BuildRequires: texinfo
62 BuildRequires: texlive
63 BuildRequires: texlive-format-pdflatex
64 BuildRequires: texlive-latex
65 BuildRequires: wxGTK2-unicode-devel >= 2.6
66 #BuildRequires: xemacs
67 BuildRequires: xorg-lib-libX11-devel
68 BuildRequires: zlib-devel
69 #or --without-lisp-files
70 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
78 %description -l de.UTF-8
79 Das GNU-Plotting-Paket. Dient zur grafischen Ausgabe von Daten in
80 einem X-Fenster oder in eine Datei.
82 %description -l es.UTF-8
83 Este es el paquete GNU de ploteado. Se puede usar para crear gráficos
84 en X Window o para archivo.
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.
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.
96 %description -l pl.UTF-8
97 GNU plot rysuje wykresy, które można drukować, zapisywać w pliku albo
100 %description -l pt_BR.UTF-8
101 Este é o pacote GNU de plotagem. Pode ser usado para gerar gráficos em
102 X Window ou para arquivo.
104 %description -l ru.UTF-8
105 Gnuplot - это интерактивная программа построения графиков, управляемая
106 с командной строки. Gnuplot особенно хорошо подходит для презентации
107 научных данных и может применяться для отображения функций и данных в
108 2-х и 3-х измерениях и во многих различных форматах.
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.
114 %description -l uk.UTF-8
115 Gnuplot - це інтерактивна програма побудови графіків, яка керується з
116 командного рядка. Gnuplot особливо гарно підходить для презентації
117 наукових даних та може застосовуватись для відображення функцій та
118 даних в 2-х та 3-х вимірах та в багатьох різних форматах.
121 Summary: gnuplot support for LaTeX
122 Summary(pl.UTF-8): Obsługa gnuplota dla LaTeXa
123 Group: Applications/Publishing/TeX
124 # which subpackages? required tex packages: tikz,xxcolor,ifpdf,ifxetex
128 gnuplot support for LaTeX.
130 %description latex -l pl.UTF-8
131 Obsługa gnuplota dla LaTeXa.
149 --without-lisp-files \
150 --enable-history-file \
151 %{?with_qt:--enable-qt} \
152 %{?with_ggi:--with-ggi} \
153 %{?with_svga:--with-linux-vga} \
154 --with-readline=gnu \
158 %{?with_ggixmi:--with-xmi} \
159 --without-lisp-files \
160 --without-linux-vga \
161 %{!?with_pdf:--without-pdf} \
163 --with-texdir=%{_datadir}/texmf-dist/tex/latex/gnuplot \
164 --with-wx-single-threaded
168 makeinfo gnuplot.texi
172 rm -rf $RPM_BUILD_ROOT
173 install -d $RPM_BUILD_ROOT{%{_infodir},%{_desktopdir},%{_pixmapsdir}}
175 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
176 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
179 DESTDIR=$RPM_BUILD_ROOT \
180 appdefaultdir=%{_datadir}/X11/app-defaults
183 rm -rf $RPM_BUILD_ROOT
185 %post -p /sbin/postshell
186 -/usr/sbin/fix-info-dir -c %{_infodir}
188 %postun -p /sbin/postshell
189 -/usr/sbin/fix-info-dir -c %{_infodir}
192 %defattr(644,root,root,755)
193 %doc docs/psdoc/ps_guide.ps
194 %attr(755,root,root) %{_bindir}/gnuplot
195 %attr(755,root,root) %{_libdir}/%{name}
196 %{_mandir}/man1/gnuplot.1*
198 %{_infodir}/gnuplot.info*
199 %{_desktopdir}/gnuplot.desktop
200 %{_pixmapsdir}/gnuplot.png
201 %{_datadir}/X11/app-defaults/Gnuplot
204 %defattr(644,root,root,755)
205 %{_datadir}/texmf-dist/tex/latex/gnuplot