eruby-vl.spec 4.9 KB

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