rubygems-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. %define ruby /usr/bin/ruby
  2. %define rdoc /usr/bin/rdoc
  3. %define gemdir %{_localstatedir}/lib/gems/%(%{ruby} -r rbconfig -e 'print File.basename(Config::CONFIG["rubylibdir"])')
  4. Summary: packaging system for Ruby application or library
  5. Summary(ja): Rubyアプリケーションやライブラリのためのパッケージシステム
  6. Name: rubygems
  7. Version: 1.8.10
  8. Release: 1%{?_dist_release}
  9. License: Ruby or GPLv2
  10. Group: Development/Tools
  11. Source0: rubygems-%{version}.tgz
  12. Patch1: rubygems-1.8.1-default-dir.patch
  13. URL: http://www.rubygems.org/
  14. BuildArch: noarch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: ruby ruby-devel rdoc
  17. Requires: ruby ruby-devel rdoc
  18. Requires(pre): shadow-utils
  19. %description
  20. RubyGems is the name of the project that developed the gem packaging
  21. system and the gem command.
  22. * Easy Installation and removal of RubyGems packages and their
  23. dependents.
  24. * Management and control of local packages
  25. * Package dependency management
  26. * Query, search and list local and remote packages
  27. * Multiple version support for installed packages
  28. * Web-based interface to view the documentation for your installed
  29. gems
  30. * Easy to use interface for building gem packages
  31. * Simple server for distributing your own gem packages
  32. %description -l ja
  33. %prep
  34. %setup -q
  35. %patch1 -p1 -b .default-dir
  36. %install
  37. rm -rf ${RPM_BUILD_ROOT}
  38. GEM_HOME=${RPM_BUILD_ROOT}%{gemdir} \
  39. %{ruby} -I%{rlibdir} setup.rb install \
  40. --destdir=${RPM_BUILD_ROOT}%{rlibdir} \
  41. --no-rdoc --no-ri \
  42. --prefix=/
  43. # fix install path
  44. mkdir -p %{buildroot}%{_bindir}
  45. mv %{buildroot}%{rlibdir}/bin/gem %{buildroot}%{_bindir}/gem
  46. rmdir %{buildroot}%{rlibdir}/bin
  47. mv %{buildroot}%{rlibdir}/lib/* %{buildroot}%{rlibdir}/.
  48. mkdir -p $RPM_BUILD_ROOT%{gemdir}/{cache,gems,specifications,doc}
  49. %clean
  50. rm -rf ${RPM_BUILD_ROOT}
  51. rm -rf html
  52. %pre
  53. getent group rubygems >/dev/null || %{_sbindir}/groupadd rubygems
  54. %files
  55. %defattr(-, root, root)
  56. %doc GPL.txt LICENSE.txt
  57. %doc README* TODO
  58. %{rbindir}/*
  59. %{rlibdir}/*
  60. %defattr(664,root,rubygems,775)
  61. %{gemdir}
  62. %changelog
  63. * Mon Aug 29 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.8.10-1
  64. - update to 1.8.10
  65. * Thu May 12 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.8.1-1
  66. - update to 1.8.2
  67. - drop rdoc, ri
  68. * Tue Mar 22 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.6.2-1
  69. - new upstream release
  70. - s/BuildPreReq/BuildRequires
  71. - add R(pre): shadow-utils
  72. - update default dir patch (Patch1)
  73. - use getent in %%pre script
  74. - update License: tag
  75. * Thu Sep 16 2010 IWAI, Masaharu <iwai@alib.jp> 1.3.7-1
  76. - new upstream release
  77. - update default dir patch (Patch1)
  78. * Mon Dec 14 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.5-1
  79. - new upstream release
  80. * Sat Mar 7 2009 IWAI, Masaharu <iwai@alib.jp> 1.3.1-1
  81. - new upstream release
  82. - apply new versioning policy
  83. - spec in UTF-8
  84. - update URL
  85. - update default dir patch (Patch1)
  86. - drop fix shebang patch (Patch2)
  87. - drop postinst patch (Patch3)
  88. - add install dir patch (Patch4)
  89. - update %%install section
  90. - create rubygems group for %%{gemdir}
  91. * Mon Mar 19 2007 akira yamada <akira@vinelinux.org> 0.9.2-0vl1
  92. - initial packaging.