]> git.pld-linux.org Git - packages/gnuplot.git/blob - gnuplot.spec
- updated to 6.0.0
[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     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
12
13 %if %{without qt}
14 %undefine       with_tests
15 %endif
16
17
18 #
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):      Програма для побудови графіків математичних виразів та даних
29 Name:           gnuplot
30 Version:        6.0.0
31 Release:        1
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
37 Source2:        %{name}.png
38 Patch0:         %{name}-info.patch
39 Patch1:         configure.patch
40 Patch2:         qt.patch
41 URL:            http://gnuplot.sourceforge.net/
42 %if %{with qt}
43 %if %{with qt6}
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
52 %else
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
61 %endif
62 %endif
63 BuildRequires:  autoconf >= 2.69
64 BuildRequires:  automake >= 1:1.10
65 BuildRequires:  cairo-devel >= 1.6
66 %if %{with emacs}
67 BuildRequires:  xemacs
68 BuildRequires:  xemacs-texinfo-pkg
69 %endif
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}
76 # ???
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)
99
100 %description
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.
105
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.
109
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.
113
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.
117
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.
123
124 %description -l pl.UTF-8
125 GNU plot rysuje wykresy, które można drukować, zapisywać w pliku albo
126 oglądać w okienku X.
127
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.
131
132 %description -l ru.UTF-8
133 Gnuplot - это интерактивная программа построения графиков, управляемая
134 с командной строки. Gnuplot особенно хорошо подходит для презентации
135 научных данных и может применяться для отображения функций и данных в
136 2-х и 3-х измерениях и во многих различных форматах.
137
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.
141
142 %description -l uk.UTF-8
143 Gnuplot - це інтерактивна програма побудови графіків, яка керується з
144 командного рядка. Gnuplot особливо гарно підходить для презентації
145 наукових даних та може застосовуватись для відображення функцій та
146 даних в 2-х та 3-х вимірах та в багатьох різних форматах.
147
148 %package latex
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
153 Requires:       texlive
154
155 %description latex
156 gnuplot support for LaTeX.
157
158 %description latex -l pl.UTF-8
159 Obsługa gnuplota dla LaTeXa.
160
161 %prep
162 %setup -q
163 %patch0 -p1
164 %patch1 -p1
165 %patch2 -p1
166
167 %build
168 %{__aclocal} -I m4
169 %{__autoconf}
170 %{__autoheader}
171 %{__automake}
172
173 %configure \
174         WX_CONFIG=/usr/bin/wx-gtk3-unicode-config \
175         --enable-history-file \
176         %{!?with_wxwidgets:--disable-wxwidgets} \
177         %{?with_caca:--with-caca} \
178         --with-gd \
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 \
184         --without-tutorial \
185         --with-x \
186         %{?with_ggixmi:--with-xmi}
187
188 %{__make}
189
190 %if %{with tests}
191 QT_QPA_PLATFORM=offscreen %{__make} check
192 %endif
193
194 %if %{with emacs}
195 %{__make} -C docs info
196 %endif
197
198 %install
199 rm -rf $RPM_BUILD_ROOT
200 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
201
202 %{__make} install %{?with_emacs:install-info} \
203         DESTDIR=$RPM_BUILD_ROOT \
204         appdefaultdir=%{_datadir}/X11/app-defaults
205
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}
210
211 %clean
212 rm -rf $RPM_BUILD_ROOT
213
214 %if %{with emacs}
215 %post   -p /sbin/postshell
216 -/usr/sbin/fix-info-dir -c %{_infodir}
217
218 %postun -p /sbin/postshell
219 -/usr/sbin/fix-info-dir -c %{_infodir}
220 %endif
221
222 %files
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
240 %if %{with qt}
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
244 %endif
245 %if %{with emacs}
246 %{_infodir}/gnuplot.info*
247 %endif
248 %{_desktopdir}/gnuplot.desktop
249 %{_pixmapsdir}/gnuplot.png
250 %{_datadir}/X11/app-defaults/Gnuplot
251
252 %files latex
253 %defattr(644,root,root,755)
254 %{_datadir}/texmf-dist/tex/latex/gnuplot
This page took 0.081604 seconds and 4 git commands to generate.