gnuplot-vl.spec 12 KB

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