Hi all, Stephan Kulow (coolo@suse.de) wrote:
On 01.08.2012 10:08, Josef Reidinger wrote:
As some gems require specific but old versions of other gems, I created (DISCLAIMER: careful, do not read further if you're easy to upset) a package containing all those gems. This package will build rpms for all gems in the source directory. While fixing the current dependencies, I found 33 gems that I didn't feel worthy enough for their own spec file, so they ended up in d:l:r:e/all-the-others.
I think we need to create policy for such packages. Example is factory_girl, where I create old version because new one doesn't work with ruby 1.9. I think that plain name should be always latest version and create suffix only if you need old version. I use copypac with specific revision and looks working for me.
I very much agree on the need of a policy. We should not use suffix for new packages. Perhaps make an exception for rails, but I already changed quite a few useless suffixes. Even worse is rubygem-thor where -thor is the old version and -thor-0_15 is the new version - I fixed that too.
+1 for the need of an up to date policy! I'm new to this list and also fairly new to packaging gems as rpms. I'm currently packaging Crowbar 2.0 for openSUSE 12.2 (which depends on Chef and Rails 3) and trying to resolve some gem dependencies. I've trawled the last ~15 months of archives of this list but I'm still unsure if there is currently a strong consensus on best practices. It seems that http://en.opensuse.org/openSUSE:Packaging_Ruby has barely been updated in that time, and does not explain current conventions on gem package naming and versioning. For example is it now firm policy to always use the "rubygem-${gem}-1_2-1.2.3" format in spec files which build or require older major versions, and "rubygem-${gem}-2.0.0" format for the latest major version? Are there any other important rules to be aware of? What about the rpm vs. bundle debate? Any best practice recommendations? Is it basically security and reusability (rpm) vs. simplicity and convenience (bundle)? Thanks, Adam P.S. I tried adding <path project="devel:languages:ruby:extensions" repository="openSUSE_12.2"/> to my project's metadata, but that broken everything horribly, so I'm currently relying on linkpac and intuition. Maybe I'll try again with systemsmanagement:chef. -- To unsubscribe, e-mail: opensuse-ruby+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-ruby+owner@opensuse.org