<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Aug 29, 2013 at 2:17 AM, Miroslav Suchý <span dir="ltr">&lt;<a href="mailto:msuchy@redhat.com" target="_blank">msuchy@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">On 08/29/2013 10:19 AM, Stanislav Ochotnicky wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
%{?scl:scl enable %{scl} &quot;}<br>
# this is a shell<br>
command 1<br>
command 2<br>
...<br>
%{?scl:&quot;}<br>
</blockquote>
<br></div>
Just one command with this syntax. If you need more command, you have to use heredoc as Vít said in this thread.<span class=""><font color="#888888"></font></span><br></blockquote><div><br></div><div>So does that mean that this is the correct statement to put in the .spec file?<br>
<br>%{?scl:scl enable %{scl} &quot;}<br>source /opt/rh/devtoolset-1.1/enable<br>%{?scl:&quot;}<br><br></div><div>What is the %{?scl} macro doing? And am I using it correctly in the above?<br></div><div><br></div><div>Thanks,<br>
Dave<br></div></div></div></div>