I'm right in thinking that it's bad to call rpm from rpmbuild?During my find-requires script, I need to get the exact name-version-release of the ocaml compiler. Obviously the compiler knows its name & version, but not its release.
At the moment I'm doing: if [ -n "$emit_compiler_version" ]; then # Every OCaml program depends on the precise version of the # compiler which was used to compile it. rpm -q --qf '%{NAME} = %{VERSION}-%{RELEASE}\n' ocaml fibut if calling rpm like this is bad, I'm wondering how to fix it. Best way I can see to do this is to store the name-version-release of the compiler in a special file in the ocaml RPM, something like:
/usr/lib64/ocaml/fedora-ocaml-releasewhich would contain something like 3.09.0-3 or whatever, then the script can be changed to cat this file.
What do people think? Rich. -- Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/ Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 03798903
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature
-- Fedora-packaging mailing list Fedora-packaging@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-packaging