Ok,
Might be a dumb question but I will ask all the same. Is it correct or incorrect to use rpm to evaluate installed packages to determine versions etc while building a package?
Example:
%define foobarver %(rpm -q foobar --qf '%{RPMTAG_VERSION}' | tail -1)
Is this the best way? Or should I query the app directly like:
foobar --version
and trim the out put?
Cheers
Mike
_______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list