eruby-vl.spec 5.2 KB

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