Hello community, here is the log from the commit of package rubygems checked in at Mon Sep 29 18:17:23 CEST 2008. -------- --- rubygems/rubygems.changes 2007-02-12 16:08:14.000000000 +0100 +++ /mounts/work_src_done/STABLE/rubygems/rubygems.changes 2008-09-29 17:01:38.019761000 +0200 @@ -1,0 +2,98 @@ +Tue Jun 3 17:18:46 CEST 2008 - mrueckert@suse.de + +- update to rubygems 1.1.1 + * Gem.prefix now returns non-nil only when RubyGems was installed + outside sitelibdir or libdir. + * The `gem server` gem list now correctly links to gem details. + * `gem update --system` now passes --no-format-executable to + setup.rb. + * Gem::SourceIndex#refresh! now works with multiple gem + repositories. + * Downloaded gems now go into --install-dir's cache directory. + * Various fixes to downloading gem metadata. + * `gem install --force` now ignores network errors too. + * `gem pristine` now rebuilds extensions. + * `gem update --system` now works on virgin Apple ruby. + * Gem::RemoteFetcher handles Errno::ECONNABORTED. + * Printing of release notes fixed. +- additional changes from rubygems 1.1.0 + * RubyGems works with both Config and RbConfig now. + * Executables are now cleaned upon uninstall. + * You can now uninstall from a particular directory. + * Updating from non-default sources fixed. + * Executable stubs now use ruby install name in shebang. + * `gem unpack` checks every directory in Gem.path now. + * `gem install` now exits with non-zero exit code when + appropriate. + * `gem update` only updates gems that need updates. + * `gem update` doesn't force remote-only updates. + * `gem update` handles dependencies properly when updating. + * Gems are now loaded in Gem.path order. + * Gem stub scripts on windows now work outside Gem.bindir. + * `gem sources -r` now works without network access. +- refreshed patches. new names: + rubygems-1.1.1_buildroot.patch + rubygems-1.1.1_install_into_buildroot.patch + +------------------------------------------------------------------- +Thu Jan 24 15:24:07 CET 2008 - mrueckert@suse.de + +- dont restrict the ruby version + +------------------------------------------------------------------- +Wed Jan 16 20:35:07 CET 2008 - mrueckert@suse.de + +- update to rubygems 1.0.1 + * Installation on Ruby 1.8.3 through 1.8.5 fixed + * `gem build` on 1.8.3 fixed +- additional changes from 1.0.0 + - RubyGems warns about various problems with gemspecs during gem + building + - More-consistent versioning for the RubyGems software + - Fixed various bugs and problems with installing gems on Windows + - Fixed using `gem server` for installing gems + - Various operations are even more verbose with --verbose + - Built gems are now backwards compatible with 0.9.4 + - Improved detection of RUBYOPT loading rubygems + - `ruby setup.rb` now has a --help option + - Gem::Specification#bindir is now respected on installation + - Executable stubs can now be installed to match ruby's name, so + if ruby is installed as 'ruby18', foo_exec will be installed as + 'foo_exec18' + - `gem unpack` can now unpack into a specific directory with + --target + - OpenSSL is no longer required by default + Deprecations and Deletions: + - Kernel#require_gem has been removed + - Executables without a shebang will not be wrapped in a future + version, this may cause such executables to fail to operate on + installation + - Gem::Platform constants other than RUBY and CURRENT have been + removed + - Gem::RemoteInstaller was removed + - Gem::Specification#test_suite_file and #test_suite_file= are + deprecated in favor of #test_file and #test_file= + - Gem::Specification#autorequire= has been deprecated + - Time::today will be removed in a future version +- replaced rubygems-0.9.4_buildroot.patch with + rubygems-1.0.1_buildroot.patch: rewritten for new version +- added rubygems-1.0.1_install_into_buildroot.patch: + new setup.rb had no option to install into a temporary root dir. + +------------------------------------------------------------------- +Thu May 24 15:50:43 CEST 2007 - mrueckert@suse.de + +- update to 0.9.4 + * Several people have been experiencing problems with no method + errors on the source index cache. The source index cache is now + a bit more self healing. Furthermore, if the source index cache + is irreparable, then it is automatically dropped and reloaded. + * The source cache files may now be dropped with the "gem sources + --clear-all" command. (This command may require root is the + system source cache is in a root protected area). + * Several sub-commands were accidently dropped from the "gem" + command. These commands have been restored. +- updated rubygems-0.9.2_buildroot.patch: + new name rubygems-0.9.4_buildroot.patch + +------------------------------------------------------------------- @@ -16 +114 @@ -- remove the provies on rake +- remove the provides on rake Old: ---- rubygems-0.9.2_buildroot.patch rubygems-0.9.2.tgz New: ---- rubygems-1.1.1_buildroot.patch rubygems-1.1.1_install_into_buildroot.patch rubygems-1.1.1.tar.bz2 rubygems-rpmlintrc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygems.spec ++++++ --- /var/tmp/diff_new_pack.N30858/_old 2008-09-29 18:16:51.000000000 +0200 +++ /var/tmp/diff_new_pack.N30858/_new 2008-09-29 18:16:51.000000000 +0200 @@ -1,34 +1,44 @@ # -# spec file for package rubygems (Version 0.9.2) +# spec file for package rubygems (Version 1.1.1) # -# 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. +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild + Name: rubygems -# -Version: 0.9.2 -Release: 3 +Version: 1.1.1 +Release: 1 # License: Other uncritical OpenSource License Group: Development/Languages/Ruby # BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: ruby-devel >= 1.8.4 -Requires: ruby-devel >= 1.8.4 +BuildRequires: ruby-devel +Requires: ruby-devel Provides: rubygems_with_buildroot_patch # -URL: http://rubyforge.org/projects/rubygems/ -Source: http://rubyforge.org/frs/download.php/17190/rubygems-0.9.2.tgz +Url: http://rubyforge.org/projects/rubygems/ +# from http://rubyforge.org/frs/download.php/38646/rubygems-1.1.1.tgz +Source: rubygems-%{version}.tar.bz2 Source1: gem_build_cleanup -Patch: rubygems-0.9.2_buildroot.patch +Source2: rubygems-rpmlintrc +Patch: rubygems-1.1.1_install_into_buildroot.patch +Patch1: rubygems-1.1.1_buildroot.patch # -Summary: The Ruby standard for publishing and managing third party libraries. +Summary: The Ruby standard for publishing and managing third party libraries %description RubyGems is the Ruby standard for publishing and managing third party @@ -55,15 +65,14 @@ %prep %setup -n %{name}-%{version} %patch +%patch1 +find test -type f -perm 0755 -print0 | xargs chmod -v a-x %build -ruby -rvendor-specific setup.rb config -ruby -rvendor-specific setup.rb setup -ruby doc/makedoc.rb %install GEM_HOME=%{buildroot}%{_libdir}/ruby/gems/%{rb_ver}/ \ - ruby -rvendor-specific setup.rb install --prefix=%{buildroot} + ruby -rvendor-specific setup.rb --buildroot=%{buildroot} %{__install} -D -m 0755 %{S:1} %{buildroot}%{_bindir}/gem_build_cleanup %clean @@ -71,62 +80,137 @@ %files %defattr(-,root,root) -%doc README TODO ChangeLog Releases examples gemspecs +%doc ChangeLog GPL.txt LICENSE.txt README TODO +%doc test/ pkgs/ %{_bindir}/gem_build_cleanup %{_bindir}/gem -%{_bindir}/gemri -%{_bindir}/gemlock -%{_bindir}/gemwhich -%{_bindir}/gem_mirror -%{_bindir}/gem_server -%{_bindir}/index_gem_repository.rb -%{_bindir}/update_rubygems %dir %{_libdir}/ruby/vendor_ruby/%{rb_ver}/rbconfig/ %{_libdir}/ruby/vendor_ruby/%{rb_ver}/rbconfig/datadir.rb -%{_libdir}/ruby/vendor_ruby/%{rb_ver}/gemconfigure.rb %{_libdir}/ruby/vendor_ruby/%{rb_ver}/*ubygems.rb -%dir %{_libdir}/ruby/vendor_ruby/%{rb_ver}/rubygems/ -%{_libdir}/ruby/vendor_ruby/%{rb_ver}/rubygems/* +%{_libdir}/ruby/vendor_ruby/%{rb_ver}/rubygems/ %dir %{_libdir}/ruby/gems/ %dir %{_libdir}/ruby/gems/%{rb_ver} %dir %{_libdir}/ruby/gems/%{rb_ver}/cache/ %dir %{_libdir}/ruby/gems/%{rb_ver}/doc/ %dir %{_libdir}/ruby/gems/%{rb_ver}/gems/ %dir %{_libdir}/ruby/gems/%{rb_ver}/specifications/ -%{_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/rubygems-%{version} -%changelog -n rubygems -* Mon Feb 12 2007 - mrueckert@suse.de +%changelog +* Tue Jun 03 2008 mrueckert@suse.de +- update to rubygems 1.1.1 + * Gem.prefix now returns non-nil only when RubyGems was installed + outside sitelibdir or libdir. + * The `gem server` gem list now correctly links to gem details. + * `gem update --system` now passes --no-format-executable to + setup.rb. + * Gem::SourceIndex#refresh! now works with multiple gem + repositories. + * Downloaded gems now go into --install-dir's cache directory. + * Various fixes to downloading gem metadata. + * `gem install --force` now ignores network errors too. + * `gem pristine` now rebuilds extensions. + * `gem update --system` now works on virgin Apple ruby. + * Gem::RemoteFetcher handles Errno::ECONNABORTED. + * Printing of release notes fixed. +- additional changes from rubygems 1.1.0 + * RubyGems works with both Config and RbConfig now. + * Executables are now cleaned upon uninstall. + * You can now uninstall from a particular directory. + * Updating from non-default sources fixed. + * Executable stubs now use ruby install name in shebang. + * `gem unpack` checks every directory in Gem.path now. + * `gem install` now exits with non-zero exit code when + appropriate. + * `gem update` only updates gems that need updates. + * `gem update` doesn't force remote-only updates. + * `gem update` handles dependencies properly when updating. + * Gems are now loaded in Gem.path order. + * Gem stub scripts on windows now work outside Gem.bindir. + * `gem sources -r` now works without network access. +- refreshed patches. new names: + rubygems-1.1.1_buildroot.patch + rubygems-1.1.1_install_into_buildroot.patch +* Thu Jan 24 2008 mrueckert@suse.de +- dont restrict the ruby version +* Wed Jan 16 2008 mrueckert@suse.de +- update to rubygems 1.0.1 + * Installation on Ruby 1.8.3 through 1.8.5 fixed + * `gem build` on 1.8.3 fixed +- additional changes from 1.0.0 + - RubyGems warns about various problems with gemspecs during gem + building + - More-consistent versioning for the RubyGems software + - Fixed various bugs and problems with installing gems on Windows + - Fixed using `gem server` for installing gems + - Various operations are even more verbose with --verbose + - Built gems are now backwards compatible with 0.9.4 + - Improved detection of RUBYOPT loading rubygems + - `ruby setup.rb` now has a --help option + - Gem::Specification#bindir is now respected on installation + - Executable stubs can now be installed to match ruby's name, so + if ruby is installed as 'ruby18', foo_exec will be installed as + 'foo_exec18' + - `gem unpack` can now unpack into a specific directory with + --target + - OpenSSL is no longer required by default + Deprecations and Deletions: + - Kernel#require_gem has been removed + - Executables without a shebang will not be wrapped in a future + version, this may cause such executables to fail to operate on + installation + - Gem::Platform constants other than RUBY and CURRENT have been + removed + - Gem::RemoteInstaller was removed + - Gem::Specification#test_suite_file and #test_suite_file= are + deprecated in favor of #test_file and #test_file= + - Gem::Specification#autorequire= has been deprecated + - Time::today will be removed in a future version +- replaced rubygems-0.9.4_buildroot.patch with + rubygems-1.0.1_buildroot.patch: rewritten for new version +- added rubygems-1.0.1_install_into_buildroot.patch: + new setup.rb had no option to install into a temporary root dir. +* Thu May 24 2007 mrueckert@suse.de +- update to 0.9.4 + * Several people have been experiencing problems with no method + errors on the source index cache. The source index cache is now + a bit more self healing. Furthermore, if the source index cache + is irreparable, then it is automatically dropped and reloaded. + * The source cache files may now be dropped with the "gem sources + --clear-all" command. (This command may require root is the + system source cache is in a root protected area). + * Several sub-commands were accidently dropped from the "gem" + command. These commands have been restored. +- updated rubygems-0.9.2_buildroot.patch: + new name rubygems-0.9.4_buildroot.patch +* Mon Feb 12 2007 mrueckert@suse.de - fixed rubygems-0.9.2_buildroot.patch: do not break gems with scripts in bindir -* Thu Feb 08 2007 - mrueckert@suse.de +* 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 +- remove the provides 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 +* Mon Oct 30 2006 mrueckert@suse.de - added Provides: rake = %%{version}-%%{release} for easier compat with older packages -* Sun Oct 15 2006 - mrueckert@suse.de +* Sun Oct 15 2006 mrueckert@suse.de - added gem_build_cleanup to delete temporary files from native extensions. -* Sun Oct 01 2006 - mrueckert@suse.de +* Sun Oct 01 2006 mrueckert@suse.de - added rubygems-ext.diff: dont run make clean patch from the mailinglist -* Sun Oct 01 2006 - mrueckert@suse.de +* Sun Oct 01 2006 mrueckert@suse.de - install into vendor_ruby -* Thu Jun 29 2006 - mrueckert@suse.de +* Fri Jun 30 2006 mrueckert@suse.de - package %%{_libdir}/ruby/%%{rb_ver}/rbconfig -* Thu Jun 29 2006 - mrueckert@suse.de +* Thu Jun 29 2006 mrueckert@suse.de - update to version 0.9.0: Major Enhancments include: * The gem index is now downloaded incrementally, only updating @@ -165,27 +249,27 @@ * Fixed prefix handling for native expressions (patch by Aaron Patterson). * Fixed several Upgrade => Update typos. -* Wed Jun 21 2006 - mrueckert@suse.de +* Wed Jun 21 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 +* Tue Jun 20 2006 ro@suse.de - fix filelist for last change -* Mon Jun 19 2006 - mrueckert@suse.de +* Tue Jun 20 2006 mrueckert@suse.de - added %%{_libdir}/ruby/gems/%%{rb_ver}/doc/ -* Wed Jun 07 2006 - mrueckert@suse.de +* Wed Jun 07 2006 mrueckert@suse.de - added rubygems-0.8.11_buildroot.patch: add "--build-root" to the "gem install" command. Backport of my patch against CVS HEAD -* Wed Jan 25 2006 - mls@suse.de +* Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires -* Thu Sep 01 2005 - mrueckert@suse.de +* Fri Sep 02 2005 mrueckert@suse.de - dont install into site_ruby - remove the site_ruby entries -* Mon Aug 22 2005 - mrueckert@suse.de +* Mon Aug 22 2005 mrueckert@suse.de - added missing %%dir entry in the file list -* Mon Aug 22 2005 - ro@suse.de +* Mon Aug 22 2005 ro@suse.de - added ruby-devel to nfb -* Tue Aug 16 2005 - mrueckert@suse.de +* Tue Aug 16 2005 mrueckert@suse.de - Update to version 0.8.11 -* Sun Jul 10 2005 - mrueckert@suse.de +* Sun Jul 10 2005 mrueckert@suse.de - Started package with version 0.8.10 ++++++ rubygems-0.9.2_buildroot.patch -> rubygems-1.1.1_buildroot.patch ++++++ --- rubygems/rubygems-0.9.2_buildroot.patch 2007-02-12 16:00:58.000000000 +0100 +++ /mounts/work_src_done/STABLE/rubygems/rubygems-1.1.1_buildroot.patch 2008-09-29 17:01:37.987263000 +0200 @@ -1,75 +1,68 @@ -Index: lib/rubygems/gem_commands.rb +Index: lib/rubygems/install_update_options.rb =================================================================== ---- lib/rubygems/gem_commands.rb.orig 2007-02-04 01:30:01.000000000 +0100 -+++ lib/rubygems/gem_commands.rb 2007-02-12 15:59:22.574956858 +0100 -@@ -109,6 +109,12 @@ module Gem - options[:install_dir] = File.expand_path(value) - end +--- 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 +@@ -31,6 +31,12 @@ module Gem::InstallUpdateOptions + options[:bin_dir] = File.expand_path(value) + end -+ add_option('-B', '--build-root DIR', -+ 'Temporary installation root. Useful for building packages.') do -+ |value, options| -+ options[:build_root] = File.expand_path(value) -+ end ++ add_option(:"Install", '-B', '--build-root DIR', ++ 'Temporary installation root. Useful for building', ++ 'packages. Do not use this when installing remote gems.') 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| + add_option(:"Install/Update", '-d', '--[no-]rdoc', + 'Generate RDoc documentation for the gem on', + 'install') do |value, options| Index: lib/rubygems/installer.rb =================================================================== ---- lib/rubygems/installer.rb.orig 2007-02-02 13:37:35.000000000 +0100 -+++ lib/rubygems/installer.rb 2007-02-12 15:59:57.352976430 +0100 -@@ -84,6 +84,15 @@ module Gem - end - end - -+ if @options[:build_root] -+ build_root = @options[:build_root] -+ FileUtils.mkdir_p build_root -+ raise Gem::FilePermissionError.new(build_root) unless File.writable?(build_root) -+ install_dir = File.join(build_root, install_dir) -+ Gem.build_root = build_root -+ FileUtils.mkdir_p install_dir -+ end -+ - raise Gem::FilePermissionError.new(install_dir) unless File.writable?(install_dir) - - # Build spec dir. -Index: lib/rubygems.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 + @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) ++ @build_root = options[:build_root] ++ 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 +Index: lib/rubygems/commands/install_command.rb =================================================================== ---- lib/rubygems.rb.orig 2007-01-09 04:23:42.000000000 +0100 -+++ lib/rubygems.rb 2007-02-12 16:00:17.538148590 +0100 -@@ -100,11 +100,13 @@ module Gem - - @configuration = nil - @loaded_specs = {} -+ @build_root = "" - - class << self - - attr_reader :loaded_specs -- -+ attr_accessor :build_root -+ - def manage_gems - require 'rubygems/user_interaction' - require 'rubygems/builder' -@@ -142,14 +144,15 @@ module Gem - # The directory path where executables are to be installed. - # - def bindir(install_dir=Gem.dir) -- return File.join(install_dir, 'bin') unless install_dir == Gem.default_dir -+ return File.join(@build_root, File.join(install_dir, 'bin')) unless install_dir == File.join(@build_root, 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 - - # List of directory paths to search for Gems. +--- 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 + :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] +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] + @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, + :ignore_dependencies => @ignore_dependencies, + :install_dir => @install_dir, ++ :build_root => @build_root, + :security_policy => @security_policy, + :wrappers => @wrappers, + :bin_dir => @bin_dir ++++++ rubygems-1.1.1_install_into_buildroot.patch ++++++ 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] 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')] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org