<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    Thanks for you fast reply.<br>
    <br>
    I know this solutions, but don0t fix my problem, i can extract the
    spec file, but this can have if macros in some parts, that will en
    with more or less buildrequires, etc.<br>
    <br>
    I don't know if this is posible, so i only want a already
    preprocesed spec file with all macros expanded so i can extract
    acurate info of package build.<br>
    <br>
    I will ask this on user list, as this list is only for development.<br>
    <br>
    Regards.<br>
    <br>
    <br>
    El 27/03/2012 14:37, Johnny Hughes escribi&oacute;:
    <blockquote cite="mid:4F71B48D.90307@centos.org" type="cite">
      <pre wrap="">On 03/27/2012 05:56 AM, Marcos Lois Berm&uacute;dez wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hi,

I'm building some packages using CentOS 6, and i have a question that i 
can't get answer for, i think that is a common task in rpm build that 
will get some info that will help in automate some process.

I need to get a spec file with all macro exanded, so i can extract info 
of buildrequires, etc..
</pre>
      </blockquote>
      <pre wrap="">
If you want to know the buildrequries, you can do this to with the SRPM:

rpm -qp --requires &lt;name&gt;.src.rpm

You can also extract the spec file directly with the command and then do
things with sed or grep to that file:

rpm2cpio &lt;name&gt;.src.rpm | cpio -i *.spec

You can also see all the macro information for rpm with the command:

rpmbuild --showrc


</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
CentOS-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CentOS-devel@centos.org">CentOS-devel@centos.org</a>
<a class="moz-txt-link-freetext" href="http://lists.centos.org/mailman/listinfo/centos-devel">http://lists.centos.org/mailman/listinfo/centos-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>