xgraph11-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. %define patchver "11.3.2-9vl5 August 2003"
  2. Summary: xgraph - 2D data plotting program (+ hack 9 + color PS + and so on.)
  3. Summary(ja): 2次元データプロッタ- (+ hack 9 + color PS + α)
  4. Name: xgraph11
  5. Version: 11.3.2
  6. Release: 9vl8
  7. Source: ftp:://shambhala.Berkeley.EDU/pub/xgraph-11.3.2.tar.gz
  8. Patch0: localhost:/xgraph-h9.diff
  9. Patch1: localhost:/xgraph-colorPS.diff
  10. Patch2: localhost:/xgraph-geometry.diff
  11. Patch3: localhost:/xgraph-ps-mark5.patch
  12. License: distributable
  13. Group: Applications/Engineering
  14. Buildroot: %{_tmppath}/%{name}-root
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. Conflicts: xgraph
  18. %description
  19. Xgraph is a 2D data plotting program.
  20. This package contains hack9, PSCOLOR, geometry bug fix,
  21. svga option patches.
  22. Install xgraph if you need a simple 2D scientific data
  23. viewer package.
  24. %description -l ja
  25. xgraph は科学技術分野に於いて伝統的に使われて来た2次元データ
  26. プロッターです。このパッケージでは多くのバグフィックスと性能向上
  27. (hack 9, geometry fix) と、機能拡張 (color PostScript) がなされています。
  28. 2次元のデータを手軽に視覚化したい場合は xgraph をインストールして下さい。
  29. %prep
  30. %setup -n xgraph-%{version}
  31. %patch0 -p1 -b .h9
  32. %patch1 -p1 -b .colorPS
  33. %patch2 -p1 -b .geo
  34. %patch3 -p1 -b .psMark5
  35. sed -e 's|#define VERSION_STRING "11.3.2 December 1989"|#define VERSION_STRING %{patchver}| g' xgraph.h > xgraph.h.tmp
  36. mv xgraph.h.tmp xgraph.h
  37. rm -rf $RPM_BUILD_ROOT
  38. mkdir -p $RPM_BUILD_ROOT/usr/X11R6
  39. if [ -d /usr/X11R6.1 ]; then
  40. ln -sf $RPM_BUILD_ROOT/usr/X11R6 $RPM_BUILD_ROOT/usr/X11R6.1
  41. fi
  42. if [ -d /usr/X11R6.3 ]; then
  43. ln -sf $RPM_BUILD_ROOT/usr/X11R6 $RPM_BUILD_ROOT/usr/X11R6.3
  44. fi
  45. mkdir -p $RPM_BUILD_ROOT/usr/X11R6/bin
  46. mkdir -p $RPM_BUILD_ROOT/usr/X11R6/man/man1
  47. %build
  48. xmkmf -a
  49. make all
  50. %install
  51. TOPDIR=$RPM_BUILD_ROOT/usr
  52. BINDIR=$TOPDIR/X11R6/bin
  53. MANDIR=$TOPDIR/X11R6/man/man1
  54. make TOP=$TOPDIR BINDIR=$BINDIR install
  55. make TOP=$TOPDIR MANDIR=$MANDIR install.man
  56. %clean
  57. rm -rf $RPM_BUILD_ROOT
  58. %post
  59. %preun
  60. %files
  61. %defattr(-,root,root)
  62. %doc README.* examples
  63. /usr/X11R6/bin/xgraph
  64. /usr/X11R6/man/man1/xgraph.1x*
  65. %changelog
  66. * Fri Jul 21 2006 KOBAYASHI Taizo <tkoba@vinelinux.org> 11.3.2-9vl8
  67. - rebuild
  68. * Thu Oct 28 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 11.3.2-9vl7
  69. - drop defined INTEGER_UNIT
  70. * Wed Mar 10 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 11.3.2-9vl6
  71. - rebuild
  72. * Wed Aug 14 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 11.3.2-9vl5
  73. - rename xgraph11
  74. * Fri Dec 13 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 11.3.2-9vl4
  75. - more fixed colorPS patch
  76. * Wed Feb 13 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org>
  77. - fixed colorPS patch
  78. - fixed Group: section (by sagami@mwc.biglobe.ne.jp [VineSeed:05647])
  79. - rebuild on XF86-4
  80. * Mon Jan 15 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org>
  81. - fixed mark5 ps output.
  82. * Sat Dec 08 2001 KOBAYASHI R. Taizo <tkoba@vinelinux.org>
  83. - applied
  84. hack9 : http://www.goice.co.jp/member/mo/hack-progs/xgraph.html
  85. color PS : http://zeus.c.oka-pu.ac.jp/~watanabe/Solaris/xgraph.html
  86. geometry fix : http://www.imc.im.hiroshima-cu.ac.jp/~sakapon/prog/
  87. svga, colorPS option
  88. - first release