1 | %global major 5 |
---|
2 | %global minor 4 |
---|
3 | %global patchlevel 0 |
---|
4 | |
---|
5 | %global x11_app_defaults_dir %{_datadir}/X11/app-defaults |
---|
6 | |
---|
7 | Summary: A program for plotting mathematical expressions and data. |
---|
8 | Summary(ja): 数学系の関数やデータのプロット・プログラム |
---|
9 | Name: gnuplot |
---|
10 | Version: %{major}.%{minor}.%{patchlevel} |
---|
11 | Release: 2%{?_dist_release} |
---|
12 | Group: graphics,science |
---|
13 | Vendor: Project Vine |
---|
14 | Distribution: Vine Linux |
---|
15 | Packager: daisuke, inagaki, shaolin |
---|
16 | |
---|
17 | # MIT .. term/PostScript/aglfn.txt |
---|
18 | License: gnuplot and MIT |
---|
19 | URL: http://www.gnuplot.info/ |
---|
20 | # Need to remove non-free lena files |
---|
21 | # rm -rf demo/lena* |
---|
22 | # Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz |
---|
23 | Source: %{name}-%{version}-clean.tar.gz |
---|
24 | |
---|
25 | #Patch0: gnuplot-4.2.0-refers_to.patch |
---|
26 | #Patch1: gnuplot-4.2.0-fonts.patch |
---|
27 | # resolves: #812225 |
---|
28 | # submitted upstream: http://sourceforge.net/tracker/?func=detail&aid=3558973&group_id=2055&atid=302055 |
---|
29 | Patch3: gnuplot-4.6.1-plot-sigsegv.patch |
---|
30 | Patch4: gnuplot-4.6.4-singlethread.patch |
---|
31 | Patch5: gnuplot-5.0.0-lua_checkint.patch |
---|
32 | Patch6: gnuplot-5.4.0-no-lena.patch |
---|
33 | Patch7: gnuplot-5.2.2-doc.patch |
---|
34 | Patch8: gnuplot-5.2.8-cmd-opts.patch |
---|
35 | Patch9: gnuplot-config.patch |
---|
36 | |
---|
37 | # Vine Patches (replaces Patch1) |
---|
38 | Patch70: gnuplot-5.4.0-fonts.patch |
---|
39 | |
---|
40 | Patch1000: CVE-2020-25559.patch |
---|
41 | Patch1001: CVE-2020-25412.patch |
---|
42 | |
---|
43 | BuildRoot: %{_tmppath}/%{name}-root |
---|
44 | #libedit-devel can not handle utf8, readline-devel is not legal with gnuplot, stick to builtin |
---|
45 | BuildRequires: cairo-devel |
---|
46 | BuildRequires: gd-devel >= 2.0.27 |
---|
47 | BuildRequires: giflib-devel |
---|
48 | BuildRequires: libX11-devel |
---|
49 | BuildRequires: libXt-devel |
---|
50 | BuildRequires: libXpm-devel |
---|
51 | BuildRequires: libjpeg-turbo-devel |
---|
52 | BuildRequires: libpng-devel |
---|
53 | BuildRequires: lua-devel |
---|
54 | BuildRequires: m17n-lib |
---|
55 | BuildRequires: pango-devel |
---|
56 | BuildRequires: wxGTK-devel |
---|
57 | BuildRequires: zlib-devel |
---|
58 | |
---|
59 | BuildRequires: texlive |
---|
60 | BuildRequires: texlive-collection-latexextra |
---|
61 | BuildRequires: texlive-collection-formatsextra |
---|
62 | BuildRequires: texlive-collection-langchinese |
---|
63 | BuildRequires: texlive-collection-langcjk |
---|
64 | BuildRequires: texlive-collection-langcyrillic |
---|
65 | BuildRequires: texlive-collection-langczechslovak |
---|
66 | BuildRequires: texlive-collection-langenglish |
---|
67 | BuildRequires: texlive-collection-langeuropean |
---|
68 | BuildRequires: texlive-collection-langfrench |
---|
69 | BuildRequires: texlive-collection-langgerman |
---|
70 | BuildRequires: texlive-collection-langgreek |
---|
71 | BuildRequires: texlive-collection-langitalian |
---|
72 | BuildRequires: texlive-collection-langjapanese |
---|
73 | BuildRequires: texlive-collection-langother |
---|
74 | BuildRequires: texlive-collection-langpolish |
---|
75 | BuildRequires: texlive-collection-langportuguese |
---|
76 | BuildRequires: texlive-collection-langspanish |
---|
77 | BuildRequires: texinfo |
---|
78 | BuildRequires: latex2html |
---|
79 | BuildRequires: emacs |
---|
80 | |
---|
81 | Requires: TrueType-dejavu |
---|
82 | Requires(post): install-info |
---|
83 | Requires(preun): install-info |
---|
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 | Install gnuplot if you need a graphics package for scientific data |
---|
92 | representation. |
---|
93 | |
---|
94 | %description -l ja |
---|
95 | Gnuplotはとりわけ科学データ・プレゼンテーションに適した、コマンド |
---|
96 | 操作によるインタラクティブな関数プロット・プログラムです。 |
---|
97 | Gnuplotは関数や座標データを同時にプロットしたり、3次元化やさまざ |
---|
98 | まな形式で表現するのに利用することができます。 |
---|
99 | |
---|
100 | 科学データプレゼンテーション用のグラフィック・パッケージが必要な |
---|
101 | 場合、gnuplotをインストールしてください。 |
---|
102 | |
---|
103 | |
---|
104 | %package doc |
---|
105 | Summary: Documentation for the gnuplot main application |
---|
106 | Group: documentation |
---|
107 | BuildArch: noarch |
---|
108 | Requires: %{name} = %{version}-%{release} |
---|
109 | |
---|
110 | %description doc |
---|
111 | The gnuplot-doc package contains the documentation related to gnuplot |
---|
112 | plotting tool |
---|
113 | |
---|
114 | |
---|
115 | %package latex |
---|
116 | Summary: Configuration for LaTeX typesetting using gnuplot |
---|
117 | Group: publishing |
---|
118 | BuildArch: noarch |
---|
119 | Requires: %{name} = %{version}-%{release} |
---|
120 | Requires: texlive-collection-latexextra |
---|
121 | Requires: texlive-collection-fontsrecommended |
---|
122 | |
---|
123 | %description latex |
---|
124 | The gnuplot-latex package contains LaTeX configuration file related to gnuplot |
---|
125 | plotting tool. |
---|
126 | |
---|
127 | |
---|
128 | %debug_package |
---|
129 | |
---|
130 | |
---|
131 | %prep |
---|
132 | %setup -q |
---|
133 | #patch0 -p1 -b .refto |
---|
134 | #patch1 -p1 -b .font |
---|
135 | %patch3 -p1 -b .plot-sigsegv |
---|
136 | %patch4 -p1 -b .isinglethread |
---|
137 | %patch5 -p1 -b .checkint |
---|
138 | %patch6 -p1 -b .nolena |
---|
139 | %patch7 -p1 -b .doc |
---|
140 | %patch8 -p1 -b .cmd-opts |
---|
141 | %patch9 -p1 -b .config |
---|
142 | sed -i -e 's:"/usr/lib/X11/app-defaults":"%{x11_app_defaults_dir}":' src/gplt_x11.c |
---|
143 | chmod 644 src/getcolor.h |
---|
144 | chmod 644 demo/html/webify.pl |
---|
145 | chmod 644 demo/html/webify_svg.pl |
---|
146 | chmod 644 demo/html/webify_canvas.pl |
---|
147 | |
---|
148 | %patch70 -p1 -b .font |
---|
149 | %patch1000 -p1 -b .CVE-2020-25559 |
---|
150 | %patch1001 -p1 -b .CVE-2020-25412 |
---|
151 | |
---|
152 | |
---|
153 | %build |
---|
154 | #remove binaries from source tarball |
---|
155 | rm -rf demo/plugin/*.so demo/plugin/*.o |
---|
156 | rm -rf docs_to_include |
---|
157 | mkdir -p docs_to_include |
---|
158 | cp -pr demo docs_to_include |
---|
159 | |
---|
160 | %configure \ |
---|
161 | --with-texdir=%{_datadir}/texmf/texmf-dist/tex/latex/gnuplot \ |
---|
162 | --with-readline=builtin \ |
---|
163 | --without-linux-vga \ |
---|
164 | --enable-history-file \ |
---|
165 | --without-qt |
---|
166 | |
---|
167 | make %{?_smp_mflags} |
---|
168 | |
---|
169 | make -C docs html info |
---|
170 | export GNUPLOT_PS_DIR=../../term/PostScript |
---|
171 | make -C docs/psdoc ps_symbols.ps ps_fontfile_doc.pdf |
---|
172 | rm -rf docs/htmldocs/images.idx |
---|
173 | |
---|
174 | |
---|
175 | %install |
---|
176 | rm -rf %{buildroot} |
---|
177 | make install DESTDIR=%{buildroot} |
---|
178 | make -C docs install-info DESTDIR=%{buildroot} INSTALL='install -p' |
---|
179 | make -C share/LaTeX install DESTDIR=%{buildroot} INSTALL='install -p' |
---|
180 | |
---|
181 | #rm -f demo/Makefile* tutorial/Makefile* |
---|
182 | #packaged by info package, updated by post-installation script, do not package here |
---|
183 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
---|
184 | |
---|
185 | mkdir -p $RPM_BUILD_ROOT%{x11_app_defaults_dir} |
---|
186 | mv $RPM_BUILD_ROOT%{_datadir}/gnuplot/%{major}.%{minor}/app-defaults/Gnuplot $RPM_BUILD_ROOT%{x11_app_defaults_dir}/Gnuplot |
---|
187 | rm -rf $RPM_BUILD_ROOT%{_libdir}/ |
---|
188 | |
---|
189 | mkdir -p $RPM_BUILD_ROOT/%{_mandir}/ja/man1 |
---|
190 | install -p -m644 man/gnuplot-ja_JP.UTF-8 $RPM_BUILD_ROOT/%{_mandir}/ja/man1/gnuplot.1 |
---|
191 | |
---|
192 | |
---|
193 | %clean |
---|
194 | rm -rf %{buildroot} |
---|
195 | |
---|
196 | |
---|
197 | %post |
---|
198 | if [ -f %{_infodir}/gnuplot.info* ]; then |
---|
199 | /sbin/install-info %{_infodir}/gnuplot.info %{_infodir}/dir || : |
---|
200 | fi |
---|
201 | |
---|
202 | %preun |
---|
203 | if [ $1 = 0 ] ; then |
---|
204 | if [ -f %{_infodir}/gnuplot.info* ]; then |
---|
205 | /sbin/install-info --delete %{_infodir}/gnuplot.info %{_infodir}/dir || : |
---|
206 | fi |
---|
207 | fi |
---|
208 | |
---|
209 | |
---|
210 | %files |
---|
211 | %defattr(-,root,root) |
---|
212 | %license Copyright |
---|
213 | %doc BUGS NEWS README |
---|
214 | %{_bindir}/gnuplot |
---|
215 | %dir %{_libexecdir}/gnuplot/%{major}.%{minor} |
---|
216 | %{_libexecdir}/gnuplot/%{major}.%{minor}/gnuplot_x11 |
---|
217 | %dir %{_datadir}/gnuplot/%{major}.%{minor} |
---|
218 | %dir %{_datadir}/gnuplot/%{major}.%{minor}/PostScript |
---|
219 | %dir %{_datadir}/gnuplot/%{major}.%{minor}/js |
---|
220 | %dir %{_datadir}/gnuplot/%{major}.%{minor}/lua |
---|
221 | %{_datadir}/gnuplot/%{major}.%{minor}/PostScript/*.ps |
---|
222 | %{_datadir}/gnuplot/%{major}.%{minor}/PostScript/aglfn.txt |
---|
223 | %{_datadir}/gnuplot/%{major}.%{minor}/js/* |
---|
224 | %{_datadir}/gnuplot/%{major}.%{minor}/lua/gnuplot-tikz.lua |
---|
225 | %{_datadir}/gnuplot/%{major}.%{minor}/colors_* |
---|
226 | %{_datadir}/gnuplot/%{major}.%{minor}/gnuplot.gih |
---|
227 | %{_datadir}/gnuplot/%{major}.%{minor}/gnuplotrc |
---|
228 | %{x11_app_defaults_dir}/Gnuplot |
---|
229 | %{_infodir}/gnuplot.info.gz |
---|
230 | %{_mandir}/man1/gnuplot.* |
---|
231 | %{_mandir}/ja/man1/gnuplot.* |
---|
232 | |
---|
233 | %files doc |
---|
234 | %defattr(-,root,root) |
---|
235 | %license Copyright |
---|
236 | %doc docs/psdoc/ps_guide.ps docs/psdoc/ps_symbols.ps |
---|
237 | %doc docs/psdoc/ps_file.doc |
---|
238 | %doc docs/psdoc/ps_fontfile_doc.pdf docs/htmldocs |
---|
239 | %doc docs_to_include/demo |
---|
240 | |
---|
241 | %files latex |
---|
242 | %defattr(-,root,root) |
---|
243 | %license Copyright |
---|
244 | %{_datadir}/texmf/texmf-dist/tex/latex/gnuplot |
---|
245 | |
---|
246 | |
---|
247 | %changelog |
---|
248 | * Wed Sep 23 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.4.0-2 |
---|
249 | - imported Patch1001 to fix CVE-2020-25412. |
---|
250 | |
---|
251 | * Tue Sep 22 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 5.4.0-1 |
---|
252 | - new upstream release. |
---|
253 | - imported Patch6-9 from rawhide. |
---|
254 | - dropped Patch0. |
---|
255 | - updated Patch70. |
---|
256 | - added Patch1000 to fix CVE-2020-25559. |
---|
257 | |
---|
258 | * Sat Nov 19 2016 Toshiaki Ara <ara_t@384.jp> - 5.0.5-1 |
---|
259 | - new upstream release |
---|
260 | |
---|
261 | * Thu Sep 01 2016 Toshiaki Ara <ara_t@384.jp> - 5.0.1-2 |
---|
262 | - rebuild with gcc-5.4.0 |
---|
263 | |
---|
264 | * Mon Aug 24 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 5.0.1-1 |
---|
265 | - new upstream release |
---|
266 | |
---|
267 | * Thu May 7 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 5.0.0-1 |
---|
268 | - new upstream release |
---|
269 | - libedit-devel can not handle utf8, readline-devel is not legal with gnuplot, stick to builtin |
---|
270 | https://bugzilla.redhat.com/show_bug.cgi?id=1039102 |
---|
271 | - split documents and latex-related files into subpackages |
---|
272 | |
---|
273 | * Sun Jan 25 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 4.6.6-1 |
---|
274 | - update to 4.6.6 |
---|
275 | |
---|
276 | * Thu Jan 16 2014 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.6.4-1 |
---|
277 | - new upstream release |
---|
278 | - add Patch0, Patch1 and Patch2 (font paths, upstream fixes) |
---|
279 | - modify spec to build/install docs correctly |
---|
280 | |
---|
281 | * Wed Jul 11 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 4.4.3-2 |
---|
282 | - changed BuildRequires: wx-gtk2-devel >= 2.8.12 to wxGTK-devel >= 2.8.12 |
---|
283 | - added BuildRequires: libXpm-devel libjpeg-turbo-devel texlive-common |
---|
284 | |
---|
285 | * Sat Apr 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.3-1 |
---|
286 | - update to gnuplot-4.4.3 |
---|
287 | - use BR: texlive instead of tetex |
---|
288 | |
---|
289 | * Sun May 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 4.2.5-1 |
---|
290 | - update to gnuplot-4.2.5 |
---|
291 | - drop plus patch (merged in upstream) |
---|
292 | - update URL: to new upstream homepage |
---|
293 | - fix License: |
---|
294 | - build with wxGTK |
---|
295 | - add BR: libX11-devel, libXt-devel, wx-gtk2-devel |
---|
296 | |
---|
297 | * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 4.0.0-1vl5 |
---|
298 | - applied new versioning policy, spec in utf-8 |
---|
299 | |
---|
300 | * Tue Aug 22 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.0.0-0vl6 |
---|
301 | - add BuildRequires: texinfo, emacsen |
---|
302 | |
---|
303 | * Sun Mar 19 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 4.0.0-0vl5 |
---|
304 | - rebuild with readline-5.1 |
---|
305 | |
---|
306 | * Wed Jun 15 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0.0-0vl4 |
---|
307 | - update Patch0 to fix 'Invalid char in eps file' |
---|
308 | (thanks to HANAWA Toshihiro) |
---|
309 | - add BuildRequires: autoconf, automake |
---|
310 | |
---|
311 | * Sat Nov 20 2004 Satoshi MACHINO <machino@vinelinux.org> 4.0.0-0vl2 |
---|
312 | - enabled history-file |
---|
313 | |
---|
314 | * Wed Jul 14 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 4.0.0-0vl1 |
---|
315 | - source update |
---|
316 | |
---|
317 | * Wed Jul 14 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.8k.3-0vl1 |
---|
318 | - source update |
---|
319 | - patch update and modified |
---|
320 | - add info |
---|
321 | |
---|
322 | * Wed Mar 10 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.7.3-2vl3 |
---|
323 | - rebuild |
---|
324 | - fix license |
---|
325 | - remove -DUSE_SYSTEM_TIME ([VinePlus:01805]) |
---|
326 | |
---|
327 | * Wed Apr 02 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.7.3-2vl2 |
---|
328 | - rebuild with readline-4.3 |
---|
329 | |
---|
330 | * Thu Feb 20 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.7.3-2vl1 |
---|
331 | - syncd with RH 3.7.3-2 |
---|
332 | - modified Yamaga-san's gnuplot3.7.2+1.2.0rc2.patch for 3.7.3 |
---|
333 | |
---|
334 | * Fri Jan 25 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 16vl1 |
---|
335 | - added pathes (patch1,2) from RH |
---|
336 | |
---|
337 | * Sat Aug 25 2001 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 12vl1 |
---|
338 | - syncd rawhide |
---|
339 | - updated to 3.7.1-1.2.0 |
---|
340 | |
---|
341 | * Mon Jun 5 2000 Yasuyuki Furukawa <furukawa@vinelinux.org> |
---|
342 | - updated to 3.7.1 |
---|
343 | - updated gnuplot+ patch to 1.1.9 for gnuplot 3.7.1. |
---|
344 | - remake SPEC from rawhide. |
---|
345 | |
---|
346 | * Fri May 19 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
347 | - rebuild with new gd, changing gif terminal to jpeg terminal (release 7) |
---|
348 | |
---|
349 | * Mon May 08 2000 Preston Brown <pbrown@redhat.com> |
---|
350 | - build for 7.0 |
---|
351 | |
---|
352 | * Thu Apr 6 2000 Bill Nottingham <notting@redhat.com> |
---|
353 | - use gnu readline, not built-in version |
---|
354 | |
---|
355 | * Mon Apr 3 2000 Bill Nottingham <notting@redhat.com> |
---|
356 | - add latex tutorial, demo files, other docs (#10508) |
---|
357 | |
---|
358 | * Wed Mar 1 2000 Bill Nottingham <notting@redhat.com> |
---|
359 | - update to 3.7.1. Oops. |
---|
360 | |
---|
361 | * Thu Feb 3 2000 Bill Nottingham <notting@redhat.com> |
---|
362 | - handle compressed man pages |
---|
363 | |
---|
364 | * Thu Nov 4 1999 Bill Nottingham <notting@redhat.com> |
---|
365 | - update to 3.7.1 |
---|
366 | |
---|
367 | * Mon Oct 11 1999 Bill Nottingham <notting@redhat.com> |
---|
368 | - ship some docs. |
---|
369 | |
---|
370 | * Wed Aug 18 1999 Bill Nottingham <notting@redhat.com> |
---|
371 | - add a patch to fix postscript output from Bernd Kischnick |
---|
372 | (kisch@die-herrmanns.de) |
---|
373 | |
---|
374 | * Fri Jul 30 1999 Bill Nottingham <notting@redhat.com> |
---|
375 | - fix license |
---|
376 | |
---|
377 | * Thu Jul 15 1999 Bill Nottingham <notting@redhat.com> |
---|
378 | - rebuild without svgalib |
---|
379 | |
---|
380 | * Tue Jun 15 1999 Bill Nottingham <notting@redhat.com> |
---|
381 | - update to 3.7.0.1 |
---|
382 | |
---|
383 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
384 | - auto rebuild in the new build environment (release 2) |
---|
385 | |
---|
386 | * Tue Feb 2 1999 Jeff Johnson <jbj@redhat.com> |
---|
387 | - update to 3.7. |
---|
388 | |
---|
389 | * Thu Dec 17 1998 Michael Maher <mike@redhat.com> |
---|
390 | - built package for 6.0 |
---|
391 | |
---|
392 | * Fri Sep 11 1998 Jeff Johnson <jbj@redhat.com> |
---|
393 | - update to 2.6beta347 |
---|
394 | |
---|
395 | * Sat Aug 15 1998 Jeff Johnson <jbj@redhat.com> |
---|
396 | - build root |
---|
397 | |
---|
398 | * Thu May 07 1998 Prospector System <bugs@redhat.com> |
---|
399 | - translations modified for de, fr, tr |
---|
400 | |
---|
401 | * Mon Oct 20 1997 Donnie Barnes <djb@redhat.com> |
---|
402 | - spec file cleanups |
---|
403 | |
---|
404 | * Thu Jul 10 1997 Erik Troan <ewt@redhat.com> |
---|
405 | - built against glibc |
---|