Re: [CentOS] How get a spec preprocesed with all macros expanded.

2012-03-27 Thread Marcos Lois Bermudez
Hi, Excuse my poor explication. This is my scenario, now i have some tasks that i make semi-manual that i want to automate, basically i have some package sources (spec, patches and in some cases additional files), this packages are fetched from SCM and converted to SRPMs, to build later with mock

Re: [CentOS] How get a spec preprocesed with all macros expanded.

2012-03-27 Thread Karanbir Singh
On 03/27/2012 03:39 PM, Karanbir Singh wrote: >> I need to get a spec file with all macro exanded, so i can extract info > are you just looking for something like : 'yum install redhat-rpm-config > rpm-build && rpm --showrc' Also, if you are trying to get buildtime results, you can add %dump to t

Re: [CentOS] How get a spec preprocesed with all macros expanded.

2012-03-27 Thread Karanbir Singh
On 03/27/2012 02:30 PM, Marcos Lois Bermúdez wrote: > I need to get a spec file with all macro exanded, so i can extract info > of some tags, that my be consitional based on macros, i know that some > rpm utils need to make this to figure out dependencies and so on. That does not make any sense

[CentOS] How get a spec preprocesed with all macros expanded.

2012-03-27 Thread Marcos Lois Bermúdez
Hi, I need to get a spec file with all macro exanded, so i can extract info of some tags, that my be consitional based on macros, i know that some rpm utils need to make this to figure out dependencies and so on. I don't know if is posible to get a preprocesed spec file with actual Centos & rp