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

Matthew Miller mattdm at mattdm.org
Wed Aug 23 13:24:17 UTC 2006


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 at mattdm.org          <http://mattdm.org/>
Boston University Linux      ------>              <http://linux.bu.edu/>




More information about the fedora-devel-list mailing list