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