1 --- rpm-5.4.10/scripts/gem_helper.rb~ 2013-06-21 09:44:47.273773411 +0300
2 +++ rpm-5.4.10/scripts/gem_helper.rb 2013-06-21 09:45:34.619165559 +0300
9 -if ARGV[0] == "build" or ARGV[0] == "install"
10 +if ARGV[0] == "build" or ARGV[0] == "install" or ARGV[0] == "spec"
15 body[iv.to_s.gsub(/^@/,'')] = header.instance_variable_get(iv)
19 spec = Gem::Specification.from_yaml(YAML.dump(header))
21 + if ARGV[0] == "spec"
22 + # Write the .gemspec specification (in Ruby)
23 + file_name = spec.full_name.untaint + '.gemspec'
24 + File.open(file_name, "w") do |file|
25 + file.puts spec.to_ruby_for_cache
27 + print "Wrote: %s\n" % file_name
30 if ARGV[0] == "install"
31 system("gem %s %s.gem" % [ARGV.join(' '), spec.full_name])