[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?



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 ).

(Um, I think that works to escape the % -- didn't test.)

But Kai -- what's the reason for wanting this?

-- 
Matthew Miller           mattdm mattdm org          <http://mattdm.org/>
Boston University Linux      ------>              <http://linux.bu.edu/>


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