plotutils-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. %define pkg_name plotutils
  2. %define pkg_version 2.6
  3. %define pkg_release 1%{?_dist_release}
  4. Summary: Plotting utilities and library for 2D-graphics
  5. Summary(ja): 2Dグラフィックスのプロッティングと作業のためのパッケージ
  6. Name: %{pkg_name}
  7. Version: %{pkg_version}
  8. Release: %{pkg_release}
  9. License: GPLv3
  10. Group: Applications/Graphics
  11. URL: http://www.gnu.org/software/plotutils/
  12. Source0: http://ftp.jaist.ac.jp/pub/GNU/%{name}/%{name}-%{version}.tar.gz
  13. # patches from Debian package
  14. Patch1: 01_AC_PROG_CXX.diff
  15. Patch2: 10_repair_postscript
  16. Patch3: 20_svg_attribute_syntax
  17. Patch4: 21_plot2svg_test.diff
  18. Patch5: 25_libpng15
  19. Patch6: 30_hershey_glyphs
  20. Patch7: 35_spline.test.error.diff
  21. Buildroot: %{_tmppath}/%{name}-%{version}-root
  22. BuildRequires: libXaw-devel
  23. BuildRequires: libXt-devel
  24. BuildRequires: libpng-devel
  25. BuildRequires: libsvg-devel
  26. Requires: libpng
  27. Requires: libsvg
  28. Vendor: Project Vine
  29. Distribution: Vine Linux
  30. %description
  31. The GNU plotutils package contains software for both programmers and
  32. technical users. Its centerpiece is libplot, a powerful C/C++ function
  33. library for exporting 2-D vector graphics in many file formats, both
  34. vector and bitmap. On the X Window System, it can also do 2-D vector
  35. graphics animations.
  36. libplot is device-independent, in the sense that its API
  37. (application programming interface) does not depend on the type of
  38. graphics file to be exported. A Postscript-like API is used both for
  39. file export and for graphics animations. A libplot programmer needs to
  40. learn only one API: not the details of many graphics file formats.
  41. The package also contains command-line programs for plotting scientific
  42. data, such as GNU graph for XY plotting. Many of them use libplot to
  43. export graphics. So, they can export graphics in any of libplot's
  44. supported formats, such as
  45. - SVG (Scalable Vector Graphics format), the XML-based format for Web
  46. graphics, which is standardized by the W3 Consortium.
  47. - PNG, the open format for bitmap graphics. (Whenever a bitmap output
  48. format is being generated, libplot converts Postscript-style paths to
  49. bitmaps.)
  50. - The format used by the free xfig drawing editor. (Edit a 2-D drawing
  51. with a mouse, after generating it programmatically!)
  52. - Postscript itself.
  53. #'
  54. %description -l ja
  55. GNU Plotutilsは2Dグラフィックスのプロッティングと作業のためのパッケージです。
  56. さまざまなファイル・フォーマットの2Dベクタ・グラフィックスにエクスポートする
  57. ためのCあるいはC++のライブラリlibplotを含みます。2Dベクタ・グラフィックスの
  58. アニメーションもサポートします。科学データのプロッティングのためのコマンド
  59. ライン・プログラムも含みます。
  60. %package devel
  61. Summary: Header files for plotutils
  62. Group: Development/Libraries
  63. Requires: plotutils = %{version}-%{release}
  64. %description devel
  65. Header files for plotutils.
  66. %prep
  67. %{__rm} -rf ${RPM_BUILD_ROOT}
  68. %setup -q
  69. %patch1 -p1
  70. %patch2 -p1
  71. %patch3 -p1
  72. %patch4 -p1
  73. %patch5 -p1
  74. %patch6 -p1
  75. %patch7 -p1
  76. %build
  77. %{configure} \
  78. --disable-static \
  79. --enable-libplotter \
  80. --enable-libxmi
  81. %{__make} %{?_smp_mflags}
  82. %check
  83. %{__make} check
  84. %install
  85. %{make_install}
  86. %{__rm} ${RPM_BUILD_ROOT}%{_libdir}/*.la
  87. %{__rm} ${RPM_BUILD_ROOT}%{_infodir}/dir
  88. %clean
  89. %{__rm} -rf ${RPM_BUILD_ROOT}
  90. %post
  91. /sbin/install-info %{_infodir}/plotutils.info.gz \
  92. %{_infodir}/dir 2>/dev/null
  93. %{_syssbindir}/ldconfig
  94. %preun
  95. if [ $1 = 0 ]; then
  96. /sbin/install-info --delete %{_infodir}/plotutils.info.gz \
  97. %{_infodir}/dir 2>/dev/null
  98. fi
  99. %postun -p %{_syssbindir}/ldconfig
  100. %files
  101. %defattr(-,root,root)
  102. %doc AUTHORS COPYING ChangeLog KNOWN_BUGS NEWS ONEWS
  103. %doc PROBLEMS README THANKS TODO
  104. %{_bindir}/
  105. %{_libdir}/lib*.so.*
  106. %{_datadir}/libplot
  107. %{_datadir}/ode
  108. %{_datadir}/pic2plot
  109. %{_datadir}/tek2plot
  110. %{_infodir}/
  111. %{_mandir}/man1/
  112. %files devel
  113. %defattr(-,root,root)
  114. %{_includedir}/
  115. %{_libdir}/lib*.so
  116. %changelog
  117. * Sun Oct 15 2017 Toshiaki Ara <ara_t@384.jp> 2.6-1
  118. - new package