Re: Getting dependencies from spec files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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 -


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux