RPM

Comment 3 for bug 930471

Revision history for this message
Jeff Johnson (n3npq) wrote :

Oooh nice!

Let me write up the blueprint and attempt to resurrect
the automated downloading.

For starters, its likely easier to create a my.macros file
and use like
    rpmbuild --macros=my.macros

The 1st line should be
    %{load:/usr/lib/rpm/macros}
and add other lines as needed.

Additional lines like
    %_Rsourcedir /var/source-cache/p/pps-tools
    %_topdir /tmp/tmp.5s8oZpzXVo
could then be added.

You can also use -D,--define as needed: CLI defines will be processed
after --macros (which will also process %{load:...} files. Note that the
nesting is 1-level only: i.e. my.macros can contain a %{load:...} but the file
that is loaded cannot then do a %{load:...}. The restriction is entirely
arbitrary to prevent infinite recursion if a file tries to load itself.

There are ways to use %{lua:...} to process strings, but its better to identify
why the conversion from hyphen to underscore is happening.

There is nothing with rpm macros that attempts hyphen -> underscore intentionally.

Any chance you might be ready to upgrade to rpm-5.3 or rpm-5.4?