determine package arch without/before building package?

2012-07-11 Thread Tim Mooney
Given a spec file foo.spec, is there a way use rpmbuild or rpm to determine what the package architecture will be without (or before) actually building the package? I know I could use sed or grep on the spec file looking for BuildArch, but I'm wondering if there's a way to essentially run the

Re: determine package arch without/before building package?

2012-07-11 Thread Jeffrey Johnson
On Jul 11, 2012, at 12:13 PM, Tim Mooney wrote: Given a spec file foo.spec, is there a way use rpmbuild or rpm to determine what the package architecture will be without (or before) actually building the package? I know I could use sed or grep on the spec file looking for BuildArch, but

Re: determine package arch without/before building package?

2012-07-11 Thread Tim Mooney
In regard to: Re: determine package arch without/before building package?,...: Given a spec file foo.spec, is there a way use rpmbuild or rpm to determine what the package architecture will be without (or before) actually building the package? I know I could use sed or grep on the spec file

Re: determine package arch without/before building package?

2012-07-11 Thread Jeffrey Johnson
On Jul 11, 2012, at 4:54 PM, Tim Mooney wrote: In regard to: Re: determine package arch without/before building package?,...: Given a spec file foo.spec, is there a way use rpmbuild or rpm to determine what the package architecture will be without (or before) actually building the package?