On 04/09/2011 10:01 PM, Christoph Wickert wrote: >> 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. Using pkg-config in plain shell code could be a better approach if you can't make the patch work with whatever xfce4-panel version, something like: if pkg-config --atleast-version 4.7 libxfce4panel-1.0 ; then %patch3 -p1 fi -- packaging mailing list packaging@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/packaging