<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=ISO-8859-1">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    27.08.2010 13:08, Petr Pisar &#1087;&#1080;&#1096;&#1077;&#1090;:
    <blockquote type="cite"
      cite="mid:slrni7f052.742.ppisar@dhcp-0-146.brq.redhat.com">
      <pre wrap="">On 2010-08-27, Pavel Alexeev (aka Pahan-Hubbitus) <a class="moz-txt-link-rfc2396E" href="mailto:forum@hubbitus.com.ru">&lt;forum@hubbitus.com.ru&gt;</a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">
%{__perl} Makefile.PL INSTALLDIRS=vendor
OPTIMIZE="$RPM_OPT_FLAGS"

make %{?_smp_mflags}

I'm wonder why there used mix of macros %{__perl} and plain other
commands like make?
</pre>
      </blockquote>
      <pre wrap="">
Because you cannot have macro for each shell command. (Actually you can,
but it would be silly). Personally, I don't like aliasing macros and
I prefer direct commands as it's simpler and more readable.

</pre>
    </blockquote>
    Actually macroses present for most used commands and I also now
    prefer plain comments in spec. But it is not main question.<br>
    <blockquote type="cite"
      cite="mid:slrni7f052.742.ppisar@dhcp-0-146.brq.redhat.com">
      <pre wrap="">
</pre>
      <blockquote type="cite">
        <pre wrap="">Rpm say it is just perl command with path:
$ rpm --eval '%{__perl}'
/usr/bin/perl
Is there any advantage for that?

</pre>
      </blockquote>
      <pre wrap="">Probably perl interpreter had been in other location or under diferrent
name before. (E.g. transition between two incompatible perl versions).
This macro could be used to make easy the transition for package
maintainers. Or there had been used some addition perl arguments (like
-w). Or the macro was defined to allow spec file sharing between
distributions with different perl locations.

However this is just speculation. You need to ask the guy how invented
the macro. (It wasn't me :)
</pre>
    </blockquote>
    Off course. But question inspired by review
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="content-type">
    <a href="https://bugzilla.redhat.com/show_bug.cgi?id=627024#c2">https://bugzilla.redhat.com/show_bug.cgi?id=627024#c2</a>
    where main argument of its usage what it is some sort of standard
    because it used in template.<a
      href="https://bugzilla.redhat.com/show_bug.cgi?id=627024#c2"><br>
    </a>
    <blockquote type="cite"
      cite="mid:slrni7f052.742.ppisar@dhcp-0-146.brq.redhat.com">
      <pre wrap="">
-- Petr

</pre>
    </blockquote>
    <br>
  </body>
</html>