source: projects/specs/trunk/g/gnuplot/gnuplot-vl.spec @ 12499

Revision 12499, 12.2 KB checked in by tomop, 3 years ago (diff)

updated 9 packages

LibRaw?-0.20.0-2

exiv2-0.27.3-1

firefox-78.3.0-1

gnuplot-5.4.0-2

lksctp-tools-1.0.18-1

libjpeg-turbo-2.0.5-1

libxml2-2.9.10-5

rust-1.46.0-1

unzip-6.0-8

Line 
1%global major 5
2%global minor 4
3%global patchlevel 0
4
5%global x11_app_defaults_dir %{_datadir}/X11/app-defaults
6
7Summary: A program for plotting mathematical expressions and data.
8Summary(ja):  数学系の関数やデータのプロット・プログラム
9Name: gnuplot
10Version: %{major}.%{minor}.%{patchlevel}
11Release: 2%{?_dist_release}
12Group: graphics,science
13Vendor: Project Vine
14Distribution: Vine Linux
15Packager: daisuke, inagaki, shaolin
16
17# MIT .. term/PostScript/aglfn.txt
18License: gnuplot and MIT
19URL: 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
23Source: %{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
29Patch3: gnuplot-4.6.1-plot-sigsegv.patch
30Patch4: gnuplot-4.6.4-singlethread.patch
31Patch5: gnuplot-5.0.0-lua_checkint.patch
32Patch6: gnuplot-5.4.0-no-lena.patch
33Patch7: gnuplot-5.2.2-doc.patch
34Patch8: gnuplot-5.2.8-cmd-opts.patch
35Patch9: gnuplot-config.patch
36
37# Vine Patches (replaces Patch1)
38Patch70: gnuplot-5.4.0-fonts.patch
39
40Patch1000: CVE-2020-25559.patch
41Patch1001: CVE-2020-25412.patch
42
43BuildRoot: %{_tmppath}/%{name}-root
44#libedit-devel can not handle utf8, readline-devel is not legal with gnuplot, stick to builtin
45BuildRequires: cairo-devel
46BuildRequires: gd-devel >= 2.0.27
47BuildRequires: giflib-devel
48BuildRequires: libX11-devel
49BuildRequires: libXt-devel
50BuildRequires: libXpm-devel
51BuildRequires: libjpeg-turbo-devel
52BuildRequires: libpng-devel
53BuildRequires: lua-devel
54BuildRequires: m17n-lib
55BuildRequires: pango-devel
56BuildRequires: wxGTK-devel
57BuildRequires: zlib-devel
58
59BuildRequires: texlive
60BuildRequires: texlive-collection-latexextra
61BuildRequires: texlive-collection-formatsextra
62BuildRequires: texlive-collection-langchinese
63BuildRequires: texlive-collection-langcjk
64BuildRequires: texlive-collection-langcyrillic
65BuildRequires: texlive-collection-langczechslovak
66BuildRequires: texlive-collection-langenglish
67BuildRequires: texlive-collection-langeuropean
68BuildRequires: texlive-collection-langfrench
69BuildRequires: texlive-collection-langgerman
70BuildRequires: texlive-collection-langgreek
71BuildRequires: texlive-collection-langitalian
72BuildRequires: texlive-collection-langjapanese
73BuildRequires: texlive-collection-langother
74BuildRequires: texlive-collection-langpolish
75BuildRequires: texlive-collection-langportuguese
76BuildRequires: texlive-collection-langspanish
77BuildRequires: texinfo
78BuildRequires: latex2html
79BuildRequires: emacs
80
81Requires: TrueType-dejavu
82Requires(post): install-info
83Requires(preun): install-info
84
85%description
86Gnuplot is a command-line driven, interactive function plotting
87program especially suited for scientific data representation.  Gnuplot
88can be used to plot functions and data points in both two and three
89dimensions and in many different formats.
90
91Install gnuplot if you need a graphics package for scientific data
92representation.
93
94%description -l ja
95Gnuplotはとりわけ科学データ・プレゼンテーションに適した、コマンド
96操作によるインタラクティブな関数プロット・プログラムです。
97Gnuplotは関数や座標データを同時にプロットしたり、3次元化やさまざ
98まな形式で表現するのに利用することができます。
99
100科学データプレゼンテーション用のグラフィック・パッケージが必要な
101場合、gnuplotをインストールしてください。
102
103
104%package doc
105Summary: Documentation for the gnuplot main application
106Group: documentation
107BuildArch: noarch
108Requires: %{name} = %{version}-%{release}
109
110%description doc
111The gnuplot-doc package contains the documentation related to gnuplot
112plotting tool
113
114
115%package latex
116Summary: Configuration for LaTeX typesetting using gnuplot
117Group: publishing
118BuildArch: noarch
119Requires: %{name} = %{version}-%{release}
120Requires: texlive-collection-latexextra
121Requires: texlive-collection-fontsrecommended
122
123%description latex
124The gnuplot-latex package contains LaTeX configuration file related to gnuplot
125plotting 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
142sed -i -e 's:"/usr/lib/X11/app-defaults":"%{x11_app_defaults_dir}":' src/gplt_x11.c
143chmod 644 src/getcolor.h
144chmod 644 demo/html/webify.pl
145chmod 644 demo/html/webify_svg.pl
146chmod 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
155rm -rf demo/plugin/*.so demo/plugin/*.o
156rm -rf docs_to_include
157mkdir -p docs_to_include
158cp -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
167make %{?_smp_mflags}
168
169make -C docs html info
170export GNUPLOT_PS_DIR=../../term/PostScript
171make -C docs/psdoc ps_symbols.ps ps_fontfile_doc.pdf
172rm -rf docs/htmldocs/images.idx
173
174
175%install
176rm -rf %{buildroot}
177make install DESTDIR=%{buildroot}
178make -C docs install-info DESTDIR=%{buildroot} INSTALL='install -p'
179make -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
183rm -f $RPM_BUILD_ROOT%{_infodir}/dir
184
185mkdir -p $RPM_BUILD_ROOT%{x11_app_defaults_dir}
186mv $RPM_BUILD_ROOT%{_datadir}/gnuplot/%{major}.%{minor}/app-defaults/Gnuplot $RPM_BUILD_ROOT%{x11_app_defaults_dir}/Gnuplot
187rm -rf $RPM_BUILD_ROOT%{_libdir}/
188
189mkdir -p $RPM_BUILD_ROOT/%{_mandir}/ja/man1
190install -p -m644 man/gnuplot-ja_JP.UTF-8 $RPM_BUILD_ROOT/%{_mandir}/ja/man1/gnuplot.1
191
192
193%clean
194rm -rf %{buildroot}
195
196
197%post
198if [ -f %{_infodir}/gnuplot.info* ]; then
199    /sbin/install-info %{_infodir}/gnuplot.info %{_infodir}/dir || :
200fi
201
202%preun
203if [ $1 = 0 ] ; then
204    if [ -f %{_infodir}/gnuplot.info* ]; then
205        /sbin/install-info --delete %{_infodir}/gnuplot.info %{_infodir}/dir || :
206    fi
207fi
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
Note: See TracBrowser for help on using the repository browser.