On Dec 27, 2005, at 7:56 AM, Angelos Manousarides wrote:
Hello all,
To cut a long story sort, is it possible to invoke the RPM command
to do a 'dry-run' of the building process, in order to get *just*
the names of the binary packages that will be produced? I have
tried the --nobuild flag but it obviously fails when it checks the %
files section because no files have been produced.
rpm -q --specfile foo.spec
That mostly "works", but will fail with, say, per-arch sub-packages,
or other complicated syntax.
What I really want is to produce a 'make dep' behavior, in which
all source RPMs will be opened and using a script (which does not
build the universe!) the source RPM names will be related to the
binary RPMs. Thus I can later do a 'make all' to do the actual
building.
It wouldn't be impossible to add a timestamp check between binary
*.rpm -> source *.src.rpm -> *.spec so that (say)
rpmbuild -ba --freshen *.spec
rebuilt iff necessary, at least for the components contained within a
*.src.rpm.
Hint: bugzilla an RFE if you want to see something like this.
73 de Jeff
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list