SPECS: adapter.awk - parse epoches from ../PLD-doc/BuildRequires.txt

Paweł Sakowski saq at pld-linux.org
Sun Jan 29 23:31:20 CET 2006


Am Sonntag, den 29.01.2006, 13:55 +0200 schrieb Elan Ruusamäe:
> > BR: avifile-devel >= 0.5 becomes 1:0.5 (correct: unchanged)
> > BR: avifile-devel >= 0.7.16 becomes 1.0.7.16 (correct: 3:0.7.16)
> 
> yep. noticed this with binutils. any better ideas? provide separate file for 
> this? (and in SPECS cvs module then?)

I think it's a matter of more complex BuildRequires.txt parsing:
Figuring out that e.g. for avifile-devel versions (-infty,0.6) are of
epoch 0, [0.6,0.7.15) -- epoch 1, [0.7.15,+infty) -- epoch 2. And then
using rpmvercmp on the version required by the spec to figure out which
range covers it.

BuildRequires.txt is structured enough to support such a mechanism
(well, except for the free-form automake: line).

-- 
Paweł Sakowski <saq at pld-linux.org>
PLD Linux Distribution



More information about the pld-devel-en mailing list