[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Getting dependencies from spec files
- From: Panu Matilainen <pmatilai welho com>
- To: rpm-list redhat com
- Subject: Re: Getting dependencies from spec files
- Date: Wed, 19 Nov 2003 11:37:46 +0200 (EET)
On Tue, 18 Nov 2003, Eli Carter wrote:
> All,
>
> Is there a way to get rpmbuild to display the BuildPreReqs given a spec
> file, but without initiating a build?
> And then, what about PreReqs and Requires?
Not really. To some extent you can get PreReqs and Requires out of a spec
with 'rpm -q --specfile --requires foo.spec' but that (obviously) doesn't
include automatically generated dependencies and for build dependencies I
don't think there's a way to get that out of a spec file.
That said, "mach" does exactly that by parsing the spec manually, if you
wish you could extract the relevant code from there...
http://thomas.apestaart.org/projects/mach/
- Panu -
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]