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