On Tue, 30 Dec 2003, Jos Vos wrote: > On Tue, Dec 30, 2003 at 04:49:13PM +0100, Hugo van der Kooij wrote: > > > So if I have sword-1.5.6 installed and build with my spec file I want a > > dependency for sword = 1.5.6 > > But if I compile against sword 1.5.7 I want the requirement to be sword = > > 1.5.7 > > Add this to your spec file: > > Requires: sword = %(rpm -q --queryformat '%%{version}' sword) Works just fine. Thanks, Hugo. -- All email sent to me is bound to the rules described on my homepage. hvdkooij@xxxxxxxxxxxxxxx http://hvdkooij.xs4all.nl/ Don't meddle in the affairs of sysadmins, for they are subtle and quick to anger. _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list