rb-gsl-vl.spec 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. Summary: ruby interface to the GNU Science Library
  5. Name: rb-gsl
  6. Version: 1.10.3
  7. Release: 1%{?_dist_release}
  8. License: GPLv2
  9. Group: Development/Libraries
  10. Source0: http://rubyforge.org/frs/download.php/28909/%{name}-%{version}.tar.gz
  11. Patch0: rb-gsl-1.10.3-shell.patch
  12. URL: http://rb-gsl.rubyforge.org/
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: ruby-devel, gsl-devel, ruby-narray
  15. Requires: ruby-narray
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. %description
  19. The Ruby/GSL provides a ruby interface to the GSL (GNU Scientific Library) for
  20. numerical computation with ((<Ruby|URL:http://www.ruby-lang.org/en/>)). This requires
  21. the GSL library, which is found on the development website
  22. ((<URL:http://sources.redhat.com/gsl/>)).
  23. %prep
  24. %setup -q
  25. %patch0 -p1
  26. %build
  27. ruby setup.rb config --siterubyver=%{rlibdir} --sodir=%{rarchdir} -- --with-narray-include=%{rarchdir}
  28. ruby setup.rb setup
  29. %install
  30. rm -rf $RPM_BUILD_ROOT
  31. %ruby setup.rb install --prefix=${RPM_BUILD_ROOT}
  32. %clean
  33. rm -rf ${RPM_BUILD_ROOT}
  34. %files
  35. %defattr(-,root,root)
  36. %doc AUTHORS COPYING ChangeLog README THANKS VERSION
  37. %doc examples/ html/ rd/ tests/
  38. %{rlibdir}/*
  39. #{rarchdir}/rb_gsl.so
  40. %changelog
  41. * Sun Nov 16 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.10.3-1
  42. - new upstream release, updated URL
  43. - added Patch0 for typo fix
  44. - applied new versioning policy
  45. - fixed License to GPLv2
  46. - built with gsl-1.11
  47. * Sun Aug 5 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.9.0-0vl2
  48. - rebuilt with gsl-1.9
  49. * Thu May 31 2007 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 1.9.0-0vl1
  50. - new upstream release
  51. * Mon Feb 28 2005 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 1.6.1-0vl1
  52. - new upstream release
  53. * Mon Jan 24 2005 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 1.6.0-0vl2
  54. - add oper.rb to install files
  55. - change setup.rb config option
  56. - change to use setup.rb for install
  57. * Mon Jan 24 2005 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 1.6.0-0vl1
  58. - new upstream release
  59. * Wed Jun 23 2004 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 0.4.3-0vl1
  60. - new upstream release
  61. * Mon Apr 26 2004 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 0.3.11-0vl1
  62. - new upstream release
  63. * Wed Apr 14 2004 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 0.3.8-0vl1
  64. - new upstream release
  65. * Thu Apr 12 2004 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 0.3.7-0vl1
  66. - first package