On Wed, Dec 26, 2007, Ralf S. Engelschall wrote:
> [...]
> The "BuildRequire" tag is not passed-through
> to the binary RPM and the RPM database at all!
> [...]
Ok, with the help of arbitrary tag support and the new macro stack
expansion feature, I was finally able to implement also this
functionality via plain "rpmmacros" hacking:
| [...]
| %_arbitrary_tags [...]:BuildDependency:[...]
|
| [...]
| # hook into %description
| %description\
| [...]
| %{?__hook_description_3}\
| [...]
| %%description
|
| [...]
| # auto-generate arbitrary tag "BuildDependency" from the standard tag(s) "BuildPreReq"
| # in order to forward-carry this build-time information to the binary RPM and to the RPMDB.
| %__hook_description_3 %{?__autogen_builddependency:BuildDependency: %{@buildprereq:, }}\
| %{nil}
The result:
| $ openpkg rpm -bb make.spec
| $ openpkg rpm -qp --qf '%{BuildDependency}\n' make-*.*.rpm
| OpenPKG, openpkg >= 20050726
Perfect! Thank you very much for all the help...
Ralf S. Engelschall
rse@engelschall.com
www.engelschall.com
Received on Fri Dec 28 12:32:32 2007