ruby-narray-vl.spec 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. %define ruby /usr/bin/ruby
  2. %define rlibdir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
  3. %define rarchdir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["archdir"]')
  4. Name: ruby-narray
  5. Version: 0.5.9p6
  6. Release: 1%{?_dist_release}
  7. License: distributable
  8. Source0: http://rubyforge.org/frs/download.php/46303/narray-%{version}.tar.gz
  9. URL: http://narray.rubyforge.org/index.html.ja
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: ruby, ruby-devel, fftw-devel
  12. Requires: ruby >= 1.6.6, fftw
  13. Group: Development/Libraries
  14. Summary: NArray is a class of Numerical N-dimensional Array for ruby.
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. %description
  18. NArray is a class of Numerical N-dimensional Array, whose elements are 1/2/4-byte Integer, single/double-prec Real/Complex, and Ruby Object.
  19. This extension library incorporates fast calculation and easy manipulation of large numerical arrays into the Ruby language.
  20. NArray has features similar to NumPy, but NArray has vector and matrix subclasses.
  21. %prep
  22. %setup -q -n narray-%{version}
  23. %build
  24. ruby extconf.rb
  25. make
  26. %install
  27. rm -rf $RPM_BUILD_ROOT
  28. make DESTDIR=$RPM_BUILD_ROOT hdrdir=%{rarchdir} RUBYLIBDIR=$RPM_BUILD_ROOT%{rlibdir} RUBYARCHDIR=$RPM_BUILD_ROOT%{rarchdir} install
  29. %__cp narray.h narray_config.h $RPM_BUILD_ROOT%{rarchdir}
  30. %clean
  31. rm -rf $RPM_BUILD_ROOT
  32. %files
  33. %defattr(-,root,root)
  34. %doc ChangeLog MANIFEST README.en README.ja SPEC.en SPEC.ja depend
  35. %doc test/ bench/
  36. %{rlibdir}/narray_ext.rb
  37. %{rlibdir}/nmatrix.rb
  38. %{rarchdir}/narray.so
  39. %{rarchdir}/narray.h
  40. %{rarchdir}/narray_config.h
  41. %changelog
  42. * Sun Nov 16 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.5.9p6-1
  43. - new upstream release, updated URL
  44. - appled new versining policy
  45. - changed Group to Development/Libraries
  46. * Fri May 25 2007 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 0.5.9-0vl1
  47. - source version up
  48. * Wed Aug 24 2005 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 0.5.8-0vl1
  49. - source version up
  50. * Mon Feb 28 2005 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 0.5.7-0vl1
  51. - source version up
  52. * Wed May 03 2004 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 0.5.7-0vl2
  53. - source version up
  54. - compile with fftw
  55. - del ruby-devel from Require
  56. - add ruby-devel to BuildRequire
  57. * Sat Nov 08 2003 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 0.5.7-0vl2
  58. - compile for ruby-1.8.0
  59. * Mon Mar 24 2003 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 0.5.7-0vl1
  60. - source version up
  61. * Mon Jun 24 2002 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 0.5.6p2-0vl0
  62. - First package.