mod_ruby-vl.spec 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. %define docroot /var/www/html
  2. %define apxs2 /usr/bin/apxs
  3. %define apache2moddir %(%{apxs2} -q LIBEXECDIR)
  4. %define apache2confdir %(%{apxs2} -q SYSCONFDIR)
  5. %define apache2confmodruby httpd.conf.mod_ruby
  6. %define apache2ver 2.2.14
  7. Summary: A Ruby interpreter for the Apache Web server.
  8. Summary(ja): Apache2サーバ組み込みのRuby言語インタプリタ
  9. Name: mod_ruby
  10. Version: 1.3.0
  11. Release: 2%{?_dist_release}
  12. License: distributable
  13. Group: System Environment/Daemons
  14. Source0: http://www.modruby.net/archive/%{name}-%{version}.tar.gz
  15. Source100: httpd.conf.mod_ruby-apache2
  16. URL: http://www.modruby.net/
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. BuildRequires: ruby, ruby-devel
  19. BuildRequires: apache2, apache2-devel >= %{apache2ver}
  20. Requires: apache2 >= %{apache2ver}
  21. Requires: ruby >= 1.8
  22. Provides: mod_ruby-apache2 = %{version}-%{release}
  23. Obsoletes: mod_ruby-apache2 < 1.3.0
  24. Obsoletes: mod_ruby-common < 1.3.0
  25. %description
  26. mod_ruby embeds the Ruby interpreter into the Apache web server,
  27. allowing Ruby CGI scripts to be executed natively. These scripts
  28. will start up much faster than without mod_ruby.
  29. %description -l ja
  30. mod_rubyはApache2ウェブサーバにRubyインタプリタを組み込み、CGIスクリ
  31. プトがネイティブに起動されることを許します。スクリプトはmod_rubyを利
  32. 用しない場合よりも速く起動するでしょう。
  33. %prep
  34. %setup -q
  35. %build
  36. ruby configure.rb --with-apxs=%{apxs2} --with-apr-includes=/usr/include/apr-1
  37. make
  38. %install
  39. rm -rf ${RPM_BUILD_ROOT}
  40. mkdir -p ${RPM_BUILD_ROOT}%{apache2moddir}
  41. mkdir -p ${RPM_BUILD_ROOT}%{apache2confdir}
  42. make install DESTDIR=${RPM_BUILD_ROOT} \
  43. rubylibdir=${RPM_BUILD_ROOT}/%{ruby_vendorlibdir}
  44. sed -e 's|@@DOCROOT@@|%{docroot}|g' < %{SOURCE100} \
  45. > ${RPM_BUILD_ROOT}/%{apache2confdir}/%{apache2confmodruby}
  46. chmod 644 ${RPM_BUILD_ROOT}/%{apache2confdir}/%{apache2confmodruby}
  47. %clean
  48. rm -rf ${RPM_BUILD_ROOT}
  49. rm -f *.files
  50. %files
  51. %defattr(-, root, root)
  52. %doc README.en
  53. %doc README.ja
  54. %doc ChangeLog
  55. %doc examples/
  56. %config %{apache2confdir}/%{apache2confmodruby}
  57. %{_libdir}/apache2/*
  58. %{ruby_vendorlibdir}/auto-reload.rb
  59. %dir %{ruby_vendorlibdir}/apache
  60. %{ruby_vendorlibdir}/apache/*
  61. %changelog
  62. * Fri Oct 26 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.0-2
  63. - rebuild with ruby-1.9.3
  64. * Sun May 22 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.0-1
  65. - update to 1.3.0
  66. - drop apache1 support
  67. - merge mod_ruby-apache2 and common to main package
  68. * Mon Sep 22 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.2.6-1
  69. - new upstream release
  70. - add apache2/common subpackages
  71. * Wed Aug 27 2008 Shu KONNO <owa@bg.wakwak.com> 1.0.7-1vl5
  72. - applied new versioning policy, spec in utf-8
  73. * Mon Aug 27 2007 Shu KONNO <owa@bg.wakwak.com> 1.0.7-0vl2
  74. - s/Copyright/License/
  75. * Sat Feb 14 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.7-0vl1
  76. - new upstream release
  77. - rebuild on apache-1.3.29, ruby-1.8.1
  78. * Thu Aug 22 2002 Satoshi MACHINO <machino@vinelinux.org> 1.0.0-0vl1
  79. - new upstream version.
  80. * Thu May 30 2002 akira yamada <akira@vinelinux.org> 0.9.8-0vl2
  81. - updated URL of upstream sources.
  82. * Thu May 30 2002 akira yamada <akira@vinelinux.org> 0.9.8-0vl1
  83. - new upstream version.
  84. * Fri Mar 08 2002 akira yamada <akira@vinelinux.org> 0.9.7-0vl1
  85. - new upstream version.
  86. * Mon Feb 11 2002 akira yamada <akira@vinelinux.org> 0.9.6-0vl1
  87. - new upstream version.
  88. * Mon Oct 17 2001 akira yamada <akira@vinelinux.org> 0.9.4-0vl1
  89. - new upstream version.
  90. * Mon Oct 17 2001 akira yamada <akira@vinelinux.org> 0.9.3-0vl2
  91. - rebuild with apache-1.3.22. Requires: apache = 1.3.22.
  92. - added apache to BuildRequires. (apxs checks /usr/bin/httpd.)
  93. * Mon Sep 03 2001 akira yamada <akira@vinelinux.org> 0.9.3-0vl1
  94. - new upstream release.
  95. * Sat Aug 18 2001 akira yamada <akira@vinelinux.org>
  96. - 0.9.2-0vl1
  97. - new upstream version 0.9.2.
  98. * Wed Aug 08 2001 akira yamada <akira@vinelinux.org>
  99. - 0.9.1-0vl1
  100. - new upstream version 0.9.1.
  101. * Fri Jul 06 2001 akira yamada <akira@vinelinux.org>
  102. - new upstream version 0.9.0.
  103. * Thu Jul 03 2001 akira yamada <akira@vinelinux.org>
  104. - remove liberuby-dev from BuildRequires.
  105. * Thu Jun 28 2001 akira yamada <akira@vinelinux.org>
  106. - new upstream version 0.8.5.
  107. * Thu Jun 21 2001 akira yamada <akira@vinelinux.org>
  108. - new upstream version 0.8.4.
  109. * Mon Jun 06 2001 akira yamada <akira@vinelinux.org>
  110. - new upstream version 0.8.3.
  111. * Mon Jun 04 2001 akira yamada <akira@vinelinux.org>
  112. - new upstream version 0.8.2.
  113. * Thu May 23 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.0-0vl3
  114. - rebuild with papche-1.3.20
  115. * Thu Apr 13 2001 akira yamada <akira@vinelinux.org>
  116. - new upstream version 0.8.0.
  117. * Thu Mar 15 2001 akira yamada <akira@vinelinux.org>
  118. - rebuild with apache-1.3.19.
  119. * Fri Feb 09 2001 akira yamada <akira@vinelinux.org>
  120. - rebuild with apache-1.3.17.
  121. * Wed Dec 20 2000 akira yamada <akira@vinelinux.org>
  122. - Updated to new upstream version 0.2.2.
  123. * Sun Nov 05 2000 akira yamada <akira@vinelinux.org>
  124. - excute Makefile.RB with --apxs option, because normal user's PATH dose not
  125. include /usr/sbin.
  126. * Thu Oct 19 2000 akira yamada <akira@vinelinux.org>
  127. - Updated to new upstream version 0.2.1.
  128. - BuildPreReq: apache-devel, Requires: apache.
  129. - Build with apache 1.3.14.
  130. * Wed Oct 11 2000 akira yamada <akira@vinelinux.org>
  131. - Removed mod_ruby-0.2.0-egcs-2.91.66.patch, because fixed this probrem in
  132. ruby.
  133. * Thu Oct 03 2000 akira yamada <akira@vinelinux.org>
  134. - Added mod_ruby-0.2.0-egcs-2.91.66.patch to work around for segv.
  135. * Thu Oct 03 2000 akira yamada <akira@vinelinux.org>
  136. - Initial packaging.