[opensuse-ruby] documentation for recent Ruby packaging changes?
[moving this thread to opensuse-ruby because it will almost certainly affect others] Klaus Kaempf (kkaempf@suse.de) wrote:
* Adam Spiers
[Feb 25. 2014 15:13]: Will do - please can you point me at where the Ruby 2.1 changes are documented?
The installation path for binary gem extensions and their documentation changed. That's why all gems with binaries failed to build on d:l:r:e for Ruby 2.1
https://build.opensuse.org/package/view_file/devel:languages:ruby/ruby/ruby.... reflects this in the %gem_base, %gem_extensions, %gem_doc_ext, and %gem_platform macros.
The latest rubygem-gem2rpm takes care of all this automatically.
On 12.3 I updated to rubygem-gem2rpm-0.9.2-58.1.x86_64 and then got:
$ gem2rpm rubygem-vagrant.spec
/usr/lib64/ruby/1.9.1/rubygems/package/tar_input.rb:122:in `initialize': no metadata found in rubygem-vagrant.spec (Gem::Package::FormatError)
from /usr/lib64/ruby/1.9.1/rubygems/package/tar_input.rb:20:in `new'
from /usr/lib64/ruby/1.9.1/rubygems/package/tar_input.rb:20:in `open'
from /usr/lib64/ruby/1.9.1/rubygems/package.rb:44:in `open'
from /usr/lib64/ruby/1.9.1/rubygems/format.rb:62:in `from_io'
from /usr/lib64/ruby/1.9.1/rubygems/format.rb:46:in `block in from_file_by_path'
from /usr/lib64/ruby/1.9.1/open-uri.rb:35:in `open'
from /usr/lib64/ruby/1.9.1/open-uri.rb:35:in `open'
from /usr/lib64/ruby/1.9.1/rubygems/format.rb:45:in `from_file_by_path'
from /usr/lib64/ruby/gems/1.9.1/gems/gem2rpm-0.9.2/lib/gem2rpm/package.rb:11:in `rescue in initialize'
from /usr/lib64/ruby/gems/1.9.1/gems/gem2rpm-0.9.2/lib/gem2rpm/package.rb:11:in `initialize'
from /usr/lib64/ruby/gems/1.9.1/gems/gem2rpm-0.9.2/lib/gem2rpm.rb:35:in `new'
from /usr/lib64/ruby/gems/1.9.1/gems/gem2rpm-0.9.2/lib/gem2rpm.rb:35:in `convert'
from /usr/lib64/ruby/gems/1.9.1/gems/gem2rpm-0.9.2/bin/gem2rpm:132:in `
participants (1)
-
Adam Spiers