Hello community, here is the log from the commit of package rubygems checked in at Fri Feb 9 01:18:15 CET 2007. -------- --- rubygems/rubygems.changes 2006-10-30 19:59:33.000000000 +0100 +++ /mounts/work_src_done/STABLE/rubygems/rubygems.changes 2007-02-08 18:51:55.535041000 +0100 @@ -1,0 +2,14 @@ +Thu Feb 8 15:57:17 CET 2007 - mrueckert@suse.de + +- update to rubygems 0.9.2: + * The "unpack" command now works properly. + * User name and password are now passed properly to the + authenticating proxy when downloading gems. + * check installation paths for gems before writing files to avoid + various kinds of exploits. (#235110) +- remove the provies on rake +- rediffed rubygems-0.9.0_buildroot.patch + new name rubygems-0.9.2_buildroot.patch +- removed rubygems-ext.diff (was a backport) + +------------------------------------------------------------------- Old: ---- rubygems-0.9.0_buildroot.patch rubygems-0.9.0.tgz rubygems-ext.diff New: ---- rubygems-0.9.2_buildroot.patch rubygems-0.9.2.tgz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygems.spec ++++++ --- /var/tmp/diff_new_pack.f11243/_old 2007-02-09 01:18:06.000000000 +0100 +++ /var/tmp/diff_new_pack.f11243/_new 2007-02-09 01:18:06.000000000 +0100 @@ -1,7 +1,7 @@ # -# spec file for package rubygems (Version 0.9.0) +# spec file for package rubygems (Version 0.9.2) # -# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # @@ -12,8 +12,8 @@ Name: rubygems # -Version: 0.9.0 -Release: 19 +Version: 0.9.2 +Release: 1 # License: Other uncritical OpenSource License Group: Development/Languages/Ruby @@ -22,13 +22,11 @@ BuildRequires: ruby-devel >= 1.8.4 Requires: ruby-devel >= 1.8.4 Provides: rubygems_with_buildroot_patch -Provides: rake = %{version}-%{release} # URL: http://rubyforge.org/projects/rubygems/ -Source: http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz +Source: http://rubyforge.org/frs/download.php/17190/rubygems-0.9.2.tgz Source1: gem_build_cleanup -Patch: rubygems-0.9.0_buildroot.patch -Patch1: rubygems-ext.diff +Patch: rubygems-0.9.2_buildroot.patch # Summary: The Ruby standard for publishing and managing third party libraries. @@ -57,7 +55,6 @@ %prep %setup -n %{name}-%{version} %patch -%patch1 %build ruby -rvendor-specific setup.rb config @@ -99,9 +96,20 @@ %{_libdir}/ruby/gems/%{rb_ver}/cache/* %{_libdir}/ruby/gems/%{rb_ver}/gems/* %{_libdir}/ruby/gems/%{rb_ver}/specifications/* -%{_libdir}/ruby/gems/%{rb_ver}/doc/ +%{_libdir}/ruby/gems/%{rb_ver}/doc/* %changelog -n rubygems +* Thu Feb 08 2007 - mrueckert@suse.de +- update to rubygems 0.9.2: + * The "unpack" command now works properly. + * User name and password are now passed properly to the + authenticating proxy when downloading gems. + * check installation paths for gems before writing files to avoid + various kinds of exploits. (#235110) +- remove the provies on rake +- rediffed rubygems-0.9.0_buildroot.patch + new name rubygems-0.9.2_buildroot.patch +- removed rubygems-ext.diff (was a backport) * Mon Oct 30 2006 - mrueckert@suse.de - added Provides: rake = %%{version}-%%{release} for easier compat with older packages ++++++ rubygems-0.9.0_buildroot.patch -> rubygems-0.9.2_buildroot.patch ++++++ --- rubygems/rubygems-0.9.0_buildroot.patch 2006-10-30 19:59:33.000000000 +0100 +++ /mounts/work_src_done/STABLE/rubygems/rubygems-0.9.2_buildroot.patch 2007-02-08 18:51:55.535041000 +0100 @@ -1,30 +1,38 @@ Index: lib/rubygems/gem_commands.rb =================================================================== ---- lib/rubygems/gem_commands.rb.orig -+++ lib/rubygems/gem_commands.rb -@@ -97,6 +97,12 @@ +--- lib/rubygems/gem_commands.rb.orig 2007-02-04 01:30:01.000000000 +0100 ++++ lib/rubygems/gem_commands.rb 2007-02-08 18:35:57.203390534 +0100 +@@ -109,6 +109,12 @@ module Gem options[:install_dir] = File.expand_path(value) end + add_option('-B', '--build-root DIR', -+ 'Temporary installation root. Useful for building packages.') do -+ |value, options| ++ 'Temporary installation root. Useful for building packages.') do ++ |value, options| + options[:build_root] = File.expand_path(value) + end + add_option('-d', '--[no-]rdoc', - 'Generate RDoc documentation for the gem on install') do - |value, options| + 'Generate RDoc documentation for the gem on', + 'install') do |value, options| +@@ -236,6 +242,9 @@ module Gem + fail Gem::CommandLineError, + "Please specify a gem name on the command line (e.g. gem build GEMNAME)" + end ++ # ugly hack! ++ $build_root = "" ++ $build_root = options[:buildroot] if options[:buildroot] + options[:args].each do |gem_name| + if local? + begin Index: lib/rubygems/installer.rb =================================================================== ---- lib/rubygems/installer.rb.orig -+++ lib/rubygems/installer.rb -@@ -74,7 +74,15 @@ - end - end +--- lib/rubygems/installer.rb.orig 2007-02-02 13:37:35.000000000 +0100 ++++ lib/rubygems/installer.rb 2007-02-08 18:35:38.242289456 +0100 +@@ -84,6 +84,14 @@ module Gem + end end -- -+ + + if @options[:build_root] + build_root = @options[:build_root] + FileUtils.mkdir_p build_root @@ -36,33 +44,28 @@ raise Gem::FilePermissionError.new(install_dir) unless File.writable?(install_dir) # Build spec dir. -@@ -175,16 +183,25 @@ - # Determines the directory for binaries +Index: lib/rubygems.rb +=================================================================== +--- lib/rubygems.rb.orig 2007-01-09 04:23:42.000000000 +0100 ++++ lib/rubygems.rb 2007-02-08 18:28:34.737696393 +0100 +@@ -142,14 +142,17 @@ module Gem + # The directory path where executables are to be installed. # def bindir(install_dir=Gem.dir) -- if(install_dir == Gem.default_dir) -+ if @options[:build_root] -+ build_root = @options[:build_root] -+ gem_default_dir = File.join(build_root, Gem.default_dir) -+ else -+ gem_default_dir = Gem.default_dir -+ build_root = "" -+ end +- return File.join(install_dir, 'bin') unless install_dir == Gem.default_dir ++ build_root = $build_root + -+ if(install_dir == gem_default_dir) - # mac framework support - if defined? RUBY_FRAMEWORK_VERSION -- File.join(File.dirname(Config::CONFIG["sitedir"]), File.basename(Config::CONFIG["bindir"])) -+ bin_dir = File.join(File.dirname(Config::CONFIG["sitedir"]), File.basename(Config::CONFIG["bindir"])) - else # generic install -- Config::CONFIG['bindir'] -+ bin_dir = Config::CONFIG['bindir'] - end - else -- File.join(install_dir, "bin") -+ bin_dir = File.join(install_dir, "bin") ++ return File.join(build_root, File.join(install_dir, 'bin')) unless install_dir == Gem.default_dir + + if defined? RUBY_FRAMEWORK_VERSION then # mac framework support +- File.join(File.dirname(Config::CONFIG["sitedir"]), ++ bin_dir = File.join(File.dirname(Config::CONFIG["sitedir"]), + File.basename(Config::CONFIG["bindir"])) + else # generic install +- Config::CONFIG['bindir'] ++ bin_dir = Config::CONFIG['bindir'] end + bin_dir = File.join(build_root, bin_dir) end - def generate_bin(spec, install_dir=Gem.dir) + # List of directory paths to search for Gems. ++++++ rubygems-0.9.0.tgz -> rubygems-0.9.2.tgz ++++++ ++++ 13520 lines of diff (skipped) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org