Angus Leeming wrote:

> Georg Baum wrote:
> 
>> %define frontdep @RPM_FRONTEND_DEPS@ %(eval
>> %{_builddir}/%{name}-%{version}/development/find_dep)
> 
> Can you not define it in the spec file itself? I have this in the spec
> file for XForms (below). Can one not define arbitrary shell scripts in a
> similar manner.

I tried, but failed to create a macro with more than one line. You don't
happen to have a working example? The difference to the xforms example you
sent is that we need to put the whole thing in a macro in order to use it's
output as dependency string, not just to execute the code in a particular
stage.
What we need is something like

%define find_dep %(<body>)

where <body> consists actually of several lines of shell code. The %()
construct ensures that the output of the shell code is used as macro value.


Georg

Reply via email to