Hello community, here is the log from the commit of package rubygems checked in at Fri Nov 28 15:59:39 CET 2008. -------- --- rubygems/rubygems.changes 2008-09-29 17:01:38.000000000 +0200 +++ rubygems/rubygems.changes 2008-11-28 12:20:00.425526000 +0100 @@ -1,0 +2,74 @@ +Wed Nov 26 12:40:00 CET 2008 - mrueckert@suse.de + +- added rubygems macros file for rpm with 2 macros for easier gem + packaging %gem_install and %gem_cleanup. + %gem_install calls gem install with the correct parameters. + %gem_cleanup will delete makefiles and intermediate build files + like object files. + +------------------------------------------------------------------- +Fri Nov 21 21:27:25 CET 2008 - mrueckert@suse.de + +- update to rubyems 1.3.1 + * Disregard ownership of ~ under Windows while creating ~/.gem. + Fixes issues related to no uid support under Windows. + * Fix requires for Gem::inflate, Gem::deflate, etc. + * Make Gem.dir respect :gemhome value from config. (Note: this + feature may be removed since it is hard to implement on 1.9.) + * Silence PATH warning. + Deprecation Notices: + * Gem::manage_gems will be removed on or after March 2009. +- additional changes from rubyems 1.3.0 + * RubyGems doesn't print LOCAL/REMOTE titles for `gem query` and + friends if stdout is not a TTY, except with --both. + * Added Gem.find_files, allows a gem to discover features + provided by other gems. + * RubyGems now installs gems into ~/.gem if GEM_HOME is not + writable. Use --no-user-install command-line switch to disable + this behavior. + * Fetching specs for update now uses If-Modified-Since requests. + * RubyGems now updates the ri cache when the rdoc gem is + installed and documentation is generated. + * RubyGems now uses the regexp we already have for `gem list + --installed`. Bug #20876 by Nick Hoffman. + * Platform is now forced to Gem::Platform::RUBY when nil or blank + in the indexer. Fixes various uninstallable gems. + * Fix HTTPS support. Patch #21072 by Alex Arnell. + * RubyGems checks for support of development dependencies for + #to_ruby. Bug #20778 by Evan Weaver. + * Now specifications from the future can be loaded. + * `gem lock --strict` works again. Patch #21814 by Sven + Engelhardt. + * `gem help install` now describes _version_ argument to + executable stubs + * `gem help environment` describes environment variables and + ~/.gemrc and /etc/gemrc + * On-disk gemspecs are now read in UTF-8 and written with a UTF-8 + magic comment + * lib/rubygems/remote_fetcher.rb + - Now uses ~/.gem/cache if the cache dir in GEM_HOME is not + writable. +- additional changes from 1.2.0 + * RubyGems no longer performs bulk updates and instead only + fetches the gemspec files it needs. Alternate sources will + need to upgrade to RubyGems 1.2 to allow RubyGems to take + advantage of the new metadata updater. If a pre 1.2 remote + source is in the sources list, RubyGems will revert to the bulk + update code for compatibility. + * RubyGems now has runtime and development dependency types. Use + #add_development_dependency and #add_runtime_dependency. All + typeless dependencies are considered to be runtime + dependencies. + * RubyGems will now require rubygems/defaults/operating_system.rb + and rubygems/defaults/#{RBX_ENGINE}.rb if they exist. This + allows packagers and ruby implementers to add custom behavior + to RubyGems via these files. (If the RubyGems API is + insufficient, please suggest improvements via the RubyGems + list.) + * /etc/gemrc (and windows equivalent) for global settings + * `gem stale` command that lists gems by last access time + * File modes from gems are now honored, patch #19737 + * `gem install --no-wrappers` followed by `gem install + --wrappers` no longer overwrites executables + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- rubygems-1.1.1_buildroot.patch rubygems-1.1.1_install_into_buildroot.patch rubygems-1.1.1.tar.bz2 New: ---- rubygems-1.3.1_buildroot.patch rubygems-1.3.1_install_into_buildroot.patch rubygems-1.3.1.tar.bz2 rubygems.macros ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygems.spec ++++++ --- /var/tmp/diff_new_pack.hB4978/_old 2008-11-28 15:59:01.000000000 +0100 +++ /var/tmp/diff_new_pack.hB4978/_new 2008-11-28 15:59:01.000000000 +0100 @@ -1,5 +1,5 @@ # -# spec file for package rubygems (Version 1.1.1) +# spec file for package rubygems (Version 1.3.1) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -19,7 +19,7 @@ Name: rubygems -Version: 1.1.1 +Version: 1.3.1 Release: 1 # License: Other uncritical OpenSource License @@ -35,8 +35,9 @@ Source: rubygems-%{version}.tar.bz2 Source1: gem_build_cleanup Source2: rubygems-rpmlintrc -Patch: rubygems-1.1.1_install_into_buildroot.patch -Patch1: rubygems-1.1.1_buildroot.patch +Source3: rubygems.macros +Patch: rubygems-1.3.1_install_into_buildroot.patch +Patch1: rubygems-1.3.1_buildroot.patch # Summary: The Ruby standard for publishing and managing third party libraries @@ -66,7 +67,8 @@ %setup -n %{name}-%{version} %patch %patch1 -find test -type f -perm 0755 -print0 | xargs chmod -v a-x +find test -type f -perm 0755 -print0 | xargs -r0 chmod -v a-x +find -name '._*' -print -delete %build @@ -74,14 +76,16 @@ GEM_HOME=%{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/ \ ruby -rvendor-specific setup.rb --buildroot=%{buildroot} %{__install} -D -m 0755 %{S:1} %{buildroot}%{_bindir}/gem_build_cleanup +%{__install} -D -m 0644 %{S:3} %{buildroot}/etc/rpm/macros.rubygems %clean %{__rm} -rf %{buildroot}; %files %defattr(-,root,root) +%config(noreplace) /etc/rpm/macros.rubygems %doc ChangeLog GPL.txt LICENSE.txt README TODO -%doc test/ pkgs/ +%doc test/ pkgs/ doc/* %{_bindir}/gem_build_cleanup %{_bindir}/gem %dir %{_libdir}/ruby/vendor_ruby/%{rb_ver}/rbconfig/ @@ -97,6 +101,74 @@ %{_libdir}/ruby/gems/%{rb_ver}/doc/rubygems-%{version} %changelog +* Wed Nov 26 2008 mrueckert@suse.de +- added rubygems macros file for rpm with 2 macros for easier gem + packaging %%gem_install and %%gem_cleanup. + %%gem_install calls gem install with the correct parameters. + %%gem_cleanup will delete makefiles and intermediate build files + like object files. +* Fri Nov 21 2008 mrueckert@suse.de +- update to rubyems 1.3.1 + * Disregard ownership of ~ under Windows while creating ~/.gem. + Fixes issues related to no uid support under Windows. + * Fix requires for Gem::inflate, Gem::deflate, etc. + * Make Gem.dir respect :gemhome value from config. (Note: this + feature may be removed since it is hard to implement on 1.9.) + * Silence PATH warning. + Deprecation Notices: + * Gem::manage_gems will be removed on or after March 2009. +- additional changes from rubyems 1.3.0 + * RubyGems doesn't print LOCAL/REMOTE titles for `gem query` and + friends if stdout is not a TTY, except with --both. + * Added Gem.find_files, allows a gem to discover features + provided by other gems. + * RubyGems now installs gems into ~/.gem if GEM_HOME is not + writable. Use --no-user-install command-line switch to disable + this behavior. + * Fetching specs for update now uses If-Modified-Since requests. + * RubyGems now updates the ri cache when the rdoc gem is + installed and documentation is generated. + * RubyGems now uses the regexp we already have for `gem list + --installed`. Bug #20876 by Nick Hoffman. + * Platform is now forced to Gem::Platform::RUBY when nil or blank + in the indexer. Fixes various uninstallable gems. + * Fix HTTPS support. Patch #21072 by Alex Arnell. + * RubyGems checks for support of development dependencies for + [#]to_ruby. Bug #20778 by Evan Weaver. + * Now specifications from the future can be loaded. + * `gem lock --strict` works again. Patch #21814 by Sven + Engelhardt. + * `gem help install` now describes _version_ argument to + executable stubs + * `gem help environment` describes environment variables and + ~/.gemrc and /etc/gemrc + * On-disk gemspecs are now read in UTF-8 and written with a UTF-8 + magic comment + * lib/rubygems/remote_fetcher.rb + - Now uses ~/.gem/cache if the cache dir in GEM_HOME is not + writable. +- additional changes from 1.2.0 + * RubyGems no longer performs bulk updates and instead only + fetches the gemspec files it needs. Alternate sources will + need to upgrade to RubyGems 1.2 to allow RubyGems to take + advantage of the new metadata updater. If a pre 1.2 remote + source is in the sources list, RubyGems will revert to the bulk + update code for compatibility. + * RubyGems now has runtime and development dependency types. Use + [#]add_development_dependency and #add_runtime_dependency. All + typeless dependencies are considered to be runtime + dependencies. + * RubyGems will now require rubygems/defaults/operating_system.rb + and rubygems/defaults/#{RBX_ENGINE}.rb if they exist. This + allows packagers and ruby implementers to add custom behavior + to RubyGems via these files. (If the RubyGems API is + insufficient, please suggest improvements via the RubyGems + list.) + * /etc/gemrc (and windows equivalent) for global settings + * `gem stale` command that lists gems by last access time + * File modes from gems are now honored, patch #19737 + * `gem install --no-wrappers` followed by `gem install + --wrappers` no longer overwrites executables * Tue Jun 03 2008 mrueckert@suse.de - update to rubygems 1.1.1 * Gem.prefix now returns non-nil only when RubyGems was installed @@ -208,7 +280,7 @@ patch from the mailinglist * Sun Oct 01 2006 mrueckert@suse.de - install into vendor_ruby -* Fri Jun 30 2006 mrueckert@suse.de +* Thu Jun 29 2006 mrueckert@suse.de - package %%{_libdir}/ruby/%%{rb_ver}/rbconfig * Thu Jun 29 2006 mrueckert@suse.de - update to version 0.9.0: @@ -249,12 +321,12 @@ * Fixed prefix handling for native expressions (patch by Aaron Patterson). * Fixed several Upgrade => Update typos. -* Wed Jun 21 2006 mrueckert@suse.de +* Tue Jun 20 2006 mrueckert@suse.de - no longer bump the version. we use a virtual provide now to make sure the --build-root patch is applied -* Tue Jun 20 2006 ro@suse.de +* Mon Jun 19 2006 ro@suse.de - fix filelist for last change -* Tue Jun 20 2006 mrueckert@suse.de +* Mon Jun 19 2006 mrueckert@suse.de - added %%{_libdir}/ruby/gems/%%{rb_ver}/doc/ * Wed Jun 07 2006 mrueckert@suse.de - added rubygems-0.8.11_buildroot.patch: @@ -262,12 +334,12 @@ Backport of my patch against CVS HEAD * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires -* Fri Sep 02 2005 mrueckert@suse.de +* Thu Sep 01 2005 mrueckert@suse.de - dont install into site_ruby - remove the site_ruby entries * Mon Aug 22 2005 mrueckert@suse.de - added missing %%dir entry in the file list -* Mon Aug 22 2005 ro@suse.de +* Sun Aug 21 2005 ro@suse.de - added ruby-devel to nfb * Tue Aug 16 2005 mrueckert@suse.de - Update to version 0.8.11 ++++++ rubygems-1.1.1_buildroot.patch -> rubygems-1.3.1_buildroot.patch ++++++ --- rubygems/rubygems-1.1.1_buildroot.patch 2008-09-29 17:01:37.000000000 +0200 +++ rubygems/rubygems-1.3.1_buildroot.patch 2008-11-28 12:20:00.409024000 +0100 @@ -1,7 +1,7 @@ Index: lib/rubygems/install_update_options.rb =================================================================== ---- lib/rubygems/install_update_options.rb.orig 2008-02-20 20:27:40.000000000 +0100 -+++ lib/rubygems/install_update_options.rb 2008-06-03 17:40:05.081140605 +0200 +--- lib/rubygems/install_update_options.rb.orig 2008-06-24 20:56:30.000000000 +0200 ++++ lib/rubygems/install_update_options.rb 2008-11-21 23:29:36.949017634 +0100 @@ -31,6 +31,12 @@ module Gem::InstallUpdateOptions options[:bin_dir] = File.expand_path(value) end @@ -17,52 +17,63 @@ 'install') do |value, options| Index: lib/rubygems/installer.rb =================================================================== ---- lib/rubygems/installer.rb.orig 2008-03-29 02:10:33.000000000 +0100 -+++ lib/rubygems/installer.rb 2008-06-03 17:40:29.530633867 +0200 -@@ -75,7 +75,13 @@ class Gem::Installer +--- lib/rubygems/installer.rb.orig 2008-10-10 20:22:39.000000000 +0200 ++++ lib/rubygems/installer.rb 2008-11-21 23:30:35.937015743 +0100 +@@ -106,9 +106,10 @@ class Gem::Installer @format_executable = options[:format_executable] @security_policy = options[:security_policy] @wrappers = options[:wrappers] - @bin_dir = options[:bin_dir] + @bin_dir = options[:bin_dir] || Gem.bindir(@gem_home) + @development = options[:development] + @source_index = options[:source_index] + @build_root = options[:build_root] + + begin + @format = Gem::Format.from_file_by_path @gem, @security_policy +@@ -116,6 +117,13 @@ class Gem::Installer + raise Gem::InstallError, "invalid gem format for #{@gem}" + end + ++ + unless @build_root.nil? or @build_root == "" + @build_root = Pathname.new(@build_root).expand_path + @gem_home = File.join(@build_root,@gem_home) + @bin_dir = File.join(@build_root,@bin_dir) + end - ++ begin - @format = Gem::Format.from_file_by_path @gem, @security_policy + FileUtils.mkdir_p @gem_home + rescue Errno::EACCESS, Errno::ENOTDIR Index: lib/rubygems/commands/install_command.rb =================================================================== ---- lib/rubygems/commands/install_command.rb.orig 2008-03-28 22:29:50.000000000 +0100 -+++ lib/rubygems/commands/install_command.rb 2008-06-03 17:40:05.213148667 +0200 -@@ -60,6 +60,7 @@ class Gem::Commands::InstallCommand < Ge +--- lib/rubygems/commands/install_command.rb.orig 2008-09-10 23:55:28.000000000 +0200 ++++ lib/rubygems/commands/install_command.rb 2008-11-21 23:29:36.977015529 +0100 +@@ -72,6 +72,7 @@ version is also installed. :format_executable => options[:format_executable], :ignore_dependencies => options[:ignore_dependencies], :install_dir => options[:install_dir], + :build_root => options[:build_root], :security_policy => options[:security_policy], :wrappers => options[:wrappers], - :bin_dir => options[:bin_dir] + :bin_dir => options[:bin_dir], Index: lib/rubygems/dependency_installer.rb =================================================================== ---- lib/rubygems/dependency_installer.rb.orig 2008-04-05 03:10:11.000000000 +0200 -+++ lib/rubygems/dependency_installer.rb 2008-06-03 17:40:05.313154775 +0200 -@@ -43,6 +43,7 @@ class Gem::DependencyInstaller - @format_executable = options[:format_executable] - @ignore_dependencies = options[:ignore_dependencies] +--- lib/rubygems/dependency_installer.rb.orig 2008-08-12 23:50:22.000000000 +0200 ++++ lib/rubygems/dependency_installer.rb 2008-11-21 23:29:36.997016383 +0100 +@@ -65,6 +65,7 @@ class Gem::DependencyInstaller + @installed_gems = [] + @install_dir = options[:install_dir] || Gem.dir + @build_root = options[:build_root] - @security_policy = options[:security_policy] - @wrappers = options[:wrappers] - @bin_dir = options[:bin_dir] -@@ -203,6 +204,7 @@ class Gem::DependencyInstaller - :format_executable => @format_executable, + @cache_dir = options[:cache_dir] || @install_dir + end + +@@ -241,6 +242,7 @@ class Gem::DependencyInstaller + :format_executable => @format_executable, :ignore_dependencies => @ignore_dependencies, - :install_dir => @install_dir, -+ :build_root => @build_root, - :security_policy => @security_policy, - :wrappers => @wrappers, - :bin_dir => @bin_dir + :install_dir => @install_dir, ++ :build_root => @build_root, + :security_policy => @security_policy, + :source_index => @source_index, + :user_install => @user_install, ++++++ rubygems-1.1.1_install_into_buildroot.patch -> rubygems-1.3.1_install_into_buildroot.patch ++++++ --- rubygems/rubygems-1.1.1_install_into_buildroot.patch 2008-09-29 17:01:37.000000000 +0200 +++ rubygems/rubygems-1.3.1_install_into_buildroot.patch 2008-11-28 12:20:00.409024000 +0100 @@ -1,51 +1,61 @@ Index: setup.rb =================================================================== ---- setup.rb.orig 2008-04-02 01:22:20.000000000 +0200 -+++ setup.rb 2008-06-03 17:09:33.941352779 +0200 -@@ -37,6 +37,9 @@ if ARGV.include? '--help' or ARGV.includ - puts " --prefix=DIR Prefix path for installing RubyGems" - puts " Will not affect gem repository location" - puts -+ puts " --buildroot=DIR Temporary root directory for the installation (for packager)" -+ puts " Will not affect gem repository" -+ puts - puts " --no-format-executable Force installation as `gem`" - puts - puts " --no-rdoc Don't build RDoc for RubyGems" -@@ -97,11 +100,34 @@ else - lib_dir = File.join prefix, 'lib' - bin_dir = File.join prefix, 'bin' - -- mkdir_p lib_dir -- mkdir_p bin_dir -+# mkdir_p lib_dir -+# mkdir_p bin_dir -+ end -+end -+ -+unless ARGV.grep(/^--buildroot/).empty? then -+ prefix = nil -+ -+ prefix_arg = ARGV.grep(/^--buildroot=/).first -+ if prefix_arg =~ /^--buildroot=(.*)/ then -+ prefix = $1 -+ else -+ path_index = ARGV.index '--buildroot' -+ prefix = ARGV[path_index + 1] +--- setup.rb.orig 2008-07-11 10:08:08.000000000 +0200 ++++ setup.rb 2008-11-21 22:00:26.465514960 +0100 +@@ -29,7 +29,8 @@ opts = GetoptLong.new( + [ '--no-rdoc', GetoptLong::NO_ARGUMENT ], + [ '--no-ri', GetoptLong::NO_ARGUMENT ], + [ '--vendor', GetoptLong::NO_ARGUMENT ], +- [ '--destdir', GetoptLong::REQUIRED_ARGUMENT ] ++ [ '--destdir', GetoptLong::REQUIRED_ARGUMENT ], ++ [ '--buildroot', GetoptLong::REQUIRED_ARGUMENT ] + ) + + prefix = '' +@@ -63,6 +64,8 @@ Options: + (Requires Ruby 1.8.7) + --destdir Root directory to install rubygems into + Used mainly for packaging RubyGems ++ (For backwards compatibility we also ++ support --buildroot.) + HELP + exit 0 + +@@ -87,6 +90,8 @@ HELP + + when '--destdir' + install_destdir = File.expand_path(arg) ++ when '--buildroot' ++ install_destdir = File.expand_path(arg) end -+ -+ prefix = File.expand_path prefix -+ -+ raise "invalid --buildroot #{prefix.inspect}" if prefix.nil? -+ -+ # we can be sure it is not nil here -+ bin_dir = File.join(prefix, bin_dir) -+ lib_dir = File.join(prefix, lib_dir) end -+mkdir_p lib_dir -+mkdir_p bin_dir -+ - Dir.chdir 'lib' do - lib_files = Dir[File.join('**', '*rb')] +@@ -95,11 +100,11 @@ require 'rbconfig' + require 'tmpdir' + require 'pathname' + ++top_dir = Pathname.new(RbConfig::TOPDIR || RbConfig::CONFIG["prefix"]) + unless install_destdir.empty? then + default_dir = Pathname.new(Gem.default_dir) +- top_dir = Pathname.new(RbConfig::TOPDIR) + ENV['GEM_HOME'] ||= File.join(install_destdir, +- default_dir.relative_path_from(top_dir)) ++ default_dir) + end + + include FileUtils::Verbose +@@ -137,12 +142,11 @@ else + end + + unless install_destdir.empty? +- top_dir = Pathname.new(RbConfig::TOPDIR) + lib_dir_p = Pathname.new(lib_dir) + bin_dir_p = Pathname.new(bin_dir) + +- lib_dir = File.join install_destdir, lib_dir_p.relative_path_from(top_dir) +- bin_dir = File.join install_destdir, bin_dir_p.relative_path_from(top_dir) ++ lib_dir = File.join install_destdir, lib_dir_p ++ bin_dir = File.join install_destdir, bin_dir_p + end + mkdir_p lib_dir ++++++ rubygems-1.1.1.tar.bz2 -> rubygems-1.3.1.tar.bz2 ++++++ ++++ 15942 lines of diff (skipped) ++++++ rubygems.macros ++++++ %gem_install /usr/bin/gem install --local --verbose --local --build-root=%{buildroot} %gem_cleanup /usr/bin/gem_build_cleanup %{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/gems/%{mod_name}-%{version}/ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org