[disclaimer: I am still new to all this so there may be stupid things in this email ;-) ] Stephan Kulow (coolo@suse.de) wrote:
Am 25.10.2012 16:42, schrieb Adam Spiers:
No, these are limitations in rpm itself. As darix pointed out last year, bundler's ~> operator cannot map straightforwardly into rpm Requires expressions:
http://lists.opensuse.org/opensuse-ruby/2011-07/msg00000.html
Yeah, but that information is outdated - if you read the thread a year later: http://lists.opensuse.org/opensuse-ruby/2012-07/msg00025.html
Yeah, I read that too, but I'm a bit confused now, because that post says "But this strange suffixing is no longer necessary anyway", which seems to conflict with what you are now saying:
So the policy we live is this: we package <gem> as rubygem-<gem> and only add a version suffix only if something requires an old version of <gem> (and then only to the old version) or if <gem> is <rails> - for historical reasons :)
So I must be misunderstanding something. If something requires an old version, why not just require rubygem-foo-1_0? Since like you said in that post, the automatic provides for the foo 1.0 gem would make that virtual package available:
The automatic provides cover the old names, but I kind of hope we can drop them in the future:
rubygem(1.9.1:rails) = 3.2.7 rubygem(rails) = 3.2.7 rubygem-rails = 3.2.7 rubygem-rails-3 = 3.2.7 rubygem-rails-3_2 = 3.2.7 rubygem-rails-3_2_7 = 3.2.7
These also seem to solve the ~> problem, since foo ~> 1.2.3 translates to Requires: rubygem-foo-1.2 >= 1.2.3 but that suggests that the automatic provides should not be dropped.
We didn't rename all gem_1_0 packages yet, but we're going there whenever we update a package.
I see. It would be extremely helpful to document this procedure here: http://en.opensuse.org/openSUSE:Packaging_Ruby I guess it's mainly a question of changing the Name: field and then running gem2rpm *.gem -o *.spec or am I way off? Thanks, Adam -- To unsubscribe, e-mail: opensuse-ruby+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-ruby+owner@opensuse.org