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