[Fedora-packaging] Conditional comparision doesn't work

Christoph Wickert christoph.wickert at googlemail.com
Sat Apr 9 19:01:49 UTC 2011


Am Samstag, den 09.04.2011, 19:48 +0200 schrieb Michael Schwendt:
> On Sat, 09 Apr 2011 19:34:48 +0200, Christoph wrote:
> > 
> > What would that look like in a spec?
> 
> String comparison in general? It uses double-quotes as in shell scripts:

Ok, for some reason I thought it was different in a spec.

> But with regard to what you try to do, it will be severely limited,
> because it is not a substitute for full RPM Version Comparison. Example:
> "4.8.10" is less than "4.8.3"

Good point. For "Requires:" it doesn't make much sense anyway and even
the %if clause will break in Xfce 4.10, which renders the whole patch
pretty useless. It only makes sense if used in long term because I don't
want to revert the changes again in one year.

Thanks for your help!

Regards,
Christoph



More information about the packaging mailing list