eruby-vl.spec 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. %define rbindir %(ruby -r rbconfig -e 'print Config::CONFIG["bindir"]')
  2. %define rlibdir %(ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
  3. %define rarchdir %(ruby -r rbconfig -e 'print Config::CONFIG["archdir"]')
  4. %define rdatadir %(ruby -r rbconfig -e 'print Config::CONFIG["datadir"]')
  5. %define libdir %(ruby -r rbconfig -e 'print Config::CONFIG["libdir"]')
  6. %define incdir %(ruby -r rbconfig -e 'print Config::CONFIG["includedir"]')
  7. %define mandir %(ruby -r rbconfig -e 'print Config::CONFIG["mandir"]')
  8. Summary: An interpreter of embedded Ruby language
  9. Summary(ja): テキスト埋め込みの Ruby 言語インタプリタ
  10. Name: eruby
  11. Version: 1.0.5
  12. Release: 1%{?_dist_release}
  13. License: distributable
  14. Group: Development/Languages
  15. Source0: http://www.modruby.net/archive/%{name}-%{version}.tar.gz
  16. URL: http://www.modruby.net/
  17. Prefix: /usr
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. BuildRequires: ruby, ruby-devel >= 1.8.0
  20. Requires: libruby >= 1.8.0, liberuby = %{version}
  21. %description
  22. eRuby interprets a Ruby code embedded text file. For example, eRuby
  23. enables you to embed a Ruby code to a HTML file.
  24. %description -l ja
  25. eRubyはRubyのコードが埋めこまれたテキストファイルを解釈実行します.た
  26. とえば,eRubyを使えば,HTMLにRubyのコードをHTMLファイルに埋めこむこと
  27. ができます.
  28. %package -n liberuby
  29. Summary: Library for eruby
  30. Summary(ja): eruby 用ライブラリ
  31. Group: System Environment/Libraries
  32. Requires: libruby >= 1.8.0
  33. %description -n liberuby
  34. This package includes library for eruby.
  35. %description -n liberuby -l ja
  36. eruby に必要なライブラリです。
  37. %package -n liberuby-devel
  38. Summary: A eRuby development environment.
  39. Summary(ja): eRuby 開発環境
  40. Group: Development/Libraries
  41. Requires: liberuby = %{version}
  42. Obsoletes: eruby-devel
  43. %description -n liberuby-devel
  44. Header files and libraries for an application embedded ERuby.
  45. %description -n liberuby-devel -l ja
  46. ERubyを組み込んだアプリケーションを作るために必要となるへッダファイルや
  47. ライブラリです.
  48. %prep
  49. %setup -q -c
  50. %build
  51. cd %{name}-%{version}
  52. ruby configure.rb --enable-shared
  53. make
  54. cd ..
  55. %install
  56. rm -rf ${RPM_BUILD_ROOT}
  57. mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
  58. mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
  59. mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
  60. mkdir -p ${RPM_BUILD_ROOT}%{_includedir}
  61. # installing binaries ...
  62. cd %{name}-%{version}
  63. make install prefix=${RPM_BUILD_ROOT}%{prefix} \
  64. libdir=${RPM_BUILD_ROOT}%{_libdir} \
  65. mandir=${RPM_BUILD_ROOT}%{_mandir}
  66. cd ..
  67. %clean
  68. rm -rf ${RPM_BUILD_ROOT}
  69. %post -p /sbin/ldconfig -n liberuby
  70. %postun -p /sbin/ldconfig -n liberuby
  71. %files -n eruby
  72. %defattr(-, root, root)
  73. %{rbindir}/%{name}
  74. %{mandir}/man1/%{name}.1*
  75. %doc %{name}-%{version}/README.en
  76. %doc %{name}-%{version}/README.ja
  77. %doc %{name}-%{version}/ChangeLog
  78. %doc %{name}-%{version}/examples
  79. %files -n liberuby
  80. %defattr(-, root, root)
  81. %{libdir}/lib%{name}.so.*
  82. %{rarchdir}/%{name}*
  83. %files -n liberuby-devel
  84. %defattr(-, root, root)
  85. %{libdir}/lib%{name}.so
  86. %{libdir}/lib%{name}.a
  87. %{incdir}/%{name}*.h
  88. %changelog
  89. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.5-1vl5
  90. - applied new versioning policy, spec in utf-8
  91. * Mon Sep 18 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.5-0vl3
  92. - changed liberuby Group to System Environment/Libraries
  93. - changed liberuby-devel Group to Development/Libraries
  94. * Sat Jul 29 2006 NAKAMURA Kenta <kenta@vinelinux.org> 1.0.5-0vl2
  95. - s/Copyright/License/
  96. - added "libdir=${RPM_BUILD_ROOT}%{_libdir}" to make install option
  97. * Tue Dec 30 2003 akira yamada <akira@vinelinux.org> 1.0.5-0vl1
  98. - new upstream version.
  99. * Mon Oct 06 2003 akira yamada <akira@vinelinux.org> 1.0.4-0vl1
  100. - new upstream version.
  101. - build with ruby-1.8.0.
  102. * Mon Jul 21 2003 IWAI Masaharu <iwai@alib.jp> 1.0.3-0vl1
  103. - new upstream version.
  104. * Thu May 30 2002 akira yamada <akira@vinelinux.org> 0.9.8-0vl2
  105. - updated URL of upstream sources.
  106. * Thu May 30 2002 akira yamada <akira@vinelinux.org> 0.9.8-0vl1
  107. - new upstream version.
  108. * Wed Aug 08 2001 akira yamada <akira@vinelinux.org> 0.9.7-0vl1
  109. - new upstream version.
  110. * Wed Aug 08 2001 akira yamada <akira@vinelinux.org>
  111. - 0.9.6-0vl1
  112. - new upstream version 0.9.6.
  113. * Thu Jul 26 2001 akira yamada <akira@vinelinux.org>
  114. - rebuild with ruby-devel-1.6.4-0vl3.
  115. * Mon Jun 25 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  116. - 0.9.5-0vl2
  117. - added "Obsoletes: eruby-devel" for liberuby-devel
  118. * Thu Jun 21 2001 akira yamada <akira@vinelinux.org>
  119. - Updated to upstream version 0.9.5.
  120. - eruby -> eruby + liberuby
  121. - eruby-devel -> liberuby-devel
  122. * Mon Jun 07 2001 akira yamada <akira@vinelinux.org>
  123. - Updated to upstream version 0.9.4.
  124. * Mon Jun 04 2001 akira yamada <akira@vinelinux.org>
  125. - Updated to upstream version 0.9.3.
  126. * Thu Oct 19 2000 akira yamada <akira@vinelinux.org>
  127. - Updated to upstream version 0.1.2.
  128. * Thu Sep 27 2000 akira yamada <akira@vinelinux.org>
  129. - Updated to upstream version 0.1.1
  130. - New binary package: eruby-devel
  131. - Removed eruby.c.O_EXCL.patch (fixed at 0.1.1)
  132. * Tue Aug 29 2000 akira yamada <akira@vinelinux.org>
  133. - Updated to upstream version 0.0.9
  134. - Added eruby.c.O_EXCL.patch
  135. * Tue Jun 22 2000 akira yamada <akira@redhat.com>
  136. - Initial packaging.