Finding out what rpms a build command will create (again)?

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

 



Since my recent post about packages without %files got no replies, I think I'll rephrase my question. It is really an old one, and goes something like

How can I find out what files a given rpmbuild command will create (provided that the build is successful), without actually running the command?

My answer to that question has so far been

rpm -q [<--defines etc. used during build>] --specfile <spec> --queryformat "`rpm --eval '%{_rpmdir}/%{_rpmfilename}'`"

However,

  1. I've always been thinking that there ought to be a more direct way
     to do this
  2. If I have a package "foo" with
     %package server
     and
     %package client
     (to use an example from "Maximum RPM"), and also
     %files server
     and
     %files client
     but no filelist for the main package, the above query will list
     something like
     /usr/src/redhat/RPMS/i386/foo-1.0-1.i386.rpm
     /usr/src/redhat/RPMS/i386/foo-server-1.0-1.i386.rpm
     /usr/src/redhat/RPMS/i386/foo-client-1.0-1.i386.rpm
     but an actual rpmbuild will create just the latter two files;
     there will be no rpm for "foo" itself, since it has no %files!

- Toralf


_______________________________________________ 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