rbogl-vl.spec 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. %define ruby /usr/bin/ruby
  2. %define rarchdir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["archdir"]')
  3. %define name rbogl
  4. Summary: OpenGL Interface for ruby
  5. Summary(ja): OpenGLのRubyのための拡張モジュール
  6. Name: %{name}
  7. Version: 0.32g
  8. Release: 1%{?_dist_release}
  9. Source0: %{name}-%{version}.tar.gz
  10. Patch0: %{name}-vine.patch
  11. License: distributable
  12. Group: Development/Libraries
  13. URL: http://www2.giganet.net/~yoshi/
  14. Requires: ruby
  15. BuildRequires: mesa-libGL-devel
  16. BuildRequires: mesa-libGLU-devel
  17. BuildRequires: freeglut-devel
  18. BuildRequires: ruby
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. %description
  23. This is a module to use OpenGL+glut in ruby.
  24. %description -l ja
  25. このモジュールはrubyからOpenGL+glutを使用するためのモジュールです。
  26. %prep
  27. %setup -q -n opengl-%{version}
  28. %patch0 -p1
  29. %build
  30. ruby extconf.rb
  31. %__make
  32. %install
  33. rm -rf $RPM_BUILD_ROOT
  34. %makeinstall sitelibdir=${RPM_BUILD_ROOT}%{rlibdir}
  35. rm -rf sample/.svn
  36. %clean
  37. rm -rf $RPM_BUILD_ROOT
  38. %files
  39. %defattr(-,root,root)
  40. %doc COPYRIGHT ChangeLog README.EUC sample/
  41. %{rarchdir}/opengl.so
  42. %{rarchdir}/glut.so
  43. %changelog
  44. * Sun Nov 23 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.32g-1vl5
  45. - applied new versioning policy
  46. - spec in UTF-8
  47. - updated build dependency
  48. * Fri Aug 10 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.32g-0vl3
  49. - fix typo in spec file
  50. - changed Group to Development/Libraries
  51. * Wed May 31 2006 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 0.32g-0vl2
  52. - add patch to change path of ruby in sample script
  53. - remove directory of sample/.svn
  54. * Tue May 30 2006 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 0.23g-0vl1
  55. - source update
  56. * Sun Mar 20 2005 Seiya Nishizawa <seiya@kugi.kyoto-u.ac.jp> 0.23f-0vl1
  57. - initial build for Vine Linux