rpm macro magic help

Alek Paunov alex at declera.com
Thu Nov 7 18:45:08 UTC 2013


Hi Sandro,

On 07.11.2013 15:10, Sandro Mani wrote:
> Uhm, how can one this be done? Shell variables are substituted after
> macro expansion, so i.e.
>
> function do_build {
> arch=$1
> qt_version=$2
> %{mingw${arch}_qmake_${qt_version}}
> }
>
> would hardly work? Or are you suggesting passing the entire macros as
> arguments? I.e.
>
> function do_build {
> qmake=$1
> make=$2
> ${qmake} <args>
> ${make} %{?_smp_mflags}}
> [...]
> do_build "%{mingw32_qmake_qt4}" "%{mingw32_make}"

For some time I am looking for a reason to test the Lua RPM feature:

http://rpm.org/wiki/PackagerDocs/RpmLua

Can you point me to the .spec in the question and a few more words which 
is the desired result.

Kind Regards,
Alek



More information about the devel mailing list