Odd mock build problem

Toshio Kuratomi toshio at tiki-lounge.com
Wed Mar 1 20:03:06 UTC 2006


On Wed, 2006-03-01 at 13:49 -0600, Jason L Tibbitts III wrote:
> Anyway, folks who know really need to come up with a proper way to do
> this.  
[snip]
> Ruby wants
> to do the same basic thing (add a requirement of a particular Ruby ABI
> version) but can't.
> 
> So how should it work?
> 
Here's an adaptation of Rex's maxima/sbcl snippet.  I'm not a genius
with mock and I'm not at all familiar with ruby so this may not work.
Would you care to give it a test?

# Get Ruby versioning
# The idea is to make a hack that works, even in mock (-: Thanks Rex!
%global ruby_ver %(ruby -rrbconfig -e 'puts Config::CONFIG["ruby_version"])
%if "%{?ruby_ver}" >= "1.8"
%define ruby_ver2 = %{ruby_ver}
%endif
Requires: ruby %{?ruby_ver2}

-Toshio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-extras-list/attachments/20060301/4b1d193f/attachment.sig>


More information about the fedora-extras-list mailing list