rubygems-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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.24
  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. Distribution: Vine Linux
  20. Vendor: Project Vine
  21. Packager: daisuke
  22. %description
  23. RubyGems is the name of the project that developed the gem packaging
  24. system and the gem command.
  25. * Easy Installation and removal of RubyGems packages and their
  26. dependents.
  27. * Management and control of local packages
  28. * Package dependency management
  29. * Query, search and list local and remote packages
  30. * Multiple version support for installed packages
  31. * Web-based interface to view the documentation for your installed
  32. gems
  33. * Easy to use interface for building gem packages
  34. * Simple server for distributing your own gem packages
  35. %description -l ja
  36. %prep
  37. %setup -q
  38. %patch1 -p1 -b .default-dir
  39. %install
  40. rm -rf ${RPM_BUILD_ROOT}
  41. GEM_HOME=${RPM_BUILD_ROOT}%{gemdir} \
  42. %{ruby} -I%{rlibdir} setup.rb install \
  43. --destdir=${RPM_BUILD_ROOT}%{rlibdir} \
  44. --no-rdoc --no-ri \
  45. --prefix=/
  46. # fix install path
  47. mkdir -p %{buildroot}%{_bindir}
  48. mv %{buildroot}%{rlibdir}/bin/gem %{buildroot}%{_bindir}/gem
  49. rmdir %{buildroot}%{rlibdir}/bin
  50. mv %{buildroot}%{rlibdir}/lib/* %{buildroot}%{rlibdir}/.
  51. mkdir -p $RPM_BUILD_ROOT%{gemdir}/{cache,gems,specifications,doc}
  52. %clean
  53. rm -rf ${RPM_BUILD_ROOT}
  54. rm -rf html
  55. %pre
  56. getent group rubygems >/dev/null || %{_sbindir}/groupadd rubygems
  57. %files
  58. %defattr(-, root, root)
  59. %doc GPL.txt LICENSE.txt
  60. %doc README* TODO
  61. %{rbindir}/*
  62. %{rlibdir}/*
  63. %defattr(664,root,rubygems,775)
  64. %{gemdir}
  65. %changelog
  66. * Sun Jun 30 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.8.24-1
  67. - update to 1.8.24
  68. * Mon Aug 29 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.8.10-1
  69. - update to 1.8.10
  70. * Thu May 12 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.8.1-1
  71. - update to 1.8.2
  72. - drop rdoc, ri
  73. * Tue Mar 22 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.6.2-1
  74. - new upstream release
  75. - s/BuildPreReq/BuildRequires
  76. - add R(pre): shadow-utils
  77. - update default dir patch (Patch1)
  78. - use getent in %%pre script
  79. - update License: tag
  80. * Thu Sep 16 2010 IWAI, Masaharu <iwai@alib.jp> 1.3.7-1
  81. - new upstream release
  82. - update default dir patch (Patch1)
  83. * Mon Dec 14 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.5-1
  84. - new upstream release
  85. * Sat Mar 7 2009 IWAI, Masaharu <iwai@alib.jp> 1.3.1-1
  86. - new upstream release
  87. - apply new versioning policy
  88. - spec in UTF-8
  89. - update URL
  90. - update default dir patch (Patch1)
  91. - drop fix shebang patch (Patch2)
  92. - drop postinst patch (Patch3)
  93. - add install dir patch (Patch4)
  94. - update %%install section
  95. - create rubygems group for %%{gemdir}
  96. * Mon Mar 19 2007 akira yamada <akira@vinelinux.org> 0.9.2-0vl1
  97. - initial packaging.