]> git.pld-linux.org Git - packages/gnuplot.git/blame - gnuplot.spec
add wxwidgets bcond
[packages/gnuplot.git] / gnuplot.spec
CommitLineData
c418a34a 1#
cbce579f 2# Conditional build:
7b9bb32f
JB
3%bcond_without emacs # Emacs for info documentation
4%bcond_without caca # CACA driver
c418a34a
JB
5%bcond_with ggi # GGI driver
6%bcond_with ggixmi # GGI XMI support for pm3d
7b9bb32f
JB
7%bcond_with qt # Qt terminal
8%bcond_with qt4 # use Qt 4 instead of Qt 5
c418a34a 9%bcond_with svga # Linux SVGA console driver
d648a3fe 10%bcond_without wxwidgets # wxWidgets terminal
c418a34a 11#
dddd49b2 12Summary: A program for plotting mathematical expressions and data
edeea3b8
ER
13Summary(de.UTF-8): GNU-Plotter-Paket
14Summary(es.UTF-8): Paquete para trazar gráficos
15Summary(fr.UTF-8): Le programme de traçage de courbe de GNU
5dca2bb0 16Summary(hu.UTF-8): Matematikai függvények és adatok ábrázolása
edeea3b8
ER
17Summary(pl.UTF-8): Program GNU do robienia wykresów
18Summary(pt_BR.UTF-8): Pacote para traçar gráficos
19Summary(ru.UTF-8): Программа для построения графиков математических выражений и данных
20Summary(tr.UTF-8): Matematiksel görselleştirme paketi
21Summary(uk.UTF-8): Програма для побудови графіків математичних виразів та даних
dddd49b2 22Name: gnuplot
60672d12
JB
23Version: 5.2.8
24Release: 1
abf74b3e 25License: distributable (with modifications properly marked if any)
dddd49b2 26Group: Applications/Math
8b449474 27Source0: http://downloads.sourceforge.net/gnuplot/%{name}-%{version}.tar.gz
60672d12 28# Source0-md5: 2df8767c7399bee57a96296d46b4d5fb
802d5df1 29Source1: %{name}.desktop
9dfa78c8 30Source2: %{name}.png
c268a6a0 31Patch0: %{name}-info.patch
7818be62 32URL: http://gnuplot.sourceforge.net/
cbce579f 33%if %{with qt}
7b9bb32f 34%if %{with qt4}
cbce579f
KK
35BuildRequires: QtCore-devel >= 4.5
36BuildRequires: QtGui-devel >= 4.5
37BuildRequires: QtNetwork-devel >= 4.5
38BuildRequires: QtSvg-devel >= 4.5
c418a34a
JB
39BuildRequires: qt4-build >= 4.5
40BuildRequires: qt4-linguist >= 4.5
7b9bb32f
JB
41%else
42BuildRequires: Qt5Core-devel >= 5.0
43BuildRequires: Qt5Gui-devel >= 5.0
44BuildRequires: Qt5Network-devel >= 5.0
45BuildRequires: Qt5PrintSupport-devel >= 5.0
46BuildRequires: Qt5Svg-devel >= 5.0
47BuildRequires: Qt5Widgets-devel >= 5.0
48BuildRequires: qt5-build >= 5.0
49BuildRequires: qt5-linguist >= 5.0
cbce579f 50%endif
7b9bb32f
JB
51%endif
52BuildRequires: autoconf >= 2.69
53BuildRequires: automake >= 1:1.10
c418a34a 54BuildRequires: cairo-devel >= 1.6
fedd3b24
AM
55%if %{with emacs}
56BuildRequires: xemacs
57BuildRequires: xemacs-texinfo-pkg
58%endif
c418a34a 59BuildRequires: gd-devel >= 2.0
7b9bb32f 60BuildRequires: glib2-devel >= 1:2.28
3b1276dd 61BuildRequires: gtk+2-devel >= 2:2.8.0
7b9bb32f
JB
62%{?with_caca:BuildRequires: libcaca-devel >= 0.99-0.beta15}
63BuildRequires: libcerf-devel
c418a34a
JB
64%{?with_ggi:BuildRequires: libggi-devel}
65# ???
66%{?with_ggixmi:BuildRequires: libggi-xmi-devel}
a84fd73d 67BuildRequires: libpng-devel >= 1.0.8
7b9bb32f
JB
68BuildRequires: lua53 >= 5.3
69BuildRequires: lua53-devel >= 5.3
81f48443 70BuildRequires: ncurses-devel
7b9bb32f 71BuildRequires: pango-devel > 1:1.22
41890360 72BuildRequires: pkgconfig
81f48443 73BuildRequires: readline-devel
c418a34a
JB
74# libvga, libvgagl, lib3dkit
75%{?with_svga:BuildRequires: svgalib-devel}
c2ee1abb 76BuildRequires: texinfo
4f75b087 77BuildRequires: texlive
4f75b087 78BuildRequires: texlive-format-pdflatex
41890360 79BuildRequires: texlive-latex
d648a3fe 80%{?with_wxwidgets:BuildRequires: wxGTK2-unicode-devel >= 2.6}
2a98cd6a 81BuildRequires: xorg-lib-libX11-devel
82BuildRequires: zlib-devel
7b9bb32f
JB
83Requires: cairo >= 1.6
84Requires: glib2 >= 1:2.28
85%{?with_caca:Requires: libcaca >= 0.99-0.beta15}
86Requires: pango > 1:1.22
0e6ca9f6 87BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
a6224fbc 88
89%description
5d245235 90Gnuplot is a command-line driven, interactive function plotting
91program especially suited for scientific data representation. Gnuplot
92can be used to plot functions and data points in both two and three
93dimensions and in many different formats.
a6224fbc 94
ca6dfdd2 95%description -l de.UTF-8
5d245235 96Das GNU-Plotting-Paket. Dient zur grafischen Ausgabe von Daten in
97einem X-Fenster oder in eine Datei.
a6224fbc 98
ca6dfdd2
JR
99%description -l es.UTF-8
100Este es el paquete GNU de ploteado. Se puede usar para crear gráficos
0ccf8fe9 101en X Window o para archivo.
102
ca6dfdd2
JR
103%description -l fr.UTF-8
104Paquetage de tracé de GNU. Il peut être utilisé pour faire des graphes
105de données dans une fenêtre X ou vers un fichier.
a6224fbc 106
5dca2bb0
ZU
107%description -l hu.UTF-8
108Gnuplot egy parancssor-vezérelt, interaktív függvényábrázoló program,
109amely különösen alkalmas tudományos adatok megjelenítésére. A Gnuplot
110alkalmas függvények és adathalmazok ábrázolására, kettő és három
111dimenzióban, különféle formátumokban.
112
ca6dfdd2
JR
113%description -l pl.UTF-8
114GNU plot rysuje wykresy, które można drukować, zapisywać w pliku albo
115oglądać w okienku X.
a6224fbc 116
ca6dfdd2
JR
117%description -l pt_BR.UTF-8
118Este é o pacote GNU de plotagem. Pode ser usado para gerar gráficos em
0ccf8fe9 119X Window ou para arquivo.
120
ca6dfdd2
JR
121%description -l ru.UTF-8
122Gnuplot - это интерактивная программа построения графиков, управляемая
123с командной строки. Gnuplot особенно хорошо подходит для презентации
124научных данных и может применяться для отображения функций и данных в
1252-х и 3-х измерениях и во многих различных форматах.
c268a6a0 126
ca6dfdd2
JR
127%description -l tr.UTF-8
128Gnuplot, bir fonksiyonun ya da bir veri kümesinin grafiğinin elde
129edilmesinde kullanılan, çok yetenekli bir görselleştirme aracıdır.
a6224fbc 130
ca6dfdd2
JR
131%description -l uk.UTF-8
132Gnuplot - це інтерактивна програма побудови графіків, яка керується з
133командного рядка. Gnuplot особливо гарно підходить для презентації
134наукових даних та може застосовуватись для відображення функцій та
135даних в 2-х та 3-х вимірах та в багатьох різних форматах.
c268a6a0 136
34937da8 137%package latex
2588048a
JB
138Summary: gnuplot support for LaTeX
139Summary(pl.UTF-8): Obsługa gnuplota dla LaTeXa
34937da8 140Group: Applications/Publishing/TeX
2588048a
JB
141# which subpackages? required tex packages: tikz,xxcolor,ifpdf,ifxetex
142Requires: texlive
34937da8
ZU
143
144%description latex
2588048a
JB
145gnuplot support for LaTeX.
146
147%description latex -l pl.UTF-8
148Obsługa gnuplota dla LaTeXa.
34937da8 149
a6224fbc 150%prep
dddd49b2 151%setup -q
d7926f42 152%patch0 -p1
a6224fbc 153
154%build
da51e9a6 155%{__aclocal} -I m4
a2ca0919 156%{__autoconf}
ff13c828 157%{__autoheader}
a2ca0919 158%{__automake}
dddd49b2 159
1d965241 160%configure \
7b9bb32f 161 WX_CONFIG=/usr/bin/wx-gtk2-unicode-config \
c2ee1abb 162 --enable-history-file \
d648a3fe 163 %{!?with_wxwidgets:--disable-wxwidgets} \
7b9bb32f 164 %{?with_caca:--with-caca} \
ff13c828 165 --with-gd \
c418a34a
JB
166 %{?with_ggi:--with-ggi} \
167 %{?with_svga:--with-linux-vga} \
7b9bb32f 168 --with-qt=%{?with_qt:%{?with_qt4:qt4}%{!?with_qt4:qt5}}%{!?with_qt:no} \
ff13c828 169 --with-readline=gnu \
0e9cc5b6 170 --with-texdir=%{_datadir}/texmf-dist/tex/latex/gnuplot \
ff13c828 171 --without-tutorial \
ff13c828
JB
172 --with-x \
173 %{?with_ggixmi:--with-xmi}
d7926f42 174
86b42e7d 175%{__make}
ff13c828 176
7b9bb32f
JB
177%if %{with emacs}
178%{__make} -C docs info
179%endif
a6224fbc 180
181%install
182rm -rf $RPM_BUILD_ROOT
7b9bb32f 183install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
a6224fbc 184
7b9bb32f 185%{__make} install %{?with_emacs:install-info} \
0eb25396 186 DESTDIR=$RPM_BUILD_ROOT \
8b449474 187 appdefaultdir=%{_datadir}/X11/app-defaults
533ebf3b 188
7b9bb32f
JB
189install -d $RPM_BUILD_ROOT%{_mandir}/ja/man1
190%{__mv} $RPM_BUILD_ROOT%{_mandir}/man1/gnuplot-ja.1 $RPM_BUILD_ROOT%{_mandir}/ja/man1/gnuplot.1
191
192[ ! -f $RPM_BUILD_ROOT%{_desktopdir}/gnuplot.desktop ]
193[ ! -f $RPM_BUILD_ROOT%{_pixmapsdir}/gnuplot.png ]
194cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
195cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
196
a6224fbc 197%clean
198rm -rf $RPM_BUILD_ROOT
199
7b9bb32f 200%if %{with emacs}
6b2875a1 201%post -p /sbin/postshell
e376f8a3 202-/usr/sbin/fix-info-dir -c %{_infodir}
dddd49b2 203
6b2875a1 204%postun -p /sbin/postshell
e376f8a3 205-/usr/sbin/fix-info-dir -c %{_infodir}
7b9bb32f 206%endif
dddd49b2 207
a6224fbc 208%files
533ebf3b 209%defattr(644,root,root,755)
7b9bb32f 210%doc BUGS ChangeLog Copyright FAQ.pdf NEWS README RELEASE_NOTES TODO docs/psdoc/ps_guide.ps
6b2875a1 211%attr(755,root,root) %{_bindir}/gnuplot
ff13c828 212%dir %{_libexecdir}/%{name}
7b9bb32f
JB
213%dir %{_libexecdir}/%{name}/5.2
214%{?with_qt:%attr(755,root,root) %{_libexecdir}/%{name}/5.2/gnuplot_qt}
215%attr(755,root,root) %{_libexecdir}/%{name}/5.2/gnuplot_x11
6b2875a1 216%{_mandir}/man1/gnuplot.1*
7b9bb32f
JB
217%lang(ja) %{_mandir}/ja/man1/gnuplot.1*
218%dir %{_datadir}/%{name}
219%dir %{_datadir}/%{name}/5.2
220%{_datadir}/%{name}/5.2/PostScript
221%{_datadir}/%{name}/5.2/js
222%{_datadir}/%{name}/5.2/lua
223%{_datadir}/%{name}/5.2/colors_*.gp
224%{_datadir}/%{name}/5.2/gnuplot.gih
225%{_datadir}/%{name}/5.2/gnuplotrc
226%if %{with qt}
227%dir %{_datadir}/%{name}/5.2/qt
228%lang(fr) %{_datadir}/%{name}/5.2/qt/qtgnuplot_fr.qm
229%lang(ja) %{_datadir}/%{name}/5.2/qt/qtgnuplot_ja.qm
230%endif
231%if %{with emacs}
6b2875a1 232%{_infodir}/gnuplot.info*
7b9bb32f 233%endif
6b2875a1
JB
234%{_desktopdir}/gnuplot.desktop
235%{_pixmapsdir}/gnuplot.png
8b449474 236%{_datadir}/X11/app-defaults/Gnuplot
34937da8
ZU
237
238%files latex
239%defattr(644,root,root,755)
240%{_datadir}/texmf-dist/tex/latex/gnuplot
This page took 0.09244 seconds and 4 git commands to generate.