eruby-vl.spec 5.4 KB

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