On 22.08.2013 13:33, Christian Boltz wrote:
Hello,
I just got SR #195618 ( https://build.opensuse.org/request/diff/195618 ) declined because:
Ruby dep seems wrong.
It states that it needs: ruby = 2.0.0 but our ruby is versioned like this: ruby-2.0-3.2
In my spec, I have Requires: ruby = %{rb_ver}
and going down the rpm macro chain, I found that rb_ver contains the result of
# /usr/bin/ruby2.0 -r rbconfig -e 'print RbConfig::CONFIG["ruby_version"]' 2.0.0
This at least explains why it's wrong ;-)
What's the correct way to specify the ruby dependency?
BTW: the package also contains "2.0.0" in the directory name: # rpm -qpl ruby-apparmor-2.8.2-156.1.x86_64.rpm /usr/lib64/ruby/site_ruby/2.0.0/x86_64-linux/LibAppArmor.so
If you buildrequire ruby-macros, you don't have to add any require yourself. If you insist to do it yourself, use Requires: ruby(abi) = %{rb_ver} The version of ruby has nothing to do with the ABI version you require. Greetings, Stephan -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org