ruby-amstd-vl.spec 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. %define oname amstd
  2. %define ruby /usr/bin/ruby
  3. %define rbindir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["bindir"]')
  4. %define rlibdir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
  5. %define rarchdir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["archdir"]')
  6. Summary: Aoki Minero's STandarD library
  7. Name: ruby-%{oname}
  8. Version: 2.0.0
  9. Release: 0vl3
  10. Copyright: LGPL
  11. Group: Development/Libraries
  12. Source: http://www.loveruby.net/archive/amstd/%{oname}-%{version}.tar.gz
  13. URL: http://www.loveruby.net/ja/prog/%{oname}.html
  14. Prefix: /usr
  15. BuildArch: noarch
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. BuildRequires: ruby, ruby-devel >= 1.8.0
  18. Requires: libruby >= 1.8.0
  19. Summary(ja): あおきみねろう氏によるRuby用ユーティリティコレクション
  20. %description
  21. Aoki Minero's STandarD library. This library includes some useful
  22. library.
  23. %description -l ja
  24. あおきみねろう氏によるユーティリティコレクションamstdです。
  25. %prep
  26. %setup -q -c
  27. %build
  28. cd %{oname}-%{version}
  29. ruby install.rb config \
  30. --bin-dir=${RPM_BUILD_ROOT}%{rbindir} \
  31. --rb-dir=${RPM_BUILD_ROOT}%{rlibdir} \
  32. --so-dir=${RPM_BUILD_ROOT}%{rarchdir}
  33. ruby install.rb setup
  34. cd ..
  35. %install
  36. rm -rf ${RPM_BUILD_ROOT}
  37. mkdir -p ${RPM_BUILD_ROOT}%{rbindir}
  38. mkdir -p ${RPM_BUILD_ROOT}%{rlibdir}
  39. mkdir -p ${RPM_BUILD_ROOT}%{rarchdir}
  40. # installing binaries ...
  41. cd %{oname}-%{version}
  42. ruby install.rb install
  43. cd ..
  44. # listing all files in %{oname}-all.files
  45. (find \
  46. $RPM_BUILD_ROOT%{rbindir} \
  47. $RPM_BUILD_ROOT%{rlibdir} \
  48. $RPM_BUILD_ROOT%{rarchdir} \
  49. -type f -o -type l) |
  50. sort | uniq | \
  51. sed -e "s,^$RPM_BUILD_ROOT,," \
  52. -e "s,\(/man/man./.*\)$,\1*," \
  53. > %{oname}-all.files
  54. %clean
  55. rm -rf ${RPM_BUILD_ROOT}
  56. rm -f *.files
  57. #%post -p /sbin/ldconfig -n ruby-%{oname}
  58. #%postun -p /sbin/ldconfig -n ruby-%{oname}
  59. %files -f %{oname}-all.files
  60. %defattr(-, root, root)
  61. %doc %{oname}-%{version}/README.en
  62. %doc %{oname}-%{version}/README.ja
  63. %doc %{oname}-%{version}/manual.rd.ja
  64. %changelog
  65. * Mon Oct 06 2003 akira yamada <akira@vinelinux.org> 2.0.0-0vl3
  66. - build with ruby-1.8.0.
  67. * Thu May 22 2003 IWAI Masaharu <iwai@alib.jp> 2.0.0-0vl2
  68. - rebuild
  69. * Fri Mar 08 2002 akira yamada <akira@vinelinux.org> 2.0.0-0vl1
  70. - new upstream version.
  71. - update location of source and homepage.
  72. * Thu Jul 26 2001 akira yamada <akira@vinelinux.org> 1.9.6-0vl2
  73. - Rebuild with ruby-devel-1.6.4-0vl3.
  74. * Thu Mar 15 2001 akira yamada <akira@vinelinux.org> 1.9.6-0vl1
  75. - Initial packaging.