3 %bcond_without emacs # Emacs for info documentation
4 %bcond_without caca # CACA driver
5 %bcond_with ggi # GGI driver
6 %bcond_with ggixmi # GGI XMI support for pm3d
7 %bcond_with qt # Qt terminal
8 %bcond_with qt6 # use Qt 6 instead of Qt 5
9 %bcond_with svga # Linux SVGA console driver
10 %bcond_without wxwidgets # wxWidgets terminal
11 %bcond_with tests # run tests
19 Summary: A program for plotting mathematical expressions and data
20 Summary(de.UTF-8): GNU-Plotter-Paket
21 Summary(es.UTF-8): Paquete para trazar gráficos
22 Summary(fr.UTF-8): Le programme de traçage de courbe de GNU
23 Summary(hu.UTF-8): Matematikai függvények és adatok ábrázolása
24 Summary(pl.UTF-8): Program GNU do robienia wykresów
25 Summary(pt_BR.UTF-8): Pacote para traçar gráficos
26 Summary(ru.UTF-8): Программа для построения графиков математических выражений и данных
27 Summary(tr.UTF-8): Matematiksel görselleştirme paketi
28 Summary(uk.UTF-8): Програма для побудови графіків математичних виразів та даних
32 License: distributable (with modifications properly marked if any)
33 Group: Applications/Math
34 Source0: http://downloads.sourceforge.net/gnuplot/%{name}-%{version}.tar.gz
35 # Source0-md5: 10246eb96bbf3a151d6eb9bbcc223e4e
36 Source1: %{name}.desktop
38 Patch0: %{name}-info.patch
39 Patch1: configure.patch
41 URL: http://gnuplot.sourceforge.net/
44 BuildRequires: Qt6Core-devel >= 6.0
45 BuildRequires: Qt6Gui-devel >= 6.0
46 BuildRequires: Qt6Network-devel >= 6.0
47 BuildRequires: Qt6PrintSupport-devel >= 6.0
48 BuildRequires: Qt6Svg-devel >= 6.0
49 BuildRequires: Qt6Qt5Compat-devel >= 6.0
50 BuildRequires: qt6-build >= 6.0
51 BuildRequires: qt6-linguist >= 6.0
53 BuildRequires: Qt5Core-devel >= 5.0
54 BuildRequires: Qt5Gui-devel >= 5.0
55 BuildRequires: Qt5Network-devel >= 5.0
56 BuildRequires: Qt5PrintSupport-devel >= 5.0
57 BuildRequires: Qt5Svg-devel >= 5.0
58 BuildRequires: Qt5Widgets-devel >= 5.0
59 BuildRequires: qt5-build >= 5.0
60 BuildRequires: qt5-linguist >= 5.0
63 BuildRequires: autoconf >= 2.69
64 BuildRequires: automake >= 1:1.10
65 BuildRequires: cairo-devel >= 1.6
68 BuildRequires: xemacs-texinfo-pkg
70 BuildRequires: gd-devel >= 2.0
71 BuildRequires: glib2-devel >= 1:2.28
72 BuildRequires: gtk+3-devel
73 %{?with_caca:BuildRequires: libcaca-devel >= 0.99-0.beta15}
74 BuildRequires: libcerf-devel
75 %{?with_ggi:BuildRequires: libggi-devel}
77 %{?with_ggixmi:BuildRequires: libggi-xmi-devel}
78 BuildRequires: libpng-devel >= 1.0.8
79 BuildRequires: lua54 >= 5.4
80 BuildRequires: lua54-devel >= 5.4
81 BuildRequires: ncurses-devel
82 BuildRequires: pango-devel > 1:1.22
83 BuildRequires: pkgconfig
84 BuildRequires: readline-devel
85 # libvga, libvgagl, lib3dkit
86 %{?with_svga:BuildRequires: svgalib-devel}
87 BuildRequires: texinfo
88 BuildRequires: texlive
89 BuildRequires: texlive-format-pdflatex
90 BuildRequires: texlive-latex
91 %{?with_wxwidgets:BuildRequires: wxGTK3-unicode-devel >= 2.6}
92 BuildRequires: xorg-lib-libX11-devel
93 BuildRequires: zlib-devel
94 Requires: cairo >= 1.6
95 Requires: glib2 >= 1:2.28
96 %{?with_caca:Requires: libcaca >= 0.99-0.beta15}
97 Requires: pango > 1:1.22
98 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
101 Gnuplot is a command-line driven, interactive function plotting
102 program especially suited for scientific data representation. Gnuplot
103 can be used to plot functions and data points in both two and three
104 dimensions and in many different formats.
106 %description -l de.UTF-8
107 Das GNU-Plotting-Paket. Dient zur grafischen Ausgabe von Daten in
108 einem X-Fenster oder in eine Datei.
110 %description -l es.UTF-8
111 Este es el paquete GNU de ploteado. Se puede usar para crear gráficos
112 en X Window o para archivo.
114 %description -l fr.UTF-8
115 Paquetage de tracé de GNU. Il peut être utilisé pour faire des graphes
116 de données dans une fenêtre X ou vers un fichier.
118 %description -l hu.UTF-8
119 Gnuplot egy parancssor-vezérelt, interaktív függvényábrázoló program,
120 amely különösen alkalmas tudományos adatok megjelenítésére. A Gnuplot
121 alkalmas függvények és adathalmazok ábrázolására, kettő és három
122 dimenzióban, különféle formátumokban.
124 %description -l pl.UTF-8
125 GNU plot rysuje wykresy, które można drukować, zapisywać w pliku albo
128 %description -l pt_BR.UTF-8
129 Este é o pacote GNU de plotagem. Pode ser usado para gerar gráficos em
130 X Window ou para arquivo.
132 %description -l ru.UTF-8
133 Gnuplot - это интерактивная программа построения графиков, управляемая
134 с командной строки. Gnuplot особенно хорошо подходит для презентации
135 научных данных и может применяться для отображения функций и данных в
136 2-х и 3-х измерениях и во многих различных форматах.
138 %description -l tr.UTF-8
139 Gnuplot, bir fonksiyonun ya da bir veri kümesinin grafiğinin elde
140 edilmesinde kullanılan, çok yetenekli bir görselleştirme aracıdır.
142 %description -l uk.UTF-8
143 Gnuplot - це інтерактивна програма побудови графіків, яка керується з
144 командного рядка. Gnuplot особливо гарно підходить для презентації
145 наукових даних та може застосовуватись для відображення функцій та
146 даних в 2-х та 3-х вимірах та в багатьох різних форматах.
149 Summary: gnuplot support for LaTeX
150 Summary(pl.UTF-8): Obsługa gnuplota dla LaTeXa
151 Group: Applications/Publishing/TeX
152 # which subpackages? required tex packages: tikz,xxcolor,ifpdf,ifxetex
156 gnuplot support for LaTeX.
158 %description latex -l pl.UTF-8
159 Obsługa gnuplota dla LaTeXa.
174 WX_CONFIG=/usr/bin/wx-gtk3-unicode-config \
175 --enable-history-file \
176 %{!?with_wxwidgets:--disable-wxwidgets} \
177 %{?with_caca:--with-caca} \
179 %{?with_ggi:--with-ggi} \
180 %{?with_svga:--with-linux-vga} \
181 --with-qt=%{?with_qt:%{?with_qt6:qt6}%{!?with_qt6:qt5}}%{!?with_qt:no} \
182 --with-readline=gnu \
183 --with-texdir=%{_datadir}/texmf-dist/tex/latex/gnuplot \
186 %{?with_ggixmi:--with-xmi}
191 QT_QPA_PLATFORM=offscreen %{__make} check
195 %{__make} -C docs info
199 rm -rf $RPM_BUILD_ROOT
200 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
202 %{__make} install %{?with_emacs:install-info} \
203 DESTDIR=$RPM_BUILD_ROOT \
204 appdefaultdir=%{_datadir}/X11/app-defaults
206 [ ! -f $RPM_BUILD_ROOT%{_desktopdir}/gnuplot.desktop ]
207 [ ! -f $RPM_BUILD_ROOT%{_pixmapsdir}/gnuplot.png ]
208 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
209 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
212 rm -rf $RPM_BUILD_ROOT
215 %post -p /sbin/postshell
216 -/usr/sbin/fix-info-dir -c %{_infodir}
218 %postun -p /sbin/postshell
219 -/usr/sbin/fix-info-dir -c %{_infodir}
223 %defattr(644,root,root,755)
224 %doc BUGS Copyright FAQ.pdf NEWS README RELEASE_NOTES docs/psdoc/ps_guide.ps
225 %attr(755,root,root) %{_bindir}/gnuplot
226 %dir %{_libexecdir}/%{name}
227 %dir %{_libexecdir}/%{name}/6.0
228 %{?with_qt:%attr(755,root,root) %{_libexecdir}/%{name}/6.0/gnuplot_qt}
229 %attr(755,root,root) %{_libexecdir}/%{name}/6.0/gnuplot_x11
230 %{_mandir}/man1/gnuplot.1*
231 %lang(ja) %{_mandir}/ja/man1/gnuplot.1*
232 %dir %{_datadir}/%{name}
233 %dir %{_datadir}/%{name}/6.0
234 %{_datadir}/%{name}/6.0/PostScript
235 %{_datadir}/%{name}/6.0/js
236 %{_datadir}/%{name}/6.0/lua
237 %{_datadir}/%{name}/6.0/colors_*.gp
238 %{_datadir}/%{name}/6.0/gnuplot.gih
239 %{_datadir}/%{name}/6.0/gnuplotrc
241 %dir %{_datadir}/%{name}/6.0/qt
242 %lang(fr) %{_datadir}/%{name}/6.0/qt/qtgnuplot_fr.qm
243 %lang(ja) %{_datadir}/%{name}/6.0/qt/qtgnuplot_ja.qm
246 %{_infodir}/gnuplot.info*
248 %{_desktopdir}/gnuplot.desktop
249 %{_pixmapsdir}/gnuplot.png
250 %{_datadir}/X11/app-defaults/Gnuplot
253 %defattr(644,root,root,755)
254 %{_datadir}/texmf-dist/tex/latex/gnuplot