rubygem-rake-vl.spec 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. %global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
  2. %global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
  3. %global gemname rake
  4. %global geminstdir %{gemdir}/gems/%{gemname}-%{version}
  5. %global rubyabi 1.8
  6. Summary: Ruby based make-like utility
  7. Summary(ja): Ruby ベースの make のようなユーティリティ
  8. Name: rubygem-%{gemname}
  9. Version: 0.8.7
  10. Release: 1%{?_dist_release}
  11. Group: Development/Languages
  12. License: MIT
  13. URL: http://rake.rubyforge.org
  14. Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
  15. Requires: ruby
  16. BuildRequires: rubygems
  17. BuildRequires: ruby
  18. BuildArch: noarch
  19. %description
  20. Rake is a Make-like program implemented in Ruby. Tasks and dependencies are
  21. specified in standard Ruby syntax.
  22. %package doc
  23. Summary: Documentation for %{name}
  24. Group: Documentation
  25. # Directory ownership issue
  26. Requires: %{name} = %{version}-%{release}
  27. %description doc
  28. This package contains documentation for %{name}.
  29. %prep
  30. %setup -q -c -T
  31. %build
  32. mkdir -p .%{gemdir}
  33. gem install -V \
  34. --local \
  35. --install-dir $(pwd)/%{gemdir} \
  36. --force \
  37. --rdoc \
  38. %{SOURCE0}
  39. %install
  40. mkdir -p %{buildroot}%{gemdir}
  41. cp -a .%{gemdir}/* %{buildroot}%{gemdir}
  42. mkdir -p %{buildroot}%{_bindir}
  43. ln -sf %{gemdir}/bin/rake %{buildroot}/%{_bindir}/rake
  44. # rpmlint issue
  45. find %{buildroot}%{geminstdir}/{lib,test} -type f | \
  46. xargs sed -i -e '\@^#!/usr.*ruby@d'
  47. find %{buildroot}%{geminstdir}/{doc,lib,test} -type f | xargs chmod 0644
  48. %files
  49. %defattr(-,root,root,-)
  50. %{_bindir}/rake
  51. %dir %{geminstdir}
  52. %doc %{geminstdir}/MIT-LICENSE
  53. %doc %{geminstdir}/TODO
  54. %doc %{geminstdir}/CHANGES
  55. %{gemdir}/bin
  56. %{geminstdir}/bin
  57. %{geminstdir}/lib
  58. %{gemdir}/cache/%{gemname}-%{version}.gem
  59. %{gemdir}/specifications/%{gemname}-%{version}.gemspec
  60. %files doc
  61. %defattr(-,root,root,-)
  62. %{geminstdir}/Rakefile
  63. %{geminstdir}/install.rb
  64. %{geminstdir}/doc
  65. %{geminstdir}/test/
  66. %{gemdir}/doc/%{gemname}-%{version}/
  67. %changelog
  68. * Thu May 12 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.7-1
  69. - initial build for Vine Linux