[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Is it possible to dynamize "requires" at RPM build time?



Matthew Miller wrote:

> On Tue, Aug 22, 2006 at 09:32:58PM -0500, Rex Dieter wrote:
>> Kai Engert wrote:
>> > Is it possible by some SPEC logic, to make a "Requires:" entry dynamic?
>> Yes, use something like:
>> BuildRequires: foo-devel
>> %global foo_ver %(foo_bin --version)
> 
> Or perhaps using %( rpm -q --qf '%%{version}' foo ).

*Really* bad idea doing rpm queries from inside an rpmbuild operation.

-- Rex



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]